2FA for AI agents
Your agent hits 2FA.
OTPilot answers.
Store a site's authenticator secret once. Your agent gets the current 6-digit code over MCP or one API call — never the seed. Every fetch is logged, and you can require a human tap before any code goes out.
- ~30s
- paste to first code
- 0
- seeds ever returned
- 100%
- fetches audited
Try it — no signup
The code below is computed in your browser. For the API snippet we seal the secret inside a 24-hour demo token (AES-256-GCM); nothing is saved to a database. Testing only.
••• •••
Your rotating code appears here.
How it works
Three steps, then your agent never stalls on a 2FA prompt again.
01
Save the secret
Paste the setup key or drop the QR screenshot when you turn on authenticator-app 2FA. It is encrypted on arrival and never shown again.
02
Give your agent a key
Create an agent key scoped to just the accounts it needs, with a rate limit and optional IP allowlist. Paste the MCP config or the curl line.
03
It asks, you see everything
The agent calls get_code when the login asks. You get a full audit trail — and, if you want, a one-tap approval before each code is released.
agent › Logging into Shopify admin… page asks for an authentication code. agent › otpilot.get_code({ account: "shopify", reason: "export weekly orders" }) otpilot › { "code": "482913", "expires_in": 17, "next_code": "105227" } agent › Entered code. Signed in. Exporting orders…
Illustrative transcript.
Security model
Built so the agent can log in — and nothing more.
The seed never leaves
AES-256-GCM per row, server key held outside the database. No endpoint returns a seed — not even to you.
Scoped agent keys
Each key reads only the accounts you tick, with its own per-minute limit, IP allowlist and one-click revoke.
Human approval
Require a tap for sensitive accounts. Approve or deny from your phone; requests expire after 5 minutes.
Full audit trail
Every fetch: time, key, account, IP, user agent, outcome and the reason the agent gave. Filter, share, export.
Pricing
Start free. Upgrade when your agents get busy.
Pro
$12/month, or $120/year
- 50 secrets
- Unlimited agent keys
- 20,000 code fetches / month
- Human approval per code
- 90-day audit log + CSV export
- IP allowlist per key
- Webhook on every fetch
Team
$49/month, 5 members included
- Unlimited secrets
- 5 members share one vault
- 100,000 code fetches / month
- Everything in Pro
- 1-year audit retention
- Extra members $8/seat — contact us beyond 5.
FAQ
Questions
Does my agent ever see the TOTP seed?
No. The seed is encrypted with AES-256-GCM when you save it and is never returned by any API, MCP tool or dashboard screen — only its last 4 characters are shown. Agents receive the current 6-digit code, its expiry and the next code.
Where do I find the TOTP secret for a site?
When you turn on 2FA with an "authenticator app", the site shows a QR code. Next to it there is usually a link like "Can't scan? Enter this key manually" that reveals the secret. Paste that key, or upload a screenshot of the QR code. Our per-site guides walk through it for 150 sites.
Can a human stay in the loop?
Yes. Turn on approval for a secret (Pro). When an agent asks for a code, you get an email with Approve / Deny, valid for 5 minutes. The agent polls and only gets the code after you approve. Every request and decision lands in the audit log.
Which agents does it work with?
Anything that can make an HTTP request or speak MCP: Claude (Code, Desktop, computer use), Cursor, Browser Use, Stagehand, Playwright, Puppeteer, the OpenAI Agents SDK, n8n and Make. Cloud and serverless agents work too, because the endpoint is hosted.
What about SMS or email codes?
OTPilot handles authenticator-app (TOTP) codes only, which most business SaaS supports. SMS and email one-time codes are not covered yet.
Is this allowed by the sites I log into?
OTPilot is for accounts you own and are allowed to automate. Some sites restrict automated logins in their terms; check them. We do not create accounts, and every code fetch is logged and rate-limited.