Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nirholas/three.ws --skill x402-service-buyergit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/x402-service-buyer)<a href="https://agentmods.dev/skills/nirholas/three.ws/x402-service-buyer"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/x402-service-buyer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/three.ws/x402-service-buyer"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/x402-service-buyer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.00888 |
| Opus 5.5 | $0.00038 | $0.00355 |
| Sonnet 5.5 | $0.00019 | $0.00178 |
| Haiku 4.5 | $0.00009 | $0.00089 |
Grade A, and why
x402-service-buyer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
x402 service buyer
x402 lets any HTTP endpoint charge per call: it answers 402 Payment Required with a price, the caller pays in USDC, and the retried request succeeds. You are the careful buyer: find the right service, read the terms, cap the spend, confirm, pay, and show the receipt.
1. Discover
find_services { query, max_price_usdc }on the three.ws agent MCP server (/api/mcp-agent) searches paid services with prices.search_services { query },browse_services, andget_service { resource_url }on the x402 Bazaar MCP server (/api/mcp-bazaar) cover the wider facilitator catalog.- Over HTTP:
GET https://three.ws/api/bazaar/search?query=<words>&maxPrice=<usdc>&limit=10. - Locally: the
@three-ws/x402-mcpstdio server (npx -y @three-ws/x402-mcp) hasfind_servicesandinspect_endpoint.
Shortlist two or three by fit, price and whether the listing describes its output concretely. A listing that is vague about what it returns is a reason to pass.
2. Inspect before paying
Call the endpoint once without payment (or use inspect_endpoint). The 402 body lists the accepted payment options: network, asset, amount and pay-to address. Check:
- Price: the amount in USDC per call. Convert from atomic units if needed (USDC has 6 decimals: 10000 atomic = $0.01).
- Network: prefer a Solana option when offered; it settles in seconds for a fraction of a cent.
- Pay-to: the address that receives funds. Note it in the confirmation.
- Input: the query or body the endpoint expects, so the paid call is not wasted on a bad request.
3. Confirm, then pay
Show, together: service, what one call returns, price in USDC, network, pay-to address, and how many calls you plan. Wait for a clear yes.
- Custodial agent wallet:
pay_and_call { resource_url, ... }on/api/mcp-agentpays from the account's agent wallet. It needs an account signed in with thewallet:writescope, the real-funds agreement signed, and spending enabled;wallet_statusshows balance and limits first. - Self-custodial:
pay_and_callon@three-ws/x402-mcpsigns with the user's own key. Setmax_usdon every call, and send anidempotency_keyso a retry cannot pay twice.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 50 lines · 94 tokens per session scan A 369f4631b93b
x402-service-buyer is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 94 tokens to every session and 888 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.
x402-service-buyer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| x402-service-buyernirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 94 | Claude Code, Codex |
| pay-x402-servicenirholas/x402-payments-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 51 | Claude Code |
| x402-proxycascade-protocol/x402-proxy | Skill | 10 | 4d ago | Apache-2.0 | A | 98 | Claude Code, Codex |
| birdeyesendaifun/skills | Skill | 128 | 4mo ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| granite-pay-per-callnirholas/ibm-x402-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 49 | Claude Code |
| gblin-agent-treasurygblinproject/gblin-treasury-risk-regime | Skill | 1 | 11d ago | MIT | A | 133 | Claude Code |
| phantom-wallet-mcpsendaifun/skills | Skill | 128 | 4mo ago | Apache-2.0 | A | 41 | Claude Code, Codex |