Claude Code Discord bot enables teams to chat, run shell/git commands, and manage branches directly from Discord channels. Ideal for operations teams using Discord for collaboration, it connects to local, VM, or Docker instances, providing full Claude Code capabilities.
git clone https://github.com/zebbern/claude-code-discord.gitClaude Code Discord integrates the Anthropic Claude Agent SDK into Discord, allowing teams to execute code, run shell and git commands, and manage branches without leaving their chat platform. Host the bot locally, on a VM, in Docker, or in the cloud while maintaining full control over sandbox configuration, network rules, and filesystem permissions. Features include thread-per-session organization, role-based access control, mid-session interrupts and rewinds, MCP server management, and an audit trail of all commands executed. Teams benefit from centralized collaboration where code execution happens alongside discussion, with granular permission prompts and interactive controls for safety and accountability.
Clone the repository, configure your Discord bot token and application ID in a .env file, then deploy using Docker Compose or manual setup. Use slash commands like /claude-thread to start conversations, /shell to run commands, and /git for version control operations. Role-based access control restricts sensitive operations to authorized users.
Operations teams managing infrastructure and deployments from Discord
Development teams running commands and discussing results in real-time
Incident response teams auto-investigating alerts from monitoring bots
Feature teams organizing work by Git branch within Discord categories
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/zebbern/claude-code-discordCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a Discord bot that integrates Claude Code capabilities. The bot should allow teams to [ACTION] (e.g., run shell commands, manage git branches) directly from Discord channels. The bot should connect to [INSTANCE_TYPE] (e.g., local, VM, Docker) and support [SPECIFIC_FEATURES] (e.g., multi-channel support, role-based permissions).
```markdown # Discord Bot Integration Plan ## Overview The Discord bot will integrate Claude Code capabilities into Discord channels, enabling teams to run shell commands, manage git branches, and collaborate directly within Discord. ## Features - **Command Execution**: Run shell commands directly from Discord channels. - **Git Management**: Manage git branches, commits, and pull requests. - **Multi-Channel Support**: Operate across multiple Discord channels. - **Role-Based Permissions**: Restrict command execution based on user roles. ## Technical Requirements - **Instance Type**: Docker container for easy deployment and scalability. - **API Integration**: REST API for communication between Discord and Claude Code. - **Security**: OAuth 2.0 for secure authentication. ## Implementation Steps 1. **Set Up Docker Container**: Deploy Claude Code in a Docker container. 2. **Develop Discord Bot**: Create a bot using Discord.js or similar library. 3. **Integrate APIs**: Connect the bot to Claude Code's API. 4. **Implement Role-Based Permissions**: Ensure only authorized users can execute commands. 5. **Test and Deploy**: Thoroughly test the bot in a staging environment before deploying to production. ```
Community communication platform with voice and text channels
The #1 Decentralized ID platform
Container platform for building, sharing, and running applications
AI assistant built for thoughtful, nuanced conversation
Extensive icon library for web and app design
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan