-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.env.example
More file actions
78 lines (63 loc) · 2.92 KB
/
.env.example
File metadata and controls
78 lines (63 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Claude Code Discord Bot Configuration
# Copy this file to .env and fill in your values
#
# Quick Setup:
# 1. Copy: cp .env.example .env
# 2. Edit: Fill in your Discord token and Application ID
# 3. Run: deno task start
# ===================================
# REQUIRED CONFIGURATION
# ===================================
# Discord Bot Token (from Discord Developer Portal)
# https://discord.com/developers/applications -> Your App -> Bot -> Token
DISCORD_TOKEN=your_bot_token_here
# Discord Application ID (from Discord Developer Portal)
# https://discord.com/developers/applications -> Your App -> General Information -> Application ID
APPLICATION_ID=your_application_id_here
# Anthropic API Key
# - REQUIRED when running in Docker (the Claude CLI inside the container uses
# this to authenticate — you cannot run `claude /login` in a container)
# - Optional for native installs (enables dynamic model discovery; without it
# the bot falls back to a hardcoded model list)
# Get yours at: https://console.anthropic.com/settings/keys
ANTHROPIC_API_KEY=your_anthropic_api_key_here
# ===================================
# OPTIONAL CONFIGURATION
# ===================================
# Working directory for Claude Code operations
# Defaults to current directory if not set
# WORK_DIR=/path/to/your/project
# Your Discord User ID for @mentions when Claude finishes
# Right-click your profile in Discord -> Copy User ID (requires Developer Mode)
# USER_ID=your_discord_user_id
# Category name for organizing Claude channels in Discord
# Defaults to repository name if not set
# CATEGORY_NAME=claude-code
# ===================================
# ACCESS CONTROL (RBAC)
# ===================================
# Comma-separated Discord Role IDs that can use restricted commands
# (shell, git, system, admin). Leave blank to disable RBAC (all commands open).
# Right-click a role in Server Settings -> Copy Role ID (requires Developer Mode)
# ADMIN_ROLE_IDS=123456789,987654321
# Comma-separated Discord User IDs that can use restricted commands
# Grants access regardless of roles. Same format as role IDs.
# ADMIN_USER_IDS=111111111,222222222
# ===================================
# CHANNEL MONITORING
# ===================================
# Monitor a specific channel for messages from specific bots/webhooks.
# When a message from MONITOR_BOT_IDS appears in MONITOR_CHANNEL_ID,
# the bot auto-triggers a Claude Code session to investigate.
# Requires "Message Content" privileged intent enabled in the Discord Developer Portal.
# MONITOR_CHANNEL_ID=123456789012345678
# MONITOR_BOT_IDS=987654321098765432,111111111111111111
# ===================================
# DOCKER-SPECIFIC (docker-compose.yml)
# ===================================
# These are used by docker-compose.yml:
# - DISCORD_TOKEN (required)
# - APPLICATION_ID (required)
# - WORK_DIR (defaults to /app/workspace in container)
# - USER_ID (optional)
# - CATEGORY_NAME (optional, defaults to claude-code)