Environments
Environment Overview
| Environment | URL | Purpose |
|---|---|---|
| Development | localhost:18789 | Local development |
| Production | Docker container | Live system |
Configuration Differences
| Config | Development | Production |
|---|---|---|
| Gateway port | 18789 | 18789 (behind proxy) |
| TLS | None (HTTP) | Reverse proxy |
| Logging | Verbose | Structured JSON |
| State dir | Local | Docker volume |
Environment Variables
Required in All Environments
CROCBOT_STATE_DIR: Runtime state directoryCROCBOT_CONFIG_PATH: Main config file pathCROCBOT_WORKSPACE: Agent working directory
API Keys (at least one required)
ANTHROPIC_API_KEY: Claude API accessOPENAI_API_KEY: OpenAI API access
Telegram
TELEGRAM_BOT_TOKEN: Bot token from @BotFather
Development-Only
NODE_ENV=development: Enable development featuresDEBUG=*: Enable debug logging
MCP (optional)
MCP_SERVER_TOKEN: Authentication token for MCP server mode (ifmcp.server.enabled)
Production-Only
NODE_ENV=production: Production modeCOOLIFY_WEBHOOK_URL: Deployment trigger (GitHub Actions repo variable)- Alerting webhook URLs (optional)
