> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Runtime

> Run agents, teams, and workflows using FastAPI.

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 lines workbench.py theme={null}
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 gives agents a durable runtime, multi-user RBAC, background execution, checkpointing, session management, tracing, evals, guardrails, and more.

Build agents, teams, and workflows with the Agno SDK. Run them with AgentOS. Manage and monitor them using the Control Plane.

## What the runtime gives you

The runtime covers the ground between your agent code and a production service:

| Concern | How AgentOS handles it |
| - | - |
| HTTP API | Auto-generated endpoints for every registered agent, team, and workflow |
| Persistence | Sessions and enabled memory features persist to your `db` |
| Streaming | Run endpoints support SSE; tokens and tool calls stream when `stream=true` |
| MCP server | Expose agents, teams, workflows, and custom tools to MCP clients at `/mcp` |
| Auth | Set `authorization=True` and configure a JWT verification key to enforce RBAC scopes |
| Scheduling | Set `scheduler=True` to poll the database and fire due jobs in process |
| Observability | Set `tracing=True` to write OpenTelemetry traces to the AgentOS database |
| Interfaces | Slack, Telegram, WhatsApp, A2A, AG-UI |
| Human in the loop | Pause runs for user confirmation, admin approval, or external execution |

## Explore

> **[Agent API](https://agno-v2.mintlify.site/features/api.md)**
>
> Run your agent platform as an API.

> **[MCP Server](https://agno-v2.mintlify.site/features/mcp-server.md)**
>
> Expose agents, teams, workflows, and custom tools to MCP clients.

> **[Agent Storage](https://agno-v2.mintlify.site/features/storage.md)**
>
> Add durability and persistence.

> **[Observability](https://agno-v2.mintlify.site/features/observability.md)**
>
> Tracing, run history, and audit logs in your own database.

> **[Security and Auth](https://agno-v2.mintlify.site/features/security-and-auth.md)**
>
> JWT validation, RBAC scopes, and per-request isolation.

> **[Scheduling](https://agno-v2.mintlify.site/features/scheduling.md)**
>
> In-process cron and multi-step workflows.

> **[Interfaces](https://agno-v2.mintlify.site/features/interfaces.md)**
>
> Reach users on Slack, Telegram, WhatsApp, A2A, and AG-UI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.