Skip to main content
Today we’re going to run an agent platform made of:
  • AgentOS on FastAPI
  • Postgres + pgvector

Prerequisites

Run your agent platform

1

Clone the template

Make the codebase yours by pushing it to a repository you own. To start with a clean Git history, run these commands inside the cloned agent-platform directory:
rm -rf .git removes the template’s Git history. Replace the repository URL before running the final two commands.
2

Configure your environment

Open .env and set OPENAI_API_KEY. Everything else has sensible defaults.
3

Start the platform

This runs two containers: a FastAPI app on port 8000 and a Postgres database on port 5432. The first build takes a few minutes.
4

Verify it's running

Open http://localhost:8000/docs.You’ll see the OpenAPI spec: every agent action exposed as a REST endpoint.
AgentOS API

AgentOS API

5

Verify the MCP interface

This checks the MCP handshake, tool discovery, and one agent run against the local platform.
You now have AgentOS on FastAPI with Postgres and pgvector. The API exposes 80+ endpoints for runs, sessions, memory, knowledge, and evals.

Connect the AgentOS UI

  1. Open os.agno.com and sign in.
  2. Click Connect OS, enter http://localhost:8000 as the URL, and name it Local AgentOS.
  3. Click Connect.
You should see three agents: Try a prompt against each:
“Build an agent that tracks AI news and writes a daily brief”Agent Builder creates the agent through AgentOS Studio.
“How healthy is the platform?”Platform Manager answers from eval history, deployment checks, and schedules.
“What did Anthropic publish about agents recently?”WebSearch returns a summary with citations.
After Agent Builder finishes, click Refresh, choose the new agent from the Agents dropdown, and try it. Open Sessions and Traces in the sidebar. They capture message history, tool calls, and timing so you can inspect behavior and improve your agents.

Summary

Hot-reload is on. Edits to Python files in the source (agents/, app/, db/, evals/, workflows/) are live in ~2s.

Next

Create an agent →