infra/dev_resources.py.
Start Local Environment
- PostgreSQL database (port 5432)
- AgentOS API (port 8000)
- API docs: http://localhost:8000/docs
- Health check: http://localhost:8000/health
View Logs
Building Custom Images
By default, the dev environment uses pre-builtagno images. To build your own:
1. Update Settings
infra/settings.py
2. Build the Image
Common Operations
| Task | Command |
|---|---|
| Start all | ag infra up |
| Stop all | ag infra down |
| Restart containers | ag infra restart dev:docker -t container |
| Rebuild everything | ag infra up dev:docker -f |
| View API logs | docker logs -f ai-api |
| View DB logs | docker logs -f ai-db |
Target Types
The-t flag filters what to create:
| Target | Creates |
|---|---|
| (none) | Everything |
image | Docker image only |
container | Containers only |
Troubleshooting
| Issue | Solution |
|---|---|
| Port 8000 in use | Stop other services: docker ps then docker stop <container> |
| Port 5432 in use | Stop local PostgreSQL: brew services stop postgresql |
| Database errors | Restart: ag infra down && ag infra up |
| Old image cached | Force rebuild: ag infra up dev:docker -t image -f |