/install agent-fuel
Agent Fuel — Autonomous Payment & Gas Management
Keep your agent running by automatically managing wallet balances, topping up via MoonPay, and paying for x402-enabled APIs.
Prerequisites
- MoonPay CLI installed and authenticated:
npm install -g @moonpay/cli
mp login
- A funded wallet (can be created via
mp wallet create)
Quick Start
Check Balance
mp wallet balance
Auto Top-Up When Low
When the agent detects low balance (configurable threshold), trigger:
mp buy --amount 20 --currency USDC --chain base
Swap Tokens
mp swap --from ETH --to USDC --amount 0.01 --chain base
x402 Payments
For APIs that return HTTP 402, the agent should:
- Parse the
PAYMENT-REQUIREDheader for amount and payment address - Sign the payment using the agent wallet
- Retry the request with
PAYMENT-SIGNATUREheader - Log the transaction
Balance Monitoring
The agent should periodically check balance and act:
IF balance \x3C minBalance:
IF dailySpend \x3C 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."
Configuration
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
}
Safety Rules
- NEVER exceed
maxDailySpendwithout human approval - ALWAYS log transactions with reason
- ALERT human when balance drops below
alertThreshold - PAUSE spending if 3+ top-ups in 1 hour (possible loop)
MoonPay CLI Reference
| 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 |
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-fuel - After installation, invoke the skill by name or use
/agent-fuel - Provide required inputs per the skill's parameter spec and get structured output
What is Agent Fuel?
Autonomous agent wallet management with MoonPay auto top-up, x402 payments, and OpenWallet Standard. Agents never run out of gas. It is an AI Agent Skill for Claude Code / OpenClaw, with 125 downloads so far.
How do I install Agent Fuel?
Run "/install agent-fuel" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Agent Fuel free?
Yes, Agent Fuel is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Agent Fuel support?
Agent Fuel is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Agent Fuel?
It is built and maintained by Zedit42 (@zedit42); the current version is v1.0.0.