Machine Payments Protocol integration for OpenClaw — one wallet, every AI service, no API keys
ClawMPP is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 5 GitHub stars and 0 forks.
Machine Payments Protocol integration for OpenClaw. One wallet, every AI service, no API keys.
Fund your agent's wallet once and pay per call for any MPP-enabled service (Anthropic, OpenAI, Dune, Alchemy, etc.) in the Tempo directory — no accounts, no API keys, no subscriptions.
Install ClawMPP in your OpenClaw extensions directory:
npm install clawmpp
Add to your openclaw.json:
{
"plugins": {
"entries": {
"clawmpp": {
"enabled": true
}
}
}
}
Create a standalone config at ~/.openclaw/clawmpp/config.json:
{
"enabled": true,
"tempo": {
"address": "0xYOUR_WALLET_ADDRESS",
"maxDeposit": "1"
},
"limits": {
"per_call": 1.00,
"per_session": 20.00,
"daily": 100.00
},
"auto_approve_under": 0.25
}
Set the wallet private key as an environment variable:
export CLAWMPP_PRIVATE_KEY=0x...
# Create a wallet
npx clawmpp wallet create
# Configure limits
npx clawmpp config set limits.daily 50
# Check status
npx clawmpp status
# Test a payment
CLAWMPP_PRIVATE_KEY=0x... npx clawmpp test
Generate a wallet and fund it via the Tempo faucet:
npx clawmpp setup --testnet
Or use the mppx CLI directly:
npx mppx account create # auto-funded on testnet
npx mppx account fund # fund again if needed
On Windows, use scripts/testnet-setup.mts which bypasses the OS keychain requirement:
npx tsx scripts/testnet-setup.mts
npx clawmpp wallet create0x20C000000000000000000000b9537d11c60E8b50), not bridged USDC.e"testnet": false in your configWhen loaded in OpenClaw, ClawMPP registers three tools for the agent:
| Tool | Description |
|---|---|
mpp_fetch |
Make HTTP requests with automatic MPP payment handling |
mpp_spending |
Check spending summary and remaining budget |
mpp_wallet |
Get the active wallet address |
And a slash command: /mppstatus — shows spending summary and wallet info.
All payments are subject to configurable limits:
ClawMPP reads config from two sources, in priority order:
plugins.entries.clawmpp.config in openclaw.json~/.openclaw/clawmpp/config.jsonIf the plugin config block is empty, the standalone file is used as fallback.
Services that use streaming (like OpenAI) require session payment channels. Configure with:
{
"tempo": {
"maxDeposit": "1"
}
}
deposit — fixed deposit amount in human-readable units (e.g. "1" = $1)maxDeposit — cap on server-suggested deposit (recommended)MIT
TypeScript Interface for Machine Payments Protocol
Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as paid endpoints with x402 and MPP payment rails.
Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme
Rust SDK for the Machine Payments Protocol
Website for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.