Cracking the client gets them nothing.
Auth, licensing and server-side logic for desktop apps and plugins, set up and audited by your AI agent. Payloads and calls to your backend are released only after a signed check.
$ npx authfence mcp add Free up to 10 monthly active users. No revenue cut on any plan.
Tool calls
- create_app lumen-reverb, test mode
- create_role Buyer, beta channel
- issue_key pro: export, presets, 30 days
- audit_setup 3 findings
3 findings 1 high, 1 medium, 1 low
- High
Licence is checked only in the client
src/export.ts:41
Anyone can patch the app and set isPro to true. Move the export to your backend behind a verified call, and use the result it returns.
- if (user.isPro) exportMix(mix); + const file = await af.call("export", mix); + await save(file); - Medium
Seller key has no IP allowlist
API keys
audit report signed, ed25519 verified af_pub_3f9e2c
What the server holds, a crack can’t unlock.
Payloads are sent after a signed check, and verified calls run in your own backend. Code you ship inside the app can still be patched, and a payload a customer has received can be copied.
| What the app asks for | Paying user | Patched client |
|---|---|---|
| Entitlement check | Paying user: valid, reply signed by the server | Patched client: check removed from the client, no reply to show |
| Payload presets | Paying user: 48 KB delivered after the check | Patched client: nothing: the server never sent it |
| Verified call render_preset() | Paying user: result returned, code stays on the server | Patched client: refused, no signed assertion |
| Discord role | Paying user: Pro role kept | Patched client: no role |
every reply above is signed with ed25519 af_pub_3f9e2c
Nothing goes live until the audit passes.
The MCP audits your build, signed replies, backend endpoints and webhooks, plus RLS or Firebase rules if you use them. Required checks block live mode until they pass, and each finding names the file and the fix.
Features you chose not to use are marked "not used", never failed.
How the audit works- High
Licence is checked only in the client
src/export.ts:41
Anyone can patch the app and set isPro to true. Move the export to your backend behind a verified call, and use the result it returns.
- if (user.isPro) exportMix(mix); + const file = await af.call("export", mix); + await save(file); - Medium
Seller key has no IP allowlist
API keys
- Low
v2.3.0 can still sign in after v2.4 shipped
Releases
- High
Secret key found in the shipped build
dist/app.asar
Access follows the sale, from checkout to refund.
Keep Stripe, Polar, Lemon Squeezy, Shopify, Gumroad, Sell.app or Komerza. Their webhooks give and remove access, and a refund ends it in your app and in Discord.
-
Checkout paid
14:02:09
Stripe, invoice.paid
-
Entitlement granted
14:02:11
pro, export, 30 days
-
Licence checked
14:03:40
device 1 of 3, reply signed
-
Discord role added
next
Pro role on 2 servers
-
Refund
if refunded
Stripe, charge.refunded
-
Access removed
same minute
Entitlement and role removed
Keys, email accounts, or both.
You choose how customers sign in. Added time, bans and renewals work the same on a key or an account. Connect Supabase or Firebase if your users live there. Moving from KeyAuth? Import the CSV with a dry run first.
authfence import keyauth ./users.csv --dry-run dry run: 412 licences mapped, 0 conflicts, nothing written| Key | Customer | Plan | Devices | Status | Expires | Last check | |
|---|---|---|---|---|---|---|---|
| LUMEN-7Q4M-9XKD-X2PK | sam@northbeat.audio | Pro | 2 / 3 | Active | 12 Dec 2026 | 4 min ago | |
| LUMEN-2H8C-QW71-MV0E | ren@tapehouse.studio | Pro | 1 / 3 | Expiring | 28 Nov 2026 | 1 h ago | |
| LUMEN-TRL-88FA-01KC | j.ortega@fastmail.com | Trial | 1 / 1 | Trial | 1 Dec 2026 | yesterday | |
| LUMEN-55ZB-7Y3N-RR4D | resale-shop@proton.me | Pro | 3 / 3 | Banned | n/a | 6 d ago |
Sample data.
Free up to 10 monthly active users. No revenue cut, at any size.
Free
£0 a month
10 monthly active users
Starter
£8 a month
500 monthly active users
Pro
£24 a month
5,000 monthly active users
Business
£69 a month
25,000 monthly active users