Skip to main content
This guide covers how to register and manage AI agents using the Nevermined Payments Python SDK.

Overview

AI Agents are services that users can access through payment plans. The Agents API allows you to:
  • Register new agents with associated payment plans
  • Register agents and plans together in a single operation
  • Update agent metadata and endpoints
  • Manage plan associations

Agents API

Access the Agents API through payments.agents:

Register Agents

Basic Agent Registration

Register an agent and associate it with existing payment plans:

Register Agent and Plan Together

Create both an agent and a payment plan in a single operation:

Agent Configuration

AgentMetadata Fields

AgentAPIAttributes Fields

All fields are optional. Provide only what your integration needs.

Additional Security: Endpoint Allowlist (opt-in)

Setting endpoints opts the agent into a platform-enforced allowlist. When set, only requests matching one of the registered URLs are accepted during x402 verification; non-matching requests are rejected. When omitted, the platform performs no route-level allowlist check — your Payments library middleware (PaymentMiddleware, @requires_payment) remains the sole gate.
The :agentId and :taskId placeholders will be replaced with actual values during request validation.
Migration note: existing agents that registered before April 2026 still have these fields populated and continue to enforce the allowlist as before. No migration is needed.

Retrieve Agents

List Your Agents

List the agents you published. This is caller-scoped account management — it returns only the agents the authenticated account created, never other users’ agents (Nevermined is not a marketplace, so there is no global agent search). Useful for finding and managing your own agents (e.g. spotting duplicates).

Get a Single Agent

Get Plans for an Agent

Update Agents

Update Agent Metadata

update_agent_metadata is also where builders typically opt in to Additional Security by adding an endpoints allowlist or agent_definition_url to an existing agent:

Manage Plan Associations

Add a Plan to an Agent

Remove a Plan from an Agent

Complete Example

Next Steps

Publishing Static Resources

Publish files and datasets

Querying an Agent

Learn how to access agents