Quick Start
Two paths, timed honestly.
| What you get | Time | Needs | |
|---|---|---|---|
| Sandbox | a registered agent under a budget, a first decided payment, receipts labelled sandbox | about ten minutes | an e-mail address |
| Production | the same agent on real rails, receipts labelled production | identity verification (minutes) plus your rail’s own setup | a verified identity, a passkey, a rail: Stripe, Agentcard, your own HTTP API |
A self-serve account starts in a sandbox. Nothing built there is thrown away: the agent, its budget and its history carry over when the organization goes live.
Sandbox: ten minutes
Sign up
Sign up at web.regentprotocol.org and confirm your e-mail.
The organization you land in is a sandbox: Regent’s test rail, a practice budget in your
currency, real decisions and receipts labelled sandbox, no identity check.
Register an agent
Agents → Register Agent, give it a name. Copy the agent_… identifier from the agent’s
page: that is the agent_id the API wants, not the record UUID. The registration response
also names the responsible_party_id: you, the person answering for this agent.
Set its budget
Mandates → Create Mandate, bind it to the agent, pick a currency and three limits, for
example USD 50 per transaction, 300 a day, 5 000 a month. Created by the owner in the console,
a sandbox mandate is active at once. (A mandate asked for with an API key lands as
pending_approval and waits for the owner instead: limits are terms a person agrees to.)
Create an API key
API Keys → Create API Key. The rgnt_… value is shown once. Your organization id is on
the Settings page.
Put the four values in the environment:
export REGENT_API_KEY="rgnt_..."
export REGENT_ORG_ID="..." # Settings
export REGENT_AGENT_ID="agent_..." # Agents
export REGENT_MANDATE_ID="..." # MandatesDecide a first payment
Ask the mandate whether the agent may spend 25. The answer comes before any money moves; no SDK is needed for it.
curl -s -X POST "https://api.regentprotocol.org/v1/organizations/$REGENT_ORG_ID/mandates/$REGENT_MANDATE_ID/authorize" \
-H "Authorization: Bearer $REGENT_API_KEY" -H "content-type: application/json" \
-d '{"amount": "25", "currency": "USD", "idempotency_key": "first-25"}'A 200 carries status: "authorized", a jti and a short-lived proof token. Now ask for
500 with a new idempotency_key: the answer is 402 with
detail.code = "MANDATE_LIMIT_EXCEEDED" and category: "PER_TX". Nothing was charged in
either case, and both decisions are in the agent’s audit log, queued for anchoring.
A refund the agent makes counts against its own budget, and the payment it refunds stays counted. Budget a support agent for refunds separately from a sales agent.
Try the kill switch
Agents → your agent → Revoke. The next authorize answers AGENT_NOT_ACTIVE or
MANDATE_SUSPENDED: every mandate of a revoked agent is suspended with it.
That is the whole lifecycle: identity → mandate → decision → audit → revoke. Everything else in these docs is detail on top of it.
Production: what going live adds
Verify your identity
Settings → Start Identity Verification: a government document and a selfie with Regent’s verification provider, a few minutes. On completion your DID is issued and anchored.
Add a passkey
In a production organization the owner signs every mandate and every escalation with a
passkey, and the receipt says so (approval_method: passkey).
Take the organization live
From Settings, owner only, after verification; one-way. From then on tokens and receipts
are labelled production, Regent’s test rail is removed and the organization connects its
own: Stripe keys in the gateway vault, the owner’s Agentcard, an HTTP API of yours, or the
sidecar on your servers. Which door is yours picks the shape;
Where Regent sits shows the decision point on each rail.
An agent does not need you in the loop for this. An agent with a terminal runs
regent-control onboard, an agent in Claude or ChatGPT adds the connector; both read
agent.md and walk their owner through the same steps.
Where to next
Connector, onboard/enrol, bound credential or sidecar, by what the agent can do.
Which door is yoursEvery claim in a receipt, what is signed, how to verify it without Regent.
Receipt specificationMeasured latency, timeouts, fail-closed behaviour, idempotency and retries.
Latency and failureEvery endpoint over HTTP, no SDK required.
REST API