mpp-agent
Fungsinya
Skill ini memungkinkan AI Anda membayar biaya kecil untuk akses ke layanan online yang memungut biaya per permintaan. Skill ini ditujukan untuk orang yang ingin AI mereka menggunakan API berbayar tanpa membaca dan membayar secara manual.
Kapan dipakai
- βSaat layanan web membalas dengan pesan HTTP 402 Payment Required dan Anda ingin AI membayarnya.
- βSaat Anda ingin AI Anda menyiapkan dompet untuk membayar per permintaan.
- βSaat Anda ingin mencari layanan yang menerima pembayaran per permintaan.
Link skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/payments/mpp-agent/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda menyiapkan dompet dan membayar API per permintaan yang mengembalikan error 402?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill membantu AI Anda memilih salah satu dari beberapa alat pembayaran, seperti Tempo, Privy, AgentCash, atau mppx, sesuai kebutuhan Anda, lalu menggunakannya untuk menyelesaikan pembayaran.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
MPP Agent Skill
Wraps the Machine Payments Protocol (MPP, https://mpp.dev) clients so Hermes can pay for per-request API access against servers that respond with HTTP 402 Payment Required.
Three client options, all distributed via npm. Pick the lightest one that solves the user's need. Gated [linux, macos] while the broader payments tooling matures on Windows.
When to Use
- A merchant API returns
HTTP 402with awww-authenticateheader β and the user wants to actually pay it, not just log the response. - The user asks to "pay per request", "set up an agent wallet", "use Tempo / Privy / AgentCash", or wants to discover MPP-priced services.
- A Stripe Link spend has produced a Shared Payment Token (SPT) and the agent needs to attach it to the 402 challenge β in that flow, prefer
link-cli mpp pay(see thestripe-link-cliskill).
Choosing a client
| Tool | When | Setup |
|---|---|---|
link-cli |
User already has Stripe Link set up, or the 402 challenge advertises method="stripe" |
see the stripe-link-cli skill |
| Tempo Wallet | MPP services with spend controls, service discovery | tempo wallet login |
| Privy Agent CLI | Multi-chain wallets, browser-based funding | privy-agent-wallets login |
| AgentCash | 300+ pre-priced APIs via one USDC.e balance | npx agentcash onboard |
mppx |
Dev + debugging, smallest dep surface | npm install -g mppx then mppx account create |
Default: if the user already has Stripe Link configured or the 402 challenge specifies method="stripe", use link-cli mpp pay (the stripe-link-cli skill). Otherwise mppx for one-off paid calls and debugging, and Tempo Wallet when the user wants persistent spend controls.
Prerequisites
- Node.js 20+ on
PATH - A funded wallet (Tempo / Privy / AgentCash) OR an
mppxaccount - For Tempo / Privy / AgentCash: follow their respective onboarding skills:
https://tempo.xyz/SKILL.mdhttps://agents.privy.io/skill.mdhttps://agentcash.dev/skill.md
Use web_extract to fetch any of those SKILL.md files if the user picks one.
Procedure (mppx, fastest path)
Run all commands through the terminal tool.
1. Install + create an account
npm install -g mppx
mppx account create
Store the resulting account credentials wherever the CLI tells you (the CLI writes them under its own config β do not paste them into the agent transcript).
2. Inspect the merchant's 402 challenge
If the user gives you a URL, probe it first to confirm it actually speaks MPP:
curl -i <url>
A real MPP 402 looks like:
HTTP/1.1 402 Payment Required
www-authenticate: tempo amount=0.1 currency=...
3. Pay the request
mppx <url>
For non-GET methods or request bodies:
mppx <url> --method POST --data '<json>'
mppx handles the 402 challenge/credential dance automatically and prints the merchant's actual response on success.
4. Verify the receipt
mppx attaches the receipt header automatically. To inspect:
mppx <url> -v
Procedure (Tempo Wallet)
The Tempo Wallet skill at https://tempo.xyz/SKILL.md is the canonical reference; fetch it with web_extract and follow it. Headline:
tempo wallet login
tempo wallet pay <url>
Spend controls and service discovery live in the wallet UI at https://wallet.tempo.xyz.
Pitfalls
HTTP 402withoutmethod="stripe"cannot be paid by Stripe Link. If the challenge advertises only Tempo / other methods, usemppx(or whichever wallet matches) β Link will reject it. Conversely, if it advertisesmethod="stripe", prefer Link via thestripe-link-cliskill so the spend goes through the user's approved card.- Multiple challenges in one header.
www-authenticatemay list several methods (e.g.tempo, stripe). The Link CLI'smpp decodewill pick the Stripe one;mppxwill pick Tempo. There's no single "right" client β pick by which wallet the user has funded. - Zero-amount challenges. Some MPP endpoints charge
$0.00and just want a proof credential. These work without a funded wallet. Don't refuse them as "broken." - Wallet keys never enter agent context. All four clients store keys under their own config dirs (or generate per-session ephemeral keypairs, in Privy's case). Do not
cat/read_filethem. - Server-side MPP is a different skill. If the user wants to ADD 402 to their own API, this skill is wrong β point them at https://mpp.dev/quickstart/server and the `mppx/ne
Pertanyaan umum
Alat pembayaran apa saja yang didukung skill ini?
Skill mencantumkan link-cli, Tempo Wallet, Privy Agent CLI, AgentCash, dan mppx, serta menyarankan memilih yang paling ringan yang menyelesaikan kebutuhan Anda.
Apakah bisa dipakai di Windows?
Menurut deskripsinya, skill ini terbatas pada Linux dan macOS sementara alat pembayaran yang lebih luas masih berkembang di Windows.
Apakah AI akan membayar tanpa bertanya kepada saya?
Skill menjelaskan pembayaran untuk permintaan nyata, jadi Anda sebaiknya memeriksa apa yang akan dibayar AI sebelum menyetujuinya.
Detail
Deskripsi asli dari pembuat
Pay HTTP 402 APIs via Machine Payments Protocol (MPP).
Popularitas
- Bintang GitHub
- 260k
- Peringkat
- #531
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-merge-conflict-arbiter
260kMenyelesaikan konflik merge git antara cabang dua agent sebagai pihak ketiga yang netral, menghasilkan satu hasil gabungan untuk repo.
antigravity-cli
260kMemandu Anda memasang, memperbarui, dan memecahkan masalah alat baris perintah Antigravity, termasuk plugin, login, dan sandbox-nya.
blackbox
260kMemungkinkan agent Anda menyerahkan tugas pemrograman ke alat baris perintah Blackbox AI, yang menjalankan beberapa model AI dan memilih hasil terbaik.
dynamic-workflow
260kMengajari agent Anda menjalankan pekerjaan sejenis dalam jumlah besar sebagai skrip tersimpan, sehingga hanya hasil terverifikasi yang kembali ke percakapan utama.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.