Getting started with DevKanan

DevKanan lets you protect and monetize your software with RSA-signed licenses. This guide takes you from zero to a working app in less than 5 minutes.

1. Create an account

Go to /register and create your tenant. You'll receive a verification email.

2. Create your first product

In the panel: Products → New product. Assign a name and description.

Your product gets an auto-generated 6-digit ID (e.g., 100000). You'll need this in the SDK.

3. Generate an access token

In Access Tokens → New token:

  • Give it a descriptive name
  • Select the product (or "any product")
  • Check permissions: Activate, GetKey minimum
  • (Optional) set expiration

Copy the token — it's shown only once.

4. Create a license

In the product → New license:

  • Validity days (e.g., 365)
  • Max machines (e.g., 1 for single-PC)
  • Offline mode: Locked / FloatingLease / FloatingManual
  • (Optional) F1-F8 features, initial credits

Generates a key like ABCD-EFGH-IJKL-MNOP.

5. Integrate the SDK in your app

pip install devkanan
from devkanan import Key, Helpers

result, msg = Key.activate(
    token="your-access-token",
    rsa_pub_key=RSA_PUBLIC_KEY,  # from /plan in your panel
    product_id=100000,
    key="ABCD-EFGH-IJKL-MNOP",
    machine_code=Helpers.GetMachineCode(v=2),
)

if result is None:
    print(f"Activation failed: {msg}")
    exit(1)

if not result.has_not_expired():
    print("License expired")
    exit(1)

print("OK — app can start")

Next steps