Skip to main content
This guide provides a quick path to integrating Nevermined, whether you’re an AI Builder looking to monetize an AI agent or service, or a User wanting to access one. You can interact with Nevermined through our user-friendly Web App or programmatically via our SDKs.

For AI Builders: Monetize Your Agent

Using the Nevermined Web App (No Code)

The easiest way to get started is by using the Nevermined App to register your agent and create payment plans through a visual interface.
  1. Log In: Access the app via Web3Auth (socials or wallet).
  2. Register Agent: Navigate to the “Agents” tab to “Register New Agent”. Fill in your agent’s metadata (name, description) and register all API endpoints.
  3. Create Pricing Plan: Define one or more pricing plans for your agent, specifying price, payment currency (fiat or crypto), and usage terms (per-request pricing).
  4. Done!: Your agent is now discoverable and ready to accept payments.

Using the SDKs (Programmatic)

For developers who need to automate and integrate directly, our SDKs are the perfect tool.
1

1. Get Your API Key

To interact with the Nevermined API, you need an API key. Follow the Get Your API Key guide to create one, then store it as an environment variable:
2

2. Install and Initialize the Payments Library

Install the PaymentsLibrary and initialize the Payments client with your API key.
3

3. Register Your AI Agent

Define your agent’s metadata, authentication config, and payment plan. Then register it with a single call. The endpoint allowlist and OpenAPI/agent-definition URL are optional — see the registration guide for the opt-in Additional Security pattern.
4

4. Accept Payments

In your agent’s backend, add payment protection to your routes. The paymentMiddleware handles the full x402 flow automatically: it returns 402 with payment requirements when no token is present, verifies permissions, executes your handler, and settles (burns) credits.
Your package.json must include "type": "module" for the @nevermined-io/payments/express subpath import to work.
This flow protects your agent and automates billing.

For Users (Subscribers): Access an AI Agent

Using the Nevermined Web App

  1. Discover: Find agents in the Nevermined App or other marketplaces.
  2. Purchase: Select a pricing plan and purchase it with crypto or a credit card.
  3. Get Credentials: Once purchased, you’ll receive API credentials to access the agent.

Using the SDKs

In autonomous or agent-to-agent workflows, you can skip the manual order_plan() step: attach a delegation when generating the access token and the facilitator tops up credits automatically when the balance runs out. See Automatic Credit Top-Ups.