# Add Agno to your coding agent (/coding-agents) Add the Agno MCP to your coding agents so it can search the docs, read guides, and look up real examples as you build. ## Connect to Agno MCP [#connect-to-agno-mcp] Follow the instructions to connect to the Agno MCP server. Most coding agents support adding MCP servers as connectors. Add the Agno docs as a connector: | Setting | Value | | -------------- | ---------------------- | | Name | `agno-docs` | | URL | `https://mcp.agno.com` | | Transport | Streamable HTTP | | Authentication | None | Then check your client's MCP settings to confirm that the server is connected and its tools are available. Run this in your terminal to make the Agno docs available across your projects: ```bash claude mcp add --transport http --scope user agno-docs https://mcp.agno.com ``` Open Claude Code and run `/mcp` to check that `agno-docs` is connected. See [Claude Code's MCP documentation](https://code.claude.com/docs/en/mcp) for configuration options. Add this server to `~/.cursor/mcp.json` to make the Agno docs available across your projects. Create the file if it doesn't exist. If you already have servers configured, add `agno-docs` inside the existing `mcpServers` object. ```json title="~/.cursor/mcp.json" { "mcpServers": { "agno-docs": { "url": "https://mcp.agno.com" } } } ``` Check that the server is enabled and its tools appear under **Available Tools** in Cursor. See [Cursor's MCP documentation](https://cursor.com/docs/mcp) for configuration options. With the Codex CLI installed, run this in your terminal to add the Agno docs to your user configuration: ```bash codex mcp add agno-docs --url https://mcp.agno.com ``` Run `codex mcp list` to confirm that `agno-docs` was added. Open a Codex CLI session and run `/mcp` to check its tools. See [Codex's MCP documentation](https://developers.openai.com/codex/mcp) for configuration options. You can also add the Agno documentation as an index for your coding agent. Please add [https://docs.agno.com/llms.txt](https://docs.agno.com/llms.txt) and [https://docs.agno.com/llms-full.txt](https://docs.agno.com/llms-full.txt) as sources to your coding agent. Each page is also available as Markdown, such as [https://docs.agno.com/first-agent.md](https://docs.agno.com/first-agent.md). ## Check the connection [#check-the-connection] Give your coding agent this prompt: ```text Use the Agno docs to find and read "Build your agent platform." Explain what we'll build and what I need for the local setup. ``` You should see the agent search or read the documentation, then explain the guide's setup requirements. ## Start building [#start-building] Continue to [build your agent platform](/agent-platform/overview). To learn by writing the code yourself, follow [build a personal agent](/first-agent). # Welcome to Agno (/) Agno is a self-managing agent platform. Build agents for your company, product, or customers. Run them as durable services on AgentOS. Put them to work automating company operations. * **Build** agents with the Agno, Claude Agent, or Codex SDKs. Combine agents into teams and workflows. * **Run** agents as durable services with built-in API and MCP. AgentOS handles authentication, role-based access, resume/replay, human approvals, scheduling, and durable execution. * **Automate** company operations with Company OS. Organize work into projects, tasks, and recurring routines. People set direction and review results; agents execute. Agno provides the orchestration and service layer around your agents, making them available in: 1. **Your product:** using the REST API. 2. **Claude and ChatGPT:** using the MCP server. 3. **Chat apps like Slack:** using Agno Interfaces. Run your platform in your own cloud and keep your data in your control. Review conversations, inspect traces, manage knowledge, and track your agent activity using the [AgentOS UI](https://os.agno.com). ## Get started [#get-started] Select your cloud provider and give this prompt to your coding agent: ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-render into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-railway into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-docker into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-aws into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-fly into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-gcp into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-helm into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-azure into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` ```txt Help me set up my agent platform and build my first agent. Clone https://github.com/agno-agi/agentos-modal into a folder called agent-platform, cd in, and run the setup-platform skill (in .agents/skills/). ``` The setup skill runs your platform locally and helps you build your first agent. You get: * A durable runtime (AgentOS) with an API and MCP server. * PostgreSQL for storing conversations, memory, and platform activity. * OS Manager to help build and manage your platform. * Coding agents like Claude and Codex built-into the platform. * Skills for building, evaluating, and improving agents. * Company OS for automating company operations. It comes with a built-in maintenance routine that reviews your codebase and proposes platform improvements. Connect your platform to [os.agno.com](https://os.agno.com) to start using it. ## What's included [#whats-included] | Capability | What you can do | | --------------------------------------------------------------------- | ----------------------------------------------------------------------- | | **[Agents](/agents/overview) and [teams](/teams/overview)** | Build agents that use tools, delegate work, and collaborate. | | **[Workflows](/workflows/overview)** | Control execution with routing, conditions, loops, and parallel steps. | | **[Memory](/memory/overview) and [knowledge](/knowledge/overview)** | Remember users across sessions and retrieve answers from your data. | | **[Tools and integrations](/tools/overview)** | Connect agents to APIs, databases, and MCP servers. | | **[Durable execution](/agent-os/background-execution/durable-queue)** | Persist background jobs and track their status across restarts. | | **[Human approval](/hitl/overview)** | Review sensitive actions before they run, then approve and continue. | | **[Observability](/agent-os/tracing/overview)** | Trace runs, inspect tool calls, and diagnose failures. | | **[Scheduling](/agent-os/scheduler/overview)** | Run agents, teams, and workflows on recurring schedules. | | **[Security](/agent-os/security/overview)** | Control access with authentication, roles, and per-user data isolation. | | **[Coding agents](/agent-platform/coding-agents)** | Run Claude and Codex in sandboxes to implement and test changes. | | **Company OS** | Organize work into products, projects, tasks, and recurring routines. | ## Tutorials [#tutorials] First, [add Agno to your coding agent](/coding-agents) so it can read the tutorials as you build. Then, learn how to: * **[Build an agent platform](/agent-platform/overview).** * **[Serve agents as an API](/tutorials/agents-as-api).** * **[Serve agents over MCP](/tutorials/agents-as-mcp).** * **[Run Claude and Codex as services](/tutorials/harnesses-as-a-service).** * **[Build a structured output API](/tutorials/structured-output-as-api).** * **[Learn how we built the Agno Docs Agent](/tutorials/documentation-agents/how-we-built-it).** * **[Build an agent for your product](/tutorials/product-agents/overview).** * **[Build an agent to label and classify data](/tutorials/data-labeling/overview).** * **[Build data and analytics agents](/tutorials/data-agents/overview).** * **[Build agentic workflows](/tutorials/workflow-automation).** * **[Build a personal agent](/first-agent).** # Custom Logging (/custom-logging) You can provide your own logging configuration to Agno, to be used instead of the default ones. This can be useful if you need your system to log in any specific format. Install the SDK and model provider used by the examples: ```bash uv pip install -U agno openai ``` ## Set OpenAI Key [#set-openai-key] Set your `OPENAI_API_KEY` as an environment variable. You can get one [from OpenAI](https://platform.openai.com/account/api-keys). Mac Windows PowerShell ```bash export OPENAI_API_KEY=sk-*** ``` ```powershell $env:OPENAI_API_KEY = "your-openai-api-key" ``` `configure_agno_logging()` controls Agno logging. The response panel printed by `print_response()` is separate console output and does not go through these log handlers. ## Specifying a custom logging configuration [#specifying-a-custom-logging-configuration] You can configure Agno to use your own logging configuration by using the `configure_agno_logging` function. ```python import logging from agno.agent import Agent from agno.utils.log import configure_agno_logging, log_info # Set up a custom logger custom_logger = logging.getLogger("custom_logger") handler = logging.StreamHandler() formatter = logging.Formatter("[CUSTOM_LOGGER] %(levelname)s: %(message)s") handler.setFormatter(formatter) custom_logger.addHandler(handler) custom_logger.setLevel(logging.INFO) custom_logger.propagate = False # Configure Agno to use the custom logger configure_agno_logging( custom_default_logger=custom_logger, custom_agent_logger=custom_logger, ) # Agno helper calls and agent operations use this logger log_info("This is using our custom logger!") agent = Agent() agent.print_response("What is 2+2?") ``` `custom_default_logger` selects the current helper logger. Set `custom_agent_logger` too so agent debug mode uses the same destination. With debug mode off, agent initialization updates the agent logger level but can leave the current helper logger unchanged. Teams and workflows also have their own logger settings; helper selection is shared state, not isolation by component. ## Logging to a File [#logging-to-a-file] You can configure Agno to log to a file instead of the console: ```python import logging from pathlib import Path from agno.agent import Agent from agno.utils.log import configure_agno_logging, log_info # Create a custom logger that writes to a file custom_logger = logging.getLogger("file_logger") # Ensure tmp directory exists log_file_path = Path("tmp/log.txt") log_file_path.parent.mkdir(parents=True, exist_ok=True) # Use FileHandler to write to file handler = logging.FileHandler(log_file_path) formatter = logging.Formatter("%(levelname)s: %(message)s") handler.setFormatter(formatter) custom_logger.addHandler(handler) custom_logger.setLevel(logging.INFO) custom_logger.propagate = False # Configure Agno to use the file logger configure_agno_logging( custom_default_logger=custom_logger, custom_agent_logger=custom_logger, ) # Agno helper calls and agent operations write to tmp/log.txt log_info("This is using our file logger!") agent = Agent() agent.print_response("Tell me a fun fact") ``` ## Multiple Loggers [#multiple-loggers] You can configure different loggers for your Agents, Teams and Workflows: ```python import logging from agno.agent import Agent from agno.team import Team from agno.workflow import Workflow from agno.workflow.step import Step from agno.utils.log import configure_agno_logging, log_info # Create custom loggers for different components custom_agent_logger = logging.getLogger("agent_logger") custom_team_logger = logging.getLogger("team_logger") custom_workflow_logger = logging.getLogger("workflow_logger") # Configure handlers and formatters for each for logger in [custom_agent_logger, custom_team_logger, custom_workflow_logger]: handler = logging.StreamHandler() handler.setFormatter(logging.Formatter("[%(name)s] %(levelname)s: %(message)s")) logger.addHandler(handler) logger.setLevel(logging.INFO) logger.propagate = False # Workflow logs at DEBUG level when debug_mode is enabled # Set workflow logger to DEBUG to see these logs custom_workflow_logger.setLevel(logging.DEBUG) # Apply the configuration configure_agno_logging( custom_default_logger=custom_agent_logger, custom_agent_logger=custom_agent_logger, custom_team_logger=custom_team_logger, custom_workflow_logger=custom_workflow_logger, ) # All logging will now use the custom agent logger by default log_info("Using custom loggers!") # Create agent and team agent = Agent() team = Team(members=[agent]) # Agent will use custom_agent_logger agent.print_response("What is 2+2?") # Team operations select custom_team_logger; non-debug members may retain it team.print_response("Tell me a short joke") # Workflow will use custom_workflow_logger workflow = Workflow( debug_mode=True, steps=[Step(name="step1", agent=agent)] ) workflow.print_response("Tell me a fun fact") ``` ## Using Named Loggers [#using-named-loggers] As is standard in Python, you can provide custom loggers just by giving them specific names. This is useful when you set up logging through configuration files. Agno automatically recognizes and uses these logger names: * `agno` will be used for all Agent logs * `agno-team` will be used for all Team logs * `agno-workflow` will be used for all Workflow logs ```python import logging from agno.agent import Agent from agno.team import Team from agno.workflow import Workflow from agno.workflow.step import Step # Set up named loggers BEFORE creating agents/teams/workflows logger_configs = [ ("agno", "agent.log"), ("agno-team", "team.log"), ("agno-workflow", "workflow.log"), ] for logger_name, log_file in logger_configs: logger = logging.getLogger(logger_name) logger.setLevel(logging.INFO) logger.handlers.clear() # Remove Agno's default console handler handler = logging.FileHandler(log_file) handler.setFormatter(logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")) logger.addHandler(handler) logger.propagate = False # Agno will automatically detect and use these loggers agent = Agent() agent.print_response("Hello from agent!") # Agent logs will go to agent.log team = Team(members=[agent]) team.print_response("Hello from team!") # Team logs will go to team.log # Workflow requires debug mode to use the workflow logger workflow = Workflow( debug_mode=True, steps=[Step(name="step1", agent=agent)] ) workflow.run("Hello from workflow!") # Workflow logs will go to workflow.log ``` ## Include tracebacks [#include-tracebacks] Warnings and errors omit exception tracebacks by default. Enable them in configuration: ```python configure_agno_logging(enable_log_tracebacks=True) ``` Or set `AGNO_LOG_TRACEBACKS=true` before importing Agno. `set_log_tracebacks(True)` from `agno.utils.log` changes the setting at runtime. This affects `log_warning()` and `log_error()` inside exception handlers; `log_exception()` always includes a traceback. ## Learn more [#learn-more] Learn about Agno telemetry Debug your agents effectively # Getting Help (/get-help) ## Community Support [#community-support] Technical support and discussion with the Agno team and other builders. [GitHub Discussions](https://github.com/agno-agi/agno/discussions) | [Discord](https://agno.com/discord) ## Enterprise Support [#enterprise-support] [Book a call](https://cal.com/team/agno/intro) or email [support@agno.com](mailto:support@agno.com) for enterprise guidance and professional support. ## Share Your Work [#share-your-work] Connect with the community and share what you are building. [X (formerly Twitter)](https://x.com/AgnoHQ) | [LinkedIn](https://www.linkedin.com/company/agno-agi) | [Discord](https://agno.com/discord) | [Reddit](https://www.reddit.com/r/agno/) ## Developer Resources [#developer-resources] * [Agno Cookbook](/examples/introduction) | [GitHub](https://github.com/agno-agi/agno/tree/main/cookbook) * [API Reference](/reference/agents/agent) * [Agno SDK GitHub](https://github.com/agno-agi/agno) * [Agno Blog](https://www.agno.com/blog) * [Dash](https://github.com/agno-agi/dash): Text-to-SQL / analytics agent over your database. * [Coda](https://github.com/agno-agi/coda): Coding agent that runs in Slack. * [Scout](https://github.com/agno-agi/scout): Company intelligence agent that navigates Slack, Google Drive, the web, and MCP servers. * [Context](https://github.com/agno-agi/context): Self-hosted context manager. Organizes your work into a private CRM and knowledge base. # Agno Telemetry (/telemetry) Agno sends usage events about agents, teams, workflows, evals, and AgentOS configurations to help improve the platform. Telemetry is enabled by default. The built-in event schemas do not include prompts, model responses, or API keys. They do include component, session, run, and AgentOS identifiers as supplied by the application. These identifiers are not hashed or anonymized by the SDK, and events are sent individually. Avoid embedding personal or sensitive information in identifiers, or disable telemetry. ## What Data is Collected? [#what-data-is-collected] Agno collects basic usage metrics for: * **Agent runs** - Model providers, database types, feature usage * **Team runs** - Multi-agent coordination patterns * **Workflow runs** - Workflow ID, database type, and whether an input schema is configured * **Eval runs** - Eval type, model, and run configuration * **AgentOS launches** - Platform usage and configurations ### Example Telemetry Payload [#example-telemetry-payload] This illustrative agent payload uses the SDK version from the audited source. The version in an actual event comes from the installed package: ```json { "session_id": "123", "run_id": "123", "sdk_version": "3.0.6", "type": "agent", "data": { "agent_id": "123", "db_type": "PostgresDb", "model_provider": "OpenAI", "model_name": "OpenAIResponses", "model_id": "gpt-5.2", "parser_model": { "name": "OpenAIResponses", "id": "gpt-5.2", "provider": "OpenAI" }, "output_model": { "name": "OpenAIResponses", "id": "gpt-5.2", "provider": "OpenAI" }, "has_tools": true, "has_memory": false, "has_learnings": false, "has_reasoning": true, "has_knowledge": true, "has_input_schema": false, "has_output_schema": false, "has_team": true } } ``` ## How to Disable Telemetry [#how-to-disable-telemetry] You can disable telemetry in two ways: ### Environment Variable [#environment-variable] Set `AGNO_TELEMETRY` to `false` to disable telemetry for agents, teams, and workflows. When set, this environment variable overrides their per-instance setting, including `telemetry=False` if the environment value is `true`: ```bash export AGNO_TELEMETRY=false ``` AgentOS and evals do not read `AGNO_TELEMETRY`. Configure those instances directly with `telemetry=False`. Disabling AgentOS launch telemetry does not disable telemetry on its registered agents, teams, workflows, or evals. ### Per-Instance Configuration [#per-instance-configuration] When `AGNO_TELEMETRY` is unset, disable telemetry for individual agents, teams, or workflows. AgentOS and evals always use their own instance setting: ```python from agno.agent import Agent from agno.models.openai import OpenAIResponses # Disable telemetry for a specific agent agent = Agent( model=OpenAIResponses(id="gpt-5.2"), telemetry=False ) ``` This works for: * **Agents**: `Agent(telemetry=False)` * **Teams**: `Team(telemetry=False)` * **Workflows**: `Workflow(telemetry=False)` * **Evals**: `AccuracyEval(telemetry=False)` (also `PerformanceEval`, `ReliabilityEval`, and `AgentAsJudgeEval`) * **AgentOS**: `AgentOS(telemetry=False)` ## Delivery and tracing [#delivery-and-tracing] The SDK queues telemetry for background delivery to Agno's API. Delivery is best effort: events may be dropped when the bounded queue is full or delivery fails. Usage telemetry is separate from [OpenTelemetry tracing](/tracing/overview). Disabling telemetry does not disable configured trace exporters; traces can include application inputs and outputs. ## Developer Resources [#developer-resources] * [Agent schema](/reference/agents/agent) * [Team schema](/reference/teams/team) * [Workflow schema](/reference/workflows/workflow) # AgentOS Configuration (/agent-os/config) AgentOS configuration allows you to customize your instance for different environments and deployment scenarios. Use configuration to set display names, chat quick prompts, and per-database presentation settings. These settings describe registered runtime resources; they do not create databases, grant access, or isolate tenants. The `/config` response discovers `available_models` from concrete agents and teams registered on the runtime. Setting `AgentOSConfig.available_models` does not override that response. Use the [Registry](/agent-os/studio/registry) to supply models for Studio composition. Configuring "Quick Prompts" can be particularly useful for improving the chat experience for users of your AgentOS. It changes the available options when your user creates a new session on the Chat Page. ## Setting your configuration [#setting-your-configuration] You can provide your AgentOS configuration in two different ways: with a configuration YAML file, or using the `AgentOSConfig` class. See the full reference for the `AgentOSConfig` class [here](/reference/agent-os/configuration). ## Configuration YAML File [#configuration-yaml-file] Install `agno[os]` and your model dependencies first. The examples below configure existing agents and databases; use [Run Your First AgentOS](/agent-os/run-your-os) for a complete server. 1. Save the following as `configuration.yaml`. Replace the agent and database IDs and table names with those registered in your runtime: ```yaml # Configure quick prompts for the Chat interface (per agent) chat: quick_prompts: marketing-agent: - "What can you do?" - "How is our latest post working?" - "Tell me about our active marketing campaigns" # Configure Memory page with custom display names memory: display_name: "User Memory Store" dbs: - db_id: db-0001 tables: ["custom_memory_table"] # Optional: specify custom table names domain_config: display_name: Main app user memories - db_id: db-0002 domain_config: display_name: Support flow user memories # Configure Knowledge page knowledge: display_name: "Knowledge Base" dbs: - db_id: db-0001 domain_config: display_name: Product documentation # Configure Session tracking session: display_name: "User Sessions" dbs: - db_id: db-0001 domain_config: display_name: Production sessions # Configure Evals page evals: display_name: "Evaluations" dbs: - db_id: db-0001 domain_config: display_name: Production evals ``` 2. Pass the configuration to your AgentOS using the `config` parameter: ```python from agno.os import AgentOS agent_os = AgentOS( # Add your agents, teams, workflows, and databases here. name="My AgentOS", config="configuration.yaml", ) ``` ## `AgentOSConfig` Class [#agentosconfig-class] Alternatively, provide the same settings in Python. This fragment assumes `marketing_db` and `support_db` are existing database instances with the tables you want to expose: ```python from agno.os import AgentOS from agno.os.config import ( AgentOSConfig, ChatConfig, DatabaseConfig, MemoryConfig, MemoryDomainConfig, ) agent_os = AgentOS( # Register the components that use marketing_db and support_db here. config=AgentOSConfig( chat=ChatConfig( quick_prompts={ "marketing-agent": [ "What can you do?", "How is our latest post working?", "Tell me about our active marketing campaigns", ] } ), memory=MemoryConfig( display_name="User Memory Store", dbs=[ DatabaseConfig( db_id=marketing_db.id, domain_config=MemoryDomainConfig( display_name="Main app user memories", ), ), DatabaseConfig( db_id=support_db.id, domain_config=MemoryDomainConfig( display_name="Support flow user memories", ), ) ], ), ), ) ``` ## The /config endpoint [#the-config-endpoint] The `/config` endpoint returns runtime capability and component metadata as JSON for clients such as the Control Plane. It combines configuration with discovered runtime resources; it is not a serialization of every constructor setting. The response includes: * **OS ID**: The ID of your AgentOS (automatically generated if not set) * **Description**: The description of your AgentOS * **Databases**: The list of IDs of the databases present in your AgentOS * **Agents**: The list of Agents available in your AgentOS * **Teams**: The list of Teams available in your AgentOS * **Workflows**: The list of Workflows available in your AgentOS * **Interfaces**: The list of Interfaces available in your AgentOS. E.g. WhatsApp, Slack, etc. * **Chat**: The configuration for the Chat page, which includes the list of quick prompts for each Agent, Team and Workflow in your AgentOS * **Session**: The configuration for the Session page of your AgentOS * **Metrics**: The configuration for the Metrics page of your AgentOS * **Memory**: The configuration for the Memory page of your AgentOS * **Knowledge**: The configuration for the Knowledge page of your AgentOS * **Evals**: The configuration for the Evals page of your AgentOS For example, this selected portion of a response shows model descriptors and per-database labels. Your IDs and registered components determine the actual values: ```json { "os_id": "0001", "description": "Your AgentOS", "available_models": [ {"id": "gpt-5.4", "provider": "OpenAI"} ], "databases": [ "db-0001", "db-0002" ], "agents": [], "chat": { "quick_prompts": { "marketing-agent": [ "What can you do?", "How is our latest post working?", "Tell me about our active marketing campaigns" ] } }, "memory": { "dbs": [ { "db_id": "db-0001", "domain_config": { "display_name": "Main app user memories" } }, { "db_id": "db-0002", "domain_config": { "display_name": "Support flow user memories" } } ] } } ``` See the full schema for the `/config` endpoint [here](/reference-api/schema/core/get-os-configuration). # Connect Your AgentOS (/agent-os/connect-your-os) Connect local, staging, and production AgentOS runtimes to the Control Plane. Test registered components, inspect sessions and traces, and manage runtime data from the same interface. The Control Plane connects directly from your browser to the runtime endpoint. 1. Open [os.agno.com](https://os.agno.com) and sign in 2. Click **Add new OS** ## Configure the connection [#configure-the-connection] | Field | Description | | ---------------- | -------------------------------------------------------- | | **Environment** | Local (`http://localhost:7777`) or Live (your HTTPS URL) | | **Endpoint URL** | Where your AgentOS is running | | **OS Name** | A descriptive name, e.g. "Development OS" | | **Tags** | Optional. Organize with labels like `dev`, `stg`, `prd` | Click **CONNECT**. If successful, your runtime appears in the dashboard. ## Verify the connection [#verify-the-connection] | Indicator | Expected | | ------------ | -------------------------------------------------------------- | | Status | The runtime shows as running | | Components | Registered agents, teams, and workflows appear | | Runtime data | Sessions, memory, knowledge, and traces appear when configured | # AgentOS Control Plane (/agent-os/control-plane) The AgentOS Control Plane at [os.agno.com](https://os.agno.com) lets you manage and monitor connected AgentOS runtimes. Chat with agents, inspect traces and sessions, manage knowledge and memory, review approvals, and operate schedules from one web interface. The Control Plane connects directly from your browser to your AgentOS runtime. ## Chat Interface [#chat-interface] Chat with agents, collaborate with teams, and run workflows from one screen. See [Agents](/agents/overview), [Teams](/teams/overview), and [Workflows](/workflows/overview) for more details. ### Agents [#agents] Select an agent from the right panel and start a conversation. Each agent maintains its own history, tools, and instructions. Switching agents won't mix contexts. ### Teams [#teams] Switch the toggle to Teams. Use the chat stream to watch how the team divides and solves the task. ### Workflows [#workflows] Switch to Workflows. Provide input (plain text or structured, depending on the workflow) and watch execution live as steps stream, produce output, and finish. ## Studio [#studio] Build agents, teams, and workflows visually on a live canvas. Drag, drop, configure, and deploy without leaving the control plane. See [Studio](/agent-os/studio/introduction) for setup details. ## Approvals [#approvals] Pending tool executions can require human confirmation. Approvals pause runs until an admin resolves the request. See [Approvals](/agent-os/approvals/overview) for setup details. ## Tracing [#tracing] Traces capture the complete execution flow of agents and teams. Each trace contains spans representing individual operations (LLM calls, tool executions, etc.) with token usage, latency, and error information. ### Tree View [#tree-view] Displays spans in a hierarchical structure showing parent-child relationships between operations. Useful for understanding how teams delegate to agents and how agents invoke tools. ### Waterfall View [#waterfall-view] Visualizes spans on a time axis showing when each operation started, how long it took, and which operations ran in parallel. Helps identify bottlenecks and optimize performance. See [Tracing](/agent-os/tracing/overview) for configuration and filter options. ## Session Tracking [#session-tracking] Sessions group related runs under a single `session_id`. Each session captures messages, tool calls, metrics, and summaries for a single conversation. Sessions are stored in your database and can be queried and managed from the control plane. See [Chat History](/database/chat-history) and [Session Storage](/database/session-storage) for more details. ## Knowledge [#knowledge] Knowledge bases provide agents with domain-specific information through RAG (Retrieval-Augmented Generation). Manage multiple knowledge bases, add content from URLs, files, or text, and monitor embedding status. Each knowledge base stores documents, chunks them, generates embeddings, and makes them searchable for agents. See [Manage Knowledge](/agent-os/knowledge/manage-knowledge) for setup details. ## Memories [#memories] Memories store information that agents learn about users across conversations. Each memory is tied to a user ID and contains content, topics, timestamps, and the input that generated it. You can view, create, edit, or delete memories from the control plane. See [Memory](/memory/overview) for more details. ## Schedules [#schedules] Automate agents, teams, and workflows via AgentOS cron schedules. Configure custom intervals, retry logic, and timezones. Use the control plane to monitor run history, enable/disable job states, or trigger manual executions. For setup and API details, see [Scheduler](/agent-os/scheduler/overview) documentation. ## Managing Your AgentOS [#managing-your-agentos] Connect and inspect your AgentOS runtimes from a single interface. Switch between local development and production instances and monitor connection health. See [Connect Your AgentOS](/agent-os/connect-your-os) for the connection steps. ## Authorization [#authorization] Enable JWT verification and generate key pairs from the control plane, either when connecting an OS or later from Settings. See [AgentOS Security](/agent-os/security/overview) and [Authorization](/agent-os/security/authorization/overview) for setup details. ## User Management [#user-management] Invite team members by entering their email addresses. Separate multiple emails with commas or press Enter/Tab between addresses. Every organization has three default roles. Custom roles are available on the Enterprise plan. | Role | Access | | ----------------- | ------------------------------------------------------------------------------------------------ | | **Owner** | Full access including billing, organization settings, and deletion | | **Administrator** | Manage members, roles, settings, and resources; cannot update billing or delete the organization | | **Member** | Run and edit AgentOS resources; cannot delete resources or manage members | See [Organization Roles](/agent-os/security/authorization/roles) for the full capability matrix and custom role setup. # What is AgentOS? (/agent-os/introduction) AgentOS is the FastAPI for agents. It serves agents as an API, an MCP server, and through chat interfaces like Slack, Telegram, and WhatsApp. Here's the simplest possible example: ```python title="workbench.py" lineNumbers from agno.agent import Agent from agno.db.sqlite import SqliteDb from agno.os import AgentOS from agno.tools.workspace import Workspace workbench = Agent( name="Workbench", model="openai:gpt-5.5", db=SqliteDb(db_file="workbench.db"), # session storage tools=[Workspace(".")], # read/write in this directory add_history_to_context=True, # add past 3 runs to context ) # Serve via AgentOS, get streaming, session isolation, API endpoints agent_os = AgentOS( agents=[workbench], tracing=True, scheduler=True, mcp=True, db=SqliteDb(db_file="workbench.db"), ) app = agent_os.get_app() if __name__ == "__main__": agent_os.serve(app="workbench:app", reload=True) ``` AgentOS covers the valley of death between an agent definition and a live service. It provides database-backed state, configurable durable background execution, multi-user RBAC, checkpointing, session management, tracing, evals, and guardrails. Build agents, teams, and workflows with the Agno SDK. Run them with AgentOS. Manage and monitor them using the Control Plane. ## What AgentOS gives you [#what-agentos-gives-you] | Need | AgentOS capability | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | Product API | REST endpoints for running agents and managing sessions, memory, knowledge, traces, evaluations, schedules, and approvals | | Interfaces | Built-in REST, SSE, and workflow WebSocket endpoints, plus configurable MCP, A2A, AG-UI, Slack, Telegram, and WhatsApp interfaces | | Persistent state | Sessions, memory, knowledge, and runtime data stored in databases you configure | | Long-running work | Background execution, buffered stream reconnection after client disconnects, human-in-the-loop, run cancellation, and persisted run history | | Operations | Metrics, evaluations, opt-in tracing, approvals, schedules, and component versions | | Access control | JWT authorization with RBAC, a shared security key, and scoped service accounts | | Framework support | Native Agno components plus adapters for the Claude Agent SDK, LangGraph, DSPy, and Antigravity | ## Build, run, and manage [#build-run-and-manage] | Layer | Role | | ----------------- | -------------------------------------------------------------------------------------------- | | **SDK** | Build agents, teams, and workflows with memory, knowledge, guardrails, and 100+ integrations | | **AgentOS** | Serve your agent platform through a configurable FastAPI runtime | | **Control Plane** | Manage and monitor AgentOS runtimes from one web interface | The runtime exposes the APIs that power the Control Plane and your products. Configure [durable jobs](/agent-os/background-execution/durable-queue) when accepted background work must survive a worker restart. For several replicas, also configure [shared event and cancellation transport](/agent-os/background-execution/multi-replica) and [stateless MCP transport](/agent-os/mcp/mcp#multiple-replicas) when serving MCP. ## Your runtime, your data [#your-runtime-your-data] AgentOS runs in your infrastructure and writes runtime state to databases you configure. The Control Plane connects directly from your browser to the runtime endpoint. Model providers, tools, telemetry, and other external services follow the configuration of your application. See [Security & Auth](/agent-os/security/overview) for authentication modes, service accounts, and endpoint permissions. ## Next steps [#next-steps] Serve an agent through FastAPI and inspect its local API. Start from a template with deployment, Postgres, and evals already wired in. Manage and monitor a local or deployed runtime. Run components and manage runtime data over REST. Use streaming, background execution, and buffered reconnection. Configure authentication, permissions, and user isolation. # Custom Lifespan (/agent-os/lifespan) You will often want to run code before your AgentOS app starts or before it shuts down. This can be done by providing a custom **lifespan function** via the `lifespan` parameter. A lifespan function looks like this: ```python @asynccontextmanager async def lifespan(app): # This will run before your app starts log_info("Starting My FastAPI App") yield # This will run before your app shuts down log_info("Stopping My FastAPI App") ``` ## FastAPI Lifespan [#fastapi-lifespan] The custom lifespan function you provide will be used as the **lifespan context manager** for the FastAPI app used by your AgentOS. Remember to decorate it with `@asynccontextmanager` as shown in the examples. See the [FastAPI documentation](https://fastapi.tiangolo.com/advanced/events/#lifespan-events) for more information about the lifespan context manager. If you are using a custom FastAPI app, you don't need to worry about overwriting its lifespan. The lifespan you provide will wrap the existing lifespan of the app, letting you combine both. ## Common Use Cases [#common-use-cases] Lifespan control is useful to handle typical startup and shutdown tasks, such as: * **Resource Initialization**: databases, third-party services, caches... or anything else needed by your app. * **Cleanup**: Close connections, store data or release resources before shutdown. * **Health Checks**: Verify dependencies are available before serving requests * **Background Tasks**: Start/stop background processes ## Example [#example] ```python title="custom_lifespan.py" from contextlib import asynccontextmanager from agno.agent import Agent from agno.db.postgres import PostgresDb from agno.models.anthropic import Claude from agno.os import AgentOS from agno.utils.log import log_info # Setup the database db = PostgresDb(db_url="postgresql+psycopg://ai:ai@localhost:5532/ai") # Setup basic agents, teams and workflows agno_support_agent = Agent( id="example-agent", name="Example Agent", model=Claude(id="claude-sonnet-4-5"), db=db, markdown=True, ) @asynccontextmanager async def lifespan(app): log_info("Starting My FastAPI App") yield log_info("Stopping My FastAPI App") agent_os = AgentOS( description="Example app with custom lifespan", agents=[agno_support_agent], lifespan=lifespan, ) app = agent_os.get_app() if __name__ == "__main__": """Run your AgentOS. You can test your AgentOS at: http://localhost:7777/docs """ # Don't use reload=True here. It can cause issues with the lifespan agent_os.serve(app="custom_lifespan:app") ``` Mac Windows ```bash uv venv --python 3.12 source .venv/bin/activate ``` ```bash uv venv --python 3.12 .venv\Scripts\activate ``` ```bash export ANTHROPIC_API_KEY=your_anthropic_api_key ``` ```bash uv pip install -U agno anthropic "fastapi[standard]" uvicorn sqlalchemy psycopg ``` ```bash # Using Docker docker run -d \ --name agno-postgres \ -e POSTGRES_DB=ai \ -e POSTGRES_USER=ai \ -e POSTGRES_PASSWORD=ai \ -p 5532:5432 \ pgvector/pgvector:pg17 ``` FastAPI CLI Mac Windows ```bash fastapi run custom_lifespan.py --port 7777 ``` ```bash python custom_lifespan.py ``` ```bash python custom_lifespan.py ``` # AgentOS Runtime (/agent-os/overview) AgentOS serves agents, teams, and workflows through a FastAPI application you own and host. The runtime provides execution APIs, persistent state, authorization, tracing, and operational endpoints. ```python title="agent_os.py" from agno.agent import Agent from agno.db.sqlite import SqliteDb from agno.models.openai import OpenAIResponses from agno.os import AgentOS db = SqliteDb(db_file="tmp/agentos.db") assistant = Agent( id="assistant", model=OpenAIResponses(id="gpt-5.4"), ) agent_os = AgentOS( id="product-agent-os", agents=[assistant], db=db, tracing=True, ) app = agent_os.get_app() if __name__ == "__main__": agent_os.serve(app="agent_os:app", reload=True) ``` The AgentOS database becomes the default for local agents, teams, and workflows that do not define their own database. In this example it stores the agent's sessions and the runtime's traces. ## Choose Runtime Capabilities [#choose-runtime-capabilities] Add capabilities as the application needs them: | Requirement | AgentOS configuration | Guide | | -------------------------------------- | --------------------------------- | --------------------------------------------------------------- | | Serve agents, teams, and workflows | `agents`, `teams`, `workflows` | [Using the API](/agent-os/using-the-api) | | Use a shared default database | `db` | [Database](/database/overview) | | Require JWT authorization | `authorization=True` | [Authorization](/agent-os/security/authorization/overview) | | Store execution traces | `tracing=True` | [Tracing](/agent-os/tracing/overview) | | Expose an MCP server | `mcp=True` | [AgentOS as MCP Server](/agent-os/mcp/mcp) | | Serve bounded public components | `public=PublicSurface(...)` | [Public Surface](/agent-os/public-surface) | | Persist accepted background jobs | `queue=QueueConfig(durable=True)` | [Durable queue](/agent-os/background-execution/durable-queue) | | Mount product and messaging interfaces | `interfaces=[...]` | [Interfaces](/agent-os/interfaces/overview) | | Run cron schedules | `scheduler=True` | [Scheduler](/agent-os/scheduler/overview) | | Extend an existing FastAPI application | `base_app=app` | [Bring Your Own FastAPI App](/agent-os/custom-fastapi/overview) | ## Database Behavior [#database-behavior] | Configuration | Behavior | | ------------------------------ | --------------------------------------------------------------- | | Set `db` on AgentOS | Components without a database inherit the AgentOS database | | Set a database on a component | That component keeps its own database | | Set `db` and `tracing=True` | AgentOS stores all traces in the AgentOS database | | Omit `db` with `tracing=True` | AgentOS uses the first component database it discovers | | Keep `auto_provision_dbs=True` | AgentOS creates the required tables when the application starts | Set an explicit AgentOS database when the runtime manages several component databases. This gives tracing, service accounts, and scheduled jobs a predictable store. ## Startup and shutdown [#startup-and-shutdown] `get_app()` assembles the configured FastAPI routes. When the application starts, AgentOS combines your lifespan with the lifespans needed by the base app, MCP clients and server, databases, scheduler, and durable workers. Shutdown exits those managed lifespans and releases their resources. Use an [application lifespan](/agent-os/lifespan) for initialization your service owns, such as preparing a published-page Knowledge store. Durable jobs require the queue to be enabled; database persistence alone does not make an in-process background task survive a restart. See [multiple replicas](/agent-os/background-execution/multi-replica) for shared cancellation and event delivery. ## Runtime Methods [#runtime-methods] | Method | Purpose | | -------------- | --------------------------------------------------------------------------------------------------------- | | `get_app()` | Build and return the configured FastAPI application | | `serve()` | Start the application with Uvicorn | | `get_routes()` | Return the FastAPI routes mounted by AgentOS | | `resync(app)` | Discover, initialize, and configure agents, teams, workflows, databases, and knowledge on an existing app | ### Host and Port [#host-and-port] `serve()` reads `AGENT_OS_HOST` and `AGENT_OS_PORT`. Environment variables take precedence over method arguments. | Setting | Default | | --------------- | ----------- | | `AGENT_OS_HOST` | `localhost` | | `AGENT_OS_PORT` | `7777` | ```bash export AGENT_OS_HOST=0.0.0.0 export AGENT_OS_PORT=8000 python agent_os.py ``` ## Next Steps [#next-steps] | Task | Guide | | -------------------------------------- | --------------------------------------------------------------- | | Call the runtime from an application | [Using the API](/agent-os/using-the-api) | | Add AgentOS to an existing backend | [Bring Your Own FastAPI App](/agent-os/custom-fastapi/overview) | | Configure the Control Plane experience | [AgentOS Configuration](/agent-os/config) | | Review every constructor parameter | [AgentOS class reference](/reference/agent-os/agent-os) | # Public Surface (/agent-os/public-surface) `PublicSurface` serves an explicit selection of agents and teams to anonymous product clients. It limits accepted routes and inputs, checks shared PostgreSQL request quotas, and bounds execution. Selected workflows require verified credentials, which makes the same runtime useful for public chat and protected indexing jobs. ## Select the public components [#select-the-public-components] Set `DATABASE_URL` to a PostgreSQL database and `OPENAI_API_KEY` for the model before running this example: ```python title="public_agent.py" from os import environ from agno.agent import Agent from agno.db.postgres import PostgresDb from agno.os import AgentOS from agno.os.public import PublicSurface, RateLimit db = PostgresDb(db_url=environ["DATABASE_URL"]) assistant = Agent(id="assistant", name="Assistant", model="openai:gpt-5.5") agent_os = AgentOS( id="product-assistant", db=db, agents=[assistant], public=PublicSurface( agents=[assistant], limits={"run": RateLimit(client_per_minute=10, global_per_minute=50)}, ), cors_allowed_origins=["https://your-product.example"], ) app = agent_os.get_app() if __name__ == "__main__": agent_os.serve(app="public_agent:app") ``` Use the same registered object in `AgentOS.agents` and `PublicSurface.agents`. The equivalent `teams` and `workflows` lists also require registered objects of the matching kind. Remote components and factories are not supported selections. Selecting a team does not expose separate public run routes for its members. The runtime requires a synchronous `PostgresDb` and a stable explicit `AgentOS.id` or `PublicSurface.namespace`. All replicas using a quota namespace must share the database. AgentOS prepares the limiter during startup; `/readyz` checks that its database table is accessible. ## Follow a public request [#follow-a-public-request] 1. The middleware matches the route against the selected surface. Administrative routes such as `/config`, `/info`, sessions, traces, and knowledge management return 404. 2. It resolves the client identity and consumes the applicable PostgreSQL quota before reading the request body. Exhausted quotas return 429 with `Retry-After`. 3. It enforces body size, accepted form fields, upload policy, and local execution capacity. 4. The native AgentOS endpoint runs the selected component. The middleware bounds its duration and response size and sanitizes top-level failures. Successful runs retain the native output, including selected-team member tool results and recovered failure details. Choose tools and component output with this public visibility in mind. `GET /agents` and `GET /teams` return a small roster containing only the selected components' IDs, names, and descriptions. Health endpoints and configured interface routes also remain available. Interfaces keep their own authentication and request contracts. ## Call the public run endpoint [#call-the-public-run-endpoint] ```bash curl http://localhost:7777/agents/assistant/runs \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "message=What can you help me with?" \ -d "stream=false" ``` Public run forms accept `message`, `stream`, `session_id`, and `background`. Agent and team calls must keep `background=false`. A supplied `session_id` must be a UUID; use the returned session ID for later turns. Cancellation accepts the session ID on the component's run-cancel endpoint. Public callers cannot override dependencies, session state, metadata, user IDs, output schemas, or query parameters. Those belong to the broader [runtime API](/agent-os/using-the-api). Files are disabled unless you supply `FileUploadLimits` with explicit lowercase extension/MIME pairs. ## Configure identity and limits [#configure-identity-and-limits] By default, identity comes from the connection's client IP, with IPv6 addresses grouped by `/64`; missing identity shares an `unknown` bucket. Behind a proxy, supply `client_id(request)` using the deployment's verified identity contract. It may be synchronous or asynchronous. Do not treat an arbitrary client-supplied forwarding header as a verified address. CORS config controls which browsers may read responses; a product can additionally reject disallowed origins in its identity callback. The [Docs Agent walkthrough](/tutorials/documentation-agents/how-we-built-it) shows where that deployment policy lives. | Setting | Default | Scope | | ------------------ | --------------- | ------------------------------------------------ | | `max_body_bytes` | 12 MiB | Agent/team request body | | `max_run_seconds` | 240 | Public run request duration | | `max_output_bytes` | 1 MiB | Public response output | | `max_active_runs` | 8 | Active run requests in each middleware process | | `uploads` | `None` | Files disabled unless explicitly configured | | `limits` | Built-in quotas | Shared per-client and global minute/day counters | Quota buckets are `run`, `cancel`, `mcp`, and `feedback`. A `limits` dictionary replaces only the named buckets. `RateLimit` takes `client_per_minute`, `global_per_minute`, and optional `client_per_day` and `global_per_day`; omitting daily limits in an override removes them for that bucket. A custom feedback tool must explicitly consume its feedback quota. Shared rate counters do not make active-run capacity global. Each replica has its own execution capacity, and cross-replica cancellation needs the runtime's separate [coordination configuration](/agent-os/background-execution/multi-replica). ## Serve a focused MCP API [#serve-a-focused-mcp-api] To include MCP, set `PublicSurface(mcp=True, ...)` and configure explicit tools: ```python from agno.os import MCPConfig def service_description() -> str: """Describe this public service.""" return "An assistant for product questions." mcp = MCPConfig( tools=[service_description], stateless=True, instructions="Use service_description to learn what this service provides.", allowed_hosts=["your-product.example"], ) ``` Pass this `mcp` configuration to AgentOS together with the public surface. Public MCP requires `stateless=True` and rejects `default_tools=True` and `lifecycle_tools=True`. Both tool flags default to `False`, so leave them unset. Authentication, when configured on MCP, still applies. See [MCP discovery and transport](/agent-os/mcp/mcp) for Server Cards, host validation, and client connections. ## Keep synchronization protected [#keep-synchronization-protected] Register a workflow, select it in `PublicSurface.workflows`, and configure an `internal_service_token` for trusted deployment calls. Send that token as `Authorization: Bearer ...`. A verified internal token permits registered component run routes and internal inputs; it is not an anonymous product credential. Other selected-workflow callers also need verified bearer credentials and applicable permissions. A bearer header with an arbitrary value grants no access. Workflow messages are JSON, and durable execution requires `QueueConfig(durable=True)` and a supported job store. See [durable background execution](/agent-os/background-execution/durable-queue) and the [published-page cookbook](https://github.com/agno-agi/agno/tree/8f36eaf2d18e91afa7b327eec66a3cd3685dcb87/cookbook/05_agent_os/27_public_pages) for a public chat service with a protected sync workflow. # Run Your First AgentOS (/agent-os/run-your-os) Save the following code to `agno_assist.py`: ```python title="agno_assist.py" from agno.agent import Agent from agno.db.sqlite import SqliteDb from agno.models.anthropic import Claude from agno.os import AgentOS db = SqliteDb(db_file="agno.db") agent = Agent( name="Agno Assist", model=Claude(id="claude-sonnet-4-5"), db=db, ) agent_os = AgentOS(agents=[agent], db=db) app = agent_os.get_app() if __name__ == "__main__": agent_os.serve(app="agno_assist:app", reload=True) ``` Your agent now has a FastAPI API and persistent sessions. ## Run it locally [#run-it-locally] Mac Windows ```bash uv venv --python 3.12 source .venv/bin/activate ``` ```bash uv venv --python 3.12 .venv\Scripts\activate ``` ```bash uv pip install -U 'agno[os]' anthropic ``` Mac Windows ```bash export ANTHROPIC_API_KEY=sk-*** ``` ```powershell $env:ANTHROPIC_API_KEY = "sk-***" ``` ```bash python agno_assist.py ``` Your AgentOS is now running at `http://localhost:7777`. | Endpoint | Description | | ------------------------------ | --------------------------------------------------- | | `http://localhost:7777/health` | Runtime health check | | `http://localhost:7777/docs` | Interactive API documentation | | `http://localhost:7777/info` | Runtime information and registered component counts | | `http://localhost:7777/config` | Registered components and runtime capabilities | Use `http://localhost:7777` as the endpoint when connecting this runtime to the Control Plane. This local quickstart runs without authentication. Configure [Security & Auth](/agent-os/security/overview) before deploying it. ## Next steps [#next-steps] | Task | Guide | | ------------------------------ | ------------------------------------------------- | | Manage and monitor the runtime | [Connect Your AgentOS](/agent-os/connect-your-os) | | Call agents through REST | [Using the API](/agent-os/using-the-api) | | Explore every endpoint | [AgentOS API reference](/reference-api/overview) | | Protect the runtime | [Security & Auth](/agent-os/security/overview) | # Using the API (/agent-os/using-the-api) The full AgentOS API exposes agents, teams, workflows, and runtime state over REST. Call it from an authorized application or HTTP client. For anonymous product clients, [Public Surface](/agent-os/public-surface) selects a narrower route and input contract. Its public rosters omit runtime configuration, `/info` and `/config` return 404, and callers cannot supply the runtime-context overrides shown later on this page. ```bash curl http://localhost:7777/agents/support-agent/runs \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "message=Where is my order?" \ -d "user_id=customer-42" \ -d "session_id=order-support-42" \ -d "stream=false" ``` The response includes the run output, `run_id`, and `session_id`. Reuse the same `session_id` to group later runs in the same thread. Configure [chat history](/history/overview) when the model needs messages from earlier runs. Teams and workflows use the same run pattern: | Component | Run endpoint | | --------- | ---------------------------------------------- | | Agent | `POST /agents/{agent_id}/runs` | | Team | `POST /teams/{team_id}/runs` | | Workflow | `POST /workflows/{workflow_id}/runs` | ## Discover an Instance [#discover-an-instance] `GET /info` returns the metadata a client needs before making authenticated calls. The endpoint is public. ```bash curl http://localhost:7777/info ``` | Field | Description | | --------------------------------------------- | ------------------------------------------------------------ | | `auth_mode` | Active authentication mode: `none`, `security_key`, or `jwt` | | `agent_count`, `team_count`, `workflow_count` | Number of registered runtime components | | `mcp.enabled` | Whether the MCP server is mounted | | `mcp.path` | MCP mount path when enabled | | `mcp.oauth` | OAuth discovery details when the MCP endpoint uses OAuth | | `agno_version` | Agno version running on the instance | Use `GET /config` to retrieve component IDs, database IDs, interfaces, and domain configuration. Send credentials when `auth_mode` requires them. ## API Surfaces [#api-surfaces] | Task | Resources | | ---------------------------------- | -------------------------------------------------- | | Execute application logic | Agents, teams, workflows, runs | | Manage conversation and user state | Sessions, memories, learnings | | Manage retrieval content | Knowledge, content sources, search | | Measure behavior | Evaluations, metrics, traces | | Control sensitive operations | Approvals, run continuation, cancellation | | Automate recurring work | Schedules and schedule runs | | Operate the runtime | Configuration, models, databases, service accounts | See the [API reference](/reference-api/overview) for every path and schema. ## Stream Run Events [#stream-run-events] Run endpoints stream Server-Sent Events by default. Use `curl -N` to print events as they arrive: ```bash curl -N http://localhost:7777/agents/support-agent/runs \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "message=Investigate this account" \ -d "stream=true" ``` Set `stream=false` when the caller needs one JSON response after the run completes. ## Pass Runtime Context [#pass-runtime-context] Run endpoints accept JSON-encoded form fields alongside the message: | Field | Use | | ------------------- | ----------------------------------------------- | | `dependencies` | Values available to tools and runtime functions | | `session_state` | State carried through the current session | | `metadata` | Application metadata stored with the run | | `knowledge_filters` | Filters applied during knowledge retrieval | | `output_schema` | JSON Schema for structured output | ```bash curl http://localhost:7777/agents/story-writer/runs \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "message=Write a short story" \ -d 'dependencies={"reader_age":10}' \ -d 'metadata={"source":"reading-app"}' \ -d 'output_schema={"type":"object","properties":{"title":{"type":"string"},"story":{"type":"string"}},"required":["title","story"]}' \ -d "stream=false" ``` ## Authenticate Requests [#authenticate-requests] Read `auth_mode` from `GET /info`, then send the matching credential: | `auth_mode` | Credential | | -------------- | ----------------------------------------- | | `none` | No authorization header | | `security_key` | `Authorization: Bearer ` | | `jwt` | `Authorization: Bearer ` | ```bash curl http://localhost:7777/agents/support-agent/runs \ -H "Authorization: Bearer " \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "message=Summarize my open tickets" \ -d "stream=false" ``` Service-account tokens beginning with `agno_pat_` are bearer credentials for machine callers. They are available when the AgentOS instance has a database. ## REST or Python Client [#rest-or-python-client] | Client | Use when | | --------------- | ----------------------------------------------------------------------------------------------------------- | | REST API | The application uses another language, needs direct HTTP control, or calls a small set of endpoints | | `AgentOSClient` | A Python application needs typed run outputs and helpers for sessions, memory, knowledge, and configuration | ```python import asyncio from agno.client import AgentOSClient async def main(): client = AgentOSClient(base_url="http://localhost:7777") response = await client.run_agent( agent_id="support-agent", message="Where is my order?", user_id="customer-42", session_id="order-support-42", ) print(response.content) asyncio.run(main()) ``` ## Next Steps [#next-steps] | Task | Guide | | ---------------------------- | ----------------------------------------------------------------------- | | Browse every endpoint | [API reference](/reference-api/overview) | | Use the Python client | [AgentOS Client](/agent-os/client/agentos-client) | | Configure authentication | [Security & Auth](/agent-os/security/overview) | | Manage sessions | [Session management example](/agent-os/usage/client/session-management) | | Run AgentOS as an MCP server | [AgentOS as MCP Server](/agent-os/mcp/mcp) | # Add coding agents (/agent-platform/coding-agents) AgentOS can run coding agents that can automatically improve the platform. Claude and Codex can investigate failures, read traces, update code, and submit changes for review. | Coding agent | Harness | API key | | ------------------- | --------------------------------------------------------- | ------------------- | | **Claude Engineer** | [Claude Code](/agent-os/multi-framework/claude-agent-sdk) | `ANTHROPIC_API_KEY` | | **Codex Engineer** | [Codex](/agent-os/multi-framework/codex) | `OPENAI_API_KEY` | ## Enable the coding agents [#enable-the-coding-agents] Your template comes with Claude and Codex agents but they are disabled by default. To enable them: 1. In `app/main.py`, uncomment the `from agents.engineers import ...` line. 2. Uncomment the matching `create_claude_engineer()` or `create_codex_engineer()` call in the `agents` list. 3. In Render's **Environment** settings, add `ANTHROPIC_API_KEY` for Claude. 4. Commit and push to the branch connected to Render. If auto-deploy is disabled, deploy manually. The template includes scripts to format your code and check linting and types. From your repository root, activate your environment with `source .venv/bin/activate`, then run `./scripts/format.sh && ./scripts/validate.sh` before committing. If `.venv` doesn't exist, create it first with `./scripts/venv_setup.sh`. Once the deployment is live, chat with the coding agent in the AgentOS UI or ask OS Manager to use it.