Skip to main content

Introduction

ampersend SDK is the payment layer for the agent economy.

It enables pay-per-request monetization for AI agents using the open x402 payment protocol.

With ampersend, you can:

  • Turn any agent into a paid service
  • Call paid agents with automatic, on-chain payments
  • Let agents discover, call, and pay each other without custom payment logic
  • Accept USDC or other ERC-20 tokens on supported networks

You focus on agent logic — the SDK handles the entire payment lifecycle automatically.

Supports

  • Protocols: A2A (Python), MCP (TypeScript)
  • Wallets: EOAs, Smart Contract Wallets (ERC-4337)
  • Payments: Stablecoins (e.g., USDC)
  • Languages: Python & TypeScript

When to Use ampersend SDK

Use the SDK when you need to:

  • Make your agent x402 compliant - Add payment capabilities to your agent code
  • Deploy agents as paid services - Turn your agent into a monetized service that charges per request
  • Call paid agents automatically - Connect to other paid agents with automatic payment handling
  • Implement x402 payment flows - Handle the payment authorization, signing, and verification in your code
  • Support A2A or MCP protocols - Add payment support to A2A (Python) or MCP (TypeScript) agents

The SDK is the code you integrate into your agent application. For managing and monitoring those payments at scale, use the ampersend Platform (see Overview).