Moving from Lemon Squeezy
Lemon Squeezy is winding down. It closed to new sellers on November 16, 2026, and on March 31, 2027 it stops processing payments, including renewals, and stops validating license keys. If your app checks its keys with Lemon Squeezy, you need a new checkout and a new place for your license keys before then.
The licensing services we looked at charge before you've sold anything, or take a cut of every sale, so we built KeyGrant to be free until your app takes off: free up to 250 active licenses, with no hidden fees and no revenue share. This page moves both halves: your checkout to Paddle or Stripe, and your license keys to KeyGrant, with the keys your customers already hold still working.
At a glance
- Deadline
- March 31, 2027
- Checkout
- Your own Paddle or Stripe account
- Existing keys
- Imported with their own strings, in the dashboard
- Your app
- A KeyGrant SDK, or the REST API
- Customers
- Keep their key; their devices activate again
What replaces Lemon Squeezy
Lemon Squeezy sold your app and issued its license keys. Moving off it takes two services, one for each:
| Job | Moves to |
|---|---|
| Checkout, payments, renewals, refunds | Paddle or Stripe, on your own account. Paddle is a merchant of record, and doesn't issue license keys itself. Payments go to your account, and KeyGrant takes no cut. |
| License keys, activation, device limits | KeyGrant. Linked to Paddle or Stripe, each paid checkout creates a key, a renewal extends it, and a refund can revoke it, with no code of yours in between. |
A KeyGrant account sells through Paddle or through Stripe, one at a time. If you bill some other way, your server can issue and revoke keys over the API (see Issue keys from a script).
The steps
- Set up your product and license models.
- Connect Paddle or Stripe.
- Export your keys from Lemon Squeezy.
- Import them into KeyGrant.
- Ship a build that checks keys with KeyGrant.
- Point your Buy button at the new checkout.
Do them well before March 31, 2027. Customers need time to install the new build: an old build that only asks Lemon Squeezy loses its license checks on that date, and what it does then is up to how you wrote it.
1. Set up your product and license models
- Create a KeyGrant account and a product for your app (Products > New product).
- On its License models tab, add a license model for each thing you sold on Lemon Squeezy: perpetual, subscription or timed, with its device limit. A product with two activation limits, such as a single-device and a five-device plan, is two models. See License models.
An imported key takes its device limit, grace period, Offline days and entitlements from its model, so set those before you import.
2. Connect Paddle or Stripe
Link your account in Settings > Payments, map each license model to the price that sells it, and build your checkout. Each guide covers it end to end:
- Selling through Paddle, including the checkout page Paddle.js needs (Build your checkout page).
- Selling through Stripe.
To have KeyGrant email each new key to its buyer, choose KeyGrant sends them on the product's License delivery tab (see Key delivery email).
3. Export your keys from Lemon Squeezy
You need a CSV with one row per key. KeyGrant's import reads these columns, and its Download a template CSV link gives you the header row:
| Column | From Lemon Squeezy | Required |
|---|---|---|
key | key, the full key | Yes |
email | user_email | No |
purchased | created_at, so the key keeps its original issue date | No |
expires | expires_at, empty for a key that never expires | No |
plan | The name of the KeyGrant license model the key takes | No |
Lemon Squeezy's API lists a store's license keys at GET /v1/license-keys. This script writes
them out as that CSV, with Node.js 20 or later:
// export-keys.mjs: node export-keys.mjs > keys.csv// Needs a Lemon Squeezy API key and your store's ID.const headers = { Authorization: `Bearer ${process.env.LEMONSQUEEZY_API_KEY}`, Accept: 'application/vnd.api+json',}
// Which KeyGrant license model each Lemon Squeezy product's keys take, by product ID.// The names must match your models' names. A key with no entry takes the model you pick on import.const PLANS = { 123456: 'Pro', 123457: 'Team' }
const cell = (v) => `"${String(v ?? '').replace(/"/g, '""')}"`console.log('key,email,purchased,expires,plan')
let url = `https://api.lemonsqueezy.com/v1/license-keys?filter[store_id]=${process.env.STORE_ID}&page[size]=100`while (url) { const res = await fetch(url, { headers }) if (!res.ok) throw new Error(`${res.status} ${await res.text()}`) const page = await res.json() for (const { attributes: a } of page.data) { if (a.status === 'disabled') continue // a key you turned off stays off console.log([a.key, a.user_email, a.created_at, a.expires_at, PLANS[a.product_id]].map(cell).join(',')) } url = page.links?.next} - Dates can stay as Lemon Squeezy writes them (ISO 8601). The import reads them.
- The script leaves out keys you disabled, since every imported key starts out valid. A key that has already expired imports as expired, and doesn't count toward your plan.
4. Import them into KeyGrant
In the dashboard, open Licenses and choose Import. The import has three steps:
- Choose a file: drop in the CSV, up to 50,000 rows.
- Map columns: pick the product and the license model the keys land under, and check what
each column maps to: Key string, Customer email,
Issued date, Expiry date or License model. A
plancolumn mapped to License model gives each row the model it names, by name or ID, and a row that names none takes the model you picked. - Review: see how many keys import under each model, and start the import.
What happens to your customers' keys
- Each key keeps its exact string. It doesn't take your product's key prefix, so the key in your customer's receipt email is the key they activate with.
- Their devices activate again. Activations don't move with the keys. Each device takes a seat on the key the first time it activates with KeyGrant, up to the model's device limit. Your new build can do that for them.
- No email goes out. Email every customer their key after import is off by default, since your customers already have their keys.
- A subscription stays with Lemon Squeezy until it ends. KeyGrant can't move a subscription's billing. Import the key with the end of its paid period as its expiry, and when the customer subscribes through your new checkout, that checkout creates their new key.
- What they paid isn't imported. An imported key shows no amount, because KeyGrant didn't see the payment.
- Imported keys that are still valid count as active licenses on your plan. The Review step shows where the import leaves you against your plan's limit.
A key KeyGrant already holds is skipped, whatever its case, so running the same import twice is safe. To pick up keys Lemon Squeezy sold since your first export, export again and import the whole file. Rows the import skips can be downloaded as a CSV, to fix and import again.
Note
Importing is in the dashboard only. The REST API and the CLI issue new keys, never one with a string you
choose: a key field sent to POST /v1/licenses is ignored and a new key is
created.
5. Ship a build that checks keys with KeyGrant
Your app called Lemon Squeezy's License API to activate, validate and deactivate a key. Each call has a KeyGrant counterpart. With an SDK you make one call, and between check-ins your app checks a signed lease on the device, offline:
| Lemon Squeezy License API | KeyGrant SDK | KeyGrant REST API |
|---|---|---|
POST /v1/licenses/activate with license_key, instance_name | activate(key) | POST /activate with key, fingerprint, name |
POST /v1/licenses/validate with license_key, instance_id | status(), checked on the device | POST /validate with key, activationId |
POST /v1/licenses/deactivate with license_key, instance_id | deactivate() | POST /deactivate with key, activationId |
Lemon Squeezy's instance_id becomes KeyGrant's activationId. The REST paths are
under https://api.keygrant.dev/v1/products/:slug/, where :slug is your product's API ID,
and they need no API key.
// Before: Lemon Squeezy's License APIconst res = await fetch('https://api.lemonsqueezy.com/v1/licenses/activate', { method: 'POST', headers: { Accept: 'application/json' }, body: new URLSearchParams({ license_key: key, instance_name: os.hostname() }),})const { activated, instance } = await res.json()// ...store instance.id, and send it to /v1/licenses/validate on launch // After: the KeyGrant SDKimport { License } from '@keygrant/electron'
const license = new License({ product: 'my-product', apiBaseUrl: 'https://api.keygrant.dev', publicJwks: PUBLIC_KEYS, // your product's public key set major: 1,})
const result = await license.activate(key)if (!result.ok) showActivationError(result.error)
// On every launch: checked on the device, usually with no requestconst status = await license.status() - SDKs for Electron, .NET, Rust, Swift, C++ and Flutter share these calls (see SDKs). Each one's quick start is its page's Use it section.
- Your app carries your product's public key set, to verify leases (see Get your product's public key).
- Without an SDK, verify the lease with any JWT library that supports EdDSA (see Verifying without an SDK).
Activate the key your old build stored
Your old build already holds each customer's key. Have the new build activate it on its first launch, and the customer never types it again:
// The first launch of your KeyGrant build: activate the key the old build stored, once,// so the customer doesn't type it again.const status = await license.status()if (status.state === 'unlicensed') { const oldKey = readLemonSqueezyKey() // wherever your old build kept it if (oldKey) await license.activate(oldKey)} Before you publish the build, test it against keys you imported, or against a test license (see Testing your integration).
6. Point your Buy button at the new checkout
Swap your site's and your app's Lemon Squeezy checkout links for your Paddle checkout page or Stripe Payment Link. From then on, each sale creates its key in KeyGrant. Any sales Lemon Squeezy made in between come over with one more export and import.
Issue keys from a script
If you sell outside Paddle and Stripe, your server or a script issues keys with a secret key from API keys, one call per license. These are new keys, made by KeyGrant:
curl -X POST https://api.keygrant.dev/v1/licenses \ -H "Authorization: Bearer $KEYGRANT_SECRET" \ -H "content-type: application/json" \ -H "Idempotency-Key: $ORDER_ID" \ -d '{"product":"my-product","modelId":"mod_…","email":"[email protected]"}' - There is no bulk call: loop over your rows. A secret key can issue 600 licenses a minute (see Rate limits).
count, 1 to 100, issues that many keys to one customer, as one sale.-
An
Idempotency-Keyper row means a re-run script returns the keys it already issued instead of making new ones. -
The CLI's
keygrant licenses issuemakes the same call, with--jsonfor scripts (see CLI).
The calls that extend, revoke and look up keys are in Managing licenses from your server.