Skip to main content

What are Templates?

Templates are standardized codebases for AgentOS. They contain:
  • An AgentOS instance using FastAPI.
  • A PostgreSQL database for storing sessions, memories, evals and knowledge.
  • A set of pre-built Agents, Teams and Workflows to use as a starting point.
Instead of starting from scratch, you can use a template to get started and ship your AgentOS to production. They are setup to run locally using docker and on cloud providers. They’re a fantastic starting point and are used by various companies using Agno. You’ll definitely need to customize them to fit your specific needs, but they’ll get you started much faster. Agno currently supports the following templates: Docker: agent-infra-docker AWS: agent-infra-aws Railway: agent-infra-railway Coming soon: Additionally, all templates contain a dev and prd environment. The dev environment is used for development and testing. The prd environment is used for production. We recommend using docker for the dev environment for most use cases and selecting a cloud provider of your choice for the prd environment.

How to get started with a template:

  1. Make sure you have the agno and agno-infra installed.
pip install -U agno
pip install -U agno-infra
  1. Create your codebase using: ag infra create and choose a template.
ag infra create
  1. cd into your codebase and run the dev environment.
  2. Run the prd environment after you’ve tested the dev environment and are ready to deploy to production.
Notes:
  • The instructions for dev and prd environment are different for each template. Please refer to the template documentation for specific instructions.
  • Instead of using ag infra create, you can clone the repository and follow the instructions in the template documentation.