Open-source AI memory platform that turns documents, code and conversations into a self-hosted knowledge graph for AI agents.
stripe/ai
Stripe's open-source SDKs and agent tooling for adding billing and payments to LLM and AI agent products.
- Stars
- 1,963
- Forks
- 401
- Open issues
- 100
- Last commit
- 14 hours ago
What is it?
Stripe AI is a collection of SDKs and agent tooling that connects Stripe's billing infrastructure to LLM applications. The @stripe/ai-sdk package integrates with Vercel's ai and @ai-sdk libraries, while @stripe/token-meter works with the native OpenAI, Anthropic, and Google Gemini SDKs without framework dependencies.
The repository also covers agent access to Stripe. Stripe hosts a remote MCP server at mcp.stripe.com that supports OAuth-based client access, and the repo offers agent skills and official plugins for Claude Code, Codex, Cursor, and Grok Build, along with an Agent Plugins package.
Skills can be installed manually with npx skills add, though manually installed skills do not auto-update and need npx skills update to refresh.
Key features
- 01Stripe billing integration for Vercel's ai and @ai-sdk libraries via @stripe/ai-sdk.
- 02Token-based metering for native OpenAI, Anthropic, and Google Gemini SDKs with @stripe/token-meter.
- 03Hosted remote MCP server at mcp.stripe.com with OAuth client access.
- 04Agent skills that guide agents toward current Stripe best practices.
- 05Official plugins for Claude Code, Codex, Cursor, and Grok Build.
Use cases
- Charging end users for LLM usage in a Vercel AI SDK application.
- Metering token consumption from direct OpenAI, Anthropic, or Gemini API calls.
- Letting an AI agent query or act on a Stripe account through MCP.
- Equipping a coding agent with Stripe integration guidance while building payments features.
Quick start
- 1
Install the Stripe agent skills manually with npx
npx skills add https://docs.stripe.com - 2
Install the Claude Code Stripe plugin
claude plugin install stripe@claude-plugins-official
Things to know
- The README covers mainly agent plugins and skills; SDK setup details are in linked subfolders, not shown here.
- Manually installed skills do not auto-update and need manual updates.
Topics
FAQ
- What is ai?
- Stripe's open-source SDKs and agent tooling for adding billing and payments to LLM and AI agent products. Stripe AI is a collection of SDKs and agent tooling that connects Stripe's billing infrastructure to LLM applications. The @stripe/ai-sdk package integrates with Vercel's ai and @ai-sdk libraries, while @stripe/token-meter works with the native OpenAI, Anthropic, and Google Gemini SDKs without framework dependencies.
- Is ai free to use? What license does it have?
- ai is open source under the MIT license. Check the license terms before using it in commercial products.
- Is ai still maintained?
- Actively maintained. The last commit to ai was on Oct 20, 2026.
- What can I use ai for?
- Charging end users for LLM usage in a Vercel AI SDK application. Metering token consumption from direct OpenAI, Anthropic, or Gemini API calls. Letting an AI agent query or act on a Stripe account through MCP. Equipping a coding agent with Stripe integration guidance while building payments features.
- How do I install ai?
- Install the Stripe agent skills manually with npx: npx skills add https://docs.stripe.com Install the Claude Code Stripe plugin: claude plugin install stripe@claude-plugins-official
- Where can I get ai?
- The source code and installation instructions are on GitHub: https://github.com/stripe/ai
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A JavaScript library that embeds a GUI agent in any web page, letting users control the interface with natural language.
TypeScript framework for building AI agents with memory, tools, MCP, RAG, voice and workflows, plus the VoltOps console for observability.
Open-source SDK for building and running AI agents in Python and TypeScript, with tools, MCP, memory, and model portability.
A TypeScript SDK for building persistent, stateful AI agents on Cloudflare Durable Objects, with real-time state sync, scheduling, and MCP support.
Agent-native memory infrastructure that turns LLM agent conversations and execution into persistent, structured memory for Python and TypeScript apps.