Configuration
Environment variables and configuration options for Airbeeps.
TIP
Most configuration happens through the Admin UI after first launch. This page covers environment variables needed before starting the server.
Core Settings
AIRBEEPS_SECRET_KEY
Required for production. Used for JWT token signing and session security.
# Generate a secure key
openssl rand -hex 32Set in .env:
AIRBEEPS_SECRET_KEY=your-generated-key-hereAIRBEEPS_DATABASE_URL
Database connection string. Defaults to SQLite in the data directory.
Default: sqlite:///./data/airbeeps.db
PostgreSQL example:
AIRBEEPS_DATABASE_URL=postgresql://user:pass@localhost/airbeepsAIRBEEPS_DATA_DIR
Directory for storing uploaded files, database, and vector store.
Default: ./data
AIRBEEPS_DATA_DIR=/var/lib/airbeepsServer Settings
AIRBEEPS_HOST
Host to bind the server to.
Default: 0.0.0.0
AIRBEEPS_PORT
Port to run the server on.
Default: 8500
AIRBEEPS_CORS_ORIGINS
Comma-separated list of allowed CORS origins.
Default: http://localhost:3000,http://localhost:8500
AIRBEEPS_CORS_ORIGINS=https://airbeeps.example.com,https://app.example.comLLM Provider Settings
Configure default provider credentials via environment variables, or set them in the Admin UI.
OpenAI
OPENAI_API_KEY=sk-...Anthropic
ANTHROPIC_API_KEY=sk-ant-...Google Gemini
GOOGLE_API_KEY=...ChromaDB Settings
CHROMA_MODE
ChromaDB mode: embedded or server.
Default: embedded
CHROMA_HOST & CHROMA_PORT
For server mode only:
CHROMA_MODE=server
CHROMA_HOST=localhost
CHROMA_PORT=8000CHROMA_COLLECTION_PREFIX
Prefix for ChromaDB collection names.
Default: airbeeps_
Auth Settings
AIRBEEPS_REQUIRE_EMAIL_VERIFICATION
Require users to verify email before logging in.
Default: false
AIRBEEPS_SMTP_HOST, AIRBEEPS_SMTP_PORT
SMTP settings for email verification (if enabled).
AIRBEEPS_SMTP_HOST=smtp.gmail.com
AIRBEEPS_SMTP_PORT=587
AIRBEEPS_SMTP_USER=your-email@gmail.com
AIRBEEPS_SMTP_PASSWORD=your-app-password
AIRBEEPS_FROM_EMAIL=noreply@airbeeps.comDevelopment Settings
AIRBEEPS_DEBUG
Enable debug mode with verbose logging.
Default: false
AIRBEEPS_DEBUG=trueAIRBEEPS_LOG_LEVEL
Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL.
Default: INFO
Example .env file
# Required
AIRBEEPS_SECRET_KEY=your-secret-key-here
# Database
AIRBEEPS_DATABASE_URL=sqlite:///./data/airbeeps.db
AIRBEEPS_DATA_DIR=./data
# Server
AIRBEEPS_HOST=0.0.0.0
AIRBEEPS_PORT=8500
# LLM Providers
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
# ChromaDB
CHROMA_MODE=embedded
# Development
AIRBEEPS_DEBUG=false
AIRBEEPS_LOG_LEVEL=INFORuntime Configuration
Most settings can be configured through the Admin UI at /admin/system:
- Default models per provider
- Embedding models
- Chunking parameters
- Retrieval strategies
- System prompts
Changes made in the UI are stored in the database and persist across restarts.