For anyone running AI agents that pay for things
Spending limitsfor AI agents,enforced on-chain.
Give your agents a wallet they can't overspend. Small payments go through on their own; bigger ones wait for your OK — and if you don't answer, they don't go through.
Research Agent wants to pay data.demo
3.00 USDC
Over its 1.00 USDC auto-approve limit
Phase 1 · verified end-to-end on Stellar Testnet
- Contract & SDK tests passing
- 23/23
- Held by any agent key
- 0 XLM
- Stellar settlement time
- 5s
- To integrate — kw.fetch()
- 1 call
Handing an agent a funded keyis handing it your treasury.
- 01
Unlimited treasury exposure
A hallucinating, buggy or prompt-injected agent with a funded key can drain the wallet in seconds.
Per-agent daily USDC budgets, enforced inside the wallet's __check_auth on every transfer.
- 02
No human checkpoint
High-value or unusual purchases settle immediately, with nobody asked.
Payments above the auto-approve limit become on-chain holds that wait for your signature. Silence means no.
- 03
Logs you can edit
Rules enforced only in an app server can be bypassed or rewritten if the backend is compromised.
Every settlement and rejection is a Soroban event, indexed and reconciled against chain state.
How it works
Four steps from funded key to governed agent.
One signature through KryptWardenFactory creates an isolated Soroban custom account. Fund it with Circle USDC — agents spend from here, never from your account.
Smart wallet · Testnet
CBRS00…BB4NV0Deployed in 1 signatureBalance50.00Unreserved50.00Give the agent a daily budget, an auto-approve limit, a seller allowlist and an expiry. Its key is generated on its own machine and holds 0 XLM.
Research Agent · policy v1
- Daily budget
- 15.00 USDC
- Auto-approve ≤
- 1.00 USDC
- Hold timeout
- 10 min
- Expires
- 30 days
search.demollm.demodata.demoWhen a paid API answers 402, the SDK signs a Soroban auth entry. Anything at or under the limit settles instantly through an unmodified x402 facilitator.
agent.ts · kw.fetch()
GET /paid/search?q=soroban
402 Payment required · 0.05 USDC
sign Soroban auth entry · hold: none
200 Settled · fee sponsored · 0 XLM
The relayer reserves budget as a hold and it lands in your Approvals inbox with a countdown. Approve with your wallet, or let it expire and fail closed.
Hold #3
9:41 leftResearch Agent → data.demo
3.00 USDC
Deny & releaseApprove 3.00
Step 1 of 4
The owner dashboard
Everything you need to sayyes, no, or stop — fast.
Approvals inbox
Live holds with a countdown, budget impact and one-signature approve or deny.
One-tap kill switch
OpenZeppelin Pausable freezes every agent on-chain while owner withdrawals keep working.
Spend ledger
Settled and rejected payments decoded from Soroban events, reconciled against chain state.
Exposure planner
See worst-case daily exposure and wallet runway before you sign a policy.
Zero-XLM relayer
Holds are fee-sponsored after a free simulation, so agent keys never need gas.
Zero-fork x402
Works with unmodified @x402/stellar facilitators. No custom events in __check_auth.
For developers
One call.Any TypeScript agent.
Swap fetch for kw.fetch. The SDK handles 402 challenges, signs Soroban auth entries, waits on holds and re-fetches a fresh 402 before settling, so a seller can't bait-and-switch the price.
SDK and REST API reference, contract errors and addresses, and a 15-minute end-to-end test on your own wallet at developers.kryptwarden.xyz.
import { createKryptWarden } from "@kryptwarden/sdk";
const kw = createKryptWarden({
walletAddress: process.env.KW_WALLET_ADDRESS!,
agentSecretKey: process.env.KW_AGENT_SECRET_KEY!, // 0 XLM
network: "stellar:testnet",
});
// <= $1.00 settles instantly. Above it, waits for you.
const res = await kw.fetch("https://demo-apis.kryptwarden.xyz/paid/search?q=soroban");
Don't take our word for it
Every step is on-chain.Check it yourself.
- Auto-approved x402 payment0.05 USDC → search.demo
b29fa508…102e - Zero-XLM hold request3.00 USDC → data.demo
d3b8e47d…8010 - Owner approve_hold(#3)Wallet signature
d8bf521f…22cd - Approved hold settled3.00 USDC → data.demo
3473d66d…5905 - Policy rejectionREJECTED_SELLER → scrape.xyz
451aa27a…ebd4 - Policy rejectionREJECTED_BUDGET → data.demo
1159cf06…c256
Pricing Coming soon
Free while we're on Testnet.Simple plans when we go live.
The contracts and SDK stay open source. Paid plans cover the hosted service around them: approvals, alerts, history and audit.
Free
Coming soonSolo developers and hackathons
$0
Free for everyone during Testnet
- 1 smart wallet
- A few agents with their own budgets
- Monthly payment volume cap
- 30-day spend ledger history
- Open-source contracts and SDK
Pro
Coming soonStartups running agents in production
Monthly
Pricing announced at Mainnet launch
- Everything in Free
- More agents and higher volume
- Full ledger history
- Approval alerts by email, Slack or Telegram
- Approve holds from your phone
- CSV and accounting export
Team
Coming soonCompanies with a finance team
Custom
Talk to us
- Everything in Pro
- Multiple approvers above a set amount
- Roles and SSO
- Audit reports
- SLA
- Self-hosted licence