Menu

Explorer & Settings

Tempo Explorer Submit Project
\ud83d\udc5b AI Agent Wallet

Give Your AI Agent
A Wallet That Works

Modern AI agents need to pay for tools, data, and compute \u2014 without asking a human every time. Set spending limits, fund with USDC, and let your agent operate 24/7.

Browse Agent Projects → Monetize MCP Server
\u274c Without Agent Wallet
  • • Human approves every API wayment
  • • Can't run unsupervised overnight
  • • Shared API keys = no usage tracking
  • • $0.30 minimum kills micropayments
  • • Manual top-ups break automation
\u2705 With Agent Wallet + x402
  • • Agent pays autonomously per-call
  • • Runs 24/7 within spending budget
  • • Per-agent wallet = full audit trail
  • • $0.001 micropayments supported
  • • Auto-refill triggers via USDC

Agent Wallet Architecture

Wallet Layer
EVM-compatible wallet (EOA or smart contract) on Base. Funded with USDC. Each agent gets its own address.
Payment Client
x402 client library intercepts HTTP 402 responses and signs+submits USDC transfers automatically.
Spending Policy
Per-call limits, daily caps, allowlists of payable domains. Policy enforced before any transaction.
Audit Log
Every payment recorded on-chain and in your local DB. Full traceability for cost accounting.

Quick Start (Node.js)

import { x402Middleware } from 'x402-express';

app.use('/tools/search', x402Middleware({
  amount: '0.01',        // $0.01 USDC per call
  currency: 'USDC',
  network: 'base',
  payTo: process.env.WALLET_ADDRESS,
}));

app.post('/tools/search', (req, res) => {
  // Your tool logic here — payment already verified
  res.json({ results: search(req.body.query) });
});

Pricing Model Options

🔂
Per-Call
Charge a fixed amount for each tool invocation. Best for compute-heavy tools.
📦
Per-Session
One payment unlocks a session token valid for N calls. Best for REPL tools.
📊
Per-Result
Charge based on output size or quality score. Best for search/data tools.
🔑
Subscription Key
Agent pays monthly; middleware validates a signed JWT. Best for high-volume.

Find the Right x402 Library

mpp.best tracks 344+ MCP and LLM payment projects \u2014 find server middleware, client SDKs, and full payment stacks for every language.

Browse MCP Projects Compare Payment Options