Skip to main content
The Agent Platform template is a foundational codebase for an agent platform. FastAPI on port 8000, Postgres for sessions and memory, Docker for local, Railway for production, two reference agents, and a set of Claude Code prompts that create, improve, and eval new agents. Once it’s running, ship a new agent without writing code. Claude Code uses the prompts in the template’s docs/ folder to generate the agent file, register it, restart the container, and smoke-test it. Then it reads the container logs to recursively improve what it built.

Why an agent platform

Every team running agents in production hits the same shape of problem: agents need a system to run on. Sessions live somewhere. Traces live somewhere. Tools and credentials live somewhere. Without a platform, each new agent stitches its own version of the same six concerns. With one, you build agents and the platform handles the rest.

What an agent platform needs

This template gives you all five.

What you’ll build

This tutorial takes you from clone to a deployed agent platform in six steps:

Next

Setup → takes about five minutes.