Put the check
in front of your API.

Your agents send X-Agent-Credential to a server you run. This page can call that server to test it. It does not save the document.

01 How a request works

  1. The company signs a short document with its private key. The private key never leaves the company.
  2. The agent sends that document in the header X-Agent-Credential.
  3. Your server checks the company prefix, the signature, and the expiry. If that company publishes a cancellation list, check it too.
  4. If it passes, the API runs and the request gains the header X-Agent-ID. If it fails, the answer is 403.

02 Credential

A credential is a signed JSON document. Change one field and the signature no longer matches. The sample uses prefix GRO and a display name inside the JSON for illustration only—not a live assignment. On the prefix registry, GRO’s suggested company name is SpaceXAI.

credential.json

{
  "agent_id": "GRO-8CB7487B",
  "company": "GRO",
  "company_name": "Grok",
  "agent_name": "ResearchBot-7",
  "capabilities": ["web_search", "summarize"],
  "kid": "k2",
  "issued_at": 1791371562,
  "expires_at": 1793963562,
  "signature": "564f6874f12baf826debf2a2dd6776cf84086ab8a8a5eb7de530165527e46857f80fccb115158be6887b032edeec4a3bd7f720153ae7f7095e153d4aca035f0a"
}

03 How a company wires agents

OpenAI, Grok, or any allowlisted company does not get a unique agent from this site. They publish a signing key here, then mint agent ids and credentials inside their own product.

  1. On Account: register with an allowlisted work email, confirm the inbox, verify DNS, seal a company name, and publish a public key in a k1–k3 slot (Keys lists what others pin).
  2. At agent create in their stack: mint agent_id = PREFIX- plus a stable unique suffix (eight hex is the suggested shape, e.g. OPI-8CB7487B). Do not reuse an id after it is cancelled.
  3. Sign a short credential with the private key for the chosen kid. The credential field company is the three-letter prefix; the sealed display name on this site is separate accountability metadata.
  4. The agent runtime attaches that document on every call to a cooperating API as X-Agent-Credential.
  5. Rotate by replacing a slot or moving traffic to another kid; cancel bad agents on the company’s cancellation list (examples on the prefix registry).

Many agents, few signing keys: millions of agent_id values can share one live public key.

Ready-made agent prompts for Cursor, Claude, or ChatGPT: Company — wire agents.

at agent create (sketch)

prefix = "OPI"           # from the registry allowlist
kid    = "k1"            # slot whose public key is published
agent_id = prefix + "-" + new_unique_suffix()

credential = {
  agent_id, company: prefix, kid,
  capabilities: [...], issued_at, expires_at
}
credential.signature = ed25519_sign(private_key_for(kid), canonical(credential))
# store credential with the agent; never send the private key to the agent host if you can help it
# every outbound request: Header X-Agent-Credential: <json>

04 Computer-use agents

This framework is a signed credential for gateways that check X-Agent-Credential. It is not a browser cookie and not Amazon’s bot detector.

Hypothetical only: if Amazon verified X-Agent-Credential for its own or a partner prefix, attested agents could be treated differently from anonymous bots. Until a site verifies, computer-use shopping remains their bot policy—not a missing registry feature.

Ready-made agent prompts: Computer-use honesty and Gateway — fetch public keys.

05 Gateway

The gateway is the check in front of your API. It does not store agents. The revocation URLs in the sample are examples, not live feeds.

agentid-gateway.yaml

# agentid-gateway.yaml
listen: ":8443"
upstream: "http://api.internal:8080"
mode: verify          # or reject_all

companies:
  OPI:
    public_key_file: "/etc/agentid/opi.ed25519.pub"
    revocation_url: "https://revocations.example/opi/revoked.json"
  MUS:
    public_key_file: "/etc/agentid/mus.ed25519.pub"
    revocation_url: "https://revocations.example/mus/revoked.json"
  ANT:
    public_key_file: "/etc/agentid/ant.ed25519.pub"
    revocation_url: "https://revocations.example/ant/revoked.json"
  GRO:
    public_key_file: "/etc/agentid/gro.ed25519.pub"
    revocation_url: "https://revocations.example/gro/revoked.json"

cache:
  revocation_ttl: "1h"
  reverify_list_signature: true

headers:
  credential: "X-Agent-Credential"
  identity: "X-Agent-ID"

06 Check order

Every server runs the same checks. Fail any one and the agent does not get in.

  1. The prefix is in your allowlist (you pin what you trust from Keys or GET /api/keys).
  2. The signature matches that company’s public key for this kid (prefer a key labeled live).
  3. It has not expired.
  4. If the company publishes a cancellation list: the list is signed and current (including cached copies), and the agent id is not on it.
  5. If no cancellation list is published yet: signature and expiry are enough; do not fail closed solely because a list is missing.
reject_all means the door stays shut. Agents with a credential are refused. Callers with no credential are refused too.

07 Browser check

The browser demo checks the sample signature on this page. It does not call your server. Edit a field and the signature fails. The sample cancellation list contains OPI-A770391F. The clock is fixed, so the expired sample still fails.

08 Test your gateway

The test box sends the header only to the https address you paste. If the browser is blocked, use the curl on your own machine. Allow https://agentaccountability.us on that route if you want the button to work.

Put verify in front of your API, and put the company’s public key in that server’s config. Suggested prefixes are on the prefix registry. Copying a prefix here does not register the agent.

09 Optional demo: paper desk trial

Optional. This is not the main company path (Account → DNS → live key). It makes a signing key in your browser and sends only the public half to a demo paper desk. The private key stays on this page. Prefix TRY is a trial, not a registry company prefix.

Production gateways should pin keys from Keys or fetch GET https://agentaccountability.us/api/keys (prefer label: live). Allow https://agentaccountability.us on the desk’s register and post routes if you want the trial button to work. The trial key lasts one hour on that desk.

10 Sample gateway code

This is the check your server runs. Prefix, key name, signature, expiry, then that company’s cancellation list when one is published.

verify

def verify(self, credential: dict) -> tuple[bool, str]:
    code = credential.get("company")
    company = self.companies.get(code)
    if company is None:
        return False, "unknown company prefix"

    public_hex = company.keys.get(credential.get("kid"))
    if public_hex is None:
        return False, f"unknown key id {credential.get('kid')}"
    try:
        verify_ed25519(public_hex, credential)
    except Exception:
        return False, "bad signature"

    if time.time() > credential["expires_at"]:
        return False, "expired"

    rev, status = self.revocation_list(code)
    if rev is not None:
        try:
            self.check_revocation_list(rev)  # every use, including cache hits
        except Exception as exc:
            return False, f"revocation list invalid: {exc}"
        if credential["agent_id"] in rev["revoked_agents"]:
            return False, f"REVOKED via {code} endpoint ({rev['reason']})"

    return True, f"VALID (signed by key {credential['kid']}, revocations: {status})"

The only network call is fetching the cancellation list, GET company.revocation_url. A server with no internet takes a signed copy of that list through the update channel it already uses. The browser demo uses a fixed sample list. It does not check a signed list document, because this page does not include one.

11 Revocation

Cancellation is how a company turns an agent off after it has already been signed.

12 Key rotation

Changing keys retires a leaked signing key without a database of agents.

13 Who does what

The company holds the private key and the cancellation list. The server operator only verifies. This site publishes the public keys and a suggested prefix list. It does not hold private keys, and it does not keep a list of agents.

RoleOwnsDoes not own
The company Signing keys, the documents, the cancellation list Your server’s check
Server operator The check in front of their API Signing, or other companies’ keys
This site The published public keys and a suggested prefix list Private keys, your server, a database of agents

14 Where it sits