Documentation
Get started
Issue your first license, validate it from your app, and ship.
The managed edition is not open yet. These steps run against your own instance of the MIT self-host edition.
1 Create a product
Deploy your self-host instance,
then register on the /register page of your dashboard (e.g. https://app.example.com/register).
Create a product and copy the public/secret key pair. The secret is shown only once.
2 Install the SDK
pnpm add @paperkeyhq/sdk3 Validate a license
import { createClient, getFingerprint } from '@paperkeyhq/sdk';
const paperkey = createClient({
apiKey: process.env.PAPERKEY_PK!,
baseUrl: 'https://api.example.com', // your self-hosted API (required)
});
const { fingerprint } = await getFingerprint();
const result = await paperkey.validate(licenseKey, fingerprint);
if (!result.valid) {
console.error('License is invalid:', result.error);
process.exit(1);
}4 Activate on first run
const result = await paperkey.activate(licenseKey, fingerprint, 'My MacBook');
if (!result.success) throw new Error(result.error);
console.log('Activations remaining:', result.activationsRemaining);