@dodopayments/opencode-plugin 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -12
- package/opencode-plugin/README.md +3 -3
- package/package.json +1 -1
- package/skills/best-practices/SKILL.md +335 -179
- package/skills/better-auth-integration/SKILL.md +214 -0
- package/skills/billing-sdk/SKILL.md +357 -370
- package/skills/checkout-integration/SKILL.md +580 -329
- package/skills/credit-based-billing/SKILL.md +448 -775
- package/skills/customer-management/SKILL.md +281 -0
- package/skills/discounts-and-promotions/SKILL.md +464 -0
- package/skills/framework-adapters/SKILL.md +644 -0
- package/skills/license-keys/SKILL.md +324 -199
- package/skills/localized-pricing/SKILL.md +230 -0
- package/skills/mobile-checkout/SKILL.md +521 -0
- package/skills/product-catalog-management/SKILL.md +311 -0
- package/skills/refunds-and-disputes/SKILL.md +333 -0
- package/skills/subscription-integration/SKILL.md +323 -404
- package/skills/testing-and-go-live/SKILL.md +335 -0
- package/skills/usage-based-billing/SKILL.md +339 -479
- package/skills/webhook-integration/SKILL.md +600 -402
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# Dodo Payments Agent Plugin
|
|
2
2
|
|
|
3
3
|
[](./LICENSE)
|
|
4
|
-
[](./CHANGELOG.md)
|
|
5
5
|
[](https://www.npmjs.com/package/@dodopayments/opencode-plugin)
|
|
6
6
|
[](https://discord.gg/bYqAp4ayYh)
|
|
7
7
|
|
|
8
|
-
The official Dodo Payments plugin for AI coding agents. Installs
|
|
8
|
+
The official Dodo Payments plugin for AI coding agents. Installs seventeen integration skills and two MCP servers across **Claude Code**, **Codex CLI**, **Cursor**, and **OpenCode** from a single source of truth.
|
|
9
9
|
|
|
10
10
|
## What you get
|
|
11
11
|
|
|
12
12
|
- **Dodo Payments API MCP server** - Live API access (payments, subscriptions, customers, products, refunds, licenses, usage). Authenticates via browser OAuth, no local credentials required.
|
|
13
13
|
- **Dodo Knowledge MCP server** - No credentials. Semantic search over the current Dodo Payments documentation.
|
|
14
|
-
- **
|
|
14
|
+
- **Seventeen agent skills** - Written as `SKILL.md` files with YAML frontmatter. Your agent loads the relevant skill on its own when a task calls for it.
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
@@ -71,7 +71,7 @@ OpenCode distributes via npm. Add the plugin to your `opencode.json`:
|
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
Restart OpenCode. Both MCP servers (`dodopayments-api`, `dodo-knowledge`) are registered automatically via the plugin's `config` hook, and the
|
|
74
|
+
Restart OpenCode. Both MCP servers (`dodopayments-api`, `dodo-knowledge`) are registered automatically via the plugin's `config` hook, and the seventeen skills are auto-discovered from the installed package. No manual `mcp` block required.
|
|
75
75
|
|
|
76
76
|
If you prefer the local stdio API server with your own API key instead of the default remote OAuth server, declare `dodopayments-api` yourself in `opencode.json` - your entry wins over the plugin default:
|
|
77
77
|
|
|
@@ -95,16 +95,52 @@ If you prefer the local stdio API server with your own API key instead of the de
|
|
|
95
95
|
|
|
96
96
|
## Included Skills
|
|
97
97
|
|
|
98
|
+
**Getting started**
|
|
99
|
+
|
|
100
|
+
| Skill | Description |
|
|
101
|
+
|-------|-------------|
|
|
102
|
+
| `best-practices` | SDK setup, environments, API keys, and the canonical checkout-to-webhook architecture |
|
|
103
|
+
| `framework-adapters` | Official `@dodopayments/*` handlers for Next.js, Express, Hono, Astro, Remix, SvelteKit, Nuxt, Fastify, TanStack, Bun, Convex |
|
|
104
|
+
| `testing-and-go-live` | Test mode, test payment methods, webhook testing, production launch checklist |
|
|
105
|
+
|
|
106
|
+
**Accepting payments**
|
|
107
|
+
|
|
108
|
+
| Skill | Description |
|
|
109
|
+
|-------|-------------|
|
|
110
|
+
| `checkout-integration` | Checkout Sessions, payment links, and overlay checkout |
|
|
111
|
+
| `subscription-integration` | Subscription lifecycle, trials, plan changes, proration, on-demand charges |
|
|
112
|
+
| `mobile-checkout` | In-app checkout for React Native, Flutter, iOS, and Android |
|
|
113
|
+
| `webhook-integration` | Receiving and verifying webhooks via the Standard Webhooks spec |
|
|
114
|
+
|
|
115
|
+
**Billing models**
|
|
116
|
+
|
|
117
|
+
| Skill | Description |
|
|
118
|
+
|-------|-------------|
|
|
119
|
+
| `credit-based-billing` | Credit entitlements, balances, ledger, rollover, overage, meter-based deduction |
|
|
120
|
+
| `usage-based-billing` | Meters, event ingestion, aggregation, and per-unit pricing |
|
|
121
|
+
| `license-keys` | License key activation, validation, and instance management |
|
|
122
|
+
|
|
123
|
+
**Catalog and pricing**
|
|
124
|
+
|
|
125
|
+
| Skill | Description |
|
|
126
|
+
|-------|-------------|
|
|
127
|
+
| `product-catalog-management` | Products, pricing, add-ons, collections, images, digital delivery |
|
|
128
|
+
| `discounts-and-promotions` | Discount codes, eligibility, stacking, subscription-cycle limits |
|
|
129
|
+
| `localized-pricing` | Localized pricing, adaptive currency, and purchasing power parity |
|
|
130
|
+
|
|
131
|
+
**Customers and operations**
|
|
132
|
+
|
|
133
|
+
| Skill | Description |
|
|
134
|
+
|-------|-------------|
|
|
135
|
+
| `customer-management` | Customers, self-service portal, payment methods, wallets |
|
|
136
|
+
| `refunds-and-disputes` | Refunds, disputes and chargebacks, access reconciliation |
|
|
137
|
+
|
|
138
|
+
**UI and integrations**
|
|
139
|
+
|
|
98
140
|
| Skill | Description |
|
|
99
141
|
|-------|-------------|
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
| `subscription-integration` | Implementing subscription billing flows |
|
|
103
|
-
| `webhook-integration` | Setting up and handling webhooks for payment events |
|
|
104
|
-
| `usage-based-billing` | Implementing metered billing with events and meters |
|
|
105
|
-
| `credit-based-billing` | Credit entitlements, balances, and metered credit deduction |
|
|
106
|
-
| `license-keys` | Managing license keys for digital products |
|
|
107
|
-
| `billing-sdk` | Using BillingSDK React components |
|
|
142
|
+
| `billing-sdk` | BillingSDK React components for pricing tables and billing UI |
|
|
143
|
+
| `better-auth-integration` | The `@dodopayments/better-auth` plugin for customer sync, checkout, portal |
|
|
108
144
|
|
|
109
145
|
Skills source: [`dodopayments/skills`](https://github.com/dodopayments/skills) (bundled as a git submodule in `skills-src/`).
|
|
110
146
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @dodopayments/opencode-plugin
|
|
2
2
|
|
|
3
|
-
Official OpenCode plugin for Dodo Payments. Ships
|
|
3
|
+
Official OpenCode plugin for Dodo Payments. Ships seventeen integration skills and auto-registers two MCP servers.
|
|
4
4
|
|
|
5
5
|
This package is part of [`dodopayments/dodo-agent-plugin`](https://github.com/dodopayments/dodo-agent-plugin) - the universal Dodo Payments plugin that also installs into Claude Code, Codex, and Cursor.
|
|
6
6
|
|
|
@@ -18,12 +18,12 @@ Add to your `opencode.json`:
|
|
|
18
18
|
Restart OpenCode. That's it.
|
|
19
19
|
|
|
20
20
|
- Both MCP servers are registered automatically via the plugin's `config` hook.
|
|
21
|
-
- The
|
|
21
|
+
- The seventeen skills are auto-discovered from this package's `skills/` directory.
|
|
22
22
|
- The first call to `dodopayments-api` opens a browser for OAuth. `dodo-knowledge` needs no auth.
|
|
23
23
|
|
|
24
24
|
## What you get
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Seventeen agent skills (auto-loaded when relevant): `best-practices`, `framework-adapters`, `testing-and-go-live`, `checkout-integration`, `subscription-integration`, `mobile-checkout`, `webhook-integration`, `credit-based-billing`, `usage-based-billing`, `license-keys`, `product-catalog-management`, `discounts-and-promotions`, `localized-pricing`, `customer-management`, `refunds-and-disputes`, `billing-sdk`, `better-auth-integration`.
|
|
27
27
|
|
|
28
28
|
Two MCP servers (registered automatically):
|
|
29
29
|
|