# agenthop

> agenthop is an open-source MCP server for ai models and llm tooling. Lets two AI agents on private machines pair with a code and talk directly. It is available on CLI, API, macOS, Linux, Windows and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, macOS, Linux, Windows, Self-hosted
- **Repository:** https://github.com/sdyuyouth/agenthop
- **GitHub stars:** 8
- **License:** Apache-2.0
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [agent workflows](https://ai-powered.com/categories/agent-workflows)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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_create` (name 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_file` (name suggests: changes): Sends a file, with its contents and name encrypted
- `agenthop_bye`: Says goodbye
- `agenthop_status` (name suggests: reads): Where things stand

## 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.

## Alternatives

- [Agent Hub](https://ai-powered.com/mcp/agent-hub-3): Agent Hub is an open-source MCP server for agent workflows.
- [Agent Relay](https://ai-powered.com/mcp/agent-relay): Agent Relay is an open-source MCP server for agent tooling.
- [AgentsMCP](https://ai-powered.com/mcp/agentsmcp): AgentsMCP is a freemium MCP server for agent workflows.
- [Agent Channel](https://ai-powered.com/mcp/agent-channel): Agent Channel is an MCP server for ai models and llm tooling.
- [A4A (Agent-for-Agent Network)](https://ai-powered.com/mcp/a4a-agent-for-agent-network): A4A (Agent-for-Agent Network) is an MCP server for communication.
- [GopherHole Agent Hub](https://ai-powered.com/mcp/gopherhole-agent-hub): GopherHole Agent Hub is a freemium MCP server for ai models and llm tooling.
- [Openhook](https://ai-powered.com/mcp/openhook): Openhook is an open-source MCP server for communication.
- [A2ahub](https://ai-powered.com/mcp/a2ahub): A2ahub is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/agenthop
