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-locked | Floating (concurrent) | |
|---|---|---|
| Setting | floating_ttl = 0 (default) | floating_ttl above 0, in seconds (up to 604,800 = 7 days) |
| Seat count | max_machines on the product or the key | Same max_machines: it becomes the number of machines that may be active at once |
| A seat is freed when | the app calls deactivate, or you reset or remove the machine in the dashboard | the machine has not called activate for floating_ttl seconds, or the app calls deactivate |
| Good for | one license per personal computer | shared 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
- 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. - Heartbeat with activate: the app calls
POST /v1/activateat 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. - 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.
- Clean exit: when the user quits the app, call
POST /v1/deactivateto free the seat at once instead of waiting for the timeout. - 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
- Heartbeat shorter than the timeout: call activate at least two or three times per timeout period, so one lost request does not cost the user their seat.
- Offline lease: a product with
lease_daysabove 0 lets the app run offline on a saved answer even after its seat was freed. For strict concurrency keep the defaultlease_days = 0, so the app needs a fresh answer to keep running. - Self-service deactivation:
/v1/deactivateworks only while Allow deactivation is on for the product. It is on by default. - Many seats behind one office IP: the public license API allows 300 requests per minute per IP address. A heartbeat every 2 minutes stays far below that for hundreds of seats (see Limits).
- No metering: Keyfern does not count or bill API calls, so frequent heartbeats never raise your bill.
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:
- Free ($0): 1 product, 50 keys, floating seats included. No card needed.
- Starter ($10/month): 2 products, 1,000 keys, plus Stripe key sales and webhooks.
- Larger plans are in the pricing table.
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.