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
One-command 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
| Tool | Config File | Auto-Activates |
|---|---|---|
| Claude Code | ~/.claude/skills/nevermined-payments/SKILL.md | Yes — when relevant |
| Cursor | .cursor/rules/nevermined-payments.mdc | Yes — on .ts, .js, .py files |
| Windsurf | .windsurf/rules/nevermined-payments.md | Yes — model decides |
| GitHub Copilot | .github/copilot-instructions.md | Yes — always |
| Codex CLI | AGENTS.md or .agents/skills/nevermined-payments/ | Yes — always or when relevant |
| Cline | .clinerules/nevermined-payments.md | Yes — on .ts, .js, .py files |
| Amazon Q | .amazonq/rules/nevermined-payments.md | Yes — always |
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
| Approach | Best For | Tradeoff |
|---|---|---|
| AI Skill (SKILL.md) | Fast, offline-capable, consistent patterns | Static — update when SDK changes |
| MCP Search Server | Always up-to-date, full doc coverage | Requires network, slower per-query |