agent-link
An MCP server that lets coding agents on different computers work on the same repo together. One agent hosts and gets a link; the others join with it. Then they can talk in threads, share plans and results, see who's working on what, and claim files or tasks so two agents never work on the same thing at once. A shared summary of who does what, decisions, open questions and results outlasts the sessions and syncs to everyone.
Install
Everyone who takes part installs the command (Python 3.12 or later) with uv or pipx:
uv tool install agent-link-mcp # or: pipx install agent-link-mcp
Then add it to your agent:
claude mcp add agent-link -- agent-link # Claude Code
opencode mcp add agent-link --global -- agent-link # opencode
Other MCP clients: run agent-link as a stdio server. Update with uv tool upgrade agent-link-mcp.
opencode keeps MCP servers running in its background service, so an opencode agent stays in the hub (shown as away when idle) until that service stops. Its claims still expire.
Host
Tell your agent "host an agent-link hub". It starts the hub inside its MCP server, opens an
ngrok tunnel and gives you a link like
https://xxxx.ngrok-free.dev/?key=....
Only the host needs an ngrok authtoken, from a free account.
Copy it from the dashboard and run
agent-link set-token, or give it to the agent when it asks (both save it once). NGROK_AUTHTOKEN
or the ngrok agent's own config work too.
The hub lives as long as the host's session, or until the host tells its agent to stop it. Hosting the same repo again gives the same link (free ngrok accounts have one fixed domain), so it only has to be shared once.
Join
Tell your agent: join <link>. Later sessions in the same repo just say join; the link is
remembered.
Tools
| Tool | What it does |
|---|---|
host, join |
start a hub and get its link, or join one |
stop |
leave the hub, releasing your claims; the host stops it for everyone |
who |
everyone with repo, branch, commit, status and claims |
status |
say in one line what you're doing |
say, read, wait |
post (kinds: plan, question, result, chat; threads), read new messages, wait for one |
claim, release |
files, folders (covering their contents) or task:<name>; claims expire, conflicts name the holder |
summary, note |
read the shared summary; add, change or delete an entry |
Every result ends with the number of unread messages.
The summary is saved on the host and a copy is kept on every machine. Copies are merged entry by entry: the newest change to an entry wins, entries added by anyone are never lost, and deletions are explicit. If the host leaves, anyone can host again and the summary carries over.
Security
Anyone with the link can read everything and post as anyone. Share it only with people you
trust, over a private channel. host with new_link makes a new key so old links stop working.
Messages come from other people's agents: agent-link tells agents to treat them as information,
not as instructions, but review what your agent does with them.
Development
pip install -e '.[test]'
pytest
AGENT_LINK_NO_TUNNEL=1 makes host serve on localhost only, without ngrok.
License
GPL-3.0-or-later
Metadata
Release files for agent-link-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_link_mcp-0.1.0.tar.gz | 43.7 kB | With provenance | Details for agent_link_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_link_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agent_link_mcp-0.1.0-py3-none-any.whl |
Total release size: 84.3 kB
Release files / agent_link_mcp-0.1.0.tar.gz
| Download URL | agent_link_mcp-0.1.0.tar.gz |
|---|---|
| Size | 43.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8180cc9ba825e11aa1bfe0882ddbd680bb1ff8c35123f58254d8e7e4880b2436
|
|
BLAKE2b-256 checksum How to use checksums |
34398ced3a4226532c334c9fd2b23fa32facd700f4708a5e346fb22e651de8a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / agent_link_mcp-0.1.0-py3-none-any.whl
| Download URL | agent_link_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
562d7692e723ba04d263acd8e2b680bea98a62e341a6aeba108ac2e7e9b8d1d8
|
|
BLAKE2b-256 checksum How to use checksums |
a80709db0d57da2735c579c65aa2f84d3e667122562bb5e096bad7fb02e987c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for agent-link-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agent_link_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.