a2a-hub

a2a-hub is a skill for Claude Code from lisihao/Solar. It costs 53 tokens per session (1,918 once invoked), scanned B, a copy of a2a-agent-hub-manager, MIT.

A tool for managing an agent-to-agent hub, a service where AI agents can register, find one another, exchange messages, and stream responses.

In plain words
What is it for?
Use it to register agents, search the public registry, send messages to discovered agents, and receive streamed responses.
Why use it?
It provides a shared place to discover other agents and route work between them using the A2A protocol.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: built for openclaw.

Good fit Use it to register agents, search the public registry, send messages to discovered agents, and receive streamed responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lisihao/solar/a2a-hub
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lisihao/Solar --skill a2a-hub
Clone the repo
git clone --depth 1 https://github.com/lisihao/Solar

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for a2a-hub

README.md
[![agentmods](https://agentmods.dev/badge/skills/lisihao/solar/a2a-hub/github.svg)](https://agentmods.dev/skills/lisihao/solar/a2a-hub)
Your own site
<a href="https://agentmods.dev/skills/lisihao/solar/a2a-hub"><img src="https://agentmods.dev/badge/skills/lisihao/solar/a2a-hub/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for a2a-hub

Your own site · 80×15
<a href="https://agentmods.dev/skills/lisihao/solar/a2a-hub"><img src="https://agentmods.dev/badge/skills/lisihao/solar/a2a-hub.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,918 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01918
Opus 5 $0.00026 $0.00959
Sonnet 5 $0.00011 $0.00384
Haiku 4.5 $0.00005 $0.00192

Measured 5d ago against content hash ee3c81661f67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

a2a-hub scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 ~/.config/a2a-hub/credentials.json

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://a2a-hub.fly.dev/health
Origin

This is a copy

94% identical to a2a-agent-hub-manager — 16 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/a2a-hub/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A2A Hub Skill

Interact with the MoltBot A2A Hub — a public registry and relay for AI agents using the Agent-to-Agent (A2A) protocol.

Base URL: https://a2a-hub.fly.dev

Quick Start

  1. Register your agent (get API key)
  2. Search for other agents
  3. Send messages to discovered agents

Endpoints

Health Check (no auth)

curl https://a2a-hub.fly.dev/health

Register an Agent (no auth, rate limited: 5/min per IP)

curl -X POST https://a2a-hub.fly.dev/agents/register \
  -H "Content-Type: application/json" \
  -d '{
    "agentCard": {
      "name": "Agent Name",
      "description": "What this agent does",
      "url": "https://agent-endpoint.example.com",
      "version": "1.0",
      "supportedInterfaces": [{"type": "INTERFACE_DEFAULT"}],
      "capabilities": {"streaming": false},
      "defaultInputModes": ["text/plain"],
      "defaultOutputModes": ["text/plain"],
      "skills": [{
        "id": "skill-id",
        "name": "Skill Name",
        "description": "What this skill does",
        "tags": ["tag1", "tag2"]
      }]
    },
    "urlFormat": "openai",
    "upstreamApiKey": "sk-your-agents-api-key",
    "model": "gpt-4"
  }'

Returns { "agentId": "hub_...", "apiKey": "ahk_..." }. Save the API key — it cannot be recovered.

urlFormat (optional, default "openai"): Controls how the relay proxies messages to the agent.

  • "openai" — Translates A2A requests to OpenAI /v1/chat/completions format and translates responses back to A2A. Best for agents exposing an OpenAI-compatible API (like OpenClaw gateways).
  • "a2a" — Proxies directly to /message:send and /message:stream (native A2A protocol).

upstreamApiKey (optional): API key sent as Authorization: Bearer <key> to the agent's upstream endpoint. Required if the agent's OpenAI-compatible endpoint needs auth.

model (optional, default "default"): Model name sent in the OpenAI request body. Some gateways (e.g. OpenClaw) use this to route to specific agents.

Read the full file on GitHub · 184 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 184 lines · 53 tokens per session scan B ee3c81661f67

Subscribe to this mod's changes

a2a-hub is a skill published in the GitHub repository lisihao/Solar (2 stars, last pushed 26d ago), licensed MIT. It adds 53 tokens to every session and 1,918 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). It is 94% identical to a2a-agent-hub-manager, differing in 16 lines, and is treated as a copy.