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 Tyler-R-Kendrick/agent-skills --skill x402git clone --depth 1 https://github.com/Tyler-R-Kendrick/agent-skillsWrote 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/tyler-r-kendrick/agent-skills/x402)<a href="https://agentmods.dev/skills/tyler-r-kendrick/agent-skills/x402"><img src="https://agentmods.dev/badge/skills/tyler-r-kendrick/agent-skills/x402/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/tyler-r-kendrick/agent-skills/x402"><img src="https://agentmods.dev/badge/skills/tyler-r-kendrick/agent-skills/x402.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.01202 |
| Opus 5 | $0.00047 | $0.00601 |
| Sonnet 5 | $0.00019 | $0.00240 |
| Haiku 4.5 | $0.00009 | $0.00120 |
Grade A, and why
x402 scanned grade A with 1 finding 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 11d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
let response = await fetch(url); How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
x402 — HTTP Payment Protocol
Overview
x402 is an open payment protocol from Coinbase that revives the HTTP 402 (Payment Required) status code for instant, automatic stablecoin micropayments. It enables APIs and services to be monetized natively over HTTP — no accounts, sessions, or traditional payment processors required. Both human clients and AI agents can pay programmatically.
How It Works
Client Server Facilitator
│ │ │
│── GET /weather ──────────────►│ │
│◄── 402 Payment Required ─────│ │
│ (price, payTo, network) │ │
│ │ │
│── sign payment ──────────────►│ │
│ (PAYMENT-SIGNATURE header) │── verify + settle ────────►│
│ │◄── confirmation ────────────│
│◄── 200 OK (content) ─────────│ │
Server Middleware
Express (TypeScript)
import { paymentMiddleware, x402ResourceServer } from "@x402/express";
import { ExactEvmScheme } from "@x402/evm/exact/server";
import { HTTPFacilitatorClient } from "@x402/core/server";
const resourceServer = new x402ResourceServer(
new HTTPFacilitatorClient({ url: "https://x402.org/facilitator" })
);
resourceServer.register("eip155:84532", new ExactEvmScheme());
app.use(paymentMiddleware(
{
"GET /weather": {
accepts: {
scheme: "exact",
price: "$0.001",
network: "eip155:84532",
payTo: "0xYourAddress",
},
},
},
resourceServer,
));
Flask (Python)
from flask import Flask
from x402.flask.middleware import PaymentMiddleware
app = Flask(__name__)
payment_middleware = PaymentMiddleware(app)
payment_middleware.add(
path="/weather",
price="$0.001",
pay_to_address="0xYourAddress",
network="base-sepolia",
)
@app.route("/weather")
def get_weather():
return {"report": {"weather": "sunny", "temperature": 70}}
What ships with it
11 files 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.
- AGENTS.md 4.3 KB
- metadata.json 655 B
- README.md 659 B
- rules/_sections.md 1.3 KB
- rules/_template.md 363 B
- rules/x402-add-x402-middleware-only-to-routes-that-need-monetization.md 359 B
- rules/x402-for-ai-agents-wrap-the-x402-client-in-the-agent-s-http.md 369 B
- rules/x402-keep-per-request-prices-low-fractions-of-a-cent-for-api.md 395 B
- rules/x402-set-prices-in-usd-strings-0.md 303 B
- rules/x402-use-testnet-base-sepolia-during-development-switch-to.md 381 B
- rules/x402-use-the-public-facilitator-https.md 325 B
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.
- 11d ago First seen · 140 lines · 94 tokens per session scan A 09018b6a30fd
x402 is a skill published in the GitHub repository Tyler-R-Kendrick/agent-skills (11 stars, last pushed 3mo ago), licensed MIT. It adds 94 tokens to every session and 1,202 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
mpp-agent
Pay HTTP 402 APIs via Machine Payments Protocol (MPP).
bridge
Cross-chain token transfers using Wormhole and CCTP.
hyperliquid
Hyperliquid L1 perps DEX (69% market share).
marginfi
MarginFi — Solana lending and borrowing.
crypto-market-rank
Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…
trading-signal
Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…