SKILL.md
pr402 (x402 on Solana)
Router skill only. Orient the user, pick seller vs buyer, then continue in the specialist skill — do not implement gates, payments, or SDK wiring in this file.
Choose a path
| User goal | Load / install | Starter repo |
|---|---|---|
| Monetize an HTTP API (402 gate, SplitVault, discovery) | pr402-seller |
x402-seller-starter |
| Subscription API (hourly/daily/monthly on exact) | pr402-seller → subscription reference |
x402-subscription-starter |
| Build a paying agent (402 challenge → pay → retry with proof) | pr402-buyer |
x402-buyer-starter |
Buy subscription access (pay /subscribe → Bearer JWT) |
pr402-buyer → subscription reference |
x402-subscription-client |
| Both seller and buyer in one product | Install both specialist skills | Both starters above |
| Conditional delivery / oracle escrow | Stop — sla-escrow rail + oracles |
Not covered by default integrator skills |
Default rail for new integrators: exact (SplitVault instant settlement via pr402). Treat sla-escrow as a separate path.
Install (skills CLI)
All integrator skills (-y), or one at a time (interactive):
npx skills add miraland-labs/x402-agent-skills --skill pr402 --skill pr402-seller --skill pr402-buyer -y
npx skills add miraland-labs/x402-agent-skills --skill pr402
npx skills add miraland-labs/x402-agent-skills --skill pr402-seller
npx skills add miraland-labs/x402-agent-skills --skill pr402-buyer
List all skills in this repo:
npx skills add miraland-labs/x402-agent-skills --list
Skills.sh listing: miraland-labs/x402-agent-skills.
Shared production defaults
| URL | |
|---|---|
| Facilitator (Mainnet) | https://ipay.sh |
| Facilitator API prefix | /api/v1/facilitator |
| Devnet / preview testing | https://preview.ipay.sh |
| Canonical runbook | ipay.sh/agent-integration.md |
| OpenAPI | ipay.sh/openapi.json |
| MCP tool catalog | ipay.sh/agent-tools.json |
GitHub layout (virtual hub)
The x402 hub coordinates docs and x402-cli only. Clone each project from its own repo:
| Project | GitHub |
|---|---|
| pr402 SDK / MCP source | miralandlabs/pr402 (individual account — not miraland-labs) |
| Seller starter | miraland-labs/x402-seller-starter |
| Buyer starter | miraland-labs/x402-buyer-starter |
| Agent skills (this repo) | miraland-labs/x402-agent-skills |
| Oracles / escrow | miraland-labs/oracles |
| Subscription seller starter | miraland-labs/x402-subscription-starter |
| Subscription buyer SDK | miraland-labs/x402-subscription-client |
| Subscription auth (Tier B) | miralandlabs/subscription-auth |
Agent workflow
- Clarify role — seller (accepts USDC for API calls) vs buyer (pays for API calls) vs both.
- Hand off — open
pr402-sellerorpr402-buyer(install if missing) for step-by-step implementation. - Prefer starters + published SDK/MCP over hand-rolling verify/settle payloads unless debugging.
- Never commit keypairs — merchant/payer secrets via env vars outside the repo.
- Forge marketplace (digital goods) — buyer path may use
@http402/forge-client; seepr402-buyerreferences.
Quick pointers (not full runbooks)
| Need | Where |
|---|---|
| Seller onboarding CLI | pr402-seller → references/onboarding-cli.md |
| Seller runtime SDK gate | pr402-seller → references/runtime-sdk.md |
Buyer MCP / createPay402Fetch |
pr402-buyer → references/mcp-and-sdk.md |
| Buyer HTTP 402 retry flow | pr402-buyer → references/exact-payment-flow.md |
| Subscription seller (JWT window on exact) | pr402-seller → references/subscription-exact-rail.md |
| Subscription buyer (subscribe + Bearer) | pr402-buyer → references/subscription-client.md |
| Forge purchases | pr402-buyer → references/forge-marketplace.md |
Related skills
pr402-seller— monetize HTTP APIspr402-buyer— paying agents and MCP hosts