docs: update .env.example for unified service architecture
This commit is contained in:
46
.env.example
46
.env.example
@@ -1,38 +1,38 @@
|
|||||||
# ===== EJClaw Environment Configuration =====
|
# ===== EJClaw Environment Configuration =====
|
||||||
# Copy this file to .env and fill in the values.
|
# Copy this file to .env and fill in the values.
|
||||||
# For dual-service (Codex), also create .env.codex with DISCORD_BOT_TOKEN for the Codex bot.
|
# Single unified service manages all three Discord bots in one process.
|
||||||
# For review failover, create .env.codex-review with a third Discord bot token.
|
|
||||||
|
|
||||||
# --- Required ---
|
# --- Discord bots (3 tokens for 3 bots) ---
|
||||||
DISCORD_BOT_TOKEN= # Discord bot token (Claude bot)
|
DISCORD_BOT_TOKEN= # Claude bot
|
||||||
|
DISCORD_CODEX_BOT_TOKEN= # Codex-main bot (owner)
|
||||||
|
DISCORD_REVIEW_BOT_TOKEN= # Codex-review bot (fallback reviewer)
|
||||||
|
|
||||||
|
# --- Agent type configuration ---
|
||||||
|
OWNER_AGENT_TYPE=codex # codex | claude-code
|
||||||
|
REVIEWER_AGENT_TYPE=claude-code # claude-code | codex
|
||||||
|
|
||||||
|
# --- API keys ---
|
||||||
CLAUDE_CODE_OAUTH_TOKEN= # Claude Code OAuth token (primary account)
|
CLAUDE_CODE_OAUTH_TOKEN= # Claude Code OAuth token (primary account)
|
||||||
|
CLAUDE_CODE_OAUTH_TOKENS= # Comma-separated tokens for multi-account rotation
|
||||||
# --- Multi-account rotation (recommended) ---
|
GROQ_API_KEY= # Voice transcription (Groq Whisper, free: console.groq.com)
|
||||||
CLAUDE_CODE_OAUTH_TOKENS= # Comma-separated tokens for auto-rotation on 429
|
|
||||||
# e.g. token1,token2
|
|
||||||
|
|
||||||
# --- Codex support (optional — needed for ejclaw-codex service) ---
|
|
||||||
OPENAI_API_KEY= # OpenAI API key for Codex
|
|
||||||
# CODEX_OPENAI_API_KEY= # Override OPENAI_API_KEY for Codex only
|
|
||||||
# CODEX_MODEL=gpt-5.4 # Codex model
|
|
||||||
# CODEX_EFFORT=xhigh # Codex reasoning effort
|
|
||||||
|
|
||||||
# --- Bot identity ---
|
# --- Bot identity ---
|
||||||
ASSISTANT_NAME=claude # Trigger name (@claude)
|
ASSISTANT_NAME=claude # Trigger name (@claude)
|
||||||
# SERVICE_ID=claude # Service identifier (defaults to ASSISTANT_NAME slug)
|
|
||||||
# SERVICE_AGENT_TYPE=claude-code # Agent type: claude-code or codex
|
|
||||||
|
|
||||||
# --- Voice transcription ---
|
# --- Claude model ---
|
||||||
GROQ_API_KEY= # Groq Whisper (primary, free: console.groq.com)
|
# CLAUDE_MODEL= # Claude model override
|
||||||
# OPENAI_API_KEY also used as Whisper fallback
|
# CLAUDE_EFFORT= # Claude effort level
|
||||||
|
# CLAUDE_THINKING= # Claude thinking mode
|
||||||
|
|
||||||
# --- Usage dashboard (optional) ---
|
# --- Codex model ---
|
||||||
# STATUS_CHANNEL_ID= # Discord channel for live status updates
|
# CODEX_MODEL= # Codex model override
|
||||||
# USAGE_DASHBOARD=true # Enable usage dashboard
|
# CODEX_EFFORT= # Codex reasoning effort
|
||||||
|
|
||||||
|
# --- Usage dashboard ---
|
||||||
|
STATUS_CHANNEL_ID= # Discord channel ID for live status updates
|
||||||
# STATUS_SHOW_ROOMS=true # Show room status in dashboard
|
# STATUS_SHOW_ROOMS=true # Show room status in dashboard
|
||||||
# STATUS_SHOW_ROOM_DETAILS=false # Show detailed room info
|
# STATUS_SHOW_ROOM_DETAILS=false # Show detailed room info
|
||||||
|
|
||||||
# --- Advanced ---
|
# --- Advanced ---
|
||||||
# MAX_CONCURRENT_AGENTS=5 # Max parallel agent processes
|
# MAX_CONCURRENT_AGENTS=5 # Max parallel agent processes
|
||||||
# AGENT_TIMEOUT=1800000 # Agent timeout in ms (default: 30min)
|
|
||||||
# SESSION_COMMAND_ALLOWED_SENDERS= # Comma-separated Discord user IDs for session commands
|
# SESSION_COMMAND_ALLOWED_SENDERS= # Comma-separated Discord user IDs for session commands
|
||||||
|
|||||||
Reference in New Issue
Block a user