Install
openclaw skills install @maximberg/letagentpaySpending guardrails for AI agents — budget limits, category restrictions, approval workflows, audit trails, and x402 crypto-micropayment authorization.
openclaw skills install @maximberg/letagentpayYou have access to LetAgentPay tools for managing purchases with budget controls. Every purchase request goes through a deterministic policy engine that checks 9 rules before approving.
Use LetAgentPay tools whenever the user asks you to:
request_purchaseSubmit a purchase request for policy evaluation. Always call this BEFORE making any purchase.
Required fields:
amount — the price (positive number in account currency)category — purchase category (call list_categories first if unsure)Optional fields:
merchant_name — store or service namedescription — what is being purchasedagent_comment — explain WHY this purchase is needed (shown to the human reviewer)Response statuses:
auto_approved — purchase approved automatically, proceed with buyingpending — sent to human for manual review, do NOT proceed yetrejected — policy denied this purchase, do NOT proceedcheck_budgetView current budget breakdown: total budget, amount spent, held (pending), and remaining.
list_categoriesGet all valid purchase categories. Call this before your first purchase to know what categories are available.
my_requestsCheck the status of a specific purchase request by its ID. Use this to check if a pending request has been approved.
list_requestsList your purchase requests with optional filters: status (pending, approved, rejected, etc.), limit, offset.
confirm_purchaseAfter completing an approved purchase, confirm the result:
success: true — purchase completed (optionally provide actual_amount if different from requested, and receipt_url)success: false — purchase failed (budget is refunded)x402_authorizeRequest authorization for an on-chain crypto-micropayment (USDC on Base). Call this when accessing an x402-enabled API that returns HTTP 402.
Required fields:
amount_usd — payment amount in USDpay_to — recipient wallet addressOptional fields:
asset — token symbol (default: USDC)network — CAIP-2 network ID (default: eip155:84532 for Base Sepolia)resource_url — URL of the resource being paid forcategory — purchase category (default: api)Response:
authorized: true — proceed with on-chain payment, use authorization_id for reportingauthorized: false — do NOT pay, reason explains why (DAILY_BUDGET_EXCEEDED, DOMAIN_BLOCKED, etc.)x402_reportReport a completed x402 transaction. Call after the on-chain payment settles.
Required fields:
authorization_id — ID from x402_authorizetx_hash — on-chain transaction hashx402_budgetView x402 payment budget: remaining balance, daily/monthly limits, allowed chains, and registered wallets.
Follow this sequence for every purchase:
list_categories if you don't know valid categories yetcheck_budget to see remaining fundsrequest_purchase with amount, category, and a clear agent_comment explaining the needauto_approved: proceed with the purchase, then call confirm_purchasepending: tell the user the request is awaiting approval. Do NOT proceed. Check back with my_requests laterrejected: tell the user why (the response includes policy check details). Do NOT attempt the purchaseconfirm_purchaseWhen accessing a paid API that returns HTTP 402:
x402_authorize with amount, pay_to address, and resource URLauthorized: true: sign and send the on-chain transaction with your walletauthorized: false: do NOT pay, tell the user the reasonx402_report with authorization_id and tx_hashUse x402_budget to check remaining x402 budget and see which chains/wallets are configured.
request_purchase firstpending or rejectedagent_comment — it helps the human reviewer decide fasterconfirm_purchase after completing (or failing) an approved purchasepending, do NOT repeatedly poll. Tell the user and move on to other taskspolicy_check response)x402_authorize before signing any on-chain transactionx402_report after an x402 payment settles — this is the audit trailx402_authorize returns authorized: false, do NOT attempt the on-chain paymentThis skill requires the letagentpay-mcp MCP server. Add to your OpenClaw config (~/.openclaw/config.json):
{
"mcpServers": {
"letagentpay": {
"command": "npx",
"args": ["-y", "letagentpay-mcp"],
"env": {
"LETAGENTPAY_TOKEN": "${LETAGENTPAY_TOKEN}"
}
}
}
}
Get your agent token at letagentpay.com or from your self-hosted instance.
For self-hosted LetAgentPay, add the API URL:
{
"mcpServers": {
"letagentpay": {
"command": "npx",
"args": ["-y", "letagentpay-mcp"],
"env": {
"LETAGENTPAY_TOKEN": "${LETAGENTPAY_TOKEN}",
"LETAGENTPAY_API_URL": "http://localhost:8000/api/v1"
}
}
}
}