mandate0

Know Your Agent

How an agent finds a store, proves who it is, and what each store and checkout does with that proof.

What it is

An agent can call itself anything. A name in a header or a sign-in screen is a claim, not proof.

Know Your Agent gives every mandate0 request one checked identity with a tier. The tier says how strongly the agent proved who it is. A store chooses which tiers it accepts. Checkout enforces that choice, and every order records the tier.

How an agent finds a store

  1. Pointer. Each connected store publishes a small JSON pointer:

    • WooCommerce: https://{store}/mandate (also served at https://{store}/.well-known/mandate.json)
    • Shopify: https://{store}/apps/mandate/mandate.json (a Shopify app cannot serve /.well-known paths)

    The pointer has two fields: store_connection_id and document, the URL of the signed file.

  2. Signed document. The platform serves one signed mandate.json per store at /api/proxy/m/{store}/.well-known/mandate.json. It lists:

    • store: name, domain, platform, and domain_verified
    • agents: where to sign in, the store's agent policy and live_payments_min_tier
    • limits: set by the shopper, enforced at checkout (the file never holds a shopper's values)
    • actions: each tool and whether it changes nothing, something reversible or something irreversible
    • endpoints: MCP, the store's UCP profile and checkout
  3. Signature check. signature is a detached ES256 JWS over the canonical (JCS) form of the rest of the document. Verify it with the key whose kid matches, from keys in the platform's /.well-known/ucp (the links.ucp URL).

  4. Domain check. domain_verified is true only when the store's own pointer names this store connection and this document. The answer is cached for up to ten minutes.

m0_get_merchant_profile returns the same policy for each of a merchant's stores, with the signed document's URL. To check a document from a mandate0 checkout: make mandate-json-check URL=<document URL>.

"agents": {
  "authorization_server": "https://platform.mandate0.com",
  "registration": ["dynamic", "client_id_metadata_document"],
  "policy": { "mode": "min_tier", "min_tier": 2 },
  "live_payments_min_tier": 2
}

How an agent proves who it is

The tier is the strongest proof on the request. Lower is stronger. A claim never raises it.

TierPlain wordsProof
1Install keyThe local m0 mcp bridge signs every request with a key made for this install (a DPoP proof, RFC 9449, tied to the access token). The key must be registered to this account and this app.
2Signed-in appThe app signed in with an https client ID metadata document (CIMD). mandate0 fetched that document from the app's domain at sign-in, so the domain backs the app.
3Known IP rangeThe request came from an address in an operator's published IP list. mandate0 reads the address its own load balancer recorded, not a header the caller wrote.
4Self-reportedOnly what the agent said: its MCP client name, user agent or X-Agent-Id. Also any app that registered itself with no metadata document.

X-Agent-Id still picks which of your agents acts. It never counts as proof.

Which hosts reach which tier

HostHow it connectsBest tier
ChatGPT on the web, Meta Muse, GrokRemote: the app's servers call mandate02, when the app signs in with a metadata document
Claude Code, Codex, Gemini CLILocal, through the m0 mcp bridge1
Claude Code, Codex, Gemini CLIRemote (the default plugin setup)Same as any remote app: 2 with a metadata document, otherwise 3 or 4

A remote app cannot hold a key on your machine, so tier 2 is the most it can reach.

Use the local bridge (tier 1)

m0 mcp is a stdio MCP server. On first start it opens your browser to sign in, makes an ES256 key for this install and registers it with POST /api/v1/agents/installs. It then forwards every MCP message to the platform with a fresh DPoP proof.

  • The key file is install-key.json, mode 0600, in $CLAUDE_PLUGIN_DATA or ~/.config/mandate0.
  • The same key always gets the same agent id, so one install shows as one agent across sessions.
  • The key belongs to the install, not the machine. There are no hardware IDs and no fingerprinting.

The @mandate0/cli package that ships m0 is not on npm yet (coming soon). Until it is, run it from a mandate0 source checkout:

bun install
bunx turbo run build --filter=@mandate0/cli
node packages/cli/dist/bin.js mcp login   # sign in and register the key, then exit

Then point your host at the bridge in place of the remote URL. For Claude Code:

claude mcp add --scope user mandate0 -- node /path/to/mandate0/packages/cli/dist/bin.js mcp

Codex uses codex mcp add mandate0 -- node …/bin.js mcp. Gemini CLI takes the same command and args in ~/.gemini/settings.json; disable the extension's remote server so only one mandate0 loads.

What a store controls

Each store sets one agent policy in the mandate0 merchant portal under Controls → Which agents can buy.

ModeWho can check out
Any agent (the default)Every agent
Minimum tierAgents at that tier or stronger: 1 (install key), 2 (signed-in app or install key) or 3 (known IP range or better)
Allow listOnly the apps and installs named: an app's domain (chatgpt.com, which also covers its subdomains) or an install agent id
  • An allow list honours a domain only from a tier 2 app, and an agent id only from a tier 1 install.
  • Allow this agent on a visit, checkout or order adds that app's domain or install id to an allow-list store.
  • mandate.json shows the mode, the minimum tier and the allowed domains. Install ids are never published.
  • A stored policy that cannot be read counts as "install keys only" (minimum tier 1), never as "any".
  • The store agent policy is in the free plan.

Searching and browsing are never refused by tier.

What checkout enforces

Checkout runs two checks before any order is placed:

  1. Live purchases need tier 2 or better, at every store, whatever the store's policy says. Sandbox has no such floor; only the store's policy applies.
  2. The store's policy. A minimum tier or an allow list refuses everyone else.

A refusal is AGENT_NOT_ACCEPTED. On the ACP API it is an HTTP 403; a caller there brings no checked identity, so it counts as tier 4. Over MCP, m0_create_checkout and m0_update_checkout return:

{
  "status": "agent_not_accepted",
  "code": "AGENT_NOT_ACCEPTED",
  "reason": "min_tier",
  "requiredTier": 2,
  "tier": 4
}

reason is live_payments_min_tier (the live-purchase floor), min_tier or allow_list. No order was placed. Switching names or headers does not change the tier, so a retry gets the same answer. To pass, connect in a way that reaches the required tier, or ask the store to allow the agent.

The shopper's own limits (per purchase, per period, approval above an amount) still apply on top.

What the record says

Every checkout and order records the tier, what the proof was, and the agent id (tier 1) or operator (tiers 2 and 3) it names. A claim is never recorded as verified.

The merchant portal (orders, carts and Agent visits), the WooCommerce Activity page (plugin 0.1.9 and later) and the Shopify app's Activity page label each order Install key, Signed-in app (domain), Known IP range or Unverified. Orders from before tiers existed read Not recorded.

How to revoke

  • One install: GET /api/v1/agents/installs lists your install keys. DELETE /api/v1/agents/installs/{keyId} revokes one. Both take your OAuth token or API key (agent:read and agent:write). Another user's key reads as not found. The next request signed with a revoked key is refused. A page in the mandate0 console to list and revoke installs is coming soon.
  • Rotate the key: m0 key rotate makes a new key. The next m0 mcp registers it with a proof from the new key, then revokes the old one. A rotated key gets a new agent id, so update any allow list that named the old one.
  • Check which key signs: m0 key show prints this install's key thumbprint, and any key waiting for registration.
  • A whole app: disconnect mandate0 in that app's own settings.

On this page