Skip to content

telegraphic-dev/a2a-exposed

v0.8.75MIT

Give any AI agent a public A2A (Agent2Agent) endpoint: a Cloudflare Worker, wake webhooks, peer pairing, or a public façade for a private A2A agent.

a2a-exposed

npm CI

a2a-exposed gives an AI agent a public A2A address. A Cloudflare Worker serves the agent card and the JSON-RPC endpoint, and inbound messages become tasks. Webhooks wake your agent, an outbound relay delivers those wakes to a local receiver, or the agent polls. The owner pages are / and /device.

Setup is five steps: create the address, receive messages, handle them, notify the owner, and confirm with a real message the owner sees. A reachable agent card is not the end. When the agent host is local-only or has no public HTTPS address, offer the outbound wake relay when hosted capabilities --json reports relay: true or relay status --json reports protocol version 1. A tunnel or polling is the alternative when the relay is off or the owner chooses it. The checklist is in Getting started.

Pairing is one-directional. Approving a peer lets them message you. To message them, run connect with their public address. Their owner approves that request. See Connect another agent.

Optional HTTP and native A2A relay profiles connect a fixed local webhook or authenticated A2A service using an outbound connector, preserving application payloads and responses, including bounded SSE. They are separate from the inbox and wake relay and require an explicitly enabled compatible Worker. Callers must be able to send a dedicated ingress-secret header, including for native card discovery; this is not URL-only public access.

Who it's for

Agents that can call out over HTTP and cannot run a public server: hosted assistants, coding agents, routines, and chat bots. Peers discover the card at https://<host>/.well-known/agent-card.json, send SendMessage with a per-peer token, and read the reply with GetTask (or a push notification, when the peer registered one).

Hosted

No Cloudflare account is required. a2a.exposed hosts the A2A endpoint and is open to everyone. It is in open beta with a Free plan; see pricing. Sign in at https://a2a.exposed/app and create an agent at https://<name>.a2a.exposed.

A Grok Bot should use the a2a-exposed-setup skill and the CLI hosted login (login --machine NAME --scopes SCOPES, hosted create --name NAME, then wake request --agent NAME --url URL --preset grok-bot, which prints a link where the owner pastes only the webhook key). The CLI stores the owner token in local config.env (keep the file chmod 600). The hosted MCP connector at https://a2a.exposed/mcp is the alternative when the CLI cannot run or the owner prefers it. It is not in the Grok Bot plugin catalog; add it as a custom server.

When the CLI cannot run, connect https://a2a.exposed/mcp. Sign-in is the owner identity. The owner token stays on the A2A endpoint. Claude Code cloud sessions use the hosted connector. The steps are in Getting started.

Self-host

Self-hosting needs Node 22.18+. Commands run through npx. Confirm the Cloudflare account and the plan before init changes it. The consent checklist is in the setup skill. Self-hosting covers login, API tokens, and --account-id.

npx -y skills add telegraphic-dev/a2a-exposed
npx -y a2a-exposed@latest init --hostname agent.example.com --agent-name "My Agent"
npx -y a2a-exposed@latest status

Omit --hostname to serve on *.workers.dev. If you already have a wake URL, put WAKE_WEBHOOK_URL and WAKE_WEBHOOK_KEY in the environment before init. Never pass secrets on the command line. Pairing and the approval password are in Getting started.

Docs

Getting startedSkills, Node, first deploy, pairing
Receiving messagesWebhooks wake your agent. Without one, it polls, guided by next-check hints
Self-hostingCloudflare A2A endpoint, workers.dev, tunnel, uninstall, public façade
CLICommands, flags, config
MCPRemote connector at /mcp
FeedbackReport a bug or an idea
SecurityTokens, pairing, wakes, façade
TroubleshootingFAQ and common failures
UpgradingMove an existing A2A endpoint forward
ProtocolA2A 1.0 and 0.3, OAuth, endpoints

Changes are listed in GitHub Releases. Agent workflows live in skills/.

License

MIT, see LICENSE. The license does not grant the hosted service's name or logo; see TRADEMARKS.md.