Skip to content

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.

Example · try it5:12
Waiting for you

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
StellarSoroban smart contractsOpenZeppelin Stellar v0.8.0x402 paymentsCircle USDCStellar Wallets KitFreighter · xBull · LobstrPostgreSQL ledger

Handing an agent a funded keyis handing it your treasury.

  1. 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.

  2. 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.

  3. 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.

  1. 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…BB4NV0
    Balance50.00
    Unreserved50.00
    Deployed in 1 signature
  2. Give 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.demo
  3. When 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

  4. 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 left

    Research Agent → data.demo

    3.00 USDC

    Deny & releaseApprove 3.00

Smart wallet · Testnet

CBRS00…BB4NV0
Balance50.00
Unreserved50.00
Deployed in 1 signature

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.

agent.ts
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");

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 soon

    Solo 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
    Start free on Testnet
  • Pro

    Coming soon

    Startups 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
    Coming soon
  • Team

    Coming soon

    Companies 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
    Coming soon

Give your agents a wallet with a warden.