cc-discord-presence (ccdp)
Discord Rich Presence for Claude Code in the terminal — multi-session aware. Shows what your
focused Claude Code session is doing, plus an aggregate like "in my-project · 4 terminals", with a
rotating Claude Code "spinner word" as the verb (e.g. "Finagling presence.ts").
Designed for multi-terminal workflows like claude-squad:
the session you're interacting with (most-recently-active) drives the presence.
Install (recommended)
It's a Claude Code plugin — no Discord account/app setup, no npm, no config. In Claude Code:
/plugin marketplace add LukeRenton/clauding-discord
/plugin install clauding@clauding-discord
That's it. The plugin registers the hooks, the daemon auto-starts on your next session, and your
Discord profile shows "Playing Clauding" with the focused session's activity. Requires the
Discord desktop app running (not the Microsoft Store build) with Settings → Activity Privacy →
"Display current activity as a status message" ON. Verify any time with ccdp test / ccdp status
(the CLI ships in the plugin under dist/).
Uses a shared public Discord application ID, so everyone shows "Playing Clauding". A Client ID is
not a secret. To brand it as your own app instead, see Manual / dev install below.
How it works
Discord only exposes one presence slot per app, so this is a single daemon that holds the
Discord connection, fed by Claude Code hooks:
Claude Code sessions ──(hooks: command reporter)──► HTTP ──► ccdp daemon ──IPC──► Discord
(one per terminal) (focus + counts)
- Global hooks in
~/.claude/settings.json run a tiny reporter that POSTs each event to the
daemon. The reporter is fire-and-forget and never blocks or fails a Claude Code turn, even if
the daemon is down.
- The daemon tracks all sessions, picks the most-recently-active as the focus, composes one
presence (focused details +
N terminals aggregate), and throttles updates to Discord's limit.
Manual / dev install
For hacking on it, or to run it under your own Discord application instead of the shared one:
- (Optional) Create your own Discord application at https://discord.com/developers/applications.
Whatever you name it is what renders after "Playing". Copy its Application ID.
- Note: Discord blocks some brand words in app names (e.g. "Claude" → error
50277); pick a name
that passes, such as Clauding. Skip this step to use the shared default app.
- Install & configure:
npm install && npm run build
npm link # puts `ccdp` on your PATH (or call: node dist/cli.js <cmd>)
ccdp config set clientId <YOUR_APPLICATION_ID> # only if using your own app
ccdp install # writes the global Claude Code hooks
- Make sure Discord (desktop app, not the Microsoft Store build) is running with
Settings → Activity Privacy → "Display current activity as a status message" ON.
- Start any Claude Code session. The
SessionStart hook auto-starts the daemon in the
background — you never run ccdp daemon by hand. Verify any time with ccdp test or ccdp status.
Adding your logo (optional)
Images are off by default (referencing asset keys that don't exist makes Discord refuse to render
the card). To show a logo:
- In the portal: Rich Presence → Art Assets → Add Image(s), upload your logo, name its key
claude (the default assets.large). Wait a few minutes for Discord to process it.
ccdp config set showImages true, then restart the daemon (and the Discord client, which caches
assets). The App Icon on the General Information page is not the presence's large image —
only Art Assets are.
Commands
| Command | Description |
|---|
ccdp daemon [--debug] | Run the presence daemon (foreground). |
ccdp probe | Run with verbose raw-hook logging (debug what the hooks send). |
ccdp install [--port N] [--token T] | Install global Claude Code hooks. |
ccdp uninstall | Remove the hooks we installed (safe; leaves your other hooks alone). |
ccdp status | Show daemon + Discord + current presence. |
ccdp test | Push a test presence for 25s to verify it shows in Discord. |
ccdp config [path | set <k> <v>] | Show or edit config. |
Configuration
Lives at ccdp config path (Windows: %APPDATA%\cc-discord-presence\Config\config.json).
Key options: