Skip to main content
Platform teams use AgentOS to serve agents, teams, and workflows through one FastAPI application. The runtime provides execution APIs, persistent state, authorization, tracing, and operational endpoints.
agent_os.py
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

Add capabilities as the application needs them:

Database Behavior

Set an explicit AgentOS database when the runtime manages several component databases. This gives tracing, service accounts, and scheduled jobs a predictable store.

Runtime Methods

Host and Port

serve() reads AGENT_OS_HOST and AGENT_OS_PORT. Environment variables take precedence over method arguments.

Next Steps