Skip to main content
AgentOS transforms your agents into a production-ready API. A minimal application looks like this:
my_os.py
from agno.os import AgentOS

agent_os = AgentOS(
    name="My AgentOS",
    agents=[my_agent],
    teams=[my_team],
    workflows=[my_workflow],
    tracing=True
)

app = agent_os.get_app()

if __name__ == "__main__":
    agent_os.serve(app="my_os:app", reload=True)

Parameters

ParameterTypeDefaultDescription
namestrNoneAgentOS name
agentsList[Agent]NoneAgents to include
teamsList[Team]NoneTeams to include
workflowsList[Workflow]NoneWorkflows to include
dbBaseDbNoneDatabase used for the AgentOS
tracingboolFalseEnable tracing to AgentOS db
knowledgeList[Knowledge]NoneKnowledge bases
interfacesList[BaseInterface]NoneAgent interfaces (docs)
configstr or AgentOSConfigNoneConfiguration path or object (docs)
base_appFastAPINoneCustom FastAPI app (docs)
lifespanAnyNoneLifespan context manager (docs)
authorizationboolFalseEnable RBAC (docs)
authorization_configAuthorizationConfigNoneJWT verification config
enable_mcp_serverboolFalseEnable MCP server (docs)
cors_allowed_originsList[str]NoneAllowed CORS origins
auto_provision_dbsboolTrueAuto-provision databases
run_hooks_in_backgroundboolFalseRun hooks in background
See AgentOS class reference for details.

Methods

get_app()

Returns the configured FastAPI application.

serve()

Starts the AgentOS server.
ParameterTypeDefaultDescription
appstr or FastAPIRequiredFastAPI app instance or module path
hoststrlocalhostHost to bind
portint7777Port to bind
workersintNoneNumber of workers
reloadboolFalseEnable auto-reload

resync()

Reloads agents, teams, workflows, and resources.

Configuration

The config parameter accepts a YAML path or AgentOSConfig object. Use it to configure prompts, display names, and database settings.
agent_os = AgentOS(
    name="My AgentOS",
    agents=[my_agent],
    config="config.yaml",  # or AgentOSConfig(...)
)
See Configuration for details.