Claude Code hook

Claude Rpc

Discord Rich Presence (RPC) for Claude Code — live model, project, tokens, and lifetime stats in your Discord profile. Driven by Claude Code hooks.

32 stars 3 forksHooks Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add rar-file/claude-rpc

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/rar-file/claude-rpc.git

From the README

the card's live states — working · thinking · waiting · idle

Discord Rich Presence for Claude Code — your live model, project, tokens, and lifetime stats, driven by the hooks Claude Code already fires.

claude-rpc.com → — see it in one page. · Discord → — help, ideas, show your card.

  

live — on by default for fresh installs, opt out any time. see community totals

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:

(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?

Detects Node (installs the npm package) or falls back to the prebuilt Apple-Silicon binary, then runs setup for you.

Homebrew (macOS / Linux):

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:

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  works in any new terminal. Prefer a GUI? The release's claude-rpc--x64-setup.exe (installer, auto-updates) and claude-rpc--x64-portable.exe (no install) are the desktop dashboard app, which runs the same setup for you on first launch.

That's the whole pitch.
setup…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
JavaScript
License
MIT
Last updated
30 October 2026
Topics
anthropicclaudeclaude-codeclaude-code-hooksclideveloper-toolsdiscorddiscord-rpchooksnodejsproductivityrich-presence

FAQ

What is Claude Rpc?

Discord Rich Presence (RPC) for Claude Code — live model, project, tokens, and lifetime stats in your Discord profile. Driven by Claude Code hooks. It is a hook for Claude Code, from rar-file/claude-rpc on GitHub.

How do I install Claude Rpc?

Run /plugin marketplace add rar-file/claude-rpc inside Claude Code, then follow the setup in the README.

Is Claude Rpc popular?

rar-file/claude-rpc has 32 GitHub stars and 3 forks. It was last updated on 30 October 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.