Recipes#
One task each, the same in every language. Choose your language once and it stays chosen.
- See which agent is calling
Know the agent and its verified operator, before any person is involved.
- Let an agent read
The person approves once with a passkey; the approval is reused until it expires or they withdraw it.
- Let an agent write
A change the person can undo: one approval, reused like a read.
- Ask before deleting
A change that is hard to undo: your app asks the person for that exact request, and the approval works once.
- Take a payment
The person approves the amount and the payee; any other amount or payee is refused.
- Take a high-value payment
Level 3: a verified identity and a hardware passkey. Anything weaker is refused.
- Set a spending limit
The person approves an amount per month once; the SDK keeps the total and refuses what goes over.
- Start and cancel a subscription
The person approves the plan and its monthly price once; you charge it until they cancel.
- Accept a sub-agent
An agent hands a sub-agent part of its approval, never more, and it ends when the person withdraws the first.
- Let the person withdraw
The person takes an approval back on their node; your app refuses it from the next refresh.
- Serve only the person's own data
human_id is the same person every time at your app: look their data up with it.
- Refuse in your own handler
Your rules still apply: the agent receives your status and your JSON, and can correct itself.
- Sell to a company
An employee approves for their company, within the mandate it gave them.
- Ask for personal data
The person shares what they choose, encrypted to your app. The agent never sees it.
- Serve several customers
Each customer account has its own approvals, and can tighten your rules.
- Require two people
Two people of a group approve the same action, each with their own passkey.
- Test your app
Run your app's tests without a browser, a phone or a node.
Every level, every class#
A use case is listed when an app proves it, in each language that says yes.
| Level | Class | Use case | Python | JavaScript | Go | Java | C# | PHP | Ruby | Rust |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | read |
See which agent is calling | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | read |
Quickstart | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | read |
Let an agent read | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | read |
Accept a sub-agent | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | read |
Let the person withdraw | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | read |
Serve only the person's own data | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | write |
Let an agent write | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | write |
Set a spending limit | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | write |
Refuse in your own handler | yes | yes | yes | yes | yes | yes | yes | yes |
| 1 | write |
Serve several customers | yes | not yet | not yet | not yet | not yet | not yet | not yet | not yet |
| 1 | write-hard |
Start and cancel a subscription | yes | yes | yes | yes | yes | yes | yes | yes |
| 2 | write-hard |
Ask before deleting | yes | yes | yes | yes | yes | yes | yes | yes |
| 2 | write-hard |
Sell to a company | yes | not yet | not yet | not yet | not yet | not yet | not yet | not yet |
| 2 | write-hard |
Ask for personal data | yes | not yet | not yet | not yet | not yet | not yet | not yet | not yet |
| 2 | write-hard |
Require two people | yes | not yet | not yet | not yet | not yet | not yet | not yet | not yet |
| 2 | irreversible |
Take a payment | yes | yes | yes | yes | yes | yes | yes | yes |
| 3 | irreversible |
Take a high-value payment | yes | yes | yes | yes | yes | yes | yes | yes |
Each recipe is taken from an app that runs on every version, with a real node, a real agent and a test passkey, refusals included. See the results.