# Agno ## Home ### Welcome - [Welcome to Agno](https://agno-v2.mintlify.app/index.md): Build, run, and manage agent platforms. ### Get Started - [Build Your First Agent](https://agno-v2.mintlify.app/first-agent.md): Build and run your first agent in 20 lines of code. - [Use Agno with Coding Agents](https://agno-v2.mintlify.app/coding-agents.md): Give your coding agent access to Agno documentation. #### Build Your Agent Platform - [Overview](https://agno-v2.mintlify.app/agent-platform/overview.md): Build your own Agent Platform using Agno's AgentOS runtime. - [Run Locally](https://agno-v2.mintlify.app/agent-platform/run-local.md): Run AgentOS and Postgres locally with Docker. - [Create an Agent](https://agno-v2.mintlify.app/agent-platform/create-agent.md): Use Claude Code to create a new agent. - [Improve an Agent](https://agno-v2.mintlify.app/agent-platform/improve-agent.md): Run autonomous probe, judge, and edit loops against a live agent. - [Run on Railway](https://agno-v2.mintlify.app/agent-platform/run-railway.md): Deploy your agent platform to Railway with JWT auth on. - [Evals](https://agno-v2.mintlify.app/agent-platform/evals.md): Lock in agent behavior with regression tests. - [Next Steps](https://agno-v2.mintlify.app/agent-platform/next-steps.md): Add teams, workflows, scheduled tasks, and interfaces to your agent platform. ### Features - [Agent SDK](https://agno-v2.mintlify.app/features/sdk.md): Build agents, teams, and workflows using the Agno SDK. - [Agent Runtime](https://agno-v2.mintlify.app/features/runtime.md): Run agents, teams, and workflows using FastAPI. - [Agent Governance](https://agno-v2.mintlify.app/features/control-plane.md): Monitor, manage and govern your agents, teams, and workflows from one place. - [Agent API](https://agno-v2.mintlify.app/features/api.md): Run and manage agents, teams, and workflows through REST, SSE, and MCP. - [AgentOS MCP Server](https://agno-v2.mintlify.app/features/mcp-server.md): Expose agents, teams, workflows, and custom tools to MCP clients through AgentOS. - [Agent Storage](https://agno-v2.mintlify.app/features/storage.md): Persist agent sessions, memory, knowledge, traces, approvals, schedules, evaluations, and metrics. - [Agent Observability](https://agno-v2.mintlify.app/features/observability.md): Trace agent, team, and workflow runs across models, tools, and steps. - [Agent Evaluation](https://agno-v2.mintlify.app/features/evaluation.md): Catch regressions in response quality, tool use, latency, and memory. - [Security & Auth](https://agno-v2.mintlify.app/features/security-and-auth.md): Protect AgentOS APIs with JWT verification, scoped permissions, request isolation, and per-user data boundaries. - [Interfaces](https://agno-v2.mintlify.app/features/interfaces.md): Connect agents to chat interfaces (Slack, Telegram, WhatsApp, Discord), browser applications, and agent protocols. - [Scheduling](https://agno-v2.mintlify.app/features/scheduling.md): Run agents, teams, and workflows on recurring schedules with persisted history and retry controls. ### Use Cases - [Workflow Automation](https://agno-v2.mintlify.app/use-cases/workflow-automation.md): Run repeatable processes with workflows, background execution, human review, and schedules. - [Customer Support Agents](https://agno-v2.mintlify.app/use-cases/customer-support.md): Resolve customer requests with specialist routing, product knowledge, controlled actions, and human escalation. - [Knowledge Agents](https://agno-v2.mintlify.app/use-cases/knowledge-agents.md): Build agents that answer from indexed content with controlled ingestion, retrieval, filtering, and source updates. - [Coding Agents](https://agno-v2.mintlify.app/use-cases/coding-agents.md): Build coding agents that inspect repositories, edit files, run commands, and verify changes. #### Customer-Facing Agents - [Customer-Facing Agents](https://agno-v2.mintlify.app/use-cases/product-agents/overview.md): Build one agent for your product and serve it inside your product, through Claude and ChatGPT, and in messaging interfaces. - [Serve as an API](https://agno-v2.mintlify.app/use-cases/product-agents/serve-as-an-api.md): Turn agents into an HTTP service with streaming, sessions, and auth. - [Sessions and memory](https://agno-v2.mintlify.app/use-cases/product-agents/sessions-and-memory.md): Persistent multi-turn conversations and per-user memory. - [Connecting your data](https://agno-v2.mintlify.app/use-cases/product-agents/connecting-your-data.md): Give agents access to external sources using context providers. - [Interfaces](https://agno-v2.mintlify.app/use-cases/product-agents/interfaces.md): Connect agents to Slack, Telegram, WhatsApp, and browser clients through AgentOS. #### Data Labeling & Classification - [Data labeling and classification](https://agno-v2.mintlify.app/use-cases/data-labeling/overview.md): Classify data, extract records, build preference datasets, and review labels with agents. - [Build an image search application](https://agno-v2.mintlify.app/use-cases/data-labeling/image-search.md): Describe images with an agent, index the descriptions in PgVector, and search the collection from a browser UI. - [Data extraction](https://agno-v2.mintlify.app/use-cases/data-labeling/structured-extraction.md): Extract typed Pydantic objects from text, images, audio, video, and PDFs. - [Classification and span labeling](https://agno-v2.mintlify.app/use-cases/data-labeling/classification.md): Assign one label, a set of labels, a taxonomy path, or marked spans. - [Multimodal inputs](https://agno-v2.mintlify.app/use-cases/data-labeling/multimodal-inputs.md): Feed images, audio, video, and PDFs into any labeling or extraction agent. - [LLM as judge](https://agno-v2.mintlify.app/use-cases/data-labeling/llm-as-judge.md): Score model outputs against a rubric. The same machinery as labeling, applied to evaluation. - [Preference data for RLHF](https://agno-v2.mintlify.app/use-cases/data-labeling/preference-data.md): Rank two responses to the same prompt. The data shape for reward models and DPO. - [Quality review pipeline](https://agno-v2.mintlify.app/use-cases/data-labeling/quality-pipeline.md): Run two labelers concurrently, persist each workflow run, and adjudicate disagreements. #### Data & Analytics - [Data and analytics agents](https://agno-v2.mintlify.app/use-cases/data-agents/overview.md): Agents that work on your data, grounded in business context. - [Querying your data](https://agno-v2.mintlify.app/use-cases/data-agents/querying-your-data.md): Give an agent read-only SQL access and schema introspection. - [Grounding in context](https://agno-v2.mintlify.app/use-cases/data-agents/grounding-in-context.md): Ground every query in validated SQL, table metadata, and business rules. - [Self-correcting agents](https://agno-v2.mintlify.app/use-cases/data-agents/self-correcting-agents.md): Save diagnosed query errors as learned knowledge and retrieve the corrections on later runs. - [Safe data access](https://agno-v2.mintlify.app/use-cases/data-agents/safe-data-access.md): Enforce read and write boundaries with database permissions and transaction settings. - [Materialization](https://agno-v2.mintlify.app/use-cases/data-agents/materialization.md): Turn validated recurring queries into reusable views in an agent-owned schema. - [Serve and embed](https://agno-v2.mintlify.app/use-cases/data-agents/serve-and-embed.md): Serve a data agent through AgentOS for use in dashboards, Slack, and product interfaces. #### Deep Research - [Deep research and analysis](https://agno-v2.mintlify.app/use-cases/deep-research/overview.md): Combine Team modes, Workflow steps, grounding, and typed research outputs. - [Orchestration patterns](https://agno-v2.mintlify.app/use-cases/deep-research/orchestration-patterns.md): Choose a Team mode or Workflow based on ownership, execution order, and review requirements. - [Parallel investigation](https://agno-v2.mintlify.app/use-cases/deep-research/parallel-investigation.md): Run independent specialist steps concurrently, then synthesize their results. - [Grounding research](https://agno-v2.mintlify.app/use-cases/deep-research/grounding-research.md): Give each research agent a mandate, a shared research library, and access to prior work. - [Structured deliverable](https://agno-v2.mintlify.app/use-cases/deep-research/structured-deliverable.md): Return a typed decision with the call, conviction, allocation, rationale, and citations. - [Institutional learning](https://agno-v2.mintlify.app/use-cases/deep-research/institutional-learning.md): Share reviewed insights across agents and teams through a global learning namespace. - [Serve and embed](https://agno-v2.mintlify.app/use-cases/deep-research/serve-and-embed.md): Serve research agents, teams, and workflows through one AgentOS API. #### Document Processing - [Document processing](https://agno-v2.mintlify.app/use-cases/document-processing/overview.md): Turn PDFs and scanned documents into typed rows for your production systems. - [Invoices and receipts](https://agno-v2.mintlify.app/use-cases/document-processing/invoices-and-receipts.md): Header fields, line items, and the path from PDF to a database row. - [Contracts](https://agno-v2.mintlify.app/use-cases/document-processing/contracts.md): Parties, dates, and a clause-level breakdown for legal review queues. - [Forms and intake](https://agno-v2.mintlify.app/use-cases/document-processing/forms-and-intake.md): Extract nested fields from resumes, applications, and KYC documents. - [Batch and durability](https://agno-v2.mintlify.app/use-cases/document-processing/batch-and-durability.md): Bound concurrent batches, choose in-process or durable background runs, and schedule AgentOS endpoints. - [Human routing and eval](https://agno-v2.mintlify.app/use-cases/document-processing/human-routing-and-eval.md): Route low-confidence fields for approval and track extraction accuracy against a golden set. - [SDK (1258 pages)](https://agno-v2.mintlify.app/_llms/sdk.txt): Get Started, Basics, Advanced, Production, Other, Additional Resources. - [AgentOS (147 pages)](https://agno-v2.mintlify.app/_llms/agent-os.txt): Get Started, AgentOS, Example Usage. ## Templates ### Get Started - [AgentOS Templates](https://agno-v2.mintlify.app/deploy/introduction.md): Pre-built starter templates for running AgentOS in your cloud. - [Build with Coding Agents](https://agno-v2.mintlify.app/deploy/coding-agents.md): Use Claude Code, Codex, or Cursor to set up, build, improve, evaluate, review, and deploy an AgentOS Starter. ### Starters #### Railway - [AgentOS on Railway](https://agno-v2.mintlify.app/deploy/templates/railway/deploy.md): AgentOS template for teams that develop locally with Docker and deploy with Postgres on Railway. - [Railway Reference](https://agno-v2.mintlify.app/deploy/templates/railway/reference.md): Commands, customization, environment variables, and troubleshooting for the Railway template. #### Docker - [AgentOS on self-hosted Docker](https://agno-v2.mintlify.app/deploy/templates/docker/deploy.md): AgentOS template for teams that want to run the same Docker Compose stack locally and on their own infrastructure. - [Docker Reference](https://agno-v2.mintlify.app/deploy/templates/docker/reference.md): Commands, customization, environment variables, and troubleshooting for the self-hosted Docker template. #### AWS - [AgentOS on AWS](https://agno-v2.mintlify.app/deploy/templates/aws/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on AWS. - [AWS Reference](https://agno-v2.mintlify.app/deploy/templates/aws/reference.md): Commands, customization, environment variables, and troubleshooting for the AWS template. #### Fly - [AgentOS on Fly.io](https://agno-v2.mintlify.app/deploy/templates/fly/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on Fly.io. - [Fly.io Reference](https://agno-v2.mintlify.app/deploy/templates/fly/reference.md): Commands, customization, environment variables, and troubleshooting for the Fly.io template. #### GCP - [AgentOS on Google Cloud Run](https://agno-v2.mintlify.app/deploy/templates/gcp/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on Google Cloud Run. - [Google Cloud Run Reference](https://agno-v2.mintlify.app/deploy/templates/gcp/reference.md): Commands, customization, environment variables, and troubleshooting for the Google Cloud Run template. #### Kubernetes - [AgentOS on Kubernetes](https://agno-v2.mintlify.app/deploy/templates/helm/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on Kubernetes with Helm. - [Kubernetes Reference](https://agno-v2.mintlify.app/deploy/templates/helm/reference.md): Commands, customization, environment variables, and troubleshooting for the Kubernetes template. #### Azure - [AgentOS on Azure Container Apps](https://agno-v2.mintlify.app/deploy/templates/azure/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on Azure Container Apps. - [Azure Container Apps Reference](https://agno-v2.mintlify.app/deploy/templates/azure/reference.md): Commands, customization, environment variables, and troubleshooting for the Azure Container Apps template. #### Render - [AgentOS on Render](https://agno-v2.mintlify.app/deploy/templates/render/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on Render. - [Render Reference](https://agno-v2.mintlify.app/deploy/templates/render/reference.md): Commands, customization, environment variables, and troubleshooting for the Render template. #### Modal - [AgentOS on Modal](https://agno-v2.mintlify.app/deploy/templates/modal/deploy.md): AgentOS template for teams that develop locally with Docker and deploy to production on Modal. - [Modal Reference](https://agno-v2.mintlify.app/deploy/templates/modal/reference.md): Commands, customization, environment variables, and troubleshooting for the Modal template. ### Apps - [Dash](https://agno-v2.mintlify.app/deploy/templates/dash/overview.md): Self-learning data agent for teams that need grounded answers from company data, business rules, and proven query patterns. - [Coda](https://agno-v2.mintlify.app/deploy/templates/coda/overview.md): Code companion for engineering teams that review pull requests, triage issues, and answer architecture questions in Slack. - [Scout](https://agno-v2.mintlify.app/deploy/templates/scout/overview.md): Company intelligence agent for teams that need answers across live web, Slack, Drive, wiki, CRM, and MCP sources. - [Context](https://agno-v2.mintlify.app/deploy/templates/context/overview.md): Self-hosted context manager that gives your AI tools one private CRM and knowledge base for your work. ### Agno CLI - [Agno CLI](https://agno-v2.mintlify.app/cli/overview.md): Scaffold, run, and connect an AgentOS from the terminal with the agno command. - [Create a Project](https://agno-v2.mintlify.app/cli/create.md): Scaffold an AgentOS project from a starter template: Docker by default, or AWS, Azure, Fly.io, GCP, Kubernetes, Modal, Railway, and Render. - [Connect Your Clients](https://agno-v2.mintlify.app/cli/connect.md): Connect Claude Code, Claude Desktop, Codex, and Cursor to a running AgentOS over MCP with one command. - [Operate Your AgentOS](https://agno-v2.mintlify.app/cli/operate.md): Start, stop, and restart an AgentOS project with Docker Compose, and inspect what is running and connected. - [Manage Tokens](https://agno-v2.mintlify.app/cli/tokens.md): Mint, list, and revoke AgentOS service-account tokens from the terminal. - [Examples (1965 pages)](https://agno-v2.mintlify.app/_llms/examples.txt): Examples, Primitives, Context, Models, Tools, More. - [Reference (444 pages)](https://agno-v2.mintlify.app/_llms/reference.txt): Agno SDK Reference, AgentOS API Reference, Agno CLI, Agno Infra CLI. ## FAQs ### FAQs - [Environment Variables](https://agno-v2.mintlify.app/faq/environment-variables.md): Environment variables Agno reads: provider API keys, AgentOS security keys, CLI settings, and debug flags. - [ImportError - Missing Dependencies](https://agno-v2.mintlify.app/faq/import-errors.md): Map common Agno ImportError messages to the pip extra that installs the missing dependency. - [Why does my agent use gpt-5.4?](https://agno-v2.mintlify.app/faq/default-model.md): Agents without a model default to OpenAIResponses with gpt-5.4. Set model explicitly to change this. - [OpenAI Key Request While Using Other Models](https://agno-v2.mintlify.app/faq/openai-key-request-for-other-models.md): Agno defaults to OpenAI for models and embedders. Set both explicitly to remove the OPENAI_API_KEY requirement. - [How to Switch Between Different Models](https://agno-v2.mintlify.app/faq/switching-models.md): Switch models and supported providers within one agent session while preserving message and tool-call history. - [Structured outputs](https://agno-v2.mintlify.app/faq/structured-outputs.md): Structured Outputs vs JSON mode: how Agno enforces output_schema and when to fall back to use_json_mode. - [Tokens-per-minute rate limiting](https://agno-v2.mintlify.app/faq/tpm-issues.md): Retry rate-limited requests by setting retries, delay_between_retries, and exponential_backoff on the agent. - [When to use a Workflow vs a Team](https://agno-v2.mintlify.app/faq/workflow-vs-team.md): Use a Workflow for code-defined execution and a Team for model-directed coordination. - [Where does the agno command come from?](https://agno-v2.mintlify.app/faq/agno-cli.md): pip install agno 2.7+ puts the agno and agnoctl commands on your PATH; both run the same CLI. - [AgentOS Connection Issues](https://agno-v2.mintlify.app/faq/agentos-connection.md): Fix browser-blocked connections to a local AgentOS, including local-network permissions, Brave shields, Safari restrictions, and tunneling workarounds. - [Authorization Failed - JWT Verification](https://agno-v2.mintlify.app/faq/rbac-auth-failed.md): Diagnose AgentOS 'Authorization Failed' errors: algorithm mismatch, mangled PEM keys, missing scopes, and conflicting auth modes. - [Connecting to TablePlus](https://agno-v2.mintlify.app/faq/connecting-to-tableplus.md): Inspect your pgvector container's sessions and knowledge tables with TablePlus. - [Could Not Connect To Docker](https://agno-v2.mintlify.app/faq/could-not-connect-to-docker.md): Diagnose Docker daemon connection errors on macOS, Linux, and Windows. ## OpenAPI Specs - [openapi](/reference-api/openapi.yaml) - [openapi](/reference-api/openapi.json) > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [SDK (1258 pages)](https://agno-v2.mintlify.app/_llms/sdk.txt): Get Started, Basics, Advanced, Production, Other, Additional Resources. - [SDK / Basics (961 pages)](https://agno-v2.mintlify.app/_llms/sdk/basics.txt): Agents, Teams, Workflows, Input & Output, Database, Memory, FileSystem, Knowledge, Learning, Models, Context Providers, Tools. - [SDK / Basics / Models (447 pages)](https://agno-v2.mintlify.app/_llms/sdk/basics/models.txt): Model Providers. - [AgentOS (147 pages)](https://agno-v2.mintlify.app/_llms/agent-os.txt): Get Started, AgentOS, Example Usage. - [Examples (1965 pages)](https://agno-v2.mintlify.app/_llms/examples.txt): Examples, Primitives, Context, Models, Tools, More. - [Examples / Primitives (493 pages)](https://agno-v2.mintlify.app/_llms/examples/primitives.txt): Agents, Teams, Workflows. - [Examples / Primitives / Teams (179 pages)](https://agno-v2.mintlify.app/_llms/examples/primitives/teams.txt): Basics, Modes, Structured I/O, Human in the Loop, Guardrails, Knowledge & RAG, Learning & Memory, State & Session, Tools & Hooks, Skills, Advanced, Fallback Models, Checkpointing, Remote Agents, Regenerate, Time Travel, Fork Session, Result Offloading. - [Examples / Models (565 pages)](https://agno-v2.mintlify.app/_llms/examples/models.txt): OpenAI, Anthropic, Google, Open Source, Enterprise, Local, More Providers, Tuning Engines, Ramp, Synthorai, Tokenlab, Trustedrouter. - [Examples / Models / More Providers (160 pages)](https://agno-v2.mintlify.app/_llms/examples/models/more-providers.txt): AIML API, Cerebras (OpenAI), Clients, Cloudflare, CometAPI, DashScope, DeepInfra, Inception, InternLM, LangDB, LiteLLM, LiteLLM (OpenAI), MiniMax, Moonshot, N1N, Nebius, Neosantara, Nexus, OpenRouter, Perplexity, Portkey, Requesty, SambaNova, SiliconFlow, Vercel, Xiaomi MiMo. - [Examples / Tools (286 pages)](https://agno-v2.mintlify.app/_llms/examples/tools.txt): Tool Hooks, Handling Tool Errors, Tool Decorator, MCP, Search & Web, Data & Analytics, Communication, AI & Media, Dev & Infrastructure, Other Tools, Antigravity, Coding Tools, Google, Parallel, Workspace Tools, Advisor Tools, Finance. - [Examples / More (372 pages)](https://agno-v2.mintlify.app/_llms/examples/more.txt): Agent OS, Reasoning, Evals, Integrations, Components. - [Reference (444 pages)](https://agno-v2.mintlify.app/_llms/reference.txt): Agno SDK Reference, AgentOS API Reference, Agno CLI, Agno Infra CLI. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.