Install
openclaw skills install agent-fuelAutonomous agent wallet management with MoonPay auto top-up, x402 payments, and OpenWallet Standard. Agents never run out of gas.
openclaw skills install agent-fuelKeep your agent running by automatically managing wallet balances, topping up via MoonPay, and paying for x402-enabled APIs.
npm install -g @moonpay/cli
mp login
mp wallet create)mp wallet balance
When the agent detects low balance (configurable threshold), trigger:
mp buy --amount 20 --currency USDC --chain base
mp swap --from ETH --to USDC --amount 0.01 --chain base
For APIs that return HTTP 402, the agent should:
PAYMENT-REQUIRED header for amount and payment addressPAYMENT-SIGNATURE headerThe agent should periodically check balance and act:
IF balance < minBalance:
IF dailySpend < maxDailySpend:
mp buy --amount {topUpAmount} --currency USDC
notify human "⛽ Auto top-up: ${topUpAmount} USDC"
ELSE:
notify human "⚠️ Daily spend limit reached. Manual top-up needed."
Store in ~/clawd/.secrets/agent-fuel.json:
{
"chain": "base",
"currency": "USDC",
"minBalance": 5.0,
"topUpAmount": 20.0,
"maxDailySpend": 100.0,
"alertThreshold": 2.0,
"x402Enabled": true,
"x402MaxPerRequest": 0.10
}
maxDailySpend without human approvalalertThreshold| Command | Description |
|---|---|
mp wallet balance | Check all wallet balances |
mp wallet create | Create new wallet |
mp buy --amount N --currency TOKEN | Buy crypto with fiat |
mp swap --from X --to Y --amount N | Swap tokens |
mp send --to ADDR --amount N --currency TOKEN | Send tokens |
mp wallet history | Transaction history |
mp mcp | Start MCP server for agent integration |