x402-proxy

x402-proxy is a skill for Claude Code, Codex from cascade-protocol/x402-proxy. It costs 98 tokens per session (1,711 once invoked), scanned A, original, Apache-2.0.

A command-line proxy for making requests to paid web APIs. It handles payment methods where an API asks for payment through an HTTP 402 response, including one-time and per-token charges.

In plain words
What is it for?
Use it to send paid GET or POST requests, choose a payment network, save or pipe responses, run a local paid inference proxy, or connect Claude Code and MCP services to paid endpoints.
Why use it?
It removes the need to build payment handling into every script that calls a paid API.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Claude Code; built for openclaw.

Good fit Use it to send paid GET or POST requests, choose a payment network, save or pipe responses, run a local paid inference proxy, or connect Claude Code and MCP services to paid endpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cascade-protocol/x402-proxy/skills
Install

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.

Any agent
npx skills add cascade-protocol/x402-proxy --skill skills
Clone the repo
git clone --depth 1 https://github.com/cascade-protocol/x402-proxy

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for x402-proxy

README.md
[![agentmods](https://agentmods.dev/badge/skills/cascade-protocol/x402-proxy/skills/github.svg)](https://agentmods.dev/skills/cascade-protocol/x402-proxy/skills)
Your own site
<a href="https://agentmods.dev/skills/cascade-protocol/x402-proxy/skills"><img src="https://agentmods.dev/badge/skills/cascade-protocol/x402-proxy/skills/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.

agentmods 80×15 button for x402-proxy

Your own site · 80×15
<a href="https://agentmods.dev/skills/cascade-protocol/x402-proxy/skills"><img src="https://agentmods.dev/badge/skills/cascade-protocol/x402-proxy/skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01711
Opus 5.5 $0.00039 $0.00684
Sonnet 5.5 $0.00020 $0.00342
Haiku 4.5 $0.00010 $0.00171

Measured 3mo ago against content hash 6c943bee0fa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

x402-proxy 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 3mo 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.

`curl` for x402 and MPP paid APIs with MCP proxy support. Auto-pays HTTP 402 on Base, [Monad](https://monad.xyz/), Solana, and [Tempo](https://tempo.xyz/). Supports one-time payments (x402, MPP charge) and pay-per-token
packages/x402-proxy/skills/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

x402-proxy

curl for x402 and MPP paid APIs with MCP proxy support. Auto-pays HTTP 402 on Base, Monad, Solana, and Tempo. Supports one-time payments (x402, MPP charge) and pay-per-token streaming (MPP sessions).

Quick start

npx x402-proxy https://surf.cascade.fyi/api/v1/twitter/user/openclaw

First run auto-creates a wallet. No setup needed.

HTTP requests

# GET - body to stdout, payment info to stderr
npx x402-proxy https://api.example.com/resource

# POST with body and headers
npx x402-proxy -X POST \
  -H "Content-Type: application/json" \
  -d '{"query":"example"}' \
  https://api.example.com/search

# Force a specific chain
npx x402-proxy --network solana https://api.example.com/data

# Pipe-safe - only response body on stdout
npx x402-proxy https://api.example.com/data | jq '.results'

# Save response to file
npx x402-proxy https://api.example.com/data > response.json

Commands

x402-proxy <url>                        # paid HTTP request (default)
x402-proxy serve                        # local paid inference proxy server
x402-proxy claude                       # run Claude Code through paid local proxy
x402-proxy mcp <url>                    # MCP stdio proxy for AI agents
x402-proxy mcp add <name> <url>         # install MCP server into AI client
x402-proxy setup                        # wallet onboarding wizard
x402-proxy setup --force                # re-run setup (overwrite existing wallet)
x402-proxy status                       # config + wallet + daily spend summary
x402-proxy config                       # show current configuration
x402-proxy config set <key> <value>     # set a config value
x402-proxy config unset <key>           # remove a config value
x402-proxy wallet                       # show addresses and USDC balances
x402-proxy wallet history               # payment log
x402-proxy wallet history --limit 5     # last 5 payments
x402-proxy wallet history --json        # machine-readable output
x402-proxy wallet export-key evm        # bare EVM private key to stdout
x402-proxy wallet export-key solana     # bare Solana private key to stdout
x402-proxy wallet export-key mnemonic   # bare mnemonic to stdout

Read the full file on GitHub · 184 lines

Files

What ships with it

2 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.

Changes

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.

  1. 3mo ago First seen · 184 lines · 98 tokens per session scan A 6c943bee0fa9

Subscribe to this mod's changes

x402-proxy is a skill published in the GitHub repository cascade-protocol/x402-proxy (10 stars, last pushed 11d ago), licensed Apache-2.0. It adds 98 tokens to every session and 1,711 once invoked, about $0.0004 per session on Opus 5.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-30.

Related

x402-proxy compared with skills from other repositories

x402-proxy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
x402-proxycascade-protocol/x402-proxySkill1011d agoApache-2.0A98Claude Code, Codex
capacitrBankrBot/skillsSkill1.2kyesterdaynoneA113Claude Code, Codex
agent-allowance-walletnirholas/onchain-agent-walletsSkill925d agoApache-2.0A56Claude Code
pay-x402-servicenirholas/x402-payments-mcpSkill925d agoApache-2.0A51Claude Code
pump-claims-readonlynirholas/pump-fun-sdkSkill1522d agononeA45Claude Code, Codex
pump-bonding-curvenirholas/pump-fun-sdkSkill1522d agononeA49Claude Code, Codex
pump-token-lifecyclenirholas/pump-fun-sdkSkill1522d agononeA39Claude Code, Codex