Skip to main content

SDK Overview

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.

What the SDK enables

With ampersend SDK, you can:

  • Turn an agent into a paid service
  • Call paid agents with automatic, on-chain payments
  • Enable agents to 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 payment lifecycle automatically.

What the SDK supports

  • Agent Protocols: A2A (Python), MCP (TypeScript)
  • Agent Frameworks: Google ADK & LangGraph (both coming soon)
  • Runtime Languages: Python, TypeScript
  • Payments & Wallet Infrastructure: Programmatic payments backed by blockchain wallets, including externally owned accounts and smart contract wallets

When to use the ampersend SDK

Use the SDK when you need to:

  • Make an agent x402 compliant by adding payment capabilities to agent code
  • Deploy agents as paid services that charge per request
  • Call paid agents with automatic payment handling
  • Use paid MCP servers as tools for agents
  • Implement x402 payment flows in code (authorization, signing, verification)
  • Support A2A (Python) or MCP (TypeScript) agents with payments
tip

The SDK is the code you integrate into your agent application. For managing and monitoring those payments at scale, use the platform.