Agno AI

Agno is a lightweight library for building Multimodal Agents.

agno-workspace

Prerequisite

Install

Install Agno CLI globally.

uv tool install "agno[aws]"

Setup

Create a new workspace

[!NOTE] Agno Workspaces are standardized codebases for running Agentic Systems locally using Docker and in production on AWS. They help us manage our Agentic System as code.

ag ws create --template agent-api --name my-agents

This will create a folder named agent-app with the following structure:

agent-app                   # root directory
β”œβ”€β”€ agents                  # your Agents go here
β”œβ”€β”€ api                     # your Api routes go here
β”œβ”€β”€ db                      # your database tables go here
β”œβ”€β”€ Dockerfile               # Dockerfile for the application
β”œβ”€β”€ pyproject.toml          # python project definition
β”œβ”€β”€ requirements.txt        # python dependencies generated using pyproject.toml
β”œβ”€β”€ scripts                 # helper scripts
β”œβ”€β”€ utils                   # shared utilities
└── workspace               # Agno workspace directory
    β”œβ”€β”€ dev_resources.py    # dev resources running locally
    β”œβ”€β”€ prd_resources.py    # production resources running on AWS
    β”œβ”€β”€ secrets             # secrets
    └── settings.py         # Agno workspace settings

Setup existing workspace

If you clone the codebase directly (eg: if your coworker created it) - run ag ws setup to set it up locally

ag ws setup
# with debug logs
ag ws setup -d

Develop

Start workspace resources

Run ag ws up to start i.e. create workspace resources

ag ws up
# shorthand
ag ws up dev:docker
# full options
ag ws up --env dev --infra docker

Stop workspace resources

Run ag ws down to stop i.e. delete workspace resources

ag ws down
# shorthand
ag ws down dev:docker
# full options
ag ws down --env dev --infra docker

Other commands

# Patch workspace resources
ag ws patch
# Restart workspace
ag ws restart
# Run on AWS
ag ws up prd:aws

Examples

Last updated

Was this helpful?