01 How a request works
- The company signs a short document with its private key. The private key never leaves the company.
- The agent sends that document in the header
X-Agent-Credential. - Your server checks the company prefix, the signature, and the expiry. If that company publishes a cancellation list, check it too.
- 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"
}
companyis a three-letter prefix, such as OPI for OpenAI. Your server uses one only after you put it in your own config. The list is on the prefix registry.kidis the name of the key that signed it, so you can retire a leaked key.- Expiry is short on purpose. A week is a sane default for high-risk systems. Longer is a company choice.
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.
- 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–k3slot (Keys lists what others pin). - 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. - Sign a short credential with the private key for the chosen
kid. The credential fieldcompanyis the three-letter prefix; the sealed display name on this site is separate accountability metadata. - The agent runtime attaches that document on every call to a cooperating API as
X-Agent-Credential. - 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.
- A computer-use or browser agent does not magically send that header to a shopping HTML page unless the agent runtime (or a proxy in front of it) injects the credential on the HTTP request.
- Site bot signals—cookies, fingerprints, behavior—are a separate layer. Clearing cookies after a Grok-style session can remove a bot signal; that is not the same as presenting a registry credential.
- For Amazon Shopping or any first-party site to “accept” an attested agent, that site (or its edge) must verify the credential against a published public key and choose a policy (allow, step-up, deny). This site does not claim Amazon does that today.
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.
- The prefix is in your allowlist (you pin what you trust from Keys or
GET /api/keys). - The signature matches that company’s public key for this
kid(prefer a key labeledlive). - It has not expired.
- If the company publishes a cancellation list: the list is signed and current (including cached copies), and the agent id is not on it.
- 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.
- The company publishes a signed list of agent ids to turn off, with a reason, an expiry, and the key name.
- When a list exists, servers recheck that signature every time, including cached copies. Editing the cached copy fails the signature.
- A company that publishes no list can still sign agents. Gateways may accept those credentials after signature and expiry checks. A gateway that requires a list can refuse them by policy.
12 Key rotation
Changing keys retires a leaked signing key without a database of agents.
- Publish a new key. Do it on a schedule, about every 90 days, and right away if you think the old key leaked.
- Keep the old key for a while so current agents keep working. During that time, a forgery signed with the leaked key also works.
- Then delete the old key. After that, anything signed by the old key fails. The new key keeps working.
- The company keeps the key. A leak is their problem until they change it.
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.
| Role | Owns | Does 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
- In front of a web or API server. One config, one header.
- In front of a DNS resolver, on a signed request.
- Utilities and banks can run the same check and set
reject_allwhen agents are not allowed. A server with no internet takes a signed cancellation list through the update channel it already uses. - A team can put the check in place in about a week. The hard part is the policy, the keys, and keeping the cancellation list honest.