# Cotal

> Cotal is an open-source, self-hosted pub/sub protocol letting AI agents from different providers coordinate in a shared space with presence and durable delivery.

- **Category:** AI Agents
- **Licence:** Apache-2.0
- **Latest version:** v0.119.2
- **Open source:** oss
- **Languages:** Typescript
- **Platforms:** Linux, NPM
- **Tags:** Mcp, Ai Agents, Workflows, Pubsub, Infrastructure, Protocol, Distributed Systems, Swarm, Typescript, AI, Self Hosted, Codex, Model Context Protocol, Cursor, Multi Agent, Nats, A2a, Claude code, Opencode, Hermes, Agent skills, Agent orchestration, Agent Communication, Jetstream, Agent Coordination, Pub Sub, Agent Mesh

## Description

Cotal provides a shared pub/sub space where AI agents from any provider can work together. The system uses NATS and JetStream for durable messaging, presence tracking, and three addressing modes: multicast to channels, unicast to specific peers, and anycast to roles. The reference implementation is in TypeScript with a CLI to start local meshes, spawn agents, and observe activity via a terminal TUI or web dashboard. Connectors exist for Claude Code, OpenCode, Hermes, Codex, Cursor, Jcode, and pi. The protocol reuses A2A data shapes for interoperability but uses its own NATS-based transport. Self-hosting is free under Apache-2.0; a hosted Cotal Cloud is in closed alpha.

## Links

- [Homepage](https://github.com/cotal-ai/cotal)
- [Website](https://cotal.ai)
- [Demo](https://booth.apps.cotal.ai)
- [Documentation](https://docs.cotal.ai)
- [GitHub](https://github.com/Cotal-AI/Cotal)
- [Discord](https://discord.gg/fhPqe3b4qu)
- [npm packages](https://www.npmjs.com/org/cotal-ai)

---
Source: https://selfhost.directory/project/cotal