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. How you install the Router one depends on your tool:
- Claude Code, Cursor, Windsurf, Cline, Amazon Q — swap
nevermined-paymentsfornevermined-routerin the paths below, or run the extra command shown in each tab. - Codex CLI — its
AGENTS.mdroute is a single file with no skill name in it, and that file carries the payments guidance only. Use the tab’s “install as a Codex skill” alternative instead:.agents/skills/takes a skill directory, sonevermined-routerworks there. - GitHub Copilot —
.github/copilot-instructions.mdis a single file with nothing to swap, and it carries the payments guidance only. Until that changes, use the full skill on GitHub or paste it in manually.
What’s Included
The skill provides 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)
Install the Skill
Choose your AI coding tool below for step-by-step installation instructions.- Claude Code
- Cursor
- Windsurf
- GitHub Copilot
- Codex CLI
- Cline
- Amazon Q
- Other / Manual
Claude Code
Commands to install from the Nevermined repository:SKILL.md and all reference files into your local Claude Code skills directory. Claude Code automatically loads the skill when it’s relevant to your work.Alternative — manual installation:- Clone or download the skill files:
- Copy to your personal skills directory:
- Or copy to a project-specific location:
~/.claude/skills/ (personal) and .claude/skills/ (project).Supported Tools at a Glance
<skill> is nevermined-payments or nevermined-router — install either or 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