Stripe Agent Toolkit
Payment Rail
Official
Open Source
Best for: Agents creating payment links, invoices, and subscriptions; traditional fiat payment workflows
Not ideal for: Crypto/stablecoin operations; micropayments; non-Stripe payment infrastructure
Key Signals
Payment Network
Stripe APIs
Frameworks
LangChain / Vercel AI SDK
Pricing
Usage-based (Stripe fees)
Features
๐ฆ
Official Stripe SDK for AI Agents
First-party toolkit from Stripe, giving agents access to the full Stripe API surface. Pre-built tool definitions for LangChain and Vercel AI SDK mean no manual API wrapping required.
๐
Payment Link Creation
Agents can generate Stripe payment links on the fly and share them with customers. Useful for AI sales agents, quoting tools, and dynamic pricing flows where the purchase amount varies per interaction.
๐งพ
Invoice Generation
Create, send, and track Stripe invoices programmatically. Agents can handle billing queries, issue invoices automatically after service completion, and manage payment collection workflows end-to-end.
๐
Subscription Management
Create and modify Stripe subscriptions, manage plan changes, handle cancellations. LangChain tools are included for common subscription operations, making it easy to build AI-powered billing support agents.
Ratings
Fiat Payment Coverage
4.9
Ratings based on documentation review, GitHub activity, and public developer reports. Not independently verified in production.
Integration
npm install @stripe/agent-toolkit
import { StripeAgentToolkit } from '@stripe/agent-toolkit/langchain';
import { ChatOpenAI } from '@langchain/openai';
import { AgentExecutor, createOpenAIFunctionsAgent } from 'langchain/agents';
const stripeToolkit = new StripeAgentToolkit({
secretKey: process.env.STRIPE_SECRET_KEY,
configuration: {
actions: {
paymentLinks: { create: true },
invoices: { create: true, list: true },
subscriptions: { create: true, update: true },
},
},
});
const tools = stripeToolkit.getTools();
const llm = new ChatOpenAI({ model: 'gpt-4o' });
const agent = await createOpenAIFunctionsAgent({ llm, tools, prompt });
const executor = AgentExecutor.fromAgentAndTools({ agent, tools });
const result = await executor.invoke({
input: 'Create a $49 payment link for the Pro plan',
});