- Connects to an MCP server
- Stores and retrieves past conversations
- Runs as a production API
1. Define the Agent
Save the following code asagno_assist.py:
agno_assist.py
You now have:
- A stateful agent
- Streaming responses
- Per-user session isolation
- A production-ready API
- Tracing enabled out of the box
2. Run Your AgentOS
Run your AgentOS
http://localhost:8000API documentation is automatically available at:http://localhost:8000/docs3. Connect to the AgentOS UI
The AgentOS UI connects directly from your browser to your runtime. It lets you test, monitor, and manage your agents in real time.- Open os.agno.com and sign in.
- Click “Add new OS” in the top navigation.
- Select “Local” to connect to a local AgentOS.
- Enter your endpoint URL (default:
http://localhost:8000). - Name it something like “Development OS”.
- Click “Connect”.
Chat with your Agent
Open Chat, select your agent, and ask:What is Agno?The agent retrieves context from the Agno MCP server and responds with grounded answers.
What You Just Built
In 20 lines, you built:- A stateful agent
- Tool-augmented retrieval via MCP
- A streaming API
- Session isolation
- A production-ready runtime