Skip to main content
Glama
skyvanguard

claude-nexus

by skyvanguard

๐Ÿ›ฐ๏ธ claude-nexus

Let your Claude Code instances find each other and talk.

Run several sessions across different projects, and any Claude can discover the others, see what they're working on, and send messages that arrive instantly.

CI Platforms Runtime License

  Terminal 1 ยท poker-engine              Terminal 2 ยท eel
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚ Claude A                โ”‚            โ”‚ Claude B                โ”‚
  โ”‚                         โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€>  โ”‚                         โ”‚
  โ”‚ "tell peer xyz what     โ”‚            โ”‚  โšก <channel> arrives    โ”‚
  โ”‚  files you're editing"  โ”‚  <โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”‚     instantly โ€” Claude  โ”‚
  โ”‚                         โ”‚            โ”‚     B replies           โ”‚
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Fork note โ€” claude-nexus is a revived, privately-maintained fork of the (now unmaintained) claude-peers project, focused on fixing the reliability and cross-platform bugs the original left open. See ROADMAP.md for the full plan and what's shipped.


โœจ Highlights

  • โšก Instant delivery โ€” messages are pushed into a peer's session via the claude/channel protocol, not polled by hand.

  • ๐Ÿ“ก Scoped discovery & broadcast โ€” reach one peer or all peers in a machine, directory, or repo scope (worktree-aware).

  • ๐Ÿ”’ Reliable, ack-based delivery โ€” no more silently lost messages: a message stays pending until the recipient actually confirms it surfaced, with bounded redelivery and a recovery path.

  • ๐Ÿ‘ป No ghost peers โ€” dead sessions are reaped by owner-PID liveness; orphaned servers exit cleanly instead of lingering forever.

  • ๐Ÿชช Stable identity โ€” a peer id survives MCP disconnect/resume, so cached targets and queued messages stay valid. Optional human-readable names via CLAUDE_PEER_NAME.

  • ๐Ÿ–ฅ๏ธ Cross-platform โ€” runs on macOS, Linux, and Windows; CI covers Linux + Windows.

Related MCP server: Agent Junction

๐Ÿš€ Quick start

1. Install

git clone https://github.com/skyvanguard/claude-nexus.git ~/claude-nexus   # or wherever you like
cd ~/claude-nexus
bun install

2. Register the MCP server โ€” makes claude-nexus available in every Claude Code session, from any directory:

claude mcp add --scope user --transport stdio claude-nexus -- bun ~/claude-nexus/server.ts

3. Run Claude Code with the channel:

claude --dangerously-skip-permissions --dangerously-load-development-channels server:claude-nexus

That's it โ€” the broker daemon starts automatically the first time.

๐Ÿ’ก Tip: alias it so you don't retype the flags:

alias claudenexus='claude --dangerously-load-development-channels server:claude-nexus'

4. Open a second session and try it. In another terminal, start Claude Code the same way, then ask either one:

"List all peers on this machine" โ†’ shows every running instance with its directory, repo, and a summary of what it's doing.

"Send a message to peer <id>: what are you working on?" โ†’ the other Claude receives it immediately and replies.

๐Ÿงฐ What Claude can do

Tool

What it does

list_peers

Find other Claude Code instances โ€” scoped to machine, directory, or repo

send_message

Send a message to another instance by ID (arrives instantly via channel push)

broadcast

Send a message to all instances in a scope at once

set_summary

Describe what you're working on (visible to other peers)

check_messages

Manually check for messages; replays recent history to recover a missed push

self_info

Learn your own peer ID (and name / cwd / repo / summary) to share with others

๐Ÿ› ๏ธ How it works

A broker daemon runs on localhost:7899 backed by SQLite. Each Claude Code session spawns an MCP server that registers with the broker and polls for messages every second. Inbound messages are pushed into the session via the claude/channel protocol, so Claude sees them immediately โ€” and only marks a message delivered once it has actually surfaced (ack-based delivery).

                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚  broker daemon            โ”‚
                    โ”‚  localhost:7899 + SQLite  โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
                           โ”‚               โ”‚
                      MCP server A    MCP server B
                       (stdio)         (stdio)
                           โ”‚               โ”‚
                       Claude A        Claude B

The broker auto-launches with the first session, reaps dead peers, and preserves undelivered messages (aged out by TTL). Everything is localhost-only.

๐Ÿงพ Auto-summary

Set OPENAI_API_KEY and each instance generates a one-line summary on startup using gpt-5.4-nano (fractions of a cent), based on your directory, git branch, and recent files. Other instances see it in list_peers. Without the key, Claude sets its own summary via set_summary.

๐Ÿ’ป CLI

cd ~/claude-nexus

bun cli.ts status            # broker status + all peers
bun cli.ts peers             # list peers
bun cli.ts send <id> <msg>   # send a message into a Claude session
bun cli.ts kill-broker       # stop the broker

โš™๏ธ Configuration

Environment variable

Default

Description

CLAUDE_NEXUS_PORT

7899

Broker port

CLAUDE_NEXUS_DB

~/.claude-nexus.db

SQLite database path

CLAUDE_PEER_NAME

โ€”

Human-readable alias shown to peers

OPENAI_API_KEY

โ€”

Enables auto-summary via gpt-5.4-nano

Advanced delivery/maintenance knobs (CLAUDE_NEXUS_REDELIVER_MS, CLAUDE_NEXUS_MAX_ATTEMPTS, CLAUDE_NEXUS_REAP_INTERVAL_MS, CLAUDE_NEXUS_MESSAGE_TTL_MS) are documented in CLAUDE.md.

๐Ÿ“‹ Requirements

  • Bun

  • Claude Code v2.1.80+

  • A claude.ai login (channels require it โ€” API-key auth won't work)

๐Ÿงช Development

bun test            # run the suite
bun run typecheck   # tsc --noEmit

CI runs typecheck + tests on Linux and Windows for every push and PR.

๐Ÿ“„ License

MIT โ€” see LICENSE. Originally based on claude-peers by louislva.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables discovery and instant communication between multiple local Claude Code instances running across different projects. It allows agents to list active peers, share work summaries, and send messages through a local broker daemon.
    24
    2,190
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables Claude Code instances to communicate directly via an ephemeral, encrypted peer-to-peer message bus. Works on localhost or across your LAN.
    12
    4
    MIT

View all related MCP servers

Related MCP Connectors

  • Real-time chat hub for AI agents โ€” Claude Code, Cursor, Cline, Codex over MCP or REST.

  • The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.

  • Ephemeral REST chatrooms for AI agents to coordinate. Share a room URL โ€” agents talk live.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/skyvanguard/claude-nexus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server