Manage
| Task | Command |
|---|---|
| Deploy updates | ag infra patch --env prd |
| Stop deployment | ag infra down --env prd |
| Force rebuild | ag infra up --env dev -f |
| Restart local | ag infra up --env dev |
Customize
Add an agent
Add an agent
Create Register in Restart locally:
agents/my_agent.py:app/main.py:Add tools
Add tools
Agno includes 100+ tool integrations. See the full list.
Load knowledge
Load knowledge
Load documents for the Knowledge Agent:For production (ECS):Try it:
Use a different model
Use a different model
Update your agent:Add the dependency to
pyproject.toml and regenerate requirements:Add dependencies
Add dependencies
- Edit
pyproject.toml - Regenerate requirements:
./scripts/generate_requirements.sh - Rebuild:
ag infra up --env dev
Local Development
Run without Docker for faster iteration:Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
OPENAI_API_KEY | Yes | — | OpenAI API key |
PORT | No | 8000 | API server port |
DB_HOST | No | localhost | Database host |
DB_PORT | No | 5432 | Database port |
DB_USER | No | ai | Database user |
DB_PASS | No | ai | Database password |
DB_DATABASE | No | ai | Database name |
RUNTIME_ENV | No | prd | Set to dev for auto-reload |
WAIT_FOR_DB | No | True | Wait for database before API startup |
MIGRATE_DB | No | False | Run Alembic migrations on startup |
Troubleshooting
AWS credentials error
AWS credentials error
Reconfigure credentials with
aws configure, then validate with aws sts get-caller-identity.RDS connection timeout
RDS connection timeout
RDS can take about 5 minutes to become available. Check status in AWS Console (RDS → Databases).
ECS task failing
ECS task failing
Check CloudWatch logs for container startup errors, missing environment variables, or database connectivity issues.
Load Balancer returns 503
Load Balancer returns 503
The ECS service may still be starting. Wait 2-3 minutes for target health checks to pass.