Let’s get our dev environment setup for Agno. We’ll need: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.
- A virtual environment
- Agno installed
- API key set
- First agent run
- A path to running our agent as a service
1. Python virtual environment
Agno requires 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. 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 it 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:
pgvector preinstalled. Swap your db= argument from SqliteDb to PostgresDb(db_url="postgresql://ai:ai@localhost:5432/ai") and the rest of your code is unchanged.
You’re ready
You have an agent running locally, a path to serving it, your coding agent wired in, and Postgres ready when you need it. From here:Agents
Go deeper on the Agent primitive.
Teams
Coordinate multiple agents on a single task.
Workflows
Deterministic, step-based pipelines.
Tutorials
Build Scout, Dash, or Coda end-to-end.
Examples
Worked patterns for common use cases.
Agent Runtime
Take your agent live as a scalable service.