What is AgentOS?

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:

workbench.py
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

NeedAgentOS capability
Product APIREST endpoints for running agents and managing sessions, memory, knowledge, traces, evaluations, schedules, and approvals
InterfacesBuilt-in REST, SSE, and workflow WebSocket endpoints, plus configurable MCP, A2A, AG-UI, Slack, Telegram, and WhatsApp interfaces
Persistent stateSessions, memory, knowledge, and runtime data stored in databases you configure
Long-running workBackground execution, buffered stream reconnection after client disconnects, human-in-the-loop, run cancellation, and persisted run history
OperationsMetrics, evaluations, opt-in tracing, approvals, schedules, and component versions
Access controlJWT authorization with RBAC, a shared security key, and scoped service accounts
Framework supportNative Agno components plus adapters for the Claude Agent SDK, LangGraph, DSPy, and Antigravity

Build, run, and manage

LayerRole
SDKBuild agents, teams, and workflows with memory, knowledge, guardrails, and 100+ integrations
AgentOSServe your agent platform through a configurable FastAPI runtime
Control PlaneManage and monitor AgentOS runtimes from one web interface

The runtime exposes the APIs that power the Control Plane and your products. Configure durable jobs when accepted background work must survive a worker restart. For several replicas, also configure shared event and cancellation transport and stateless MCP transport when serving MCP.

AgentOS Architecture

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 for authentication modes, service accounts, and endpoint permissions.

Next steps