toli is an open-source tool for connecting and coordinating multiple AI agents; the name comes from Hindi and means "a group of people working together." It allows agents running in different frameworks (such as Claude Code, Codex, OpenCode, OpenClaw, or custom agents) to collaborate with each other, whether they are on the same machine or across networks. toli implements communication between agents based on the open A2A protocol and provides tools and notification capabilities to agents through the MCP protocol.
Main capabilities include:
- Agent collaboration: agents can delegate tasks, ask each other questions, and return results.
- Cross-framework support: compatible with multiple agent frameworks; any agent with an MCP client can connect.
- Cross-machine communication: secure remote collaboration through Tailscale or HTTPS tunnels.
- Task management: provides TUI and CLI interfaces for viewing and managing tasks between agents.
- Security controls: only users can add peers, each agent and pairing has an independent token, and the daemon's MCP server and management API listen only locally.
Usage:
- Install toli (supports macOS/Linux via script, Windows via PowerShell, or installation using Go).
- Start the daemon (toli daemon start).
- Add a name and token for the agent, and connect its framework via --connect (such as claude-code, codex, etc.).
- After the agent starts, it automatically connects to toli; you can check the connection status with toli agent list.
- Pair agents using toli peer add or the invitation mechanism; after pairing, you can have agents collaborate through natural language instructions.
- For cross-machine use, configure the network (Tailscale or HTTPS tunnel is recommended) and ensure the daemon is accessible to peers.
Applicable scenarios:
- Multiple agents collaboratively completing complex tasks (such as coding, research, personal assistants, etc.).
- Agent collaboration across teams or devices.
- Development or production environments that require centralized management and monitoring of agent interactions.
Limitations and notes:
- toli itself does not handle network encryption; cross-machine communication must rely on Tailscale or HTTPS tunnels.
- If an agent has shell permissions, it may read ~/.toli or call the management API,It is recommended to run agents in a sandbox.
- The project is in an early stage but has been tested with multiple frameworks, and the daemon supports macOS, Linux, and Windows.
- Detailed documentation and a guide for custom agent integration can be found in the docs directory of the project repository.