LaunchKit · 2026
Back to Skills

nevermined-payments

Integrates Nevermined payment infrastructure into AI agents, MCP servers, Google A2A agents, and REST APIs.

3
530 downloads
by @aaitor

Setup & Installation

openclaw skills install @aaitor/nevermined-payments

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install nevermined-payments

What This Skill Does

Adds Nevermined payment infrastructure to AI agents and REST APIs. Protects endpoints with the x402 HTTP payment protocol, handles credit-based billing per request, and supports subscriber flows for purchasing and consuming plans. SDKs are available for TypeScript and Python.

Handles the full x402 payment lifecycle, including token verification, credit settlement, and 402 response formatting, so developers skip building billing infrastructure from scratch.

When to use it

  • Charging API callers per request with prepaid credit plans
  • Gating MCP server tools behind a payment plan
  • Registering an AI agent and pricing plan without writing smart contract code
  • Issuing access tokens to subscribers who purchase a plan
  • Building paid agent-to-agent task flows with the Google A2A protocol

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Protect my Express.js POST /chat endpoint, charge 1 credit per request

AGENT
  1. 1Ask for NVM_API_KEY, NVM_PLAN_ID, and target environment (sandbox or live)
  2. 2Generate .env template with required variables
  3. 3Install @nevermined-io/payments and initialize the Payments SDK
  4. 4Add paymentMiddleware to the Express app targeting POST /chat with 1 credit
  5. 5Return complete server code with x402 middleware configured
OUTPUT

Express server that returns HTTP 402 on unauthenticated requests and processes paid requests using the x402 token in the payment-signature header

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

NVM_API_KEY from nevermined.appNVM_PLAN_ID from plan registrationBUILDER_ADDRESS wallet address for receiving payments