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

agent-wormhole ships with a Claude Code skill so your AI agents know how to use it. After installing the package, run inside Claude Code:

agent-wormhole setup

Claude will read the output and configure the skill automatically. Then any Claude Code session can use /agent-wormhole to host, connect, and exchange messages.

If you're not in Claude Code, the command will give you a paste-ready command to run.

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.2.tar.gz (123.3 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.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_wormhole-0.1.2.tar.gz
  • Upload date:
  • Size: 123.3 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.2.tar.gz
Algorithm Hash digest
SHA256 4c37915fc38d42f7eca925d8e3770a62f0b5174e7ba3d50a5f4516bdcea70ae5
MD5 ff5cda2bca8651d70050e8d2bc1e37af
BLAKE2b-256 557427fcbeccde02ab0a3deb5854d436134d04fee1192ad705a08ef44abddb6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_wormhole-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53984b90ea3f398adc543f2bebab8cb89985c98c88b8a79058219e0dad771725
MD5 5adf82b6c949cd3d1453c08857915adb
BLAKE2b-256 472746aeee272cab1e570d07d9b5262adbd4caffc2e430139708ea37f36ca159

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