1.8 KiB
1.8 KiB
DisClaw Setup Guide
Walk me through setting up DisClaw step by step. Check each prerequisite and help me configure everything.
Steps to follow
1. Check prerequisites
- Verify Node.js is installed (v20+): run
node --version - Verify Claude Code CLI is installed: run
claude --version - If Claude Code is not installed, tell me to run:
npm install -g @anthropic-ai/claude-code
2. Create a Discord Bot
- Go to https://discord.com/developers/applications
- Click "New Application" and give it a name (e.g., "DisClaw")
- Go to the "Bot" section in the left sidebar
- Click "Reset Token" to generate a new bot token -- SAVE THIS TOKEN
- Under "Privileged Gateway Intents", enable:
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- MESSAGE CONTENT INTENT
- Go to "OAuth2" > "URL Generator"
- Select scopes:
bot,applications.commands - Select bot permissions:
Send Messages,Manage Channels,Read Message History - Copy the generated URL and open it in a browser to invite the bot to your server
- Select scopes:
3. Configure environment
- Copy
.env.exampleto.env - Set
DISCORD_BOT_TOKENto the token from step 2 - Set
DISCORD_GUILD_IDto your Discord server's ID (right-click server name > Copy Server ID, requires Developer Mode in Discord settings) - Optionally set
CLAUDE_PATHif theclaudeCLI is not on your PATH
4. Install dependencies
- Run
npm install
5. Build the project
- Run
npm run build
6. Start the bot
- Run
npm run start - The bot should come online and create a
#disclawmanagement channel - Use
/new-agentin that channel to create your first agent
Troubleshooting
- If the bot does not come online, check the DISCORD_BOT_TOKEN
- If agents do not respond, verify
claude --versionworks in your terminal - If you get ENOENT errors, set CLAUDE_PATH in your .env file