Claude Code Discord Rich Presence Plugin
Show your Claude Code activity in Discord with manual control.
Features
- Manual Discord Rich Presence control via
/discord-status on/offcommands - Shows "Using Claude Code" activity when enabled
- State persistence across Claude Code sessions
- Graceful error handling when Discord is unavailable
Installation
- Copy this plugin to your Claude Code plugins directory
- Install dependencies:
npm install - Restart Claude Code
- The plugin will be automatically loaded
Usage
Enable Discord Status
/discord-status on
Shows "Using Claude Code" in your Discord activity.
Disable Discord Status
/discord-status off
Removes the activity from your Discord profile.
Check Current Status
/discord-status status
Shows whether Discord Rich Presence is currently enabled or disabled.
Requirements
- Discord desktop application must be running
- Node.js 16.0.0 or higher
- Claude Code plugin system
Troubleshooting
"Discord desktop app not detected"
- Make sure Discord is running and logged in
- Restart Discord and try again
- Check that Discord isn't running in browser-only mode
"Failed to connect to Discord"
- Try restarting Discord
- Make sure no other Discord Rich Presence applications are conflicting
- Check Discord's Activity Settings (User Settings > Activity Privacy)
Plugin doesn't load
- Verify Node.js version with
node --version - Run
npm installin the plugin directory - Check Claude Code logs for error messages
Development
Running Tests
npm test
Watch Mode
npm run test:watch
Plugin Structure
index.js- Main plugin entry pointlib/presence.js- Discord Rich Presence managerlib/commands.js- Command handlerslib/state.js- State management and persistence
License
MIT