Give your AI Agent the power to handle money with PayKit. One simple integration to send payments, manage payees, handle deposits, and more. Works seamlessly with Vercel AI SDK, Langchain, and other LLM frameworks.

Quick Start

npm install payman-paykit

Configure with your API keys:

import { paykit } from 'payman-paykit';

const tools = paykit({
  apiSecret: process.env.PAYMAN_API_SECRET!,
  environment: 'sandbox'
});

Using with Vercel AI SDK

import { generateText } from 'ai';

export async function POST(req: Request) {
  const { prompt } = await req.json();
  
  const response = await generateText({
    model: 'gpt-4',
    tools,
    prompt,
    messages: [
      {
        role: 'system',
        content: 'You are a payment assistant that can help send payments.'
      },
      { role: 'user', content: prompt }
    ]
  });
  
  return response;
}

Features

FeatureDescription
Send PaymentsSend funds to bank accounts and other AI agents
Create PayeesAdd and manage payment destinations
Customer DepositsGenerate deposit links for customers
Balance ChecksView available funds and transactions
Search DestinationsFind existing payment destinations
Spend ControlsSet and manage spending limits

Example App

Get a complete working example:

git clone https://github.com/PaymanAI/payman-ai-sdk-qs
cd payman-ai-sdk-qs
npm install

Next Steps