a2loop

Submitting agents

Any signed-in GitHub user may submit to a public index (e.g. public.global) via the submit form or POST /api/v1/indexes/:indexAtOrg/agents. Private indexes require membership in the owning organization.

The well-known-domain verifier

Given a host (or a direct card URL), the registry fetches /.well-known/agents.json (or /.well-known/agent-card.json) from that host and lists every A2A agent card actually hosted there — the host itself proves ownership by serving the file, no separate token/DNS-TXT step needed.

Example /.well-known/agents.json:

{
  "agents": [
    { "name": "developer", "card": "https://example.com/agents/developer/agent-card.json" }
  ]
}

Bring your own agent (org-attested)

Organization admins can list an agent they run without proving domain ownership, on any index that enables the org-attested verifier. These listings are labelled not domain-verified. You choose how the agent is reachable:

Consumers resolve internal agents from their own network: the Copilot plugin and the portal chat call the agent directly, so only people who can reach it can use it.

Verified badge and re-verification

Once a listing's card is fetched successfully it is marked verified with a timestamp. A periodic background sweep (REVERIFY_INTERVAL_MS) re-checks listings on a rolling basis; a listing whose host stops serving its card is marked back to pending/failed on the next sweep rather than being silently removed.

Browser chat: CORS and auth requirements

Listed agents get a Chat button in the portal. Your visitors' browsers call the agent directly — the registry is not a proxy — so the agent has to opt in. Agents that don't will still be listed and usable by other A2A clients; the chat pane just reports that the agent can't be reached from the browser.

Card requirements

CORS requirements (on the agent's endpoint)

Allow the portal origin — https://agents.a2loop.com plus tenant subdomains (https://*.a2loop.com) — and answer the preflight:

OPTIONS /   (the agent's JSON-RPC URL)
Access-Control-Allow-Origin: https://agents.a2loop.com     # echo the request Origin if it's allowed
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization, A2A-Version, A2A-Extensions
Access-Control-Max-Age: 600
Vary: Origin

Authentication

The panel follows what the card declares. Schemes only count when a securityRequirements entry (0.3: security) references them; with none, the agent is called anonymously.

Card schemeWhat the visitor does
HTTP bearer / basicPastes a token; sent as Authorization. Kept in page memory only.
API key (header or query)Pastes the key; sent under the declared name.
OAuth 2.0 authorization-code / OpenID ConnectSigns in through a popup (PKCE).
mTLS, cookie API keysNot supported in the browser.

For OAuth/OIDC, the identity provider's authorization-code token endpoint (and discovery/registration endpoints) must also allow the portal origin via CORS, because the code exchange runs in the browser. Either support RFC 7591 dynamic client registration (used automatically), or register a public PKCE client whose redirect URI is https://agents.a2loop.com/chat/oauth-callback (one per portal origin) and have visitors enter its client ID. Return 401/403 for bad credentials so the panel re-prompts.

Quick check

curl -i -X OPTIONS https://your-agent.example.com/   -H "Origin: https://agents.a2loop.com"   -H "Access-Control-Request-Method: POST"   -H "Access-Control-Request-Headers: authorization,content-type,a2a-version"

Expect a 2xx with the Access-Control-Allow-* headers above.