Two skills, opposite directions
There are two, and which one you want depends on which side of the payment you’re on.
Installing both is fine — they don’t overlap. Every supported tool can now reach the Router:
- Claude Code — install them as plugins, one command each. See the tab below.
- Cursor, Windsurf, Cline, Amazon Q — swap
nevermined-paymentsfornevermined-routerin the paths below, or run the extra command shown in each tab. - Codex CLI and GitHub Copilot —
AGENTS.mdand.github/copilot-instructions.mdare single files with no skill name to swap, so each one carries both halves: the payments guidance and a condensed Router section. Take the whole file. Codex can also installnevermined-routeras a proper skill directory under.agents/skills/— see its tab.
What’s Included
The skills provide your coding assistant with:- SDK initialization patterns for TypeScript and Python
- Framework-specific middleware (Express.js, FastAPI, Strands, MCP, Google A2A)
- x402 protocol flow — headers, verification, settlement
- Payment plan registration and configuration
- Client-side integration — ordering plans, generating tokens, calling protected APIs
- Troubleshooting for common errors (402,
-32003,-32002)
- Service discovery in the public Agent Services Catalog
- Spending Delegations — creating a capped budget and funding the buyer wallet
- Paid calls over x402 and MPP through one endpoint, with the protocol auto-detected
- Guardrails — every
BCK.ROUTER.*code, what’s retryable, and why a refusal must not be worked around
Install the Skill
Choose your AI coding tool below for step-by-step installation instructions.- Claude Code
- ClawHub
- Cursor
- Windsurf
- GitHub Copilot
- Codex CLI
- Cline
- Amazon Q
- Other / Manual
Claude Code
Install from the Nevermined plugin marketplace — two commands, and Claude Code keeps the skills up to date for you:nevermined (that’s the @nevermined suffix); nevermined-io/docs is just the repository it’s served from.Claude Code loads each skill when it’s relevant to your work, and refreshes it in the background when we publish changes. To update by hand it takes two steps — /plugin marketplace update nevermined refreshes the catalogue, then /plugin update nevermined-router@nevermined updates the installed plugin itself (restart to apply).Alternative — copy the files directly. Use this if you’d rather take a snapshot you control, or you’re on a Claude Code build without plugin support:~/.claude/skills/ (personal) and .claude/skills/ (project). Copied this way they’re a snapshot — you re-run the command to update.Supported Tools at a Glance
<skill> is nevermined-payments or nevermined-router — install either or both.
The Copilot and Codex files are condensed — they carry the buy loop, the money traps and every
BCK.ROUTER.* retry decision, but not the full reference set: they omit 0004/0005, everything the Router refuses outright (MPP splits, internal targets, redirects, forged X-Router-*), and the relay limits. For the complete Router skill, install it as a directory (Claude Code plugin, ClawHub, or .agents/skills/).The IDE rule files also omit 0007. Windsurf’s copy additionally omits BCK.ROUTER.0012, because Windsurf truncates a rule file at 6,000 characters and drops the end — where the guardrails live — so the file cannot grow without displacing something. 0012 is a 400 whose non-retryable verdict the file already states as a rule (“only 0006 and 0007 are retryable”); BCK.ROUTER.0013 is kept because it is a 500, the one shape an agent retries by default. Cursor, Cline and Amazon Q carry both.Example Prompts
After installing the skill, try prompts like:Add payments to Express.js
“Add Nevermined x402 payment protection to my Express.js API. I want to charge 1 credit per request on the
/ask endpoint.”Protect a FastAPI endpoint
“Integrate Nevermined payments into my FastAPI app. Use dynamic credits based on the token count in the response.”
Build a paid MCP server
“Create an MCP server with Nevermined payments. Register a weather tool that costs 5 credits per call.”
Add payments to a Strands agent
“Protect my Strands agent tool with the @requires_payment decorator. Charge 2 credits per call.”
Alternative: Use the MCP Search Server
If you prefer real-time documentation search over a static skill, you can connect your coding assistant to the Nevermined MCP documentation server:Skill vs. MCP Server
For the best experience, use both: install the skill for core patterns and connect the MCP server for edge cases.
What’s Next?
5-Minute Setup
Register your first agent and plan
Express.js Integration
Full Express.js payment middleware guide
FastAPI Integration
Full FastAPI payment middleware guide
MCP Integration
Build monetizable MCP servers