Quick answer: if you want to sell vibe coded apps, you need a store. Not a key generator. I know that’s the thing people reach for first.
We make License Manager for WooCommerce Pro, so we’re biased. WordPress plus WooCommerce: customer pays, a key lands in the order email and under My Account, they paste it into the vibe coded app they built in Cursor or Lovable or Bolt or Claude. That app calls POST /wp-json/lmfwc/v1/public/activate, then /validate, with the Application public key and a device ID. Updates can hide behind the key, and so can renewals if you use WooCommerce Subscriptions. We don’t take a revenue cut.
Disclosure: we make License Manager for WooCommerce Pro. On 1 December 2026 we ran this against v2.0.1 on our test store, including the Node.js 20 script further down. The sample URLs say example.com. Change them.
Sell your vibe-coded app from your own store
WooCommerce checkout, automatic license delivery, an activation API, updates and subscriptions — on a site you own, with 0% revenue share.
Live DemoView PricingWhat do you need before you start?
WordPress, WooCommerce, and License Manager for WooCommerce Pro. Applications, the public client API, and application releases are Pro features.
Desktop, CLI, plugin, theme: as long as it can POST JSON over HTTPS. We used the Fetch API in Node.js 18+. Same request works in a browser, Electron, or a phone runtime. Live store goes on HTTPS. The key is in the body, so don’t use plain HTTP once you’re off localhost.
How do you sell vibe coded apps from your own store?
WooCommerce is the shop. We sit on it and do the licenses. You own the site.
A customer buys a product hooked to a generator and an Application. We mint a key. Ours came out VIBE-482RY-MAVYL-64PPL-9CXS5. It lands in the order email and under My Account › License keys. They type it into the app, which calls /activate and burns one seat (or reuses it if this install already activated). Stick the key in a per-user data folder, or localStorage. Not next to the binary. People will poke around in there.
Every launch, /validate. Only run if this install is still activated, the key isn’t expired, and the status isn’t blocked. Nasty surprise in that JSON. I’m getting to it.
| Action | Endpoint (POST, JSON body) | Route ID in settings |
|---|---|---|
| Activate | /wp-json/lmfwc/v1/public/activate | 030 |
| Deactivate | /wp-json/lmfwc/v1/public/deactivate | 032 |
| Validate | /wp-json/lmfwc/v1/public/validate | 033 |
public_key, license_key and domain (required), plus optional application_id and plugin_version.The device field is called domain, leftover from the WordPress-plugin days. For a desktop app it’s just a label. We don’t fingerprint hardware, so you pick the identifier. We used the computer name plus a short random suffix, like alex-laptop-7k4m2a1b. The server lowercases it and chops everything after a /. Letters, digits, dashes. The Create an Application docs list the fields.
How is this different from Gumroad, Freemius, Keygen or Cryptlex?
Look, these names get dumped in the same sentence all the time. They shouldn’t be.
| Bucket | Typical tools | What you get | What you give up |
|---|---|---|---|
| Store with basic keys (usually a merchant of record) | Gumroad, Lemon Squeezy | Checkout, tax handling, a simple key or use counter | A platform fee, limited activation rules, and the customer list lives on their site |
| Licensing API only | Keygen.sh, Cryptlex | Deep license types (often including offline, floating or hardware-locked keys) | You still have to build or stitch on a store and a checkout |
| Ready-made selling platform | Freemius, or your own WooCommerce store + License Manager | Checkout, automatic licenses, activation, updates and subscriptions in one stack | Freemius takes a revenue share and is built mainly around WordPress plugins and themes. License Manager runs on your store with 0% revenue share, and it is not a merchant of record |
Awkward part, out loud: we’re not a merchant of record and we don’t collect VAT or sales tax. That’s you, or your payment plugin. No offline activation, no signed license files, no floating or concurrent seats, no hardware fingerprinting (HWID). Need those? A licensing API. Want a merchant of record? Freemius, Gumroad, Lemon Squeezy. This post is the “my own store, no revenue share” path.
Wrapped it in Electron? Do the store setup here, then jump to our Electron license key walkthrough. We also wrote how to sell license keys for your own indie game. If what you shipped is a WordPress plugin, use the WordPress plugin license keys and auto updates guide. I’m staying generic here.
How to sell software online without a revenue share
Most writeups on how to sell software online start with a marketplace. You list the app, they take a cut, and the customer list lives on their site. Fine if you want a merchant of record to deal with tax. Less fine if you’d rather own the checkout.
The other path, if you want to sell software online and keep the store, is pretty ordinary: WooCommerce for payment, License Manager for WooCommerce Pro for the licenses. That’s how you sell license keys online without standing up your own key server. Customer pays on your site. A key goes out in the order email and under My Account. The app activates against an API you control. We don’t take a percentage of the sale.
I wouldn’t call any one setup the best way to sell software online. If you don’t want to handle VAT, a merchant-of-record platform is simpler. If the app can POST over HTTPS and you already use WordPress, your own store is the version that skips the revenue share. The steps below are that version.
Step 1: Create a generator with a device limit
Anyway. Generators. Open Generators › Add Generator. Character map, chunks, chunk length, optional prefix. We went with VIBE-.
Max Activations and Expires In (Days) are the two that matter. We set Max Activations to 2. Laptop plus desktop. That’s a device-limited license, not a hardware lock. Expires In we set to 365. Leave it blank if you don’t want an expiry. Both activate and validate will tell you when a key’s expired.

Step 2: Create an Application and copy its public key
Don’t skim this one. The public key lives here. Applications › Add Application, name it after the app, type Other if it isn’t a WordPress project. You’ll get a public key starting with lm_live_. Ship that. It only identifies the Application; it can’t create or edit licenses. Write down the Application ID too. Ours was 6.

Step 3: Link the WooCommerce product to the generator and Application
Make a simple, virtual WooCommerce product, then open Product data › License Manager. Select Application has to be the one from Step 2. If it isn’t, the public API just rejects the key, and you’ll think your fetch is broken. Tick Sell license keys, leave Delivered quantity at 1, tick Generate license keys, pick your generator. Already imported a pile of keys? Use Sell from stock instead.

Step 4: Turn on the public API routes
Tick the routes. I’m not kidding. Leave them off and every call comes back HTTP 403 with lmfwc_rest_api_route_disabled. We’ve seen it. WooCommerce › Settings › License Manager › General, under Public API — lmfwc/v1/public/*, tick v1/public/activate, v1/public/deactivate and v1/public/validate, then save.
While you’re there: Rate Limiting. Our test store was 10 requests per 60 seconds per IP, then HTTP 429 (lmfwc_rate_limit_exceeded). Per IP, so a whole office shares the bucket. The module treats a 429 or a dead network as temporary. You can add a short offline window in the app. We have no grace period on the server.

Step 5: Place a test order and find the key
Buy the product, or complete a manual order. The key shows up in the order email, under Licenses in the admin, and on My Account. Never done order delivery? We already wrote generating WooCommerce order license keys.
Want to see this admin before you wire up the app? Open the Live Demo and look at Generators, Applications and Activations, or compare plans on the pricing page.
Step 6: Add the licensing module to your vibe coded app
Here’s the file we ran. I’m not going to pretend we typed it from memory. Save it as licensing.js next to your entry script and fill in STORE_URL, PUBLIC_KEY and APPLICATION_ID. It’s just fetch. No SDK.
We ran it with Node.js v20.19.2 against License Manager Pro 2.0.1 on our test store. First device activated, times_activated 1/2. Second device, 2/2. A third one? lmfwc_activation_limit_reached. A junk key, VIBE-XXXXX-XXXXX-XXXXX-XXXXX, came back lmfwc_license_not_found. We deactivated device 2, then device 3 activated like nothing happened. Feed it the wrong application_id and you get lmfwc_invalid_application_id.
Working in Cursor? Paste the file in, tell it to call activate(key) from the “Enter license” screen and gate() on startup, then actually read what it writes. The paid check has to live somewhere the customer can’t poke at: the main process, or a server if it’s a web app. From a terminal:
/**
* licensing.js
*
* Hits the License Manager public endpoints:
* POST /wp-json/lmfwc/v1/public/{activate|validate|deactivate}
*
* Needs Node 18+ (global fetch). In a browser or an Electron renderer,
* drop the node:fs / node:os / node:path stuff and stash the key in
* localStorage or a user-data file instead.
*
* The Application public key is fine to ship. Don't put WooCommerce
* consumer keys (ck_/cs_) or WordPress passwords in the app. Please.
*/
import { createHash, randomUUID } from 'node:crypto';
import { mkdirSync, readFileSync, writeFileSync, existsSync } from 'node:fs';
import { homedir, hostname } from 'node:os';
import { join } from 'node:path';
export const STORE_URL = process.env.LM_STORE_URL || 'https://example.com';
export const PUBLIC_KEY = process.env.LM_PUBLIC_KEY || 'lm_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
export const APPLICATION_ID = Number(process.env.LM_APPLICATION_ID || 0) || null;
export const APP_NAME = 'VibeApp';
export const APP_VERSION = '1.0.0';
export const OFFLINE_DAYS = 3; // our policy only — LM itself has no grace period
export const BLOCKED_STATUSES = new Set(['Inactive', 'Disabled']);
export class LicenseError extends Error {
constructor(code, message, status = null) {
super(message);
this.name = 'LicenseError';
this.code = code;
this.status = status;
}
}
export function dataDir() {
const base =
process.platform === 'win32'
? join(process.env.APPDATA || join(homedir(), 'AppData', 'Roaming'))
: process.platform === 'darwin'
? join(homedir(), 'Library', 'Application Support')
: join(process.env.XDG_DATA_HOME || join(homedir(), '.local', 'share'));
const path = join(base, APP_NAME);
mkdirSync(path, { recursive: true });
return path;
}
export function deviceId() {
const f = join(dataDir(), 'device-id');
if (existsSync(f)) return readFileSync(f, 'utf8').trim();
const host = (hostname() || 'device')
.toLowerCase()
.replace(/[^a-z0-9-]+/g, '-')
.replace(/^-|-$/g, '')
.slice(0, 40) || 'device';
const id = `${host}-${randomUUID().replace(/-/g, '').slice(0, 8)}`;
writeFileSync(f, id, 'utf8');
return id;
}
function licenseFile() {
return join(dataDir(), 'license.json');
}
export function loadSaved() {
if (!existsSync(licenseFile())) return null;
try {
return JSON.parse(readFileSync(licenseFile(), 'utf8'));
} catch {
return null;
}
}
function saveState(state) {
writeFileSync(licenseFile(), JSON.stringify(state, null, 2), 'utf8');
}
export function clearState() {
try {
writeFileSync(licenseFile(), '', 'utf8');
} catch {
/* ignore */
}
}
async function call(action, licenseKey, domain) {
const url = `${STORE_URL.replace(/\/$/, '')}/wp-json/lmfwc/v1/public/${action}`;
const body = {
public_key: PUBLIC_KEY,
license_key: licenseKey,
domain,
};
if (APPLICATION_ID) body.application_id = APPLICATION_ID;
body.plugin_version = APP_VERSION;
let res;
try {
res = await fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
body: JSON.stringify(body),
});
} catch (err) {
throw new LicenseError('network_error', err.message || 'Network error');
}
let payload = {};
try {
payload = await res.json();
} catch {
throw new LicenseError('bad_response', `HTTP ${res.status}`, res.status);
}
if (res.status === 429 || payload.code === 'lmfwc_rate_limit_exceeded') {
throw new LicenseError('lmfwc_rate_limit_exceeded', payload.message || 'Rate limit exceeded', 429);
}
if (!res.ok || payload.success === false) {
const code = payload.code || `http_${res.status}`;
const message = payload.message || `HTTP ${res.status}`;
throw new LicenseError(code, message, res.status);
}
return payload.data || payload;
}
export async function activate(licenseKey, domain = deviceId()) {
const data = await call('activate', licenseKey, domain);
saveState({
license_key: licenseKey,
domain,
activated_at: new Date().toISOString(),
last_check: Date.now(),
});
return data;
}
export async function validate(licenseKey, domain = deviceId()) {
return call('validate', licenseKey, domain);
}
export async function deactivate(licenseKey, domain = deviceId()) {
const data = await call('deactivate', licenseKey, domain);
clearState();
return data;
}
function isExpired(data) {
if (!data) return false;
if (data.expired === true || data.is_expired === true) return true;
const expires = data.expires_at || data.expiresAt;
if (!expires) return false;
const ts = Date.parse(String(expires).replace(' ', 'T') + (String(expires).endsWith('Z') ? '' : 'Z'));
return Number.isFinite(ts) && ts <= Date.now();
}
function statusOf(data) {
return data?.status || data?.license_status || '';
}
export async function gate(licenseKey = loadSaved()?.license_key, domain = deviceId()) {
if (!licenseKey) throw new LicenseError('no_key', 'No license key saved. Activate first.');
try {
const data = await validate(licenseKey, domain);
if (BLOCKED_STATUSES.has(statusOf(data))) {
throw new LicenseError('blocked', `License status is ${statusOf(data)}`);
}
if (isExpired(data)) throw new LicenseError('expired', 'License has expired');
// This is the bit that bit us. Order keys often sit in "Delivered",
// and valid=true only when status is Active. After activate, trust
// is_activated_here, expiry, and blocked statuses. Not data.valid.
if (data.is_activated_here !== true) {
throw new LicenseError('not_activated', 'This license is not activated on this device');
}
saveState({
license_key: licenseKey,
domain,
last_check: Date.now(),
last_data: { status: statusOf(data), expires_at: data.expires_at },
});
return data;
} catch (err) {
if (err instanceof LicenseError && (err.code === 'network_error' || err.status === 429)) {
const saved = loadSaved();
if (saved?.last_check && Date.now() - saved.last_check <= OFFLINE_DAYS * 86400000) {
return { offline: true, until: saved.last_check + OFFLINE_DAYS * 86400000 };
}
}
throw err;
}
}
export function fingerprintNote() {
return createHash('sha256').update(deviceId()).digest('hex').slice(0, 12);
}
if (import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith('licensing.js')) {
const cmd = process.argv[2] || 'status';
const key = process.argv[3] || loadSaved()?.license_key;
const run = async () => {
if (cmd === 'device') {
console.log(deviceId());
return;
}
if (cmd === 'activate') {
if (!key) throw new LicenseError('no_key', 'Pass a license key');
const data = await activate(key);
console.log('Activated on', deviceId());
console.log(JSON.stringify(data, null, 2));
return;
}
if (cmd === 'validate' || cmd === 'gate') {
const data = await gate(key);
console.log('OK', deviceId());
console.log(JSON.stringify(data, null, 2));
return;
}
if (cmd === 'deactivate') {
const data = await deactivate(key);
console.log('Deactivated', deviceId());
console.log(JSON.stringify(data, null, 2));
return;
}
console.log('Usage: node licensing.js activate|validate|deactivate|device [LICENSE_KEY]');
};
run().catch((err) => {
console.error(`${err.code || 'error'}: ${err.message}`);
process.exitCode = 1;
});
}
node licensing.js activate VIBE-XXXXX-XXXXX-XXXXX-XXXXX
node licensing.js validate
node licensing.js deactivate
Step 7: Handle the error codes you will actually see
This is the one that got us. /validate only sets valid: true when the license status is Active. Keys created by a WooCommerce order start as Delivered. We activated a key on the current device, then validated it, and the payload came back valid: false, status: "Delivered", is_activated_here: true, is_expired: false. If you branch on valid, you just locked out someone who paid you. The module ignores valid. It looks at is_activated_here, expiry, and blocked statuses (Inactive, Disabled).
The rest of what we actually hit:
| Code | When we saw it | What the app should do |
|---|---|---|
lmfwc_activation_limit_reached | A third device tried to activate a key with Max Activations 2 | Tell the customer to deactivate an old computer from My Account, or to buy another seat |
lmfwc_license_not_found | The key did not exist | Ask them to re-copy the key from the order email or My Account |
lmfwc_invalid_application_id | APPLICATION_ID did not match the public key | Fix the constants; this is a ship-time mistake, not a customer typo |
lmfwc_rest_api_route_disabled | The matching public route was unticked in settings (observed on this plugin when routes are off) | Turn the route on in WooCommerce › Settings › License Manager |
lmfwc_rate_limit_exceeded (HTTP 429) | The test store allows 10 calls per 60 seconds per IP | Retry later; do not treat it as a bad key |
not_activated (from the module) | /validate returned is_activated_here: false | Send the customer to the activate screen |
How do you see and free device seats?
Open Activations. Each key has a seat count. Expand a row to see the labels the app sent, and to deactivate or delete a seat if a machine died.

Customers can do it themselves from My Account › License keys › View. The key, the 2/2 count, the expiry, a Delete button on each row. Fewer support emails.

Updates and subscriptions
The Application can also hold releases (a build plus a changelog). Anyone with a valid key can grab those from My Account. WordPress plugins get an update-check endpoint. For a desktop or CLI app, point your own updater at the download, still behind the key. If you also run WooCommerce Subscriptions, we can extend the same key on renewal, or issue a new one. We didn’t have Subscriptions on the test store, so I’m not walking through a flow I didn’t run.
What this setup does not do
One more thing. A license check inside a shipped app can be patched. That’s a client. Put the stuff people actually want (updates, downloads, online features, support) behind something you still control. Don’t let Cursor be the last pair of eyes on the paid path. No ck_/cs_ in the bundle. No isPro = true in the renderer.
Put your vibe-coded app on your own checkout
A ready-made selling platform on your WooCommerce store: generators, key emails, device limits, a public activate/validate API and license-gated updates. Plans cover 1, 3 or 15 store sites, with a 14-day money-back guarantee.
Live DemoView PricingFrequently asked questions
Can you sell vibe coded apps?
Yes. An app built in Cursor, Claude, Lovable, Bolt or similar can be sold like any other digital product, subject to the tool’s terms and to whatever you ship (dependencies, assets, data). Not legal advice. We do it on a WooCommerce store we own, with checkout, a key, and an activate/validate call in the app.
How do I monetize an AI app?
Sell it. A one-off key or a subscription, from a store you own, and the app has to activate that key before the paid bits work. That’s how you make money with vibe coding once the build runs on someone else’s machine, not just yours. License Manager for WooCommerce Pro issues the key and handles the activate/validate calls. Payment and tax stay with WooCommerce or your payment plugin.
Where can I sell my vibe-coded app?
A marketplace or merchant-of-record platform, if that’s what you want. Or a WooCommerce site you own. License Manager for WooCommerce Pro sits on that site and handles delivery, activation, device limits, updates, and renewals if you also run WooCommerce Subscriptions. No revenue share.
How do I add license checks to an app I built with Cursor or Lovable?
Make a generator and an Application, hook both to a product, and turn on the public activate, validate and deactivate routes. The app POSTs the customer’s key to /wp-json/lmfwc/v1/public/activate once, then calls /validate on every start with the public key and a device ID. We ran the Node module below against License Manager Pro 2.0.1.
Is the Application public key safe to ship inside the app?
Yes. People ask us this constantly. The public key only identifies your Application on the public activate, validate and deactivate routes. It cannot create or edit licenses. Never ship ck_/cs_ consumer keys in the app. Those stay on a server.
Does License Manager handle VAT and sales tax?
No. We’re not a merchant of record, and neither is WooCommerce on its own. Tax, VAT and invoices stay with you or your payment plugin. Freemius, Gumroad and Lemon Squeezy typically do act as the merchant of record. That’s why some people pick them.
How much does License Manager for WooCommerce Pro cost?
Plans are $129.99 (1 site), $199.99 (3 sites) and $249.99 (15 sites) per year, with a 14-day money-back guarantee. The site count is for your WooCommerce store, not how many copies of your app customers activate.
