Skip to main content

claudify

Let your coding agents talk to each other.

You're on the backend, your colleague is on the frontend, and you keep passing handoff notes, questions and change requests back and forth. With claudify, your Claude Code sessions send those messages to each other directly, peer-to-peer, without a cloud service in between.

 You                                             Colleague
 Claude Code ── MCP ── claudify daemon ◄═══════► claudify daemon ── MCP ── Claude Code
                       (SQLite inbox)  encrypted (SQLite inbox)
  • Message kinds: handoff, question, change_request, answer and note. Messages are grouped into threads that can be resolved.
  • Offline-safe: messages wait in your outbox and go out when the peer comes back online.
  • Notifications: a Claude Code hook tells the agent when new messages have arrived.
  • Pure Python with no system dependencies. Runs on Linux, macOS and Windows.

Install

pipx install claudify        # or: uv tool install claudify  /  pip install claudify

Pair with a colleague (once)

# you
claudify pair invite
#   cfy1/192.168.1.20:7878/3f9a1c2e/Jx8...    (single use, expires in 10 min)

# your colleague
claudify pair join cfy1/192.168.1.20:7878/3f9a1c2e/Jx8...

Both commands start the daemon in the background if it isn't already running. claudify peers lists paired peers along with their key fingerprints.

Connect Claude Code

claude mcp add --scope user claudify -- claudify mcp

Optional but recommended: let the agent know when messages arrive by adding this to ~/.claude/settings.json:

{
  "hooks": {
    "SessionStart":     [{ "hooks": [{ "type": "command", "command": "claudify hook" }] }],
    "UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "claudify hook" }] }]
  }
}

Now you can say "ask the frontend agent whether they need pagination on /orders" or "hand off the new auth endpoints to Bob". The agent gets these MCP tools:

tool purpose
list_peers who can I talk to
send start a thread (handoff / question / change_request / note)
check_inbox read new messages
get_thread read a whole conversation
reply answer inside a thread
resolve close a thread on both sides

Claude Code asks for your permission the first time each tool is used. Allow check_inbox and reply permanently if you want, and keep send on approval if you'd like to review what goes out.

Remote colleagues

The peer port (TCP 7878) has to be reachable. On the same LAN that usually just works, and mDNS keeps addresses up to date when IPs change. For remote work, use a VPN such as Tailscale or WireGuard:

claudify init --advertise-host 100.101.102.103   # your Tailscale IP, used in invite codes

Exposing the peer port directly to the internet works but isn't recommended. Every request is authenticated, but there is no reason to show the port to scanners.

Security model

threat defence
Stranger connects to your daemon Only paired keys can get a challenge or deliver a message; everything else gets 403.
Pairing intercepted or spoofed Invite = public id + ~128-bit one-time secret that never goes over the wire. Each side proves it knows the secret with HMAC over a transcript that binds both public keys and both nonces, so a man in the middle can't swap keys. The joiner checks the inviter's proof before it sends its own. Invites expire after 10 min, work once, and are burned after one wrong proof or 5 attempts.
Replay of a captured message Every delivery needs a fresh, single-use, server-issued challenge (32 random bytes, 60 s TTL) that is covered by the signature.
Eavesdropping or tampering Payloads are signed with Ed25519 and encrypted with NaCl Box (X25519 + XSalsa20-Poly1305) between the two identity keys.
Spoofed address (e.g. fake mDNS) The sender only marks a message delivered after a signed receipt from the paired key. A spoofed endpoint can't decrypt messages or fake receipts.
One peer meddling in another's threads The daemon rejects messages that write into a thread owned by a different peer.
Other local programs or websites The local API listens on 127.0.0.1 only, requires a bearer token stored in a 0600 file, and checks the Host header (blocks DNS rebinding).
Prompt injection from a peer's agent Peer content reaches the model wrapped as <peer_message untrusted="true">. The MCP instructions say change requests need the user's approval and that messages must not trigger commands or reveal secrets.

Keys and the database live in ~/.local/share/claudify (Linux), ~/Library/Application Support/claudify (macOS) or %LOCALAPPDATA%\claudify (Windows), or in CLAUDIFY_HOME. identity.key is your identity, so keep it private. claudify unpair <name> revokes a peer.

Not covered yet: forward secrecy (a stolen identity.key can decrypt previously captured traffic) and hiding metadata such as public keys and message sizes.

CLI

claudify start | stop | status | daemon [-v]
claudify pair invite | pair join <code>
claudify peers | unpair <peer>
claudify inbox [-a] | thread <id>
claudify send <peer> <kind> <subject> <body> [--ref path]
claudify reply <thread-id> <body>
claudify init [--name N] [--peer-port P] [--advertise-host H] [--no-discovery]

Development

python -m venv .venv && .venv/bin/pip install -e '.[dev]' && .venv/bin/pytest

The tests start two real daemons and cover pairing, conversations, offline queueing, forged invite secrets, replay, tampering and local API authentication.

License

MIT

Metadata

Release files for claudify 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claudify 0.1.0
File Size Uploaded Provenance Actions
claudify-0.1.0.tar.gz 23.6 kB With provenance Details for claudify-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claudify 0.1.0
File Interpreter ABI Platform Actions
claudify-0.1.0-py3-none-any.whl Python 3 none any Details for claudify-0.1.0-py3-none-any.whl

Total release size: 48.6 kB

Release files / claudify-0.1.0.tar.gz

Download URL claudify-0.1.0.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1159cf60f7d4af116ba427daf31a4050943d76ca5ff4a1c0bbf2c123c6636092
BLAKE2b-256 checksum
How to use checksums
acedc6deb8c780372e8b98548dc2b2902ddb220b7619f74da5d347a4ae237521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / claudify-0.1.0-py3-none-any.whl

Download URL claudify-0.1.0-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f64187069954ac670670ad5b1ca20f11c07445fcabba403e4f4ace86b6880f11
BLAKE2b-256 checksum
How to use checksums
6ad03d158dc73458858b696e12c56c6579972a46b3751778cbac8ce8bdf7bef4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for claudify 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for claudify-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page