Configuration
CapiBot is configured through environment variables and the Mission Control dashboard.
LLM Providers
CapiBot supports 6 LLM providers with automatic failover:
| Provider | Models | Key Variable |
|---|---|---|
| Anthropic | Claude 3.5, Claude 4 | ANTHROPIC_API_KEY |
| Gemini Pro, Flash | GOOGLE_AI_API_KEY | |
| Ollama | Any local model | OLLAMA_BASE_URL |
| Kimi | Moonshot | KIMI_API_KEY |
| GLM | Zhipu AI | GLM_API_KEY |
| MiniMax | Hailuo AI | MINIMAX_API_KEY |
Provider Priority
Set your preferred failover order:
CAPIBOT_PROVIDER_PRIORITY=anthropic,gemini,ollama
Messaging Channels
Telegram
TELEGRAM_BOT_TOKEN=your-bot-token
TELEGRAM_ALLOWED_USERS=user_id_1,user_id_2
WHATSAPP_TOKEN=your-cloud-api-token
WHATSAPP_PHONE_NUMBER_ID=your-phone-number-id
WHATSAPP_VERIFY_TOKEN=your-webhook-verify-token
Slack
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret
Database
CAPIBOT_POSTGRES_URL=postgresql://capibot:capibot@localhost:5432/capibot
Security
CAPIBOT_API_KEY=your-secret-api-key
CAPIBOT_DEV_MODE=false
Warning: Never set
CAPIBOT_DEV_MODE=truein production. It bypasses authentication.
Mission Control
The web dashboard runs separately:
cd mission-control
pnpm install
pnpm dev
Access it at http://localhost:3002.