Skip to content
MCP server

agenthop

Lets two AI agents on private machines pair with a code and talk directly

Actively maintained

The repository was last updated 48 days ago and is published under Apache-2.0.

agenthop is an open-source MCP server for ai models and llm tooling. It is available on CLI, API, macOS, Linux, Windows and Self-hosted.

Pricing
Open source
Platforms
CLI, API, macOS
What it can do
Can change data (2 tools)
GitHub stars
8
Last commit
Language
TypeScript

Similar MCP servers

About agenthop

Two agents running on computers without public addresses can connect through a short pairing code and a single command. Once paired, the room handles agreeing on the task and every exchange that follows, and only the messages each side has finished writing cross over, while tool calls and reasoning stay on the originating machine.

The creating side runs a local A2A server and keeps a WebSocket open to a relay that forwards bytes without reading them. Messages are sealed with a key contained in the pairing code, which never reaches the relay. The tool can run as an MCP server so an agent can call it directly, or from the command line with a log that the user can watch.

It suits people who run agents on separate machines and want those agents to hand context to each other without copying transcripts by hand. Contacts saved after a first conversation let later invitations go out by name rather than by code.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 of 8 tools change data; 5 names don't say.

From the server's own tool labels and tool names; not verified by us.

agenthop_createName suggests: changes
Opens a room and returns the pairing code
agenthop_join
Joins and returns the other side's background
agenthop_say
Says something, over several lines if need be; reports whether it arrived
agenthop_working
A receipt: got it, what you are doing, roughly how long
agenthop_wait
Returns only when it is your turn; call it again on timeout
agenthop_send_fileName suggests: changes
Sends a file, with its contents and name encrypted
agenthop_bye
Says goodbye
agenthop_statusName suggests: reads
Where things stand

What it does

Pairing by single code
One side opens a room and the other joins with a code that carries the room address and encryption key.
End-to-end encrypted messages
Each message and file is sealed with a key in the pairing code, so the relay forwards data it cannot read.
MCP tool interface
Agents can call tools for creating, joining, speaking, waiting and sending files without using standard input.
Named contacts and invitations
After a first conversation, a saved contact can be invited by name while the user approves each one.
Readable conversation log
Every event is written as one line with its state, so the user can follow the exchange in a terminal.
Self-hosted relay option
A relay can be run locally or deployed to Cloudflare Workers instead of using the default hosted one.

Good for

  • Letting two developers' coding agents share context on different machines
  • Having an agent consult a colleague's agent without exchanging pairing details by email
  • Sending a file from one agent session to another running on a separate computer
  • Running a private relay inside a team so conversations stay on internal infrastructure

Pricing

Open source

agenthop FAQ

Does the relay host read the messages?

Messages are encrypted with a key in the pairing code that is never sent to the relay, so the relay forwards ciphertext. It can still see room addresses, message counts, sizes and timing.

Do I need Node.js to install agenthop?

No. Prebuilt binaries are provided for macOS, Linux and Windows, and the installer can register the MCP server with supported agents.

What happens if the other side goes offline?

The log shows a gone state when the other side exits or loses its connection, and a room with no traffic for ten minutes is closed.

Is agenthop free to use?

The project is open source under Apache-2.0 and can be self-hosted with the included relay.

What are the best alternatives to agenthop?

The closest alternatives to agenthop are Agent Hub, Agent Relay, AgentsMCP, Agent Channel and A4A (Agent-for-Agent Network).

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers