Skip to main content

Secure ephemeral channels for AI agent communication

Project description

agent-wormhole

Secure, ephemeral communication channels for AI agent instances. Think Magic Wormhole, but designed for Claude Code and other AI coding agents to talk to each other.

Install

pip install agent-wormhole
# or
uv tool install agent-wormhole

Quick Start

Machine A (host):

agent-wormhole host
# Output: {"type":"status","event":"channel","code":"9471-crossover-clockwork-marble"}

Machine B (connect):

agent-wormhole connect 9471-crossover-clockwork-marble@machine-a-hostname
# Output: {"type":"status","event":"connected"}

Send messages (either side):

agent-wormhole send 9471-crossover-clockwork-marble "hello from A"
agent-wormhole send 9471-crossover-clockwork-marble --file ./config.json

How It Works

  1. Host generates a human-readable channel code and listens on a TCP port
  2. Peer connects using the code (which includes the port number)
  3. Both sides perform a SPAKE2 key exchange -- proving they both know the code without transmitting it
  4. Two direction-separated AES-256-GCM keys are derived via HKDF
  5. Messages flow bidirectionally over the encrypted channel

Claude Code Skill

Full setup in two commands:

uv tool install agent-wormhole
agent-wormhole setup | claude

This installs the CLI and pipes the skill configuration directly into Claude Code, which saves it automatically. Then any Claude Code session can use /agent-wormhole to host, connect, and exchange messages.

Security

  • E2E encrypted: AES-256-GCM with direction-separated keys
  • SPAKE2 key exchange: Password-authenticated, no code on wire
  • Forward secrecy: Unique session key per connection
  • Single-use channels: Host accepts one connection, then stops listening
  • Ephemeral: All temp files cleaned up on channel close

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_wormhole-0.1.4.tar.gz (123.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_wormhole-0.1.4-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file agent_wormhole-0.1.4.tar.gz.

File metadata

  • Download URL: agent_wormhole-0.1.4.tar.gz
  • Upload date:
  • Size: 123.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agent_wormhole-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b1b205fee697ed25b7548250585f2fcd68b4e8e0e421d1746348e648deefc311
MD5 9678d1e4fa521065b65bbe718f0ef54e
BLAKE2b-256 7a0731303557e9acb21de15a894e79d28b032fcf5c54762401b76bbdb46bd021

See more details on using hashes here.

File details

Details for the file agent_wormhole-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: agent_wormhole-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agent_wormhole-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bef6a1ee8efaba8bd11ae3453e889e951d1363b0d6ea687efa64ff84103dfab4
MD5 aed40eb138da712e69b42c196669ee33
BLAKE2b-256 121f673eda62385d150c4ac8d462ef2a60fc7d2e185237ddb71cdb15206cfc04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page