SunLicenseSign in
For apps built with AI

You built it with AI. Now get paid for it.

Paste one prompt: your agent adds license keys and proves they work.

Create free account

Free plan · No credit card · Set up in minutes

Coding with an AI agent? Paste one prompt
  • Claude CodeClaude Code
  • CursorCursor
  • CodexCodex
  • LovableLovable
  • Bolt
  • JavaScript
  • Python
  • Stripe
  • Gumroad
What you get

Built for how you sell.

One prompt does it

Your agent installs, wires and tests the check.

sunlicense.com/prompt

A key per buyer

Shared keys stop at the device limit.

TOO_MANY_MACHINES

Refunds switch it off

Stripe, Gumroad and Lemon Squeezy refunds revoke keys.

No license server

We host it; your app makes one call.

Ask your agent later

Look up, issue or suspend licenses by asking.

MCP

Works offline too

Signed license files for apps without internet.

Ed25519
How it works

One prompt, then sell.

  1. 1Copy the prompt
  2. 2Paste it into your agent
  3. 3Sell with license keys
src/license.ts
// What your agent writes (npm install sunlicense)
import { SunLicense } from "sunlicense";

const client = new SunLicense({
  baseUrl: "https://api.sunlicense.com",
  token: process.env.SUNLICENSE_API_KEY,   // slk_..., can only validate
});

const result = await client.validate(licenseKey, { host: machineId });
if (!result.valid) showActivationScreen(result.status);
FAQ

Questions, answered.

What does the prompt do?

Your agent installs the SunLicense CLI, creates a free account (a guest account if you aren't signed in), a product, an API key and a test license, adds the license check in your app's language, and proves it works: valid, suspended, valid again. It then connects the MCP server so you can manage licenses by asking. It doesn't commit or push, and installs nothing outside your project but the CLI.

Which AI tools does it work with?

Any coding agent that can run commands: Claude Code, Codex, Cursor, Antigravity, GitHub Copilot and others. An agent without a terminal can follow the same steps as plain HTTPS requests, which the prompt links to.

Does it work for web apps built with Lovable or Bolt?

Yes, with the check on your app's server side (an API route or a server function) through the JavaScript SDK or one HTTP request, not in code that runs in the browser. License keys suit apps people install or run themselves best: desktop apps, plugins, bots, scripts and self-hosted tools.

What happens to the guest account?

It's a real, free account your agent can use straight away. Claim it later, or sign in with sunlicense login and it moves into your own organization with its products and licenses.

What does it cost?

The Free plan covers 3 products and 100 licenses, with MCP for your agent at 50 calls a day. Lite is $5 a month and Standard $20 a month. SunLicense never takes a cut of your sales.

Protect your next release.

  • Free plan
  • No credit card
  • Cancel any time