22
33## Option 1: Docker (Recommended)
44
5+ Works on all platforms with Docker installed.
6+
57``` bash
68git clone https://github.com/zebbern/claude-code-discord.git
79cd claude-code-discord
@@ -10,69 +12,104 @@ cp .env.example .env
1012docker compose up -d
1113```
1214
13- See [ Docker Guide] ( docker.md ) for full Docker usage, commands, and GHCR image details.
15+ See [ Docker Guide] ( docker.md ) for full Docker usage, GHCR images, and auto-updates.
16+
17+ ---
18+
19+ ## Option 2: Setup Script
1420
15- ## Option 2: One-Command Setup
21+ ### Linux / macOS
1622
17- ** Linux/macOS:**
1823``` bash
1924git clone https://github.com/zebbern/claude-code-discord.git
2025cd claude-code-discord
2126chmod +x setup.sh && ./setup.sh
2227```
2328
24- ** Windows PowerShell:**
29+ ### Windows (PowerShell)
30+
2531``` powershell
2632git clone https://github.com/zebbern/claude-code-discord.git
2733cd claude-code-discord
2834.\setup.ps1
2935```
3036
31- The setup script will:
32- 1 . Install Deno (if needed)
33- 2 . Install Claude CLI (if needed)
34- 3 . Create ` .env ` file with your tokens
35- 4 . Initialize git repository (if needed)
36- 5 . Offer to start the bot immediately
37+ The setup script handles:
38+
39+ 1 . Installing Deno (if not found)
40+ 2 . Installing Claude CLI (if not found)
41+ 3 . Creating ` .env ` with your tokens
42+ 4 . Initializing git repo (if needed)
43+ 5 . Offering to start the bot
44+
45+ ---
3746
3847## Option 3: Manual Setup
3948
40- ** Install Deno** via [ deno.com] ( https://deno.com/ ) or:
49+ ### Install Deno
50+
51+ ** Linux / macOS:**
52+
4153``` bash
42- # Linux/macOS
4354curl -fsSL https://deno.land/install.sh | sh
55+ ```
4456
45- # Windows PowerShell
57+ ** Windows (PowerShell):**
58+
59+ ``` powershell
4660irm https://deno.land/install.ps1 | iex
4761```
4862
49- ** Clone and configure:**
63+ Or download from [ deno.com] ( https://deno.com/ ) .
64+
65+ ### Install Claude CLI
66+
67+ Requires Node.js / npm:
68+
69+ ``` bash
70+ npm install -g @anthropic-ai/claude-code
71+ claude /login
72+ ```
73+
74+ ### Clone and Configure
75+
5076``` bash
5177git clone https://github.com/zebbern/claude-code-discord.git
5278cd claude-code-discord
5379cp .env.example .env
54- # Edit .env with your DISCORD_TOKEN and APPLICATION_ID
5580```
5681
57- ** Install Claude CLI and login:**
82+ Edit ` .env ` with your ` DISCORD_TOKEN ` and ` APPLICATION_ID ` . See [ Configuration] ( #configuration-env ) below.
83+
84+ ### Start the Bot
85+
86+ ** Linux / macOS:**
87+
5888``` bash
59- npm install -g @anthropic-ai/claude-code
60- claude /login
89+ deno task start
6190```
6291
63- ** Run the bot:**
92+ ** Windows (PowerShell):**
93+
94+ ``` powershell
95+ deno task start
96+ ```
97+
98+ ** Development mode (hot reload):**
99+
64100``` bash
65- deno task start # Using .env file (recommended)
66- deno task dev # Development mode (hot reload)
67- deno run --allow-all index.ts # Direct execution
101+ deno task dev
68102```
69103
70- ** Optional flags:**
104+ ** With optional flags:**
105+
71106``` bash
72107deno run --allow-all index.ts --category myproject --user-id YOUR_DISCORD_ID
73108```
74109
75- > If you get ` not a git directory ` , run ` git init ` first.
110+ > If you get ` not a git directory ` , run ` git init ` in the project folder first.
111+
112+ ---
76113
77114## Configuration (.env)
78115
@@ -88,4 +125,26 @@ CATEGORY_NAME=claude-code # Discord category for channels
88125WORK_DIR=/path/to/project # Working directory (default: current)
89126```
90127
91- Environment variables take precedence over ` .env ` file settings.
128+ Environment variables override ` .env ` file settings. CLI flags override environment variables.
129+
130+ ---
131+
132+ ## Platform Notes
133+
134+ ### Linux / macOS
135+
136+ - Deno and Claude CLI install via shell one-liners
137+ - Use ` chmod +x setup.sh ` before running the setup script
138+ - ` cp ` works natively for ` .env.example `
139+
140+ ### Windows
141+
142+ - Run PowerShell as Administrator if Deno install requires it
143+ - Use ` copy .env.example .env ` instead of ` cp ` if not using Git Bash
144+ - The setup script (` setup.ps1 ` ) handles Windows-specific paths automatically
145+
146+ ### Docker (all platforms)
147+
148+ - Docker Desktop required on Windows/macOS, Docker Engine on Linux
149+ - The image bundles Deno, Node.js, and Claude CLI so no local installs needed
150+ - See [ Docker Guide] ( docker.md ) for volumes, GHCR, and Watchtower
0 commit comments