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.1.tar.gz (122.6 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.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_wormhole-0.1.1.tar.gz
  • Upload date:
  • Size: 122.6 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.1.tar.gz
Algorithm Hash digest
SHA256 4fe3a607a7fba5b11fa563f3fec43d601a2c73040f02b1dc0dc4952fe1999b93
MD5 a07734fcd36131ccb8272927e19fbb5e
BLAKE2b-256 a3cabc1db60fa1136cac0ff9afc6cae43bf0ae0c32be8285ce61f149140cce85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_wormhole-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9e536a5250a1387b07152b0d9a214f9909fac843266476df7068ec0f6fe936b
MD5 65fcb3586d5a7617ee5eb9f2acd0fc6a
BLAKE2b-256 edd178949330594692540d6df041c21db0b86ae769ef1de09e37eccd84ffefd0

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