Skip to main content

Manage

TaskCommand
Deploy updatesag infra patch --env prd
Stop deploymentag infra down --env prd
Force rebuildag infra up --env dev -f
Restart localag infra up
ag infra down --env prd removes all AWS resources, including the database. Back up your data first.

Customize

Create agents/my_agent.py:
Register in app/main.py:
Restart locally:
Agno includes 100+ tool integrations. See the full list.
Load documents for the Knowledge Agent:
For production (ECS):
Try it:
Update your agent:
Add the dependency to pyproject.toml and regenerate requirements:
  1. Edit pyproject.toml
  2. Regenerate requirements: ./scripts/generate_requirements.sh
  3. Rebuild: ag infra up --env dev
To upgrade all libraries:

Local Development

Run without Docker for faster iteration:

Environment Variables

VariableRequiredDefaultDescription
OPENAI_API_KEYYesOpenAI API key
PORTNo8000API server port (set in infra/dev_resources.py)
DB_HOSTNolocalhostDatabase host
DB_PORTNo5432Database port
DB_USERNoaiDatabase user
DB_PASSNoaiDatabase password
DB_DATABASENoaiDatabase name
RUNTIME_ENVNoprdSet to dev for auto-reload
WAIT_FOR_DBNoTrueWait for database before API startup

Troubleshooting

Reconfigure credentials with aws configure, then validate with aws sts get-caller-identity.
RDS can take about 5 minutes to become available. Check status in AWS Console (RDS → Databases).
Check CloudWatch logs for container startup errors, missing environment variables, or database connectivity issues.
The ECS service may still be starting. Wait 2-3 minutes for target health checks to pass.