Getting started
This takes about five minutes: create an account, describe your product, issue a license and validate it from code.
1. Create an account
Sign up at app.sunlicense.com with your company name, work email and a password, then click Create account (you accept the Terms of Service). You become the Owner of a new organization. We email you a link to confirm your address (it works for 48 hours; the dashboard can send a new one).
Use a permanent address you read: addresses from throwaway-inbox services can't sign up, and each inbox can own one organization, however you spell it ([email protected] is the same inbox as [email protected]). To work in more organizations, ask to be invited. When sign-ups don't need approval, the dashboard asks you to confirm your email before you can create products, licenses or API keys; you can look around until then, and the page opens your dashboard by itself once you've clicked the link.
If new sign-ups are being reviewed (the button then says Request access), your organization joins a short whitelist: after signing up you see a "You're on the whitelist" page, and we look at the request by hand. Keep the page open (or sign in again later): it opens your dashboard by itself as soon as you're approved, with no need to sign in again, and we email you the decision. If your approval comes with a beta offer, the Billing page shows it.
Right after signing up (while you wait, too) the dashboard asks a few questions, one per screen: your name, your organization's name and logo, what and where you sell, the language your product uses, whether you're moving from another license system and roughly how many customers you have. Skip any of them, or all of them with Skip setup; you can answer again later from Settings → General → Preferences. Your answers turn the Get set up checklist on the Overview into steps for your stores and your language, including a prompt to paste into your AI coding assistant, and each step ticks itself when it's done.
Below the numbers, Shortcuts lead to the pages you open most and to quick actions such as issuing a license, adding a product or inviting a teammate (only the ones your role and plan allow). Which pages you open is counted in your browser only and never sent to us; Clear history forgets it.
The rest of the Overview is widgets. With a role that can see analytics you get License check activity, a calendar of the last 13 weeks with a square per day that gets greener the more checks your apps made (hover a day for its count), and Check results for the last 7 days, along with live validation requests, a map of where they come from, licenses issued over 30 days, your top products, Sentinel's status and your plan's fullest limits. Service status (every SunLicense component, live) is there too, off until you turn it on. Customize (top right) turns each widget on or off and changes their order; the layout is saved in your browser for each organization, and Reset brings back the default.
New organizations start on the Free plan, which has everything this guide uses. Plans and billing lists what each plan includes.
2. Create a product and a policy
In the dashboard, open Products → New product (for example "Acme Editor"). Then add a policy, the template your licenses follow:
| Field | Example | Meaning |
|---|---|---|
| Name | Pro | Shown when you issue a license, for example "Pro" or "14-day trial" |
| Type | Subscription | PERPETUAL never expires, SUBSCRIPTION and TRIAL expire after duration |
| Max machines | 2 | How many machines one license can be active on. Empty = unlimited |
| Duration (days) | 365 | When licenses expire, counted from the day they are issued. Not used for PERPETUAL |
3. Issue a license
On the product, click Issue license, choose the policy and enter your customer's email (the name is optional). The license page opens with a key like K7QX-M2PD-9HWT-R4CN. Give it to your customer; they enter it in your app. The buyer also appears under Customers, where all their licenses are in one place.
Selling on a store such as BuiltByBit, Tebex, Gumroad or Stripe? Connect it under Integrations and every purchase gets its own license automatically: see Marketplace integrations.
Keys are masked
The dashboard shows keys as K7QX-XXXX-XXXX-XXXX. Use the eye button to reveal one key, or the copy button to copy it.
4. Create an API key
Open API keys → Create API key, give it a name and copy the key (slk_…). It is shown only once; we store a hash of it. Your app uses it to call the validation API; it cannot manage licenses, so a key shipped inside your app can't be used to change them.
5. Validate from your app
Install the SDK for your language and call it when your app starts:
import { SunLicense } from "sunlicense";
const client = new SunLicense({
baseUrl: "https://api.sunlicense.com",
token: process.env.SUNLICENSE_API_KEY, // your API key
});
const result = await client.validate(licenseKey, { host: machineId });
if (!result.valid) {
// show your activation screen; result.data.code says why
}Pass a stable id for the machine as host (for example a hash of the hardware id), so the same computer always counts as one machine. The first validation from a machine activates it, and the license page in the dashboard shows the machine and the check. When a license is already active on its maximum number of machines, a new machine gets TOO_MANY_MACHINES.
Next steps
- Make your app work without a network: Offline licenses
- Issue licenses from your store: Marketplace integrations
- Let buyers claim their role in your Discord server: Discord
- Manage licenses from the terminal: CLI
- Invite your team: Team and roles
- Every endpoint: API reference
- What changed recently: What's new
