Skip to main content
This guide is for driving an AI agent to do the work on Nevermined. Each page takes one task an agent can run on its own — paying for a service, enrolling a card, registering a plan — and gives you a copy‑paste prompt and the detailed flow behind it. The pattern is always the same: you hand an agent (Claude Code, Cursor, an OpenAI agent, your own) a prompt and a link to Nevermined’s agent‑discoverable instructions, and it figures out the rest. A human is needed only for one‑time setup — the first API key, and a card if you pay by card — everything else is programmatic.
Give your agent the latest nevermined-payments skill (fetch the current version from the docs repo — don’t rely on an older installed/cached copy) or point it at your organization’s agentic-instructions.md (e.g. https://api.sandbox.nevermined.app/api/v1/organizations/{orgId}/agentic-instructions.md). Either one teaches the agent every endpoint it needs — the prompts on these pages assume it has one of them.

The seven flows

1. Buy access

Purchase plan credits autonomously via x402 — with stablecoins or a card.

2. Enroll a card & delegate

Add a card and grant the agent a capped, time‑boxed spending budget.

3. Get an API key

Obtain a Nevermined API key with one click from a human, captured automatically.

4. Add payments to your agent

Make your own agent charge callers per request behind an x402 paywall.

5. Register a plan & agent

Publish an AI agent and a priced payment plan so others can buy it.

6. Check credits (buyer)

Report remaining credits and delegation budgets across your purchases.

7. Check revenue (seller)

Pull revenue, MRR, and usage for the agents and plans you sell.

What’s on each page

Every flow is documented the same way, so you can scan or go deep:
1

Useful for

When to reach for this flow, and what the agent does for you.
2

Try it yourself

A battle‑tested prompt to paste into your agent — edit the bracketed values and go.
3

How it works

The step‑by‑step flow (REST and SDK) behind the prompt, for when you want the detail.

Sandbox vs. Live

Develop against Sandbox (test money), then switch to Live. API keys are environment‑specific — Sandbox keys start with sandbox:, Live keys with live: — and each only works against its own base URL.
EnvironmentMoneyAPI base URLWeb app
SandboxTest only — no real chargeshttps://api.sandbox.nevermined.app/api/v1nevermined.app
LiveReal chargeshttps://api.live.nevermined.app/api/v1nevermined.app
Agents always pay through the x402 flow (verifysettle) — never by calling Stripe or any processor directly. It works the same for cards and stablecoins.

AI Agents: Buy Access

The end‑to‑end purchase walkthrough (flow 1).

Core Concepts

Plans, credits, agents, delegations, and x402 in one place.