> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Building an Agent API

The Agent Api let's us serve agents using a [FastApi](https://fastapi.tiangolo.com/) server and store memory and knowledge in a Postgres database. Run it locally using docker or deploy to production on AWS.

<Snippet file="setup.mdx" />

<Snippet file="create-agent-api-codebase.mdx" />

<Snippet file="run-agent-api-and-database.mdx" />

<Snippet file="agent-api-build-your-ai-product.mdx" />

<Snippet file="stop-local-workspace.mdx" />

## Next

Congratulations on running your AI API locally. Next Steps:

* [Run your Agent API on AWS](/templates/agent-api/run-aws)
* Read how to [update workspace settings](/templates/how-to/workspace-settings)
* Read how to [create a git repository for your workspace](/templates/how-to/git-repo)
* Read how to [manage the development application](/templates/how-to/development-app)
* Read how to [format and validate your code](/templates/how-to/format-and-validate)
* Read how to [add python libraries](/templates/how-to/install)
* Chat with us on [discord](https://discord.gg/4MtYHHrgA8)
