Manage
| Task | Command |
|---|---|
| Deploy updates | railway up --service agent-os -d |
| View logs | railway logs --service agent-os |
| Open dashboard | railway open |
| Set env variable | railway variables set KEY=value |
| Stop service | railway down --service agent-os |
| Stop database | railway down --service pgvector |
| Scale replicas | Edit railway.json: {"deploy": {"numReplicas": 2}} |
Customize
Add an agent
Add an agent
Create Register in Restart:
agents/my_agent.py:app/main.py:docker compose restartAdd tools
Add tools
Agno includes 100+ tool integrations. See the full list.
Load knowledge
Load knowledge
Load documents for the Knowledge Agent:Try it:
Use a different model
Use a different model
Add your API key to Add
.env and update your agent:anthropic to pyproject.toml and regenerate requirements:Add dependencies
Add dependencies
- Edit
pyproject.toml - Regenerate requirements:
./scripts/generate_requirements.sh - Rebuild:
docker compose up -d --build
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 |
Troubleshooting
'railway: command not found'
'railway: command not found'
Install:
brew install railway (Mac) or npm install -g @railway/cliDeployment fails
Deployment fails
Run
railway init first, then ./scripts/railway_up.sh again.Database timeout
Database timeout
PostgreSQL takes ~30s to start. Check:
railway logs --service pgvector502 error
502 error
Container is still starting. Wait 1-2 min. Check:
railway logs --service agent-os