Integrate

Integrate with
any stack.

Use the REST API directly, the aipaysh npm package, or connect via MCP. No SDK wrapper needed — the API is the SDK.


Three Ways In

Choose your interface.

REST API
api.aipay.sh/v1

Call the API directly from any language. Bearer token auth, JSON request/response, 9 resource groups. Works with Python, Go, Ruby, Java — anything that speaks HTTP.

$ curl -X POST https://api.aipay.sh/v1/cards
  • Bearer token authentication
  • JSON request and response
  • Works from any language or framework
  • 9 resource groups, 40+ endpoints
npm Package
aipaysh

Install the CLI globally for terminal access, or use it to start the MCP server programmatically. Authenticate once, then script everything.

$ npm install -g aipaysh
  • 8 CLI command groups
  • MCP server built in
  • Magic link or API key auth
  • Node.js 18+ and Bun supported
MCP Tools
aipay setup-mcp

One command connects 35 tools to Claude Code, Claude Desktop, or any MCP-compatible agent. Zero-code integration — the agent uses tools directly.

$ aipay setup-mcp
  • 35 tools across 8 categories
  • Works with Claude Code and Desktop
  • Destructive actions require approval
  • Read-only actions execute instantly

Quick Start

Create a card
with one request.

Authenticate with a Bearer token, POST to /v1/cards, and get back a live virtual Mastercard. Works from any language.

app.ts
// Authenticate first: aipay auth token
const res = await fetch(
'https://api.aipay.sh/v1/cards',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 200,
currency: 'eur',
agent: 'procurement-bot'
})
}
);
 
const card = await res.json();
// → { id, last_four, pan, cvv, status: 'active' }

Framework Integration

Works with your agent framework.

LangChain

Use MCP tools directly or wrap REST API calls as custom LangChain tools for agent financial access.

CrewAI

Connect via MCP to give your crew autonomous spending. Each agent gets its own card and budget policy.

AutoGen

Function calling via MCP tools or direct REST API integration for multi-agent financial workflows.

Any Language

The REST API works from Python, Go, Ruby, Java, or any HTTP client. No SDK dependency required.


Start integrating today.

REST API, CLI, or MCP — pick your path and ship in minutes.

Read the docs