Quick Start
The simplest way to bring your own FastAPI app is to pass it to the AgentOS constructor:Adding Middleware
You can add any FastAPI middleware to your custom FastAPI app and it will be respected by AgentOS. Agno also provides some built-in middleware for common use cases, including authentication. See the Middleware page for more details.Running with FastAPI CLI
AgentOS applications are compatible with the FastAPI CLI for development. First, install the FastAPI CLI:Install FastAPI CLI
Running in Production
For production deployments, you can use any ASGI server:Adding More Routes
Register as many routes on your app as you need:custom_fastapi_app.py
1
Set up your virtual environment
2
Set environment variables
3
Install dependencies
4
Run the example