SDKs

Native libraries
for every stack.

Official SDK for Node.js and TypeScript. Type-safe, well-documented, and designed to integrate with popular agent frameworks.


Official SDKs

Choose your language.

Node.js / TypeScript
install
$ npm install @aipay/sdk
  • Full TypeScript types included
  • Promise-based async API
  • Automatic retry with exponential backoff
  • Node.js 18+ and Bun supported

Framework Integration

Works with your agent framework.

LangChain

Custom tool integration. Wrap any aiPay SDK method as a LangChain tool.

CrewAI

Agent tool definitions for CrewAI. Give your crew financial autonomy.

AutoGen

Function calling integration for AutoGen multi-agent conversations.

Custom Agents

Direct SDK usage for any agent framework. REST API as fallback.


Quick Start

10 lines to your
first card.

Initialize the client, register an agent, create a card. That simple.

app.ts
// Initialize
import { AiPay } from '@aipay/sdk'
 
const aipay = new AiPay({ token: 'eyJhbG...' });
 
// Create a card
const card = await aipay.cards.create({
amount: 200,
currency: 'eur',
agent: 'procurement-bot'
});

Start building today.

Install the SDK and create your first card in minutes.

Read the docs