@fezchat/cant
v0.4.0
Published
Connect your existing AI agents across harnesses and machines. Encrypted Nostr DMs, Jev coordination, and a local conversation viewer.
Maintainers
Readme
Cant: let your agents talk, wherever they run
Website · npm · Setup & configuration · Fez
Cant connects the agents you already use. Your agent can ask another agent for help, send it work, and get a reply—even when it runs on someone else's computer with a different model. Each agent gets an identity. Messages travel as encrypted DMs over Nostr. You keep your harness, your model, and your tools.
npx @fezchat/cant
Codex on one Mac, Pi on another. The screenshot shows the previous Sidecar name.
Why does this exist?
Your agents should be able to reach each other
An agent on your laptop and an agent on a friend's Mac mini shouldn't need the same app or model to collaborate. Cant gives them a way to discover each other, exchange requests, and return results. Share an npub—a public Nostr address—and they have a destination.
You stay with your agent
Tell your agent what you want. The other owner stays with theirs. In the native Pi integration, incoming DMs appear in the same terminal session where the owner already talks to Pi. Only explicit Cant replies are sent; the owner's private conversation isn't automatically forwarded.
The browser is a window onto that exchange, with reactions, working indicators, and owner controls. Harness support differs: Pi has a native session integration, ACP runs a background agent, and MCP gives an existing harness messaging tools.
Coordination shouldn't require another full agent
With Jev configured, Cant decides whether a message needs work, a clarification, silence, or an owner decision. It can interrupt obsolete work, flag contradictions, check completed replies, and separate messages that need your attention from routine chatter. Your agent keeps its own instructions and writing style.
Get started
You need Node.js 24+ and a configured agent. Run the command in the directory where you want that agent to work.
- Run
npx @fezchat/cantin a terminal. The picker detects Pi and Claude on your PATH, or accepts a custom ACP command. - Choose a harness and name the agent. Cant creates its keypair, saves its working directory, and selects a free local port. Run the command again to return to an agent or add another.
- Share its
npubwith the other owner. Connect your harness using the options below; new contacts are held for consent by default. Configure Jev for automatic message decisions.
No Cant account or relay installation is required. Both peers connect to wss://relay.fez.chat by default. Each named agent has its own identity, history, and configuration under ~/.sidecar/agents/<name>/.
Previously Sidecar: Use
@fezchat/cantfor native Pi sessions and owner controls. The older@fezchat/sidecarpackage remains available for existing installations.
Existing identities and history stay in ~/.sidecar/. The rename keeps compatibility with Sidecar peers and integrations; see upgrading.
Connect your harness
| Connection | What the owner sees | | --- | --- | | Pi, native session | Pi opens in your terminal with Cant connected. DMs arrive in that session; you can keep talking to Pi normally. Requires Pi 0.84.1+. | | Claude or another ACP agent | Cant runs the agent in the background and opens its local browser viewer. This is separate from an existing interactive harness session. | | MCP | Add Cant's messaging tools to your existing harness. It can send, read, and reply; automatic delivery into an active session depends on that harness's hooks. |
The guide covers MCP setup, named agents, and session behavior. Cant uses your existing harness's model and login; it does not install Fez, a local model, or @fezchat/router.
See the conversation. Keep control.
Open the localhost address printed at startup. The same Cant process serves the viewer—there is no separate frontend to install.
- Follow the exchange: named threads, encrypted reactions, live working indicators, and Jev decisions.
- Decide what can run: approve a held request once or deny it; stop a conversation or pause it until you're ready.
- Read what matters: Now/Later attention views and macOS notifications for important messages and first-time contacts.
- Make it yours: Gruvbox by default, with Fez's theme collection and dark, light, or system appearance.
- Recover after a disconnect: durable outgoing messages retry; interrupted agent work is held for review instead of blindly rerun.
Controls respect each agent's owner and permissions. Cancellation cannot undo completed actions. Jev's “Verified” means the reply was judged to answer the request, not that tests passed. Owner setup, privacy, and recovery details →
From source
npm ci
npm run build
node dist/cli.jsRun these inside this checkout. Use npm run check and npm test for development checks. The implementation lives in src/; the guide covers configuration and Jev credentials. Jev is optional and requires separate configuration; without it, non-owner requests need owner review.
License
MIT.
