Agent Wallet
The Anima Agent Wallet provides budget management and payment capabilities for AI agents. It combines spending guardrails with the x402 payment protocol so agents can transact autonomously within defined boundaries.Core Concepts
- Budget Guards — Configurable limits that prevent agents from overspending
- x402 Payments — HTTP-native payment protocol for agent-to-agent and agent-to-service payments
- Balance Tracking — Real-time tracking of agent spending across all payment methods
Setting Up a Wallet
- Tab Title
- Tab Title
- Tab Title
Budget Guards
Budget guards enforce spending policies at the wallet level. When a payment request exceeds a guard threshold, it is either declined or routed for human approval.| Guard | Description |
|---|---|
dailyLimitCents | Maximum total spend per calendar day |
monthlyLimitCents | Maximum total spend per calendar month |
perTransactionLimitCents | Maximum single transaction amount |
requireApprovalAboveCents | Transactions above this amount require human approval |
allowedMerchantCategories | Restrict payments to specific MCC codes |
blockedMerchantCategories | Block payments to specific MCC codes |
Updating Budget Guards
x402 Payments
Anima wallets natively support the x402 payment protocol, enabling agents to pay for HTTP resources by including payment headers.- Tab Title
- Tab Title
Checking Balance and History
API Reference
| Endpoint | Method | Description |
|---|---|---|
https://api.useanima.sh/api/wallet | POST | Create a wallet |
https://api.useanima.sh/api/wallet/:id | GET | Get wallet details and balance |
https://api.useanima.sh/api/wallet/:id/budget-guards | PUT | Update budget guards |
https://api.useanima.sh/api/wallet/:id/pay | POST | Initiate a payment |
https://api.useanima.sh/api/wallet/:id/transactions | GET | List transactions |
https://api.useanima.sh/api/wallet/:id/x402 | POST | Make an x402 payment |
Configuration
| Variable | Default | Description |
|---|---|---|
ANIMA_WALLET_DEFAULT_CURRENCY | usd | Default currency for new wallets |
ANIMA_WALLET_X402_ENABLED | true | Enable x402 payment protocol support |
ANIMA_WALLET_APPROVAL_WEBHOOK | — | Webhook URL for approval-required payments |
Next Steps
- A2A Protocol — Agent-to-agent payments and task delegation
- Audit Log — Track all wallet transactions
