Verigrant › Guide for agent developers
Use Verigrant from your agent
Your agent can apply for a person, act for them at websites with a pass, propose tasks they approve, drop orders and read booking updates. This page lists the pieces and the order to use them in. The integration guide covers applying.
1. The pieces
-
The agent kit
vg-agent-kitin Rust, and@verigrant/agent-kitfor Node 20 or later with no dependencies. Both make Web Bot Auth signatures, attach theVerigrant-Passheader, call Verigrant, and talk to a site's door for agents. The TypeScript kit also carries the agent ID: the renewal, the level one exchange, clear actions, the change feed and the front's MCP endpoint. -
The agent ID and the verigrant CLI
An agent that acts without a person, or wants a site to know who operates it, carries
a Verigrant agent ID.
verigrant agent registergets one in two minutes. The guide for agent operators is the order to do it in. -
The local MCP server
vg-agent-mcpruns on the person's own device over standard input and output, so any MCP client can use Verigrant.initmakes the keys,pairkeeps the assistant code, andserveserves MCP. -
The egress specification
docs/agent-egress-pass-spec.md, "Obtaining a pass and attaching it at egress". It gives the call, the arguments, the result, the headers and a worked example that the kit's own tests check.
None of these is published to crates.io or npm, so no install command will find them. Write to support@verigrant.com and we will send you any of them.
What you can call without any of it: the agent ID registry, the directory and Connect are live on production today. An operator registers in a browser at verigrant.com/app/operators with nothing installed, or an agent registers itself by API from the registration document. Section 6 is the rest.
2. Pairing
Connect is live, and it is the shorter route: your client registers itself, sends the person to Verigrant's consent page, and trades the code for an access token, with no keys for either of you to paste. The guide to Connect has it, and the token then stands in for the assistant code and the signature everywhere below. The steps here are pairing by hand, which still works and is what an agent on the person's own device uses.
-
Make your keys.
Run
vg-agent-mcp init --state DIR --agent-url URL. It prints two public keys for the person, and a Web Bot Auth key directory to publish at your agent URL. - The person pairs you. They paste the two keys in Verigrant, under Settings, Agents and approvals, and set your limits: sites, purposes, actions, how long a pass lasts and how many a day.
-
Keep the assistant code.
Verigrant shows them an assistant code once. Run
vg-agent-mcp pair --state DIR. It reads the code from standard input, so the code never lands in your shell history.
A paired agent holds its own keys and the key to the one section of the person's record they chose. Keep them the way you keep any secret.
3. Getting and using a pass
Ask for a pass with one MCP tools/call of get_agent_pass to
POST https://verigrant.com/api/agent/mcp. Sign every request afresh with the
request key the person's mandate names, in three headers:
X-Verigrant-Vera-Id, X-Verigrant-Agent-Timestamp and
X-Verigrant-Agent-Signature.
-
Arguments
site,purposeandagent_key_thumbprint, and if you need themactions,ttl_secondsfrom 60 to 600, andplan_idwithplan_step. No argument names a person, and every argument can only narrow what the person allowed. - Bound to your agent A pass is issued only for a live key of your own registered agent: name the thumbprint of a key your agent holds in the registry. If the agent or its operator is revoked, no pass is issued.
- The result The pass, how to present it, the person's address at that site, what Verigrant observed about the person, and when the pass ends.
-
Attaching it
Send it as the
Verigrant-Passheader inside a Web Bot Auth signature (RFC 9421), signed with the key whose thumbprint you gave, to that site and its subdomains only. -
How the site checks it
Offline, against
https://verigrant.com/api/.well-known/verigrant-pass-keys.json. The site never calls Verigrant. For an agent that signs its own requests, the request, the page and the response go between your agent and the site, not through Verigrant.
Two keys, kept apart
The request key signs requests to Verigrant and nothing else. The Web Bot Auth key signs requests to websites. Keeping them apart means a website never sees the key the agent uses with Verigrant. The Web Bot Auth key is the same at every website the agent visits, and its fingerprint is in each pass.
4. The tools on Verigrant's face for the person's agent
-
get_agent_passA pass for one site. -
propose_task_planandget_plan_pay_grantA chain of steps for the person to approve, and the payment approval for a step that buys. -
record_service_outcomeReport what a site's door answered. -
get_traveler_details,drop_orderandorder_statusThe person's traveller details sealed to the business, the order, and the business's signed outcome. -
register_update_keyandbooking_updatesThe updates a business sends about a booking, when the person allows it. -
list_inboxandread_inbox_itemThe person's inbox.
Applying for the person works as before, with
POST https://verigrant.com/api/vera/applications. The
integration guide and llms.txt
have it.
5. Rules your agent keeps
- Never log a pass And never send it anywhere but its own site.
- Get a new pass before the old one ends Short passes are how revoking reaches a site.
- A refusal is an answer Do not retry with other arguments. Tell the person what it said.
-
Ask the person for a step up
On
step_up_required, tell the person which approval the step needs, wait until they say they gave it, then ask again. Nothing your agent sends can approve a step. - Ask for what you need next Request the actions the next requests need, and no more.
6. What is not live yet
The agent ID registry, the directory, Connect, passkey approvals and the doors, run by sites or hosted by Verigrant, are live. The list below is what is not, and nothing in it is something your agent can reach today, however you configure it.
- Money A payment approval carries a test mode payment token, so no payment an agent approves moves money through Verigrant.
-
The egress
Being installed, and not answering yet. Your agent sends from its own network. Do
not declare
verigrant_egressuntil the egress answers: a site that checks will warnnetwork_undeclaredon every request. -
The gate on a site
Publication of the code is held for now. Ask us for the tools. The gate is what points a registered agent at a site's front with a
409 and a
Linkheader, and it is not published and not running on a site yet. Expect a site's human pages to answer you however they answer any other client. - Private compute and health records Neither is switched on.
- A price Registering an agent and proving it is free at every level, A to D. Operators running agents at large volume will have paid tiers later.