To make this codebase yours, run rm -rf .git and push to your own git repo.
2
Configure your environment
cp example.env .env
Open .env and set OPENAI_API_KEY. Everything else has sensible defaults.
3
Start the platform
docker compose up -d --build
This runs two containers: a FastAPI app on port 8000 and a Postgres database on port 5432. The first build takes a few minutes.
4
Verify it's running
Open http://localhost:8000/docs.You’ll see the OpenAPI spec: every agent action exposed as a REST endpoint.
AgentOS API
You now have an agent platform made of AgentOS on FastAPI and Postgres. The AgentOS server exposes 80+ endpoints for runs, sessions, memory, knowledge, and evals.AgentOS also comes with a UI at os.agno.com.
Click Connect OS, enter http://localhost:8000 as the URL, and name it Local AgentOS.
Click Connect.
You should see three agents:
Agent
Pattern
What it does
Agent Builder
Studio builder
Builds agents, teams, and workflows from a chat prompt.
Platform Manager
Context provider
Monitors the platform and answers questions about the codebase.
WebSearch
Direct tools
Searches the web and synthesizes answers grounded in citations.
Try a prompt against each:
“Build an agent that tracks AI news and writes a daily brief” → Agent Builder walks you through the agent development process.
“How healthy is the platform?” → Platform Manager answers from eval history, deployment checks, and schedules.
“What did Anthropic publish about agents recently?” → WebSearch returns a summary with citations.
Open Sessions and Traces in the sidebar. Every run is captured with full message history, tool calls, and timing. This is what powers the iteration loop on the next page.
Summary
We now have a locally running agent platform with:
Our agent runtime (AgentOS) running on port 8000 with request isolation, session management, scheduling, and 80+ endpoints.
A Postgres database for storing sessions, memory, knowledge, and traces.
Eight coding-agent skills in .agents/skills/: setup, create, extend, improve, create evals, repair eval failures, review, and deploy.
Hot-reload is on. Edits to Python files in the source (agents/, app/, db/, evals/, workflows/) are live in ~2s.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agno","colors":{"primary":"#FF4017","light":"#FF4017","dark":"#FF4017"},"logo":{"light":"https://mintcdn.com/agno-v2/SgkhZ8Fg5uYnD8iq/logo/black.svg?fit=max\u0026auto=format\u0026n=SgkhZ8Fg5uYnD8iq\u0026q=85\u0026s=fbe4dbb306f50c4d379aff3861e202fa","dark":"https://mintcdn.com/agno-v2/SgkhZ8Fg5uYnD8iq/logo/white.svg?fit=max\u0026auto=format\u0026n=SgkhZ8Fg5uYnD8iq\u0026q=85\u0026s=362cc549cb8a40935ac490f9175afbae"},"favicon":"https://mintcdn.com/agno-v2/Y7twezR0wF2re1xh/favicon.png?fit=max\u0026auto=format\u0026n=Y7twezR0wF2re1xh\u0026q=85\u0026s=929e6495078b426821db16391294be2b","background":{"color":{"light":"#FFFFFF","dark":"#111113"}},"navbar":{"links":[{"icon":"help","href":"https://docs.agno.com/get-help","label":"Support"},{"icon":"github","href":"https://github.com/agno-agi/agno","label":"Github"}],"primary":{"type":"button","label":"Try AgentOS","href":"https://os.agno.com"}},"footer":{"socials":{"github":"https://github.com/agno-agi/agno/discussions","x":"https://x.com/AgnoAgi","linkedin":"https://www.linkedin.com/company/agno-agi","youtube":"https://agno.link/youtube","website":"https://agno.com"}},"fonts":{"heading":{"family":"Inter","weight":750},"body":{"family":"Inter","weight":400}},"integrations":{"gtm":{"tagId":"GTM-WBTFNG7M"}},"contextual":{"options":["copy","mcp","cursor","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agno-v2","hasAudioNarration":false,"actualSubdomain":"agno-v2","customDomains":[],"gitSource":{"type":"github","owner":"agno-agi","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true,"edits":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aaba6ee5a9aeab2eab5d50e","clientVersion":"0.0.4324","searchFilterCounts":[{"language":"default","tag":"Examples","count":1983},{"language":"default","tag":"SDK","count":1258},{"language":"default","tag":"Usage","count":663},{"language":"default","tag":"Models","count":641},{"language":"default","tag":"Providers","count":605},{"language":"default","tag":"Tools","count":494},{"language":"default","tag":"Primitives","count":493},{"language":"default","tag":"Reference","count":444},{"language":"default","tag":"Model Providers","count":442},{"language":"default","tag":"Basics","count":407}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content{margin-top:0.75rem!important}#content>span:first-of-type,#content>p:first-of-type{margin-top:1.5rem!important}#content>span+h2,#content>p+h2{margin-top:1.5rem!important}"}]}
{"page":{"pagePath":"agent-platform/run-local","slug":"/agent-platform/run-local","pageMetadata":{"title":"Run Locally","description":"Run AgentOS and Postgres locally with Docker.","href":"/agent-platform/run-local"},"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: \"Run AgentOS and Postgres locally with Docker.\"\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`,blockquote:`blockquote`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Today we’re going to run an agent platform made of:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`AgentOS on FastAPI`}),`\n`,_jsx(_components.li,{children:`Postgres + pgvector`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://docs.docker.com/desktop/`,children:`Docker Desktop`}),` installed and running`]}),`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.a,{href:`https://platform.openai.com/api-keys`,children:`OpenAI API key`}),` for models and embeddings`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`run-your-agent-platform`,children:`Run your agent platform`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Clone the template`,children:[_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:`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/agno-agi/agentos-railway.git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent-platform`})]}),`\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:` agent-platform`})]}),`\n`]})})}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To make this codebase yours, run `,_jsx(_components.code,{children:`rm -rf .git`}),` and push to your own git repo.`]})})]}),_jsxs(Step,{title:`Configure your environment`,children:[_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:`cp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` example.env`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Open `,_jsx(_components.code,{children:`.env`}),` and set `,_jsx(_components.code,{children:`OPENAI_API_KEY`}),`. Everything else has sensible defaults.`]})]}),_jsxs(Step,{title:`Start the platform`,children:[_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`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --build`})]}),`\n`]})})}),_jsx(_components.p,{children:`This runs two containers: a FastAPI app on port 8000 and a Postgres database on port 5432. The first build takes a few minutes.`})]}),_jsxs(Step,{title:`Verify it's running`,children:[_jsxs(_components.p,{children:[`Open `,_jsx(_components.a,{href:`http://localhost:8000/docs`,children:`http://localhost:8000/docs`}),`.`]}),_jsx(_components.p,{children:`You’ll see the OpenAPI spec: every agent action exposed as a REST endpoint.`}),_jsx(Frame,{caption:`AgentOS API`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/agno-v2/4Z2CVTSHBoFZK7mc/videos/first-agent-api.gif?s=f709fc7060609e0055ecf1f6864157d3`,alt:`AgentOS API`,\"data-og-width\":`800`,width:`800`,\"data-og-height\":`524`,height:`524`,\"data-path\":`videos/first-agent-api.gif`,\"data-optimize\":`true`,\"data-opv\":`3`})})]})]}),`\n`,_jsx(_components.p,{children:`You now have an agent platform made of AgentOS on FastAPI and Postgres. The AgentOS server exposes 80+ endpoints for runs, sessions, memory, knowledge, and evals.`}),`\n`,_jsxs(_components.p,{children:[`AgentOS also comes with a UI at `,_jsx(_components.a,{href:`https://os.agno.com`,children:`os.agno.com`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`connect-the-agentos-ui`,children:`Connect the AgentOS UI`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.a,{href:`https://os.agno.com`,children:`os.agno.com`}),` and sign in.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Connect OS`}),`, enter `,_jsx(_components.code,{children:`http://localhost:8000`}),` as the URL, and name it `,_jsx(_components.strong,{children:`Local AgentOS`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Connect`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You should see three agents:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Agent`}),_jsx(_components.th,{children:`Pattern`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Agent Builder`})}),_jsx(_components.td,{children:`Studio builder`}),_jsx(_components.td,{children:`Builds agents, teams, and workflows from a chat prompt.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Platform Manager`})}),_jsx(_components.td,{children:`Context provider`}),_jsx(_components.td,{children:`Monitors the platform and answers questions about the codebase.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`WebSearch`})}),_jsx(_components.td,{children:`Direct tools`}),_jsx(_components.td,{children:`Searches the web and synthesizes answers grounded in citations.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Try a prompt against each:`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.em,{children:`“Build an agent that tracks AI news and writes a daily brief”`}),` → `,_jsx(_components.strong,{children:`Agent Builder`}),` walks you through the agent development process.`]}),`\n`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.em,{children:`“How healthy is the platform?”`}),` → `,_jsx(_components.strong,{children:`Platform Manager`}),` answers from eval history, deployment checks, and schedules.`]}),`\n`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.em,{children:`“What did Anthropic publish about agents recently?”`}),` → `,_jsx(_components.strong,{children:`WebSearch`}),` returns a summary with citations.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Sessions`}),` and `,_jsx(_components.strong,{children:`Traces`}),` in the sidebar. Every run is captured with full message history, tool calls, and timing. This is what powers the iteration loop on the next page.`]}),`\n`,_jsx(Heading,{level:`2`,id:`summary`,children:`Summary`}),`\n`,_jsx(_components.p,{children:`We now have a locally running agent platform with:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Our agent runtime (AgentOS) running on port 8000 with request isolation, session management, scheduling, and 80+ endpoints.`}),`\n`,_jsx(_components.li,{children:`A Postgres database for storing sessions, memory, knowledge, and traces.`}),`\n`,_jsxs(_components.li,{children:[`Eight coding-agent skills in `,_jsx(_components.code,{children:`.agents/skills/`}),`: setup, create, extend, improve, create evals, repair eval failures, review, and deploy.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Hot-reload is on. Edits to Python files in the source (`,_jsx(_components.code,{children:`agents/`}),`, `,_jsx(_components.code,{children:`app/`}),`, `,_jsx(_components.code,{children:`db/`}),`, `,_jsx(_components.code,{children:`evals/`}),`, `,_jsx(_components.code,{children:`workflows/`}),`) are live in ~2s.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`next`,children:`Next`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/agent-platform/create-agent`,children:`Create an agent →`})})]})}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":"Run Locally","description":"Run AgentOS and Postgres locally with Docker.","href":"/agent-platform/run-local"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Run your agent platform","slug":"run-your-agent-platform","depth":2,"children":[]},{"title":"Connect the AgentOS UI","slug":"connect-the-agentos-ui","depth":2,"children":[]},{"title":"Summary","slug":"summary","depth":2,"children":[]},{"title":"Next","slug":"next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"agno-v2","siteName":"Agno","title":"Run Locally - Agno","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-24T01:10:43.139Z","originalFileLocation":"agent-platform/run-local.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=\"system\"}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=\"Run AgentOS and Postgres locally with Docker.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agno\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_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/agno-v2/queHaJYpMArYtYjI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run Locally - Agno\">\u003cmeta data-mint-head property=\"og:description\" content=\"Run AgentOS and Postgres locally with Docker.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agno\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://agno-v2.mintlify.app/agent-platform/run-local\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agno-v2.mintlify.site/_mintlify/api/og/v2?division=Build+Your+Agent+Platform\u0026amp;title=Run+Locally\u0026amp;description=Run+AgentOS+and+Postgres+locally+with+Docker.\u0026amp;theme=7d6ed0e1508fc3847f5d47b3\u0026amp;signature=9fb76fb21d3bcabece412a2541916e121f1067920f35a7cec78ebe8a7aee80f4\">\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=\"Run Locally - Agno\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Run AgentOS and Postgres locally with Docker.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agno-v2.mintlify.site/_mintlify/api/og/v2?division=Build+Your+Agent+Platform\u0026amp;title=Run+Locally\u0026amp;description=Run+AgentOS+and+Postgres+locally+with+Docker.\u0026amp;theme=7d6ed0e1508fc3847f5d47b3\u0026amp;signature=9fb76fb21d3bcabece412a2541916e121f1067920f35a7cec78ebe8a7aee80f4\">\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/agno-v2/queHaJYpMArYtYjI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agno\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF4017\">\u003clink data-mint-head rel=\"canonical\" href=\"https://agno-v2.mintlify.app/agent-platform/run-local\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/agent-platform/run-local.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://agno-v2.mintlify.app/#organization\",\"name\":\"Agno\",\"url\":\"https://agno-v2.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agno-v2/SgkhZ8Fg5uYnD8iq/logo/black.svg?fit=max\u0026auto=format\u0026n=SgkhZ8Fg5uYnD8iq\u0026q=85\u0026s=fbe4dbb306f50c4d379aff3861e202fa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://agno-v2.mintlify.app#website\",\"name\":\"Agno\",\"url\":\"https://agno-v2.mintlify.app\",\"publisher\":{\"@id\":\"https://agno-v2.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://agno-v2.mintlify.app/agent-platform/run-local#webpage\",\"url\":\"https://agno-v2.mintlify.app/agent-platform/run-local\",\"name\":\"Run Locally\",\"description\":\"Run AgentOS and Postgres locally with Docker.\",\"dateModified\":\"2026-07-24T01:10:43.139Z\",\"isPartOf\":{\"@id\":\"https://agno-v2.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://agno-v2.mintlify.app/agent-platform/run-local#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://agno-v2.mintlify.app/agent-platform/run-local#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://agno-v2.mintlify.app/first-agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build Your Agent Platform\",\"item\":\"https://agno-v2.mintlify.app/agent-platform/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Run Locally\",\"item\":\"https://agno-v2.mintlify.app/agent-platform/run-local\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://agno-v2.mintlify.app/agent-platform/run-local#article\",\"headline\":\"Run Locally\",\"name\":\"Run Locally\",\"description\":\"Run AgentOS and Postgres locally with Docker.\",\"url\":\"https://agno-v2.mintlify.app/agent-platform/run-local\",\"mainEntityOfPage\":{\"@id\":\"https://agno-v2.mintlify.app/agent-platform/run-local#webpage\"},\"dateModified\":\"2026-07-24T01:10:43.139Z\",\"publisher\":{\"@id\":\"https://agno-v2.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://agno-v2.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agno\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agno\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/agent-platform/run-local.md","siteName":"Agno","nav":{"global":null,"tabs":[{"tab":"Home","groups":[{"group":"Welcome","pages":[{"title":"Welcome to Agno","mode":"wide","href":""}]},{"group":"Get Started","pages":[{"title":"Build Your First Agent","href":"/first-agent"},{"title":"Use Agno with Coding Agents","href":"/coding-agents"},{"group":"Build Your Agent Platform","pages":[{"title":"Overview","sidebarTitle":"Overview","description":"Build your own Agent Platform using Agno's AgentOS runtime.","href":"/agent-platform/overview"},{"title":"Run Locally","href":"/agent-platform/run-local"},{"title":"Create an Agent","description":"Use Claude Code to create a new agent.","href":"/agent-platform/create-agent"},{"title":"Improve an Agent","href":"/agent-platform/improve-agent"},{"title":"Run on Railway","href":"/agent-platform/run-railway"},{"title":"Evals","href":"/agent-platform/evals"},{"title":"Next Steps","href":"/agent-platform/next-steps"}]}]},{"group":"Features","pages":[{"title":"Agent SDK","href":"/features/sdk"},{"title":"Agent Runtime","href":"/features/runtime"},{"title":"Agent Governance","sidebarTitle":"Agent Governance","href":"/features/control-plane"},{"title":"Agent API","href":"/features/api"},{"title":"AgentOS MCP Server","sidebarTitle":"MCP Server","href":"/features/mcp-server"},{"title":"Agent Storage","href":"/features/storage"},{"title":"Agent Observability","href":"/features/observability"},{"title":"Agent Evaluation","href":"/features/evaluation"},{"title":"Security \u0026 Auth","href":"/features/security-and-auth"},{"title":"Interfaces","href":"/features/interfaces"},{"title":"Scheduling","href":"/features/scheduling"}]},{"group":"Use Cases","pages":[{"group":"Customer-Facing Agents","pages":[{"title":"Customer-Facing Agents","sidebarTitle":"Overview","href":"/use-cases/product-agents/overview"},{"title":"Serve as an API","href":"/use-cases/product-agents/serve-as-an-api"},{"title":"Sessions and memory","href":"/use-cases/product-agents/sessions-and-memory"},{"title":"Connecting your data","href":"/use-cases/product-agents/connecting-your-data"},{"title":"Interfaces","href":"/use-cases/product-agents/interfaces"}]},{"title":"Workflow Automation","href":"/use-cases/workflow-automation"},{"group":"Data Labeling \u0026 Classification","pages":[{"title":"Data labeling and classification","sidebarTitle":"Overview","href":"/use-cases/data-labeling/overview"},{"title":"Build an image search application","sidebarTitle":"Image Search","href":"/use-cases/data-labeling/image-search"},{"title":"Data extraction","href":"/use-cases/data-labeling/structured-extraction"},{"title":"Classification and span labeling","href":"/use-cases/data-labeling/classification"},{"title":"Multimodal inputs","href":"/use-cases/data-labeling/multimodal-inputs"},{"title":"LLM as judge","href":"/use-cases/data-labeling/llm-as-judge"},{"title":"Preference data for RLHF","href":"/use-cases/data-labeling/preference-data"},{"title":"Quality review pipeline","href":"/use-cases/data-labeling/quality-pipeline"}]},{"title":"Customer Support Agents","sidebarTitle":"Customer Support","href":"/use-cases/customer-support"},{"title":"Knowledge Agents","href":"/use-cases/knowledge-agents"},{"title":"Coding Agents","sidebarTitle":"Coding Agents","href":"/use-cases/coding-agents"},{"group":"Data \u0026 Analytics","pages":[{"title":"Data and analytics agents","sidebarTitle":"Overview","href":"/use-cases/data-agents/overview"},{"title":"Querying your data","href":"/use-cases/data-agents/querying-your-data"},{"title":"Grounding in context","href":"/use-cases/data-agents/grounding-in-context"},{"title":"Self-correcting agents","href":"/use-cases/data-agents/self-correcting-agents"},{"title":"Safe data access","href":"/use-cases/data-agents/safe-data-access"},{"title":"Materialization","href":"/use-cases/data-agents/materialization"},{"title":"Serve and embed","href":"/use-cases/data-agents/serve-and-embed"}]},{"group":"Deep Research","pages":[{"title":"Deep research and analysis","sidebarTitle":"Overview","href":"/use-cases/deep-research/overview"},{"title":"Orchestration patterns","href":"/use-cases/deep-research/orchestration-patterns"},{"title":"Parallel investigation","href":"/use-cases/deep-research/parallel-investigation"},{"title":"Grounding research","href":"/use-cases/deep-research/grounding-research"},{"title":"Structured deliverable","href":"/use-cases/deep-research/structured-deliverable"},{"title":"Institutional learning","href":"/use-cases/deep-research/institutional-learning"},{"title":"Serve and embed","href":"/use-cases/deep-research/serve-and-embed"}]},{"group":"Document Processing","pages":[{"title":"Document processing","sidebarTitle":"Overview","href":"/use-cases/document-processing/overview"},{"title":"Invoices and receipts","href":"/use-cases/document-processing/invoices-and-receipts"},{"title":"Contracts","href":"/use-cases/document-processing/contracts"},{"title":"Forms and intake","href":"/use-cases/document-processing/forms-and-intake"},{"title":"Batch and durability","href":"/use-cases/document-processing/batch-and-durability"},{"title":"Human routing and eval","href":"/use-cases/document-processing/human-routing-and-eval"}]}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/introduction"}]},{"tab":"AgentOS","pages":[{"title":"AgentOS","href":"/agent-os/introduction"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/deploy/introduction"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/introduction"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/agents/agent"}]},{"tab":"FAQs","pages":[{"title":"FAQs","href":"/faq/environment-variables"}]}]},"basePath":"","title":"Run Locally - Agno","deploymentId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","buildId":"dpl_72MSwyBnA59N55RmMByBKiJ6RWpG","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BPsULv2Z.js","DynamicMarkdown-fZBmrd-V.js","zoom-image-lightbox-bwWulms_.js","lightbox-handle-r17bVUz3.js"]}