FastAPI LangGraph Agent Template
A production-ready FastAPI template for building AI agent backends with LangGraph, handling stateful conversations, long-term memory, tool calling, observability, rate limiting and authentication so a team can focus on its own agent logic.
This is a production-ready template for building AI agent backends with FastAPI and LangGraph, aimed at engineers who want a working foundation rather than a tutorial project. It handles the infrastructure concerns of an agent service: stateful conversations, long-term memory, tool calling, observability, rate limiting and authentication.
Its model layer is built on LangChain's ChatOpenAI client, so it can point at any OpenAI-compatible LLM endpoint by changing a base URL and API key, without touching the LangGraph agent logic itself, including in the long-term memory component.