Guardrails for AI agents that spend money.
Give your agent a budget it can't exceed. Approve big payments with a passkey. Make some things impossible. Enforced by your own smart account, not by a server you have to trust.
Testnet only · not audited · don't use with real funds yet.
Pending approval
See it in action
Claude pays four invoices on Base Sepolia: two alone, one after a Face ID approval, one blocked on-chain. Same amounts and transactions as the live run in the README.
Three layers, like a company card
You decide what your agent may do on its own, what needs your OK, and what can never happen.
Pays on its own
Small, expected payments go through automatically, within limits enforced on-chain by your smart account.
Asks you first
Anything above the limits becomes a request on your phone. Approve with Face ID or fingerprint. No seed phrase, no extension.
Never happens
Addresses on your denylist and amounts above your hard maximum are refused outright, and never even offered for approval.
Try it in 10 minutes
Everything runs on the Base Sepolia testnet with free test tokens. You need a phone or laptop with a passkey (Face ID, fingerprint, Windows Hello) and, optionally, a wallet like MetaMask as recovery address.
Open the app
Go to app.cyphosguard.com and create a passkey. If you want a recovery address, enter it now: changing it later changes your account address.
Get test ETH
Copy the account address the app shows and send it 0.0001 test ETH: one claim from the Coinbase faucet is enough (free Coinbase Developer account). Alternative: ETHGlobal faucet (free login, 0.05 ETH a day). More: Base's faucet list. Test USDC (no ETH): Circle.
Create your agent's key
On the machine where your agent runs: npx @cyphos-guard/cli agent new --env agent.env. It prints the agent's address; send that a little test ETH for gas. The key never leaves your machine.
Grant and try
In the app, click Create account, then grant the agent's address a budget. Connect it to Claude with the MCP command and ask it to pay something. Above the limit, approve on your phone.
No sign-up at all
Run everything locally on a fork of Base Sepolia: no faucet, no API key. Quick start on GitHub.
See it on-chain
Paste your account address into Basescan (Base Sepolia) to see every payment. Add the network to your wallet via Chainlist.
Stuck or found a bug?
Open an issue on GitHub. Security problems: please report privately via the repo's Security tab. Guides: MCP setup · SDK · recovery page.
Built for agents that pay
Everything an agent operator needs around the payment itself.
On-chain limits
Per-payment and per-day caps, allowed recipients and contract functions, expiry. Checked by the blockchain on every payment.
Passkey approvals
Approve big payments on your phone with Face ID or fingerprint. Each approval allows exactly that one payment, once.
Non-custodial
The service never holds a key that can move your funds. You can revoke and withdraw anytime, even without the service, via your recovery address.
Pay x402 APIs
Agents can pay HTTP 402 APIs per request in USDC, within your limits, asking you above them. Tested against the official x402 facilitator.
Works with Claude
An MCP server gives Claude Code, Claude Desktop and other MCP agents tools to pay, fetch paid APIs and check approvals.
Full audit trail
Every payment, request, approval and block, with the agent's stated reason and the on-chain receipt, in one activity log.
Verified on Base Sepolia
A real Claude agent paying four invoices from a passkey-owned account, live on testnet. Every line is on the blockchain.
| Invoice | What happened | Transaction |
|---|---|---|
| 1.20 USDC · Inference API | ✔ paid by the agent alone (within limits) | Basescan ↗ |
| 0.0005 ETH · GPU market | ✔ paid by the agent alone | Basescan ↗ |
| 4.00 USDC · annual plan | ✔ approved with a passkey on a phone, then paid | Basescan ↗ |
| 0.0003 ETH · DataHarvest | ✘ blocked (denylist); the agent didn't retry | none |
What you don't have to trust
cyphos-guard is built on the MetaMask Delegation Framework, so the important rules live in your smart account.
Enforced on-chain
Recipients, per-payment and per-day caps, contract functions, expiry, and one-shot approvals. These hold even if the cyphos-guard service is down or compromised. The optional co-signer makes the remaining rules (blocked addresses, argument ranges) binding too.
Worst case, bounded
If an agent's key is stolen, the thief gets the agent's permission and nothing more: your limits, your recipients, within the budget you put in. Revoke it in one click.
No seed phrase
Your wallet is owned by a passkey on your phone, synced by iCloud Keychain or Google Password Manager. A recovery address you control is the backup.
Honest status
Working MVP on Base Sepolia testnet. Not audited yet: until then, 25 known attacks run against a copy of the chain on every change, and the contracts have symbolic proofs and mutation tests. No token, no DAO, no mainnet before an independent audit.
For developers
A TypeScript SDK, an MCP server and a CLI. Your agent keeps its own key; the owner only ever sees its address.
// pay within limits, ask the owner above them const pw = createCyphosGuard({ policyServiceUrl, agent }); await pw.execute({ to: vendor, value, reason: "GPU credits" }); // pay an x402 API per request const { response } = await pw.payX402( "https://api.example/report", {}, { reason: "weekly market report" });
# create the agent's own key (never leaves your machine) npx @cyphos-guard/cli agent new --env agent.env # give Claude the tools: pay, fetch_paid_api, check_approval… claude mcp add cyphos-guard \ -e CYPHOS_AGENT_PRIVATE_KEY=0x… \ -e NETWORK=live \ -e CYPHOS_POLICY_SERVICE_URL=https://app.cyphosguard.com/api \ -- npx -y @cyphos-guard/mcp
Open source (Apache-2.0): github.com/Phosse136/cyphos-guard · npm: @cyphos-guard/sdk, @cyphos-guard/mcp
What's new
The biggest changes, newest first.
- Revoke now switches the x402 vault offThe first outside security report (issue #2): money left in an agent's x402 vault stayed payable with the agent key after a revoke. Revoke and re-grant now empty the vault in the same step and switch it off for good, so even payments the agent signed earlier are refused. The recovery page does the same after an emergency stop. Vaults made before today are emptied but can't be switched off; re-grant the agent to get a new one. Review.
- First live attack check: 25 of 25 blockedThe same 25 attacks, this time against a real grant on Base Sepolia instead of a copy: every one reverted for the expected reason, and a legitimate payment still went through. The result is on the stats page; details and transactions. Got an attack we missed? Suggest it.
- Faster appThe approver loads 62% less JavaScript before it shows anything, and every agent payment needs two fewer network round trips.
- We attack ourselvesOn every change, a test agent with a stolen key tries 25 known attacks (overspending, paying someone else, approve and batch tricks, re-delegation, forged vault payments) straight against a copy of Base Sepolia; every one must fail. The contracts got symbolic proofs, invariant and mutation tests. Threat model.
- Per-payment limits for tokens are now enforced on-chain"At most 2 USDC per payment" holds even if the agent bypasses the SDK, with or without the co-signer. A new stateless enforcer, suggested in a review on r/ethdev. Re-grant an agent to get it.
- Fewer passkey prompts when you grant an agent3 instead of 4 for a re-grant, a progress label for each step, and a cancelled or failed attempt can simply be retried.
- Public usage statistics and dark modeAnonymous totals, updated hourly (each number needs at least 5 accounts). A light/dark switch on every page.
- Easier startA 10-minute guide, and one claim from the Coinbase faucet is now enough to create your account.
- Emergency stopWith your recovery wallet you can stop every agent at once on the recovery page, without the cyphos-guard service.
- Open to everyone, and on npmThe public instance takes sign-ups. SDK, MCP server and CLI are on npm and in the MCP Registry.
- Agents pay HTTP APIs (x402)Per-request payments within your limits; a vault per agent enforces the list of allowed sellers on-chain.
Every change: commit history on GitHub.
Questions
Short answers to what people ask first.
Can my agent drain my wallet?
No. It can only spend from the account you funded, only to recipients you allowed, and only up to your limits per payment and per day. Your main wallet is never connected.
Do I need a seed phrase or a browser extension?
No. You sign with a passkey (Face ID, fingerprint or security key). Optionally, you add a recovery address from a wallet you already have.
What happens if cyphos-guard goes offline?
Your funds stay in your smart account and the on-chain limits keep holding. With the wallet you set as recovery address (e.g. MetaMask), you can stop every agent at once and move everything out on the recovery page, which works without the cyphos-guard service.
Which networks?
Base Sepolia testnet today (Ethereum Sepolia as fallback). Mainnet only after an independent security audit.
Which agents work with it?
Anything that can call the TypeScript SDK, and any MCP client such as Claude Code or Claude Desktop.
Give your agent a budget, not your keys.
Try it on Base Sepolia testnet with free test tokens.
Open the appTestnet only. cyphos-guard has not been audited. Do not use it with real funds.