A small Node daemon that takes the lifecycle events Claude Code already fires and pipes them into the Discord rich-presence card on your profile. Your friends see what you're building; your future self gets lifetime stats. Built solo, on weekends.
install
macOS / Linux / any Node 18+ — one command:
npx claude-rpc@latest setup
(The @latest matters — bare npx claude-rpc will happily reuse a stale cached copy.)
That installs claude-rpc globally, wires the hooks into Claude Code, and starts the daemon — no separate start step. Open Claude Code in any project and the card appears within a second. Something looks wrong? claude-rpc doctor (or claude-rpc doctor --fix to auto-repair).
Prefer a one-liner that figures it out for you?
curl -fsSL https://claude-rpc.com/install | sh
Detects Node (installs the npm package) or falls back to the prebuilt Apple-Silicon binary, then runs setup for you.
Homebrew (macOS / Linux):
brew install rar-file/claude-rpc/claude-rpc && claude-rpc setup
Windows (no Node required) — grab claude-rpc.exe from the latest release (the standalone CLI — no installer), then run it from the folder you saved it to:
.\claude-rpc.exe setup
setup copies the exe to a fixed per-user location (so the download can go afterwards) and adds that folder to your user PATH, so claude-rpc <command> works in any new terminal. Prefer a GUI? The release's claude-rpc-<version>-x64-setup.exe (installer, auto-updates) and claude-rpc-<version>-x64-portable.exe (no install) are the desktop app: it runs the same setup for you on first launch, then gives you the settings page in a window and daemon controls in the tray.
That's the whole pitch.
setup registers a per-user login-autostart entry (a LaunchAgent on macOS, a systemd --user unit on Linux, an HKCU\…\Run value on Windows) and wires hooks into Claude Code's settings.json, and the daemon reports anonymous totals by default. It ends with one optional y/N — connect GitHub? — which publishes a verified public leaderboard profile only if you say yes (asked once; Enter skips). All of it is reversible (claude-rpc uninstall, community off, profile off) and fully documented in SECURITY.md — read it first if you want to know exactly what runs.
The Discord desktop app must be running. The browser client doesn't expose the local IPC bridge that Rich Presence uses.
other platforms / from source