← agentwallet.md

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
Currency
USD / Fiat
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
SDK Quality
4.7
Documentation
4.8
Crypto Support
1.0
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' }); // Agent can now call tools like createPaymentLink, createInvoice, etc. 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', });

Alternatives

x402 Protocol
Crypto-native alternative โ€” USDC micropayments without Stripe, better for M2M API access
โ†’
PayPal Agent Checkout
Alternative fiat rails โ€” better when merchants or users prefer PayPal/Venmo
โ†’
Skyfire
Agent-to-agent crypto payments โ€” better for autonomous M2M crypto settlement
โ†’