The CLI is the recommended way to create and manage Aegra projects.
pip install aegra-cli
Then initialize a new project:
aegra init
The CLI prompts you for a location, a template (simple-chatbot or react-agent), and a project name. It generates the project structure, aegra.json, Dockerfile, docker-compose.yml, and .env.example.
Install aegra-cli directly — not the aegra meta-package on PyPI. The aegra package is a convenience wrapper that does not support version pinning.
aegra-api requires langgraph>=1.2.16, and projects created with aegra init start on the same minimum. Only a minimum is set, so a fresh install (pip install aegra-cli, or a project without a lock file) gets the newest LangGraph release. A project with a uv.lock keeps the versions in that lock file until you run uv lock --upgrade.Each Aegra release is tested against the exact versions in the repository’s uv.lock at that release tag. A nightly CI job also runs the test suite against the newest releases of every dependency, so a breaking LangGraph release is caught soon after it ships.If a newer release causes errors:
Find your Aegra version with pip show aegra-api.
Open uv.lock at that release tag, for example https://github.com/aegra/aegra/blob/v0.11.0/uv.lock.
Pin langgraph, langgraph-checkpoint and langchain-core to the versions in that file.
Open an issue with the LangGraph version that fails.
Aegra uses PostgreSQL with the pgvector extension for persistence and vector search. The recommended image is pgvector/pgvector:pg18.When you use aegra dev or aegra up, PostgreSQL is started automatically via Docker. For aegra serve, you provide your own database via DATABASE_URL or POSTGRES_* environment variables.
Docker is required for local development (aegra dev starts a PostgreSQL container). For production, you can either run everything in Docker (aegra up) or provide an external database and run with aegra serve.
aegra dev, aegra up, and aegra serve work on Windows. The CLI passes uvicorn a SelectorEventLoop factory on Windows, since psycopg cannot connect on the ProactorEventLoop that uvicorn otherwise defaults to without --reload. For production deployments we still recommend Docker or a Linux server.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aegra","colors":{"primary":"#f97316","light":"#fb923c","dark":"#ea580c"},"logo":{"light":"https://mintcdn.com/aegra/Rwc7oJzYlJBOchZu/images/logo-light.svg?fit=max\u0026auto=format\u0026n=Rwc7oJzYlJBOchZu\u0026q=85\u0026s=021ca638c2cb9e56e3869be82560d741","dark":"https://mintcdn.com/aegra/Rwc7oJzYlJBOchZu/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=Rwc7oJzYlJBOchZu\u0026q=85\u0026s=67bbde1058431a2027f1f61b8a8fd11d"},"favicon":"https://mintcdn.com/aegra/Rwc7oJzYlJBOchZu/images/favicon.svg?fit=max\u0026auto=format\u0026n=Rwc7oJzYlJBOchZu\u0026q=85\u0026s=f42a720443ed46fb49c5c1bf43a0bc09","appearance":{"default":"dark"},"search":{"prompt":"Search Aegra docs..."},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aegra","hasAudioNarration":false,"actualSubdomain":"aegra","customDomains":["docs.aegra.dev"],"gitSource":{"type":"github","owner":"aegra","repo":"aegra","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aef08ecae7fce64eae9db13","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":56},{"language":"default","tag":"Documentation","count":27},{"language":"default","tag":"Threads","count":13},{"language":"default","tag":"Assistants","count":12},{"language":"default","tag":"Thread Runs","count":11},{"language":"default","tag":"Getting started","count":7},{"language":"default","tag":"Configuration","count":7},{"language":"default","tag":"Crons","count":6},{"language":"default","tag":"Core concepts","count":5},{"language":"default","tag":"Store","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"installation","slug":"/installation","pageMetadata":{"title":"Installation","description":"All the ways to install and run Aegra.","href":"/installation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"All the ways to install and run Aegra.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`using-the-cli`,children:`Using the CLI`}),`\n`,_jsx(_components.p,{children:`The CLI is the recommended way to create and manage Aegra projects.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aegra-cli`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then initialize a new project:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`aegra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The CLI prompts you for a location, a template (simple-chatbot or react-agent), and a project name. It generates the project structure, `,_jsx(_components.code,{children:`aegra.json`}),`, `,_jsx(_components.code,{children:`Dockerfile`}),`, `,_jsx(_components.code,{children:`docker-compose.yml`}),`, and `,_jsx(_components.code,{children:`.env.example`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Install `,_jsx(_components.code,{children:`aegra-cli`}),` directly — not the `,_jsx(_components.code,{children:`aegra`}),` meta-package on PyPI. The `,_jsx(_components.code,{children:`aegra`}),` package is a convenience wrapper that does not support version pinning.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`from-source`,children:`From source`}),`\n`,_jsx(_components.p,{children:`Clone the repository and run directly:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/aegra/aegra.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aegra`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env.example`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Add your OPENAI_API_KEY to .env`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Install dependencies and start the development server:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`uv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all-packages`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`uv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aegra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or start with Docker Compose:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsx(Heading,{level:`3`,id:`python`,children:`Python`}),`\n`,_jsx(_components.p,{children:`Aegra requires Python 3.12+ for both the API server and the CLI.`}),`\n`,_jsx(Heading,{level:`3`,id:`langgraph`,children:`LangGraph`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aegra-api`}),` requires `,_jsx(_components.code,{children:`langgraph>=1.2.16`}),`, and projects created with `,_jsx(_components.code,{children:`aegra init`}),` start on the same minimum. Only a minimum is set, so a fresh install (`,_jsx(_components.code,{children:`pip install aegra-cli`}),`, or a project without a lock file) gets the newest LangGraph release. A project with a `,_jsx(_components.code,{children:`uv.lock`}),` keeps the versions in that lock file until you run `,_jsx(_components.code,{children:`uv lock --upgrade`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Each Aegra release is tested against the exact versions in the repository’s `,_jsx(_components.code,{children:`uv.lock`}),` at that release tag. A nightly CI job also runs the test suite against the newest releases of every dependency, so a breaking LangGraph release is caught soon after it ships.`]}),`\n`,_jsx(_components.p,{children:`If a newer release causes errors:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Find your Aegra version with `,_jsx(_components.code,{children:`pip show aegra-api`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.code,{children:`uv.lock`}),` at that release tag, for example `,_jsx(_components.code,{children:`https://github.com/aegra/aegra/blob/v0.11.0/uv.lock`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Pin `,_jsx(_components.code,{children:`langgraph`}),`, `,_jsx(_components.code,{children:`langgraph-checkpoint`}),` and `,_jsx(_components.code,{children:`langchain-core`}),` to the versions in that file.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://github.com/aegra/aegra/issues`,children:`Open an issue`}),` with the LangGraph version that fails.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`postgresql`,children:`PostgreSQL`}),`\n`,_jsxs(_components.p,{children:[`Aegra uses PostgreSQL with the pgvector extension for persistence and vector search. The recommended image is `,_jsx(_components.code,{children:`pgvector/pgvector:pg18`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`When you use `,_jsx(_components.code,{children:`aegra dev`}),` or `,_jsx(_components.code,{children:`aegra up`}),`, PostgreSQL is started automatically via Docker. For `,_jsx(_components.code,{children:`aegra serve`}),`, you provide your own database via `,_jsx(_components.code,{children:`DATABASE_URL`}),` or `,_jsx(_components.code,{children:`POSTGRES_*`}),` environment variables.`]}),`\n`,_jsx(Heading,{level:`3`,id:`docker`,children:`Docker`}),`\n`,_jsxs(_components.p,{children:[`Docker is required for local development (`,_jsx(_components.code,{children:`aegra dev`}),` starts a PostgreSQL container). For production, you can either run everything in Docker (`,_jsx(_components.code,{children:`aegra up`}),`) or provide an external database and run with `,_jsx(_components.code,{children:`aegra serve`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`windows`,children:`Windows`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aegra dev`}),`, `,_jsx(_components.code,{children:`aegra up`}),`, and `,_jsx(_components.code,{children:`aegra serve`}),` work on Windows. The CLI passes uvicorn a `,_jsx(_components.code,{children:`SelectorEventLoop`}),` factory on Windows, since psycopg cannot connect on the `,_jsx(_components.code,{children:`ProactorEventLoop`}),` that uvicorn otherwise defaults to without `,_jsx(_components.code,{children:`--reload`}),`. For production deployments we still recommend Docker or a Linux server.`]}),`\n`,_jsx(Heading,{level:`2`,id:`project-structure`,children:`Project structure`}),`\n`,_jsxs(_components.p,{children:[`After `,_jsx(_components.code,{children:`aegra init`}),`, your project looks like this:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`17`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`my-project/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── aegra.json # Graph and server configuration`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── src/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ └── my_project/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── __init__.py`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── graph.py # Your LangGraph agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── state.py # State and input schemas`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── context.py # Runtime context`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── prompts.py # System prompts`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ └── utils.py # Helper functions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── .env.example # Environment variable template`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── .gitignore`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── Dockerfile # Container build config`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── docker-compose.yml # Local development stack`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── pyproject.toml # Python dependencies`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└── README.md`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`verify-the-installation`,children:`Verify the installation`}),`\n`,_jsx(_components.p,{children:`Start the server and check the health endpoint:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`uv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aegra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`In another terminal:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://localhost:2026/health`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You should see:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"healthy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Visit `,_jsx(_components.a,{href:`http://localhost:2026/docs`,children:`http://localhost:2026/docs`}),` for the interactive API documentation.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Installation","description":"All the ways to install and run Aegra.","href":"/installation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Using the CLI","slug":"using-the-cli","depth":2,"children":[]},{"title":"From source","slug":"from-source","depth":2,"children":[]},{"title":"Requirements","slug":"requirements","depth":2,"children":[{"title":"Python","slug":"python","depth":3,"children":[]},{"title":"LangGraph","slug":"langgraph","depth":3,"children":[]},{"title":"PostgreSQL","slug":"postgresql","depth":3,"children":[]},{"title":"Docker","slug":"docker","depth":3,"children":[]},{"title":"Windows","slug":"windows","depth":3,"children":[]}]},{"title":"Project structure","slug":"project-structure","depth":2,"children":[]},{"title":"Verify the installation","slug":"verify-the-installation","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"aegra","siteName":"Aegra","title":"Installation - Aegra","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-03T11:52:24.123Z","originalFileLocation":"installation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"All the ways to install and run Aegra.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aegra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Installation - Aegra\">\u003cmeta data-mint-head property=\"og:description\" content=\"All the ways to install and run Aegra.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aegra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aegra.dev/installation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aegra.mintlify.site/_mintlify/api/og/v2?division=Getting+started\u0026amp;title=Installation\u0026amp;description=All+the+ways+to+install+and+run+Aegra.\u0026amp;theme=91d2c677a0dfb352733d0c75\u0026amp;signature=2e56fe90c579344328e1bcc400eb49ed6de59f050ddf7ce9f67898b076c00b64\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Installation - Aegra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"All the ways to install and run Aegra.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aegra.mintlify.site/_mintlify/api/og/v2?division=Getting+started\u0026amp;title=Installation\u0026amp;description=All+the+ways+to+install+and+run+Aegra.\u0026amp;theme=91d2c677a0dfb352733d0c75\u0026amp;signature=2e56fe90c579344328e1bcc400eb49ed6de59f050ddf7ce9f67898b076c00b64\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aegra/PXmwwk9BNjTPZqTG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aegra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#f97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aegra.dev/installation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/installation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aegra.dev/#organization\",\"name\":\"Aegra\",\"url\":\"https://docs.aegra.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aegra/Rwc7oJzYlJBOchZu/images/logo-light.svg?fit=max\u0026auto=format\u0026n=Rwc7oJzYlJBOchZu\u0026q=85\u0026s=021ca638c2cb9e56e3869be82560d741\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aegra.dev#website\",\"name\":\"Aegra\",\"url\":\"https://docs.aegra.dev\",\"publisher\":{\"@id\":\"https://docs.aegra.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aegra.dev/installation#webpage\",\"url\":\"https://docs.aegra.dev/installation\",\"name\":\"Installation\",\"description\":\"All the ways to install and run Aegra.\",\"dateModified\":\"2026-11-03T11:52:24.123Z\",\"isPartOf\":{\"@id\":\"https://docs.aegra.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aegra.dev/installation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aegra.dev/installation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting started\",\"item\":\"https://docs.aegra.dev/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation\",\"item\":\"https://docs.aegra.dev/installation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aegra.dev/installation#article\",\"headline\":\"Installation\",\"name\":\"Installation\",\"description\":\"All the ways to install and run Aegra.\",\"url\":\"https://docs.aegra.dev/installation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aegra.dev/installation#webpage\"},\"dateModified\":\"2026-11-03T11:52:24.123Z\",\"publisher\":{\"@id\":\"https://docs.aegra.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aegra.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aegra\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Aegra","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting started","icon":"rocket","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Why Aegra","href":"/why-aegra"},{"title":"Quickstart","description":"Get a running Aegra server in under 5 minutes.","href":"/quickstart"},{"title":"Installation","href":"/installation"},{"title":"Build your first agent","description":"A hands-on tutorial that walks you through building, deploying, and interacting with an AI agent on Aegra.","href":"/getting-started"},{"title":"Migrate from LangSmith Deployments","href":"/migration"},{"title":"Feature support","href":"/feature-support"}]},{"group":"Core concepts","icon":"book","pages":[{"title":"Assistants","href":"/guides/assistants"},{"title":"Threads and state","href":"/guides/threads-and-state"},{"title":"Streaming","href":"/guides/streaming"},{"title":"Human-in-the-loop","href":"/guides/human-in-the-loop"},{"title":"Cron / scheduled jobs","href":"/guides/cron"}]},{"group":"Data \u0026 storage","icon":"database","pages":[{"title":"Store","href":"/guides/store"},{"title":"Semantic store","href":"/guides/semantic-store"},{"title":"Subgraphs","href":"/guides/subgraphs"}]},{"group":"Configuration","icon":"gear","pages":[{"title":"Authentication","href":"/guides/authentication"},{"title":"Custom routes","href":"/guides/custom-routes"},{"title":"Dependencies","href":"/guides/dependencies"},{"title":"Observability","href":"/guides/observability"},{"title":"Deployment","href":"/guides/deployment"},{"title":"Worker architecture","href":"/guides/worker-architecture"},{"title":"High availability","href":"/guides/high-availability"}]},{"group":"Contributing","icon":"code-pull-request","pages":[{"title":"Contributing","href":"/guides/contributing"},{"title":"PostgreSQL 18 migration","href":"/guides/postgres-migration"}]},{"group":"Reference","icon":"file-lines","pages":[{"title":"Configuration","href":"/reference/configuration"},{"title":"CLI reference","href":"/reference/cli"},{"title":"Environment variables","href":"/reference/environment-variables"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/health/info"}]}]},"basePath":"","title":"Installation - Aegra","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}