On this page

Guide

Floating and Concurrent License Keys for Desktop Apps

A floating license lets a customer install your app on as many machines as they like while only a fixed number run at the same time. Keyfern does this with a seat timeout: a machine that stops checking in frees its seat by itself, so a crashed PC or a deleted virtual machine never holds a license hostage.

Node-locked vs. floating licenses

Node-lockedFloating (concurrent)
Settingfloating_ttl = 0 (default)floating_ttl above 0, in seconds (up to 604,800 = 7 days)
Seat countmax_machines on the product or the keySame max_machines: it becomes the number of machines that may be active at once
A seat is freed whenthe app calls deactivate, or you reset or remove the machine in the dashboardthe machine has not called activate for floating_ttl seconds, or the app calls deactivate
Good forone license per personal computershared workstations, labs, render nodes, VDI and short-lived virtual machines

Both modes use the same keys, SDKs and signed answers. You can switch a product from one to the other in its settings at any time.

How floating seats work in Keyfern

  1. Turn it on: in the dashboard, open the product and set Floating seat timeout (seconds), for example 600. Set the machine limit to the number of seats you sell, for example 5.
  2. Heartbeat with activate: the app calls POST /v1/activate at start and then again at a regular interval. Each call from a machine that already holds a seat refreshes its last-seen time and returns a fresh Ed25519-signed license. There is no separate heartbeat endpoint.
  3. Automatic release: a machine that has been silent for longer than the timeout stops counting. The next activation from any machine finds the seat free.
  4. Clean exit: when the user quits the app, call POST /v1/deactivate to free the seat at once instead of waiting for the timeout.
  5. Seats full: if every seat is in use, activate fails with 403 machine_limit. Tell the user that all seats are busy and let them try again later.

Every answer is signed with the product’s Ed25519 key and carries machines_used and max_machines, so your app can show “3 of 5 seats in use” from a verified answer. Try a real signed answer in the live demo.

Code: heartbeat and release (JavaScript / Electron)

With the Keyfern JavaScript SDK (setup in the Electron guide):

const HEARTBEAT_MS = 2 * 60 * 1000;   // well below a 600 s seat timeout

async function holdSeat(licenseKey) {
  const machine = await machineId();
  await licensing.activate(licenseKey, machine, 'Workstation');   // throws machine_limit when all seats are busy
  const timer = setInterval(() => {
    licensing.activate(licenseKey, machine).catch(err => console.warn('heartbeat failed:', err.code ?? err.message));
  }, HEARTBEAT_MS);
  app.on('before-quit', () => {
    clearInterval(timer);
    licensing.deactivate(licenseKey, machine).catch(() => {});   // the timeout frees the seat anyway
  });
}

The same two calls over plain HTTP, from any language:

# at start and every few minutes: take or keep a seat
curl -X POST https://keyfern.com/v1/activate \
  -H 'Content-Type: application/json' \
  -d '{"product":"prod_your_product_id","key":"ACME-7KQ2M-4XJ9P-HT3WD-NB6RC","machine":"hashed-machine-id"}'

# on clean exit: free the seat now
curl -X POST https://keyfern.com/v1/deactivate \
  -H 'Content-Type: application/json' \
  -d '{"product":"prod_your_product_id","key":"ACME-7KQ2M-4XJ9P-HT3WD-NB6RC","machine":"hashed-machine-id"}'

Full request and response fields: /v1/activate and /v1/deactivate.

Settings that matter

Pricing: floating seats on every plan

Floating licenses are included on every Keyfern plan, with no add-on and no seat multiplier. The price depends only on how many keys you create:

For comparison, SLASCONE’s public pricing (checked in November 2026) starts at €200/month for 50 seats, and each floating license counts as 3 seats. Vendors change plans, so confirm on their sites. More comparisons: LicenseSpring alternative and Cryptolens alternative.

Start free and add floating seats to your app in a few minutes with the documentation.