Skip to main content
Start here: need to register a service and create a plan first or get your Nevermined API Key? Follow the 5-minute setup.
Complete TypeScript quick start for adding payments to your AI agent or service.

Installation

Environment Setup

Complete Example

Run the Example

Test the Flow

1) Register your agent (first time only)
Save the returned agentId and planId to your environment. 2) Try without payment
3) As a subscriber, purchase and query

Project Structure

TypeScript Configuration

Next Steps

Express Integration

Complete Express.js patterns and best practices

TypeScript SDK Reference

Full API documentation

Payment Patterns

Advanced patterns for production

x402 Protocol

Deep dive into x402 payment flows