mpp
Machine Payments Protocol (MPP) for agent-to-service payments. Pay for APIs, LLM inference, image generation, and web search via HTTP 402. Use when asked about machine payments, paying for API calls, MPP protocol, Tempo wallet, or agent commerce.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-14
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- mpp
- description
- Machine Payments Protocol (MPP) for agent-to-service payments. Pay for APIs, LLM inference, image generation, and web search via HTTP 402. Use when asked about machine payments, paying for API calls, MPP protocol, Tempo wallet, or agent commerce.
02 资源文件 3
- 许可证LICENSE33.8 KB
- 参考文档SOURCE.md177 B
- 参考文档TRUST.auto.yaml2.3 KB
03 SKILL.md 正文
Machine Payments Protocol (MPP)
The open protocol for machine-to-machine payments. Agents pay for services in the same HTTP request — no API keys, no signups, no billing accounts.
How It Works
- Client requests a paid resource
- Server returns
402 Payment Requiredwith supported payment methods - Client pays and retries with a
Credential(proof of payment) - Server verifies payment, returns the resource with a
Receipt(proof of delivery)
Quick Start with Tempo Wallet (Recommended)
Paste this into your agent to set up Tempo Wallet:
Read https://tempo.xyz/SKILL.md and set up tempo
Or manually:
Install CLI:
exec command="curl -fsSL https://tempo.xyz/install | bash"
Connect wallet:
exec command="tempo wallet login"
List available services:
exec command="tempo wallet services"
Make a paid request:
exec command="tempo request -X POST --json '{\"prompt\": \"a sunset over the ocean\"}' https://fal.mpp.tempo.xyz/fal-ai/flux/dev"
Quick Start with mppx CLI
Install:
exec command="npm install -g mppx"
Create account:
exec command="mppx account create"
Make a paid request:
exec command="mppx https://mpp.dev/api/ping/paid"
Payment Methods
| Method | Type | Use Case |
|---|---|---|
| Tempo | Stablecoin (USDC) | Recommended. One-time charges and sessions |
| Stripe | Cards, wallets | Traditional payment methods |
| Lightning | Bitcoin (BOLT11) | Bitcoin payments over Lightning Network |
| Card | Encrypted tokens | Direct card payments |
| Custom | Build your own | Extend with custom payment flows |
Payment Intents
| Intent | Description |
|---|---|
| Charge | One-time payment per request |
| Session | Pay-as-you-go with payment channels (low-cost, high-throughput) |
| Stream | Per-token billing over Server-Sent Events |
SDKs
| Language | Package | Install |
|---|---|---|
| TypeScript | mppx |
npm install mppx |
| Python | pympp |
pip install pympp |
| Rust | mpp |
cargo add mpp |
TypeScript Client Example
import { Mppx, Method } from 'mppx'
// Create payment-aware fetch
const mppx = await Mppx.create({
methods: [Method.tempo.charge(), Method.tempo.session()]
})
// Fetch automatically handles 402 → pay → retry
const res = await fetch('https://api.example.com/generate', {
method: 'POST',
body: JSON.stringify({ prompt: 'hello' })
})
Use Cases for Agents
- Pay for LLM inference — call LLM providers via MPP, pay per token
- Generate images — request from fal.ai, pay per request
- Search the web — query Parallel for real-time results, pay per query
- Agent-to-agent commerce — agents pay each other for services (ERC-8183 compatible)
- Self-sustaining agents — combine with stETH treasury to fund operations from yield
Integration with Ottie
Ottie agents can use MPP to:
- Pay for external API calls autonomously (LLM, image gen, search)
- Accept payments for Ottie's own skills as an MCP service
- Combine with
steth-treasuryfor yield-funded autonomous spending - Use
venice-private-aifor private inference + MPP for paid public APIs
Resources
- Protocol spec: https://paymentauth.org
- Documentation: https://mpp.dev
- Tempo Wallet: https://wallet.tempo.xyz
- SDKs: https://mpp.dev/sdk
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.