Skip to main content
Use the Nevermined AI Skill to give your coding assistant deep knowledge of the Nevermined Payments SDK, the x402 payment protocol, and integration patterns for Express.js, FastAPI, Strands agents, MCP servers, and Google A2A. Instead of copy-pasting docs, you import the skill once and your AI assistant knows how to wire up payments for you.

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

One-command install from the Nevermined repository:
claude /install-skill https://github.com/nevermined-io/docs skills/nevermined-payments
This downloads the 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:
  1. Clone or download the skill files:
    git clone https://github.com/nevermined-io/docs.git /tmp/nvm-docs
    
  2. Copy to your personal skills directory:
    cp -r /tmp/nvm-docs/skills/nevermined-payments ~/.claude/skills/
    
  3. Or copy to a project-specific location:
    cp -r /tmp/nvm-docs/skills/nevermined-payments .claude/skills/
    
Claude Code discovers skills automatically from ~/.claude/skills/ (personal) and .claude/skills/ (project).

Supported Tools at a Glance

ToolConfig FileAuto-Activates
Claude Code~/.claude/skills/nevermined-payments/SKILL.mdYes — when relevant
Cursor.cursor/rules/nevermined-payments.mdcYes — on .ts, .js, .py files
Windsurf.windsurf/rules/nevermined-payments.mdYes — model decides
GitHub Copilot.github/copilot-instructions.mdYes — always
Codex CLIAGENTS.md or .agents/skills/nevermined-payments/Yes — always or when relevant
Cline.clinerules/nevermined-payments.mdYes — on .ts, .js, .py files
Amazon Q.amazonq/rules/nevermined-payments.mdYes — 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:
{
  "mcpServers": {
    "nevermined-docs": {
      "url": "https://docs.nevermined.app/mcp"
    }
  }
}
This gives your assistant the ability to search the full Nevermined documentation on-demand. See Build Using Nevermined MCP for details.

Skill vs. MCP Server

ApproachBest ForTradeoff
AI Skill (SKILL.md)Fast, offline-capable, consistent patternsStatic — update when SDK changes
MCP Search ServerAlways up-to-date, full doc coverageRequires network, slower per-query
For the best experience, use both: install the skill for core patterns and connect the MCP server for edge cases.

What’s Next?