DEV Community

Cover image for I put my Claude Code sessions on Discord — and now it's a one-line plugin
Charlie Archer Simmons
Charlie Archer Simmons

Posted on • Originally published at claude-rpc.vercel.app

I put my Claude Code sessions on Discord — and now it's a one-line plugin

About 7,000 developers install a little tool of mine every month. It has 7 GitHub stars. I think about that gap a lot — but it also means thousands of these cards are quietly running in Discord right now, which is the whole point.

It's called claude-rpc, and as of today you can install it from inside Claude Code itself.

What it is

claude-rpc is a small Node daemon that takes the lifecycle events Claude Code already fires — session start, each tool call, token counts — and turns them into a live Discord Rich Presence card on your profile: current model, project, what tool is running, plus lifetime stats. Your friends see what you're building; you get a year heatmap of your own work.

It's free, open source, and has zero runtime dependencies — the Discord IPC client is hand-rolled, so the entire supply chain fits in a single review.

The new part: a Claude Code plugin

Two lines, in the editor:

/plugin marketplace add rar-file/claude-rpc
/plugin install claude-rpc@claude-rpc
Enter fullscreen mode Exit fullscreen mode

The card shows up on your next session. That's it.

The plugin itself is deliberately thin — one SessionStart hook that runs the same installer you'd run by hand (npx claude-rpc@latest setup) once, in the background, then gets out of the way. Claude Code measures it at ~0 tokens of context per session. The real package still does the real work: wiring hooks, holding Discord's local socket, starting at login.

It's now the fifth way to install the same tool — npx, a curl one-liner, Homebrew, a Windows exe, and now this — so pick whatever fits your setup.

How it actually works

No magic: 5 hooks, one small state file, and a daemon that holds Discord's local socket. No polling, no network calls, no telemetry you didn't opt into. If you want to read it, start with src/discord-ipc.js.

Try it

Built solo, on weekends. If one of those 7,000 cards ends up being yours, a GitHub star is the cheapest possible way to tell me it's working.

Top comments (0)