Required Variables
These environment variables must be set for the application to function:
OPENAI_API_KEYRequiredYour OpenAI API key for GPT model access
CLAUDE_API_KEYRequiredYour Anthropic API key for Claude model access
DATABASE_URLRequiredPostgreSQL connection string
Example: postgres://user:pass@localhost:5432/sophiaclaw
Optional Variables
PORTDefault: 3000Port to run the application on
LOG_LEVELDefault: infoLogging level: debug, info, warn, error
REDIS_URLDefault: redis://localhost:6379Redis connection for caching and sessions
BULLETIN_ENABLEDDefault: trueEnable audit trail logging to Bulletin service
Security Warning
Never commit your .env file to version control. Add it to .gitignore immediately. Use strong, unique passwords in production.