DocsGetting StartedIntroduction

Configuration

CapiBot is configured through environment variables and the Mission Control dashboard.

LLM Providers

CapiBot supports 6 LLM providers with automatic failover:

ProviderModelsKey Variable
AnthropicClaude 3.5, Claude 4ANTHROPIC_API_KEY
GoogleGemini Pro, FlashGOOGLE_AI_API_KEY
OllamaAny local modelOLLAMA_BASE_URL
KimiMoonshotKIMI_API_KEY
GLMZhipu AIGLM_API_KEY
MiniMaxHailuo AIMINIMAX_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

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=true in production. It bypasses authentication.

Mission Control

The web dashboard runs separately:

cd mission-control
pnpm install
pnpm dev

Access it at http://localhost:3002.