On this page

Guide

Migrate License Keys to Keyfern

Move your keys from Lemon Squeezy, Creem, Paddle or any other system. Your customers keep the keys they already have, and you see a preview of every import before anything is saved.

Before you start

  1. Create an account and a product. Set how many machines one key may activate and, if your app should run offline, the lease days.
  2. Open the product, go to Keys and click Import. Pick where the keys come from.
  3. Click Preview. Keyfern shows how many keys are new, how many already exist in the product (they are updated), rows listed twice and rows it cannot import, with the reason for each. Nothing is saved until you click Import.

Imported keys count against your plan. Importing the same data again updates the keys and never duplicates them.

From Lemon Squeezy

Lemon Squeezy stops processing payments on March 31, 2027. Move your license keys before then. What changes and what does not: Lemon Squeezy license keys alternative.

  1. In Lemon Squeezy, open Settings, API and create an API key.
  2. In Keyfern, choose Import from: Lemon Squeezy and paste the key. It is used once to read your keys and is never stored.
  3. Check the preview and click Import.
Lemon SqueezyKeyfern
keyThe same key. Keyfern stores it upper-case and finds it in any case, so your app can keep sending it as it is.
status disabledBlocked
expires_atExpiry date (empty = never)
activation_limitMachines per key (no limit = unlimited)
user_name, user_emailCustomer name and email
License, order, order item, product and customer idsmeta: ls_license_id, ls_order_id, ls_order_item_id, ls_product_id, ls_customer_id

Activations. A Lemon Squeezy activation is an instance with its own id. After the switch your app sends a Keyfern machine id instead, so by default old activations are not copied: the app activates again on its first start with Keyfern, without the customer doing anything. Turn on Keep existing activations as machines only if your app will send the instance id it saved from Lemon Squeezy as its machine id. Otherwise the old activations would fill the machine slots.

From Creem

  1. Create an API key in your Creem dashboard. A test key (creem_test_...) reads your test-mode licenses.
  2. In Keyfern, choose Import from: Creem and paste the key. It is used once and never stored.
  3. Check the preview and click Import.

Creem has no list of all licenses, so Keyfern reads each customer and their licenses: a large store takes a minute. The key string, disabled status (imported blocked), expiry, activation limit and customer carry over; the Creem ids go into meta as creem_license_id, creem_product_id and creem_customer_id. The activations work as described for Lemon Squeezy above. Keys with characters other than A-Z, 0-9, dash, underscore and dot are listed in the preview as not importable.

From Paddle

Paddle Billing has no license keys, so Keyfern creates one key for each live subscription.

  1. In Paddle, open Reports, create a subscriptions report and download the CSV.
  2. In Keyfern, choose Import from: Paddle, pick the file and set the grace days (7 by default).
  3. Check the preview and click Import. Then send each customer their key: Export CSV on the Keys tab lists every key with its customer email.

Active, trialing and past-due subscriptions get a key; canceled and paused ones are skipped. Each key expires at the next billing date (or the end of the current period) plus the grace days, and keeps the subscription, customer and product ids in meta. Import a newer report later to move the dates: the same subscriptions update the same keys.

From any other system

Export your keys as CSV or JSON and choose Import from: CSV or JSON file. Only key is required; status, expiry, features, machine limit, customer, notes, meta and existing machines are optional. The fields are listed in the import API reference.

Update your app

Replace the old license calls with a Keyfern SDK: Python, JavaScript and Electron, C# and .NET, Kotlin and Android, Flutter or React Native. Keys work on Keyfern from the moment they are imported, so ship the app update first and keep the old service running until your customers have it.

Script it

The dashboard uses the public Management API, so the same migration runs from a script with an API token (write scope):

# 1. read the keys from Lemon Squeezy (or "creem"); nothing is saved yet
curl -X POST https://keyfern.com/api/products/prod_8fQ2xLw1/import/fetch \
  -H "Authorization: Bearer $KF" -H "Content-Type: application/json" \
  -d '{"source":"lemonsqueezy","api_key":"'"$LS_KEY"'"}' > keys.json

# 2. preview, then import (the "keys" array of step 1, up to 20,000 per request)
curl -X POST https://keyfern.com/api/products/prod_8fQ2xLw1/import \
  -H "Authorization: Bearer $KF" -H "Content-Type: application/json" \
  -d "{\"dry_run\": true, \"keys\": $(jq .keys keys.json)}"

Remove "dry_run": true to save. The answer lists created, updated, duplicates and the first 50 errors.