How do I connect Keygen to issue software license keys automatically?
Paste your Keygen account ID and API token, and every purchase of a licensed product issues a real Keygen license key that shows up on the buyer's order.
The Keygen connector issues a real software license key the moment someone buys a licensed digital product — no manual key generation, no spreadsheet of used codes.
Step 1 — Get your Keygen account ID and API token
In your Keygen dashboard, find your Account ID and create an API token with permission to create licenses. Keygen also uses Policies to define what a license allows (seat limits, expiration, entitlements) — note the policy ID(s) you want to issue from.
Step 2 — Install and configure the plugin
Go to Admin → Plugins → Marketplace, find Keygen, and click Install. Open Admin → Plugins → Keygen, paste your Account ID and API token, and set a Default Policy ID — the policy used for any licensed product that doesn't have its own mapping.
Step 3 — Map specific products to specific policies (optional)
If different products need different license terms — a Pro tier with more seats, a time-limited trial policy — use the Product → Policy Map field to enter JSON pairing each product's ID to its Keygen policy ID. Any product not listed there falls back to the Default Policy ID.
Click Test Connection to confirm your credentials work before relying on the connector, then toggle it on with the Enabled switch.
What happens on purchase
When an order containing a licensed product completes, the connector calls Keygen to create a license under the right policy and attaches the issued key to that order item — it then appears on the buyer's order-status page alongside their digital download.
License issuance never blocks or delays order fulfillment. If Keygen is unreachable or a product has no matching policy, that item's order still completes normally — only the license-key step is skipped for it.
Disconnecting
Toggle the connector off or clear the API token in the panel to stop issuing new licenses. Keys already issued keep working in Keygen — VeloCMS doesn't revoke them.