Skip to main content
Save the following code to agno_assist.py:
agno_assist.py
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.anthropic import Claude
from agno.os import AgentOS

agent = Agent(
    name="Agno Assist",
    model=Claude(id="claude-sonnet-4-5"),
    db=SqliteDb(db_file="agno.db"),
)

agent_os = AgentOS(agents=[agent])
app = agent_os.get_app()
An Agent served as a FastAPI application with persistent sessions.

Run Your AgentOS

1

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate
2

Install dependencies

uv pip install -U 'agno[os]' anthropic
3

Export your Anthropic API key

export ANTHROPIC_API_KEY=sk-***
4

Run your AgentOS

python agno_assist.py
Your AgentOS is now running at http://localhost:8000.
EndpointDescription
http://localhost:8000Connect to the control plane
http://localhost:8000/docsInteractive API documentation
http://localhost:8000/configView AgentOS configuration
To manage your AgentOS in a UI, head to os.agno.com and connect this runtime. See Connect Your AgentOS for the steps. For the full list of endpoints AgentOS exposes, see the AgentOS API reference.