# 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). ## Next [#next] Continue to [build your agent platform](/agent-platform/overview). # Welcome to Agno (/) Agno is an enterprise [agent platform](/what-is-an-agent-platform). Build agents for your company and customers, run them in your cloud, and manage them in one place. You own the code, data, and workflows that make your agents useful to your business. Build agents with any framework or harness, then make them available in: 1. **Your product.** Call your agents through the REST API. 2. **Claude and ChatGPT.** Connect to your agents through the MCP server. 3. **Slack, Telegram, WhatsApp, and Discord.** Connect your agents to chat apps using Agno Interfaces. ## Get started [#get-started] Choose 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/). ``` Your coding agent starts the platform locally and helps you build your first agent. ### What's included [#whats-included] * **AgentOS**, a durable runtime that serves your agents through a REST API and MCP server. * **PostgreSQL** for storing memory, conversations, traces, and platform activity. * **Super Agent** that builds and manages your platform. * **Claude and Codex** built into the platform, to automate coding agent tasks. * **Company OS** to automate products by organizing them into projects and tasks. Connect your platform to [os.agno.com](https://os.agno.com) to chat with your agents, inspect sessions and traces, and manage your platform. Your browser calls your AgentOS directly, and your data stays in your database. ## Next [#next] [Connect the Agno docs to your coding agent](/coding-agents). Then follow the **[build your agent platform](/agent-platform/overview)** walkthrough. # What is an agent platform? (/what-is-an-agent-platform) An agent platform is the shared infrastructure a company uses to build, run, and manage its agents. The agent framework handles the agent loop: instructions, tools, control flow. The agent platform decides where the agent runs, who can run it, which tools it can use, and the traces it leaves behind. ## What an agent platform includes [#what-an-agent-platform-includes] An agent platform brings together the following capabilities. | Capability | What it gives your company | In Agno | | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | **SDKs and harnesses** | Build each agent with the framework or coding harness that fits the job. | The [Agno SDK](/features/sdk), or [Claude Code and Codex](/agent-os/multi-framework/overview) | | **Runtime** | A durable service that handles requests, runs background jobs, and supports long-running work that pauses and resumes. | [AgentOS](/features/runtime) | | **API and MCP server** | Your product calls an agent through a REST API. Users use the same agent as a tool in Claude or ChatGPT. | [AgentOS API](/features/api) and [MCP server](/features/mcp-server) | | **Interfaces** | Run agents in Slack, Telegram, WhatsApp, and Discord. | [Agno Interfaces](/features/interfaces) | | **Storage, memory, and learning** | Session history enables multi-turn conversations. Memory and learning personalize and improve responses over time. | [Agent Storage](/features/storage) | | **Scheduling** | Automate recurring work and make your agents proactive by running them on a schedule. | [Scheduler](/features/scheduling) | | **Sandboxes** | Each coding session gets an isolated environment and its own repository checkout, with checkpoints to resume from. | [Sandboxes for coding agents](/agent-platform/coding-agents) | | **Security and authentication** | Verify the person or service behind each request, control who can run an agent and who can read its sessions. | [JWT verification and RBAC scopes](/features/security-and-auth) | | **Human in the loop** | A run pauses so the user in the conversation can confirm a tool call, provide missing input, or run the tool themselves. | [Human in the loop](/hitl/overview) | | **Admin approval** | Sensitive actions pause until an admin reviews the tool call and approves or rejects it. Every decision is recorded. | [Approvals](/agent-os/approvals/overview) | | **Observability** | See the path an agent took, which tools it called, how long each took, and where a run failed. Traces are stored in your database. | [Traces](/features/observability) | | **Evaluation** | Measure the quality of your agents, and check whether a change to a prompt, tool, or model made them better. | [Evaluations](/features/evaluation) | | **Shared registry** | Register models, tools, databases, and knowledge once, then reuse them across agents and workflows. | [Studio](/agent-os/studio/introduction) | | **Control plane** | Manage every agent from one place: track usage, inspect a failed run, correct a memory, resolve an approval, or change a schedule. | [Control Plane](/features/control-plane) | ## Own your agent platform [#own-your-agent-platform] Each company should own the code, data, and workflows that make its agents useful. It should also own the records those agents generate. Sessions capture what people asked and how agents responded. Traces show how the agents arrived at those results. Together, they are how your team investigates mistakes and improves its systems. | | A platform you rent | A platform you own | | ---------------------------------- | ------------------------------- | -------------------------------- | | **Where agents run** | The provider's cloud | Your cloud | | **Where sessions and traces live** | The provider's services | Database you own | | **Which models and frameworks** | The provider's supported list | Any model, framework, or harness | | **How you change it** | Wait for the provider's roadmap | Edit the code in your repository | With Agno, agent code and workflow definitions stay in your repositories, AgentOS runs in your cloud, and sessions and traces are stored in your database. When you need to make a change, you can test it against existing traces and sessions. ## An agent platform that manages itself [#an-agent-platform-that-manages-itself] A platform is one more system for your team to build and maintain. Agno gives that work to agents. Your agent platform: * **Builds itself.** Ask Super Agent for a new agent, team, workflow, or schedule. It creates the component and shows you how to run it. * **Maintains itself.** With [CompanyOS](/agent-platform/company-os), Routines review your codebase and new Agno releases on a schedule, then propose improvements as Tasks. * **Improves itself.** Claude and Codex run on your platform as [coding agents](/agent-platform/coding-agents). They can read traces, investigate failures, and open pull requests with the fix. Your team sets direction and reviews every change. Agents do the investigating, building, and maintenance. ## Next [#next] [Build your agent platform](/agent-platform/overview): start AgentOS locally, build your first agent, and deploy it to your cloud. # 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) # 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.