Agent App: FastAPI, Streamlit and Postgres
The Agent App is our go-to workspace for building agentic systems. It contains:
- A FastAPI server for serving Agents, Teams and Workflows.
- A streamlit application for debugging and testing. This streamlit app is very versatile and can be used as an admin interface for the agentic system and shows all sorts of data.
- A postgres database for session and vector storage.
It’s designed to run locally using docker and in production on AWS.
Setup
Create and activate a virtual environment
Install Agno
Install uv and docker
Export your OpenAI key
Agno is compatible with any model provider; simply update the agents in the workspace.
Create your Agent App codebase
Create your codebase using the agent-app
template, give it any name you like.
This will create a folder named agent-app
with the following structure:
Run your Agent App locally
cd
into the agent-app
folder
Start your Agent App using the following command:
Press Enter to confirm and give a few seconds for the image to download (only the first time). Verify container status and view logs on the docker dashboard.
- Open localhost:8501 to view the streamlit UI.
- Open localhost:8000/docs to view the FastAPI routes.
Notes:
- The
Agents
are defined in theagents
folder. - The streamlit apps are defined in the
ui
folder - The API routes are defined in the
api
folder.
Stop local workspace
Play around and stop the workspace using:
Next
Congratulations on running your AI App locally. Next Steps:
- Run your Agent App on AWS
- Read how to update workspace settings
- Read how to create a git repository for your workspace
- Read how to manage the development application
- Read how to format and validate your code
- Read how to add python libraries
- Chat with us on discord