Skip to main content

Environments

Environment Overview

Configuration Differences

Environment Variables

Required in All Environments

  • CROCBOT_STATE_DIR: Runtime state directory
  • CROCBOT_CONFIG_PATH: Main config file path
  • CROCBOT_WORKSPACE: Agent working directory

API Keys (at least one required)

  • ANTHROPIC_API_KEY: Claude API access
  • OPENAI_API_KEY: OpenAI API access

Telegram

  • TELEGRAM_BOT_TOKEN: Bot token from @BotFather

Development-Only

  • NODE_ENV=development: Enable development features
  • DEBUG=*: Enable debug logging

MCP (optional)

  • MCP_SERVER_TOKEN: Authentication token for MCP server mode (if mcp.server.enabled)

Production-Only

  • NODE_ENV=production: Production mode
  • COOLIFY_WEBHOOK_URL: Deployment trigger (GitHub Actions repo variable)
  • Alerting webhook URLs (optional)

Local Development

Docker/Production

See Docker installation and Docker environment variables for complete configuration.