Three primitives, one plugin. The Agent Plugin bundles everything you need:
- API MCP server — live access to payments, subscriptions, customers, products, refunds, licenses, and usage. Authenticates via browser OAuth (no local keys required).
- Knowledge MCP server — semantic search across all Dodo Payments documentation. No credentials needed.
- Eight agent skills — cheat sheets your agent loads on demand for checkout, subscriptions, webhooks, usage-based billing, credit-based billing, license keys, BillingSDK, and best practices.
Install the plugin
Choose your coding agent below. The install adds both MCP servers and all eight skills automatically.Claude Code
Claude Code
Install from the marketplace:The API MCP server uses browser OAuth by default — no keys required at install time. The first time your agent calls a Dodo tool, you’ll be prompted to sign in.
Dodo Agent Plugin on GitHub
Source code, configuration options, and local development instructions
Codex CLI
Codex CLI
Codex reads Both MCP servers and all eight skills are registered automatically.
.claude-plugin/marketplace.json natively, so the same plugin repo works:Cursor
Cursor
Manual install — clone the repo into Cursor’s local plugins directory:Restart Cursor. The plugin loads skills from
.claude/skills/ (via Cursor’s Claude Code compatibility layer) and MCP servers from .mcp.json.Cursor marketplace support is coming. For now, use the manual install above.
OpenCode
OpenCode
OpenCode distributes via npm. Add the plugin to your Restart OpenCode. Both MCP servers (
opencode.json:dodopayments-api, dodo-knowledge) are registered automatically via the plugin’s config hook, and the eight skills are auto-discovered from the installed package. No manual mcp block required.Using a different agent? The MCP Server and Agent Skills guides cover Cursor, Claude Desktop, VS Code, Windsurf, Cline, Zed, and any MCP-compatible client.
What you get
Once the plugin is installed, your agent has access to two MCP servers and eight skills.MCP servers
| Server | Purpose | Auth |
|---|---|---|
dodopayments-api | Live API access — payments, subscriptions, customers, products, refunds, licenses, usage | OAuth (browser) |
dodo-knowledge | Semantic search across all Dodo Payments documentation | None |
mcp-remote so they run in any MCP-compatible client.
Agent skills
| Skill | Description |
|---|---|
best-practices | Comprehensive guide to integrating Dodo Payments with best practices |
checkout-integration | Creating checkout sessions and payment flows |
subscription-integration | Implementing subscription billing flows |
webhook-integration | Setting up and handling webhooks for payment events |
usage-based-billing | Implementing metered billing with events and meters |
credit-based-billing | Credit entitlements, balances, and metered credit deduction |
license-keys | Managing license keys for digital products |
billing-sdk | Using BillingSDK React components |
Try this prompt first
Once the plugin is active, try:webhook-integration skill, use the dodo-knowledge MCP to pull the latest payload shapes, and write a handler with signature verification following the Standard Webhooks spec.
Other supported agents
The Agent Plugin covers Claude Code, Codex CLI, Cursor, and OpenCode. If you use a different agent, connect to Dodo Payments through the MCP servers and skills CLI:| Agent | Fastest path | Also supports |
|---|---|---|
| Claude Code | Agent Plugin (one command) | MCP server, individual skills |
| Codex CLI | Agent Plugin (one command) | MCP server |
| Cursor | Agent Plugin (git clone) | MCP server config, skills CLI |
| OpenCode | Agent Plugin (npm) | MCP server config, skills CLI |
| GitHub Copilot (VS Code) | MCP Server guide | Skills CLI |
| Claude Desktop | MCP Server guide | — |
| Windsurf | MCP Server guide | Skills CLI |
| Cline / Zed / others | MCP Server guide | Skills CLI |
Docs built for agents
Every Dodo Payments documentation page is available in a format optimized for AI consumption:- Full docs index:
docs.dodopayments.com/llms.txt— serves the complete documentation index for context ingestion. - Plain markdown: Append
.mdto any documentation URL to get the raw markdown version (e.g.,/api-reference/introduction.md). - Source repository:
github.com/dodopayments/dodo-docs— clone for offline indexing.
What your agent can do
With the plugin installed, your coding agent can:- Create checkout sessions and payment links — One-time payments and subscriptions
- Stand up subscription and usage-based billing end-to-end — Subscriptions, Usage-based billing, Credit-based billing
- Generate Standard Webhooks–compliant handlers with signature verification — Webhooks
- Wire BillingSDK React components for pricing tables and subscription management — BillingSDK
- Author license-key flows for digital products — License keys
- Implement credit-based billing with entitlements, balances, rollover, and overage — Credits
Security and best practices
- Use test mode first. Sandbox your integration with
dodo_test_...keys before going live. See Test Mode vs Live Mode. - OAuth is the default. The Agent Plugin authenticates via browser OAuth (no local secrets). Only use API-key mode if you need it — see the Configure section below.
- Review agent-generated code. Always verify webhook handlers include signature verification following the Standard Webhooks spec.
Configure with an API key
By default, the Agent Plugin uses the remote MCP server with browser OAuth — no local credentials needed. If your workflow requires a local API key (e.g., CI environments, headless servers), you can switch to stdio mode.Local API key mode — Claude Code
Local API key mode — Claude Code
Open Run
/plugins in Claude Code, select Dodo Payments, and choose Configure options. Fill in:dodo_api_key— yourdodo_test_...ordodo_live_...keydodo_webhook_key— your webhook signing secretdodo_environment—test_modeorlive_mode
.mcp.json to point dodopayments-api at the local stdio server:/reload-plugins to apply changes to your current session.Local API key mode — OpenCode
Local API key mode — OpenCode
Declare Restart OpenCode to apply.
dodopayments-api yourself in opencode.json — your entry wins over the plugin’s default remote server:Next steps
MCP Server
Full reference for both MCP servers — all supported clients, configuration, and available tools
Agent Skills
Individual skill installation, skill reference, and per-agent setup instructions
Sentra IDE Assistant
AI-powered billing assistant for VS Code, Cursor, and Windsurf — ask, build, and plan in your editor
API Reference
Complete OpenAPI reference for all Dodo Payments endpoints