Let AI agents use your app, with a person's approval#
An agent asks, a person taps a passkey, and your app verifies that approval offline. No password, API key or OAuth token is ever shared with the agent.
- AgentGET /notesshows its passport
- App401 grant_requiredsays what is missing
- Agentasks for an approvalread your notes
- Nodeshows the sentencewritten by the app
- Persontaps a passkeysigns that exact sentence
- Nodegives the grantthe signed approval
- AgentGET /noteswith the grant and a fresh proof
- App200verified offline
Choose your path#
| You want to | Start with |
|---|---|
| Accept agents in your app or API | Quickstart: a protected endpoint in about 20 lines |
| See it work before reading anything | Try it live: run an agent against the demo, approve with your own passkey |
| Write an agent that asks for approval | Build an agent |
| Use an agent yourself | Use AllowedBy |
| Let your AI assistant do the integration | Build with an AI assistant |
Your language#
- Python
WSGI, ASGI (Starlette), FastAPI, Django, Flask, MCP, LangChain, OpenAI Agents SDK
- JavaScript
Node.js http, Express 4.18+ and 5, Fastify 4.20+ and 5, Hono 4.0.6+, Next.js 14.2.25+ (App Router), NestJS 10+ (Express platform), MCP TypeScript SDK 1 (agent), Vercel AI SDK 5, 6 and 7 (agent), LangChain.js 1 (agent), OpenAI Agents SDK 0.22 (agent), Agent class, no framework (agent)
- Go
net/http, Gin, Echo, chi
- Java
Jakarta Servlet 6 on Tomcat 10.1, Jakarta Servlet 6 on Tomcat 11, Jakarta Servlet 6 on Jetty 12, Jakarta Servlet 6 on Undertow 2.3, Spring Boot 4, JDK HTTP server, Kotlin 2 on the JDK HTTP server
- C#
ASP.NET Core minimal APIs, ASP.NET Core MVC controllers, HttpListener (no ASP.NET Core)
- PHP
PSR-15, Laravel, Symfony, plain PHP
- Ruby
Rack 3 on Puma, Rack 3 on WEBrick, Rails 8.0 on Puma, Rails 8.0 on WEBrick, Sinatra 4 on Puma, Sinatra 4 on WEBrick
- Rust
axum, tower, hyper, actix-web
What you can build#
- 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.
What stays true#
- The person decides. They see a sentence your app wrote, sign exactly that, and can withdraw it at any time.
- Your app verifies. Every request carries a proof for that request only. There is no call to a third party to check it.
- Nothing is shared. The agent holds no credential of the person. A stolen approval is useless without the agent's key.
- Serious actions are asked one by one. The approval names the exact request and works once.
Every example on this site runs on each version of the product before it is published. The results are public.