तीन primitives, एक plugin। Agent Plugin में आपकी ज़रूरत की सभी चीज़ें शामिल हैं:
- API MCP server — payments, subscriptions, customers, products, refunds, licenses और usage का live access। browser OAuth के ज़रिए authenticate होता है (local keys की ज़रूरत नहीं)।
- Knowledge MCP server — सभी Dodo Payments documentation में semantic search। credentials की ज़रूरत नहीं।
- सत्रह agent skills — cheat sheets जिन्हें आपका agent checkout, subscriptions, webhooks, usage-based और credit-based billing, license keys, product catalog, discounts, localized pricing, mobile checkout, refunds और disputes, customer management, framework adapters, BillingSDK, Better Auth, testing और go-live, तथा best practices के लिए आवश्यकता के अनुसार load करता है।
Plugin install करें
नीचे अपना coding agent चुनें। इंस्टॉल करने पर दोनों MCP servers और सभी सत्रह skills अपने-आप जुड़ जाते हैं।Claude Code
Claude Code
Marketplace से install करें:API MCP server डिफ़ॉल्ट रूप से browser OAuth का उपयोग करता है — install के समय keys की आवश्यकता नहीं होती। पहली बार जब आपका agent किसी Dodo tool को call करेगा, तो आपको sign in करने के लिए कहा जाएगा।
Dodo Agent Plugin on GitHub
Source code, configuration options और local development instructions
Codex CLI
Codex CLI
Codex plugins को दो चरणों में install करता है: पहले अपने shell से marketplace register करें, फिर Codex TUI के भीतर plugin install करें।Plugin इंस्टॉल होने के बाद दोनों MCP servers और सभी सत्रह skills अपने-आप register हो जाते हैं।यदि आपने पहले marketplace और plugin जोड़ा है, लेकिन वह
1
Register the marketplace
2
Install from the Codex TUI
Codex खोलें और फिर
/plugins slash command चलाएँ:/plugins टाइप करें, Dodo Payments marketplace पर जाएँ, dodopayments plugin चुनें और Install plugin चुनें।Codex CLI में
codex plugin install subcommand नहीं है — plugin installation हमेशा TUI के भीतर /plugins flow के माध्यम से होता है। आधिकारिक Codex plugins docs देखें।/plugins के अंतर्गत दिखाई नहीं देता, तो उसे refresh करें:Cursor
Cursor
Manual install — repo को Cursor की local plugins directory में clone करें:Cursor को restart करें। Plugin
.claude/skills/ से skills load करता है (Cursor की Claude Code compatibility layer के माध्यम से) और .mcp.json से MCP servers load करता है।Cursor marketplace support जल्द उपलब्ध होगा। तब तक ऊपर दिए गए manual install का उपयोग करें।
OpenCode
OpenCode
OpenCode npm के माध्यम से वितरित होता है। Plugin को अपने OpenCode को restart करें। दोनों MCP servers (
opencode.json में जोड़ें:dodopayments-api, dodo-knowledge) plugin के config hook के ज़रिए अपने-आप register हो जाते हैं, और सत्रह skills इंस्टॉल किए गए package से auto-discover हो जाती हैं। किसी manual mcp block की आवश्यकता नहीं है।किसी अलग agent का उपयोग कर रहे हैं? MCP Server और Agent Skills guides में Cursor, Claude Desktop, VS Code, Windsurf, Cline, Zed और किसी भी MCP-compatible client की जानकारी दी गई है।
आपको क्या मिलता है
Plugin इंस्टॉल हो जाने के बाद आपके agent को दो MCP servers और सत्रह skills का access मिल जाता है।MCP servers
दोनों servers को
mcp-remote के माध्यम से जोड़ा गया है, इसलिए वे किसी भी MCP-compatible client में चलते हैं।
Agent skills
Skills अपने-आप load होती हैं — relevant task का पता चलने पर आपका agent सही skill चुन लेता है। पूरी सूची और individual installation के लिए Agent Skills documentation देखें।
पहले यह prompt आज़माएँ
Plugin active होने के बाद यह prompt आज़माएँ:webhook-integration skill load करेगा, नवीनतम payload shapes प्राप्त करने के लिए dodo-knowledge MCP का उपयोग करेगा और Standard Webhooks spec के अनुसार signature verification वाला handler लिखेगा।
अन्य supported agents
Agent Plugin में Claude Code, Codex CLI, Cursor और OpenCode शामिल हैं। यदि आप किसी अलग agent का उपयोग करते हैं, तो MCP servers और skills CLI के माध्यम से Dodo Payments से connect करें:Agents के लिए बनाए गए Docs
हर Dodo Payments documentation page AI consumption के लिए optimized format में उपलब्ध है:- Full docs index:
docs.dodopayments.com/llms.txt— context ingestion के लिए complete documentation index उपलब्ध कराता है। - Plain markdown: Raw markdown version पाने के लिए किसी भी documentation URL के अंत में
.mdजोड़ें (उदाहरण के लिए,/api-reference/introduction.md)। - Source repository:
github.com/dodopayments/dodo-docs— offline indexing के लिए clone करें।
आपका agent क्या कर सकता है
Plugin install होने पर आपका coding agent यह कर सकता है:- Checkout sessions और payment links बनाएँ — One-time payments और subscriptions
- Subscription और usage-based billing को end-to-end सेट अप करें — Subscriptions, Usage-based billing, Credit-based billing
- Signature verification के साथ Standard Webhooks–compliant handlers generate करें — Webhooks
- Official adapters का उपयोग करके अपने framework में route handlers mount करें — Framework adaptors
- Pricing tables और subscription management के लिए BillingSDK React components जोड़ें — BillingSDK
- Digital products के लिए license-key flows बनाएँ — License keys
- Entitlements, balances, rollover और overage के साथ credit-based billing लागू करें — Credits
- Add-ons और collections के साथ अपना product catalog बनाएँ और manage करें — Products, Add-ons, Product collections
- Discounts और localized pricing जोड़ें — Discount codes, Localized pricing, Adaptive Currency
- React Native, Flutter, iOS और Android के लिए mobile in-app checkout लॉन्च करें — Mobile integration
- Refunds, disputes और customer self-service संभालें — Refunds, Disputes, Customer portal
- Integration का परीक्षण करें और सुरक्षित रूप से go live करें — Test mode vs live mode
Security और best practices
- पहले test mode का उपयोग करें। Live होने से पहले
dodo_test_...keys के साथ अपने integration को sandbox करें। Test Mode vs Live Mode देखें। - OAuth डिफ़ॉल्ट है। Agent Plugin browser OAuth के माध्यम से authenticate करता है (local secrets नहीं)। API-key mode का उपयोग केवल आवश्यकता होने पर करें — नीचे Configure section देखें।
- Agent-generated code की समीक्षा करें। हमेशा सुनिश्चित करें कि webhook handlers में Standard Webhooks spec के अनुसार signature verification शामिल हो।
API key के साथ Configure करें
डिफ़ॉल्ट रूप से Agent Plugin browser OAuth के साथ remote MCP server का उपयोग करता है — local credentials की आवश्यकता नहीं होती। यदि आपके workflow में local API key की आवश्यकता है (जैसे CI environments या headless servers), तो आप stdio mode पर switch कर सकते हैं।Local API key mode — Claude Code
Local API key mode — Claude Code
Claude Code में अपने current session में changes लागू करने के लिए
/plugins खोलें, Dodo Payments चुनें और Configure options चुनें। ये भरें:dodo_api_key— आपकीdodo_test_...याdodo_live_...keydodo_webhook_key— आपका webhook signing secretdodo_environment—test_modeयाlive_mode
.mcp.json को edit करके dodopayments-api को local stdio server पर point करें:/reload-plugins चलाएँ।Local API key mode — OpenCode
Local API key mode — OpenCode
dodopayments-api को अपने opencode.json में स्वयं declare करें — आपकी entry plugin के default remote server पर प्राथमिकता पाएगी:अगले चरण
MCP Server
दोनों MCP servers के लिए पूर्ण reference — सभी supported clients, configuration और उपलब्ध tools
Agent Skills
Individual skill installation, skill reference और प्रत्येक agent के लिए setup instructions
Sentra IDE Assistant
VS Code, Cursor और Windsurf के लिए AI-powered billing assistant — अपने editor में पूछें, बनाएँ और योजना बनाएँ
API Reference
सभी Dodo Payments endpoints के लिए complete OpenAPI reference