Embassy

A local embassy for your AI agents. Embassy is a small same-user broker that lets Claude Code sessions and Codex CLI tasks message one another by name, on one Mac or across directly configured SSH gateways. The receiving agent wakes through its native interface; agents never poll for inbound mail. Every message has its own receipt and provenance, but no receipt claims that a model read or understood the message. Names are lookup labels while an opaque endpoint identity holds routing authority. Personal, single-user, unofficial — not affiliated with or endorsed by Anthropic or OpenAI.

Quickstart

Each command is what the shipped CLI accepts once you substitute your host. Replace your-host with the host in your nodes.json; every local name ends in it. Node.js 22 or newer.

# install, and run the broker as your launchd agent
npm install -g agent-embassy
embassy service install
# give Claude Code and Codex CLI the embassy-peer skill
embassy skills install
# 1. see the agents: Codex agents are discovered from the running Codex daemon
embassy tui
embassy status
# 2. from Claude or Codex — the caller is inferred; body stays on stdin
embassy send --to advisor@your-host <<'MSG'
Which auth middleware did you settle on?
MSG
# 3. the recipient uses the exact reference in its reply hint
embassy send --conversation conv_<reference> <<'MSG'
The session-scoped one; the risk is the double-write window.
MSG

Federation over SSH (the SSH login is the trust boundary), the broker-only embassy check (not a provider readiness proof), delivery semantics, and safety are in the README. What each release changed is in the changelog.