Booting neural core...
Booting neural core...
License the software you sell. You add your products in the Portal and issue a license to each customer. Their installation exchanges a one-time activation code for a signed token, verifies that token offline, and checks in once a day so you can suspend, revoke or move the license whenever you need to.
@cybernethicc/license-sdk, and a Rust SDK, cyb-portal-license, wrap everything below. Ask support for access.| Plan | Price / month | Includes |
|---|---|---|
| Starter | Rp 50.000 | Up to 10 licenses; 1 product |
| Growth | Rp 250.000 | Up to 100 licenses; 5 products |
| Scale | Rp 500.000 | 500 active licenses included, then Rp 1.000 each; Unlimited products; White-label and custom domains in the license |
| Enterprise | Custom | Volume beyond Scale, contract terms and invoicing; talk to us |
An active license is one whose installation checked in at least once during the month. Plans are billed monthly from your balance or by invoice; a plan change takes effect at the next billing date. If an invoice stays unpaid for 7 days, your licenses report suspended at their next check-in until it is paid. Compare plans and subscribe on the License Hub pricing page.
acme-pos. It appears as product in every token.@cybernethicc/license-sdk runs on Node 18 and newer. It activates, verifies offline against our public keys and signs the daily check-in for you. Ask support for access to the package, then install it:
npm install @cybernethicc/license-sdkThree calls cover the whole lifecycle. Replace YOUR-VENDOR-ID with the vendor id from the License Hub page.
import { activate, verifyLicense, checkin, hasModule } from "@cybernethicc/license-sdk"
const VENDOR_ID = "YOUR-VENDOR-ID"
// 1. First start: exchange the one-time activation code for a token
const { license_token } = await activate(activationCode, machineId, { version: "1.4.0" })
saveToken(license_token)
// 2. Every start: verify offline (signature, issuer, expiry, machine, vendor)
const { claims, state, graceDaysLeft } = await verifyLicense(loadToken(), {
fingerprint: machineId,
vendor: VENDOR_ID,
lastCheckinAt: loadLastCheckin(),
})
if (state === "grace") warn(`License not confirmed online, ${graceDaysLeft} days left`)
if (state === "expired") limitTheApp()
if (hasModule(claims, "reports")) enableReports()
// 3. About once a day: check in and keep the fresh token
const r = await checkin(claims, machineId, { version: "1.4.0" })
if (r.license_token) {
saveToken(r.license_token)
saveLastCheckin(new Date())
}
if (r.status !== "active") limitTheApp()verifyLicense throws when the token is signed by someone else, issued by another vendor or bound to another machine. Treat a throw like expired: limit the app, keep the user's data readable.Let an AI coding agent (Claude Code, Cursor, Copilot and similar) do the integration. AGENT-GUIDE.md tells the agent what to build, the rules it must not break (never skip verification, always check your vendor id, keep data readable when limited) and a checklist for when it is done.
# from the SDK package, after npm install
cp node_modules/@cybernethicc/license-sdk/AGENT-GUIDE.md .POST https://portal.cybernethicc.com/api/v1/licenses/activate
Content-Type: application/json
{
"activation_code": "CYB-XXXXX-XXXXX-XXXXX-XXXXX",
"instance_fingerprint": "a stable id of this machine",
"version": "1.4.0"
}{
"status": "active",
"license_token": "eyJhbGciOiJFZERTQSIs...",
"next_checkin_after": "2026-10-03T08:00:00Z"
}A code works once. Store the token; it is what your app runs on from now on.
The token is a JWT signed with EdDSA. Fetch our public keys once and cache them; the token header names the key in kid.
GET https://portal.cybernethicc.com/api/v1/licenses/jwksThen check, in this order:
vendor equals your vendor id. This stops a license issued by someone else from unlocking your app.bound_to equals this machine's fingerprint.exp is in the future. Past it, limit the app until the next successful check-in.import { verifyLicense, checkin } from "@cybernethicc/license-sdk"
const { claims, state } = await verifyLicense(token, {
fingerprint: machineId,
vendor: "YOUR-VENDOR-ID",
})
if (state === "expired") limitTheApp()
if (claims.modules.includes("reports")) enableReports()Sign the exact request body with the checkin_secret from the token: HMAC-SHA256 over <unix seconds>.<body>, hex encoded. The timestamp must be within 5 minutes of our clock.
POST https://portal.cybernethicc.com/api/v1/licenses/checkin
Content-Type: application/json
X-License-Signature: t=1759392000,v1=<hex hmac>
{
"license_id": "<sub from the token>",
"instance_fingerprint": "a stable id of this machine",
"version": "1.4.0",
"token_version": 3
}{
"status": "active",
"token_version": 3,
"entitlements_changed": false,
"license_token": "eyJhbGciOiJFZERTQSIs...",
"next_checkin_after": "2026-10-04T08:00:00Z"
}status is active, suspended, expired or revoked. Always replace the stored token with the one returned.
The cyb-portal-license crate does activation, offline verification and the daily check-in for you. It runs the check-in on a background Tokio task, keeps working offline through the grace days, and uses rustls only. Our public keys are built into the crate; a token signed with a newer key is verified after one fetch of the key set.
use std::sync::Arc;
use cyb_portal_license::{CheckCtx, EnforcementMode, FileStore, InitConfig, License};
let lic = License::init(
InitConfig::new(machine_id, Arc::new(FileStore::new("license.json")))
.activation_code(std::env::var("LICENSE_CODE").ok())
.vendor("YOUR-VENDOR-ID")
.mode(EnforcementMode::Grace),
)
.await?;
if !lic.check(&CheckCtx::new()).allowed { limit_the_app() }
if lic.check(&CheckCtx::new().module("reports")).allowed { enable_reports() }
lic.meter("employee_count", 120)| Mode | Behavior |
|---|---|
| Soft | Never blocks. Every problem is reported so your app can show a warning |
| Grace | Default. Works offline while grace days remain, blocks once grace runs out or the license is suspended, revoked or expired |
| Hard | Blocks as soon as a check-in is overdue, and on any other problem |
Optional features add middleware: axum and actix. A blocked request gets 403 with a JSON message.
| Claim | Meaning |
|---|---|
| sub | License id (send it as license_id at check-in) |
| vendor | Your vendor id |
| product | Your product id |
| customer | The customer name you entered |
| edition | Edition of the license |
| modules | Array of module names the customer may use |
| limits | Object of numeric limits (seats, outlets, anything you define) |
| white_label | May the installation replace your branding (Scale) |
| custom_domains | Extra hostnames the installation may serve (Scale) |
| perpetual | True for a perpetual license |
| bound_to | Machine fingerprint the license is bound to |
| exp | Expiry; renewed by every successful check-in |
| token_version | Bumps whenever you change, suspend or reissue the license |
| checkin_url, checkin_secret | Where and how to check in |
We email the account that owns the license (for License Hub, that is you, the vendor):
| When | |
|---|---|
| License activated | An installation used its activation code; shows product, customer and version |
| Expiring in 7 days | Once per license and end date, for licenses with an end date; renewing moves the date and arms the next notice |
| Violation alert | A second machine checked in with a token bound to another machine; refused, at most one email a day per license |
| Status | When |
|---|---|
| 400 | The body is missing a field or is not valid JSON |
| 401 | Unknown or already used activation code, unknown license, missing or bad signature |
| 403 | Activation of a license that is suspended, expired or revoked |
| 409 | The license is bound to another machine (status fingerprint_mismatch) |
Errors carry a JSON body with a message. Need help integrating? Talk to us.