License keys for Lua and Luau

Add a key check to Lua and Luau scripts and hosts with one HTTPS request. Lumikey stores the keys, gives out free or paid ones and tells your code whether a key is valid.

How the check works

Your Lua and Luau code sends the project id, the key and a device id to the Lumikey API. The reply is JSON: valid or not, a code that says why not, when the key ends, its tier and any fields you attached.

For Lua you can also host the script with Lumikey, so the loader only returns it to a valid key.

Getting a device id

Use the host's own hardware id function when it has one, and fall back to a client id otherwise.

The first device that uses a key keeps it. You decide how many devices each key allows and whether buyers can reset their own.

Then give out keys

Trust the answer

Every reply is signed with your project secret. Verify the signature on your own server before you unlock anything valuable. A client-side check can always be edited by someone with the file, so keep what matters on the server side.

Questions

Is there a library for Lua and Luau?

The example above needs no library. For JavaScript and Python there are also single-file libraries you can download from the docs.

What does it cost?

The Free plan covers one project with the full key-check API. Starter is $3.99 a month and Pro is $8.99 a month.

Can I verify the reply on my server?

Yes. The reply carries an HMAC-SHA256 signature of the result, and a second one that also covers the tier and extra fields. The docs show how to verify it.