.env file in the root directory.
Discord Configuration
Your Discord account token. Required to connect the selfbot to Discord.
Logging level for the bot. Options:
DEBUG, INFO, WARNING, ERROR, CRITICALNumber of recent messages to sync after startup to detect offline edits/deletes.
Database Configuration
PostgreSQL connection URL for message history, agent sessions, and memory storage.Format:
postgresql://username:password@host:port/databaseIf not set, sessions and memories will not persist across restarts.Model Provider Configuration
The LLM provider to use for the main agent model. Can be:
groq- Uses Groq’s API- Any OpenAI-compatible base URL (e.g.,
https://api.openai.com/v1)
Model identifier for the main agent. Examples:
openai/gpt-oss-120b(Groq)gpt-4-turbogpt-5
API key for custom provider. Required when using a custom OpenAI-compatible endpoint.
API key for Groq. Required for:
- Using Groq as the main provider
- Memory processing (uses
openai/gpt-oss-120b) - Groq Compound agent
External Service API Keys
API key for Firecrawl web scraping service. When set, enables the Firecrawl MCP server for the code agent.
API key for E2B code execution sandboxes. Required for the code agent to run Python code and shell commands.Get your API key at e2b.dev
Agent Configuration
Controls randomness in model outputs. Range: 0.0 to 2.0
- Lower values (0.1-0.3): More focused and deterministic
- Higher values (0.7-1.0): More creative and varied
Nucleus sampling parameter. Alternative to temperature. Range: 0.0 to 1.0
Number of previous conversation runs to include in agent context.
Number of times to retry failed agent operations.
Maximum number of user teams to cache in memory. Uses LRU eviction when limit is reached.
Debug Configuration
Enable verbose debug logging for agent operations. Set to
true to activate.Debug verbosity level when
DEBUG_MODE is enabled.1: Basic debug info- Higher values: More detailed logging
Tracing Configuration
Enable Phoenix/Arize tracing for observability. Set to
true to activate.API key for Phoenix/Arize. Required when
TRACING=true.Phoenix trace collection endpoint URL.
Project name for organizing traces in Phoenix.
MCP Configuration
Comma-separated list of MCP server URLs to enable additional tools.Example:
https://mcp.example.com/v1,https://another-mcp.com/apiContext Agent Configuration
Model for the Chat Context Q&A agent. Should be a fast, long-context model.
Maximum number of messages the context agent can process.
Context window limit for the team leader agent.