Quickstart
Add licensing and server-checked access to a desktop app or plugin, and pass the audit, in about 15 minutes. Your AI agent can do every step; the commands are here if you would rather run them yourself.
1. Add the MCP server
This adds Authfence to Claude Code, Cursor or any MCP client. Everything starts in test mode, so nothing reaches live users until you switch.
npx authfence mcp add2. Create the app and issue a key
Your agent calls create_app and issue_key. Customers sign in with a key, an email account or both; you choose for each app. The CLI does the same:
authfence app create lumen-reverb --sign-in keys,email
authfence key issue --tier pro --days 30
# app created in test mode, 1 key issued3. Check access in your app
Use the app ID and keyset in the app. They can only check access; they cannot grant or revoke it.
Node
import { Authfence } from "@authfence/sdk-node";
const af = new Authfence({ appId: "app_7d20e9", keyset: AUTHFENCE_KEYSET });
const { allowed } = await af.check("export", { session });
if (!allowed) return showUpgrade();
const file = await af.call("export", mix);
// Your backend checks the signed assertion before it runs the export.4. Run the audit
The audit checks 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.
authfence audit
# 2 findings: 1 high, 1 medium
# high Licence is checked only in the client src/export.ts:41
# medium Seller key has no IP allowlist API keys5. Go live
Switch to Live in the dashboard once the go-live gate passes. Test users never count towards your plan.