FastAPI for Agents AgentOS, built on Agno, launches an open-source platform that turns AI agents into production-ready APIs with 80+ endpoints for runs, sessions, memory, knowledge, and evals. The platform connects agents to apps like Claude, ChatGPT, Slack, WhatsApp, Telegram, and Discord, and includes coding-agent skills for self-improvement. It aims to provide a unified AI backend for multiple frontends, running entirely in the user's cloud. AgentOS turns your agents into a production API: 80+ endpoints for runs, sessions, memory, knowledge, and evals. Build your product on top of it, connect your agents to AI apps like Claude and ChatGPT, and chat interfaces like Slack, WhatsApp, Telegram, and Discord. AgentOS gives you one AI backend for every frontend: Your product. Call the REST API from your app: run agents, stream responses, and manage sessions, memory, and knowledge. AgentOS UI. Chat with agents, build new ones with AgentOS Studio, and inspect sessions, traces, memory, and evals from the AgentOS UI at os.agno.com https://os.agno.com?utm source=github&utm medium=example-repo&utm campaign=agentos-railway&utm content=agentos-railway&utm term=railway . Coding agents. Manage the full agent development lifecycle create, extend, improve, eval and review using the skills in. .agents/skills/ AI apps. MCP clients like Claude and ChatGPT can use your agents through the MCP server at /mcp . Chat interfaces. Chat with your agents from Slack, WhatsApp, Telegram, and Discord. Built on Agno https://docs.agno.com . Everything runs in your cloud, your data lives in your database. This codebase comes with: Two platform agents that help you build and run the platform from your favorite AI apps like Claude and ChatGPT. Agent Builder creates agents, teams, and workflows using the AgentOS Studio. Platform Manager understands, monitors, and explains the platform: codebase questions, eval history, deployment checks, schedules. Coding-agent skills let Claude Code, Codex, Cursor, and other coding agents build, test, and improve the platform automatically — see Using the platform using-the-platform . Trace data, agent code, evals, and system logs are all available to coding agents, so the platform can inspect and improve itself end to end. The fastest way to get started is using a coding agent. Copy the prompt below into Claude Code, Cursor or Codex and it'll take you from zero to a running platform. Help me set up AgentOS on this machine. Be self-driving: anything you can do — open a file, open a URL, launch an app — do it. Stop when you need a human: typing a secret, installing software, signing in to a website. When you do stop, tell me exactly what to do. Never read or print secrets. 1. Clone https://github.com/agno-agi/agentos-railway.git into a folder called agent-platform and cd in. Then read AGENTS.md end to end — it is the source of truth for how this platform works and answers most questions you'll hit along the way. 2. Confirm Docker is installed and running docker info succeeds . If it's installed but not running, start it open -a Docker on macOS and poll until it's up. Stop for me only if Docker isn't installed — then give me steps to install Docker Desktop and wait. 3. Set up my environment. Run cp example.env .env , then help me set my OPENAI API KEY. If it's already set in my shell, tell me you found one and offer to copy it in — move the value across without reading or printing it. Otherwise open .env in my editor cursor, code etc. and ask me to paste the key. Never open a terminal editor like vim or nano from your own shell — it will hang this session. 4. Start the platform with docker compose up -d --build , then poll http://localhost:8000/docs until it returns 200 first build takes a few minutes . If it never comes up, read docker compose logs agentos-api and fix what you find. 5. Prove it end to end with ./scripts/mcp check.sh — it should print "MCP OK" and a real agent answer. Show me that answer: it's my platform talking. 6. Next, help me set up the AgentOS UI. Ask if you can open https://os.agno.com and walk me through the connection process: Connect OS → enter http://localhost:8000 → name it "Local AgentOS". That's where I chat with my agents and inspect sessions, memory, and evals. 7. Finish with a short summary and what I should do next: run /create-new-agent right here and you'll build a new agent with me, then /improve-agent to sharpen it — that loop is yours to keep. Mention in one line that I can also connect my platform to coding agents like yourself using uvx agno connect , and to claude.ai / ChatGPT over OAuth once it's deployed to production. Prerequisite: Docker installed and running. git clone https://github.com/agno-agi/agentos-railway.git agentos cd agentos Configure credentials cp example.env .env Open .env and set OPENAI API KEY Run the platform on docker docker compose up -d --build Confirm your AgentOS is running at http://localhost:8000/docs http://localhost:8000/docs . - Open os.agno.com https://os.agno.com?utm source=github&utm medium=example-repo&utm campaign=agentos-railway&utm content=agentos-railway&utm term=railway and sign in. - Click Connect OS , enter http://localhost:8000 as the URL, name it Local AgentOS , and connect. - Click Chat under the Agent Builder agent and try the first prompt: "Build an agent that tracks AI news and writes a daily brief". Go through the agent development process. - Once created, click the Refresh button on the top right. You should now see the "Daily AI News Brief" agent in the Agents dropdown. Click the newly created agent. - Ask: "What's new with Anthropic?" Click Chat under Platform Manager and ask: "How healthy is the platform?" It answers from the codebase and runtime data — eval history, deployment checks, schedules, and the component you just built. You can run the platform anywhere that supports containerized images. This codebase comes with scripts to deploy the platform to Railway https://railway.com . Prerequisite: Railway CLI installed and railway login completed. Create a new .env.production file for production credentials. cp .env .env.production or cp example.env .env.production Edit .env.production with production values Keeping a separate .env.production lets us use different values for local and production: different OpenAI keys, production-only credentials, a different Slack workspace. ./scripts/railway/up.sh This provisions the AgentOS service and Postgres on the same private network. The script pauses and asks for a JWT verification key for authentication see next section . Token-Based Authorization is on by default. Without a JWT VERIFICATION KEY or JWT JWKS FILE , the app refuses to serve traffic in production. The platform's job is to keep your data private, so the safe default is "refuse to start" without an authentication token. Token-Based Auth gives you three things: No public access. The server rejects requests without a valid token. Per-request identity. Middleware parses the token and extracts the user id , session id , and custom claims. Each request is tied to a user and session, giving you auditability and traceability. Granular permissions. User tokens can run an agent and view their own sessions. Admin tokens read everyone's sessions and test any agent. During ./scripts/railway/up.sh , the script creates your Railway domain and pauses so you can mint the key before the app starts. - Open os.agno.com https://os.agno.com?utm source=github&utm medium=example-repo&utm campaign=agentos-railway&utm content=agentos-railway&utm term=railway , click Connect OS → Live , enter your Railway domain, and connect. - Name it Live AgentOS . - Go to Settings → OS & Security . - Turn Token-Based Authorization JWT on. - Copy the public key. - Paste the full public key into the up.sh prompt. The script saves it into your env file for future syncs: JWT VERIFICATION KEY="-----BEGIN PUBLIC KEY----- MIIBIjANBgkq... -----END PUBLIC KEY-----" Heads up.Live AgentOS Connections are a paid feature. Use PLATFORM30 to get 1 month off. We are working on a free trial so you don't have to pay to try. If you get something wrong, you can re-sync environment variables with ./scripts/railway/env-sync.sh . Re-run uvx agno connect , this time pointed at your deployed domain, to connect Claude Code, Claude Desktop, Codex, and Cursor to your production platform: uvx agno connect --url https://