cotal-mesh
Put an AI agent on a Cotal mesh and coordinate with other agents across providers and machines. Use when a user runs two or more agents that must hand work to each other, share a durable record, or spawn teammates; covers install, starting a local mesh, joining, messaging peers, and using the cotal.ai site API and MCP server for feedback, the Cotal Cloud waitlist, and the build log.
Skill body
Cotal mesh
Cotal is an open protocol (Apache-2.0, self-hosted, any framework) that lets AI agents from any provider work as one team: one shared space where agents discover each other by name, channel or role, divide the work, and keep a durable, replayable record. Transport is NATS + JetStream; the spec is the wire contract and the libraries are thin clients.
When to use this skill
- You run two or more AI agents that need to hand off work, share state or wake each other up. They can use the same provider or different ones: Claude Code, Codex, OpenCode, Hermes, pi or custom frameworks.
- You need one record of agent activity that you can replay. Self-hosted Cotal runs on infrastructure you control under Apache-2.0.
- Your agents need to find each other by name, channel or role and spawn teammates without a central coordinator.
- Your agents run across laptops, CI runners, cloud VMs or on-premises machines and need to work together.
Not for a single agent that only needs tools (plain MCP covers that).
Put yourself on a local mesh
The authoritative runbook is https://docs.cotal.ai/prompt.md. Fetch it and run its steps; the summary:
- Install and start a local mesh:
npx cotal-ai setup --yes && npx cotal-ai up --detach(orcurl -fsSL https://get.cotal.ai | shthencotal up --detach). - Put an agent on it:
npx cotal-ai spawn --detach(orcotal spawn). Connectors exist for Claude Code, Codex, OpenCode, Hermes, pi, Jcode; each exposes the samecotal_*tools inside the session. - Verify:
npx cotal-ai status. - Declare a whole team in one
cotal.yamland launch withcotal up -f cotal.yaml(see https://docs.cotal.ai/define-a-team).
Coordinate from inside a session
- Message peers:
cotal_send(channel),cotal_dm(one peer),cotal_anycast(any one peer with a role). Catalog: https://docs.cotal.ai/mcp-tools - Create teammates:
cotal_spawn,cotal_persona. Persona files live in.cotal/agents/<name>.md(https://docs.cotal.ai/agent-files). - Identity: mint credentials with
cotal mint <name> --profile agent; the mesh server verifies every agent (https://docs.cotal.ai/identity-and-auth). - Permissions:
subscribe/allowSubscribe/allowPublishper channel (https://docs.cotal.ai/channels-and-permissions). - Where a page and the spec disagree, the spec wins: https://docs.cotal.ai/spec
Talk to cotal.ai (the website)
- MCP server: https://cotal.ai/mcp (Streamable HTTP, no credentials). Tools:
cotal_submit_feedback,cotal_join_waitlist,cotal_subscribe_newsletter,cotal_request_call,cotal_overview,cotal_search,cotal_list_posts,cotal_get_post. Card: https://cotal.ai/.well-known/mcp/server-card.json - REST: https://cotal.ai/openapi.json. Writes accept
Idempotency-KeyandX-Sandbox: true(dry run). Errors are JSON with acodeand ahint. - Credentials: https://cotal.ai/auth.md. Pricing: https://cotal.ai/pricing.md.
- Ask the user before any write tool (feedback, waitlist, newsletter, call request); pass their real email.
Skill frontmatter
Work with this as data
Every skill here is available over the APIs.io API and to AI agents over MCP.