How Do AI Agents on Different Computers Talk to Each Other? I Built a Tiny Open-Source Fix
说明与用途
ACP‑lite 让在 NAT 后的两台家用电脑上的 AI 代理能够安全地交换消息,无需中央服务器,使用 Syncthing 文件同步和 SSH 唤醒。
问题
Running multiple AI agents on separate home computers behind NAT without a public IP or server makes inter-agent communication difficult; existing enterprise solutions are too heavyweight.
结果
ACP‑lite enables secure, token‑free, end‑to‑end signed communication between AI agents on two home computers behind NAT, with minimal setup and no central server.
工作流
- 1. Each machine runs a local "post office" process that watches an outbox folder.
- 2. An agent writes a JSON letter to its local outbox.
- 3. Syncthing syncs the letter file to the other machine’s inbox.
- 4. The receiving machine’s watch process detects the new file and triggers an SSH "doorbell" to wake the target agent.
- 5. The agent reads the letter, processes the task, writes artifacts and a signed reply to its outbox.
- 6. The audit log chain verifies end‑to‑end integrity.
- 7. The process repeats for subsequent messages.
证据
I run 6 AI agents across 3 machines: Codex and DSH on my desktop, Hermes and OpenClaw on a netbook. Human-to-agent is easy — WeChat, DingTalk, done. But how do agents talk to each other?
each machine runs a "post office"; agents only ever read and write local files.
Syncthing syncs the file to the other machine — battle-tested decentralized file sync, no need to reinvent it
SSH is the doorbell, ACP is the mailbox; the doorbell carries only a pointer, the letter body always travels via ACP
The completion criteria are threefold, all required: artifact on disk, longer audit chain, signed receipt.
- 记录日期: 2026-10-16T07:41:16.920Z