Let’s get our dev environment setup for Agno. We will:Documentation Index
Fetch the complete documentation index at: https://docs.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
- Create a virtual environment
- Install Agno
- Export API key
- Run our first agent
- Run our agent as a service
1. Create a virtual environment
Agno needs python 3.10 or newer. We recommenduv, but pip works fine too.
2. Install Agno
Install the agno SDK plus the OpenAI provider.3. Export your API key
Don’t have one? Get a key from platform.openai.com.model= argument. See Models for the full list.
4. Run your first agent
Save this assorting_hat.py. The agent walks your current directory, decides how to organize it, and prints a tidy summary.
sorting_hat.py
5. Run your agent as a service
The script above is fine as a one-off. To make the agent reachable over HTTP, with session storage, memory, and tracing, run it using AgentOS. Install the runtime extras:workbench.py:
workbench.py
http://localhost:8000. Open http://localhost:8000/docs for the OpenAPI spec, or connect the UI:
- Open os.agno.com and sign in.
- Click Add OS → Local.
- Enter
http://localhost:8000, name it, and connect.
Wire up your coding agent
Agno is designed to be used with coding agents. The docs are exposed as an MCP server so your coding agent has live access to the surface area. For Claude Code:.mcp.json in the repo:
.mcp.json
A note on Postgres
Many examples and tutorials in this documentation use Postgres + pgvector instead of SQLite. Postgres is what we recommend for production, andpgvector lets you keep relational data and embeddings on the same engine.
The fastest way to run both locally is Docker:
db=PostgresDb(db_url="postgresql://ai:ai@localhost:5432/ai")
You’re ready to build with Agno
You have an agent running locally, a path to serving it, your coding agent wired up, and Postgres ready when you need it. From here:Agents
Build, run and debug agents
Teams
Coordinate multiple agents.
Workflows
Build step-based pipelines.