Skip to content
FIVECRATE

FiveM Server License Key: Portal Setup and Fixes

Get a FiveM server license key from the Cfx Portal, add it with sv_licenseKey or the txAdmin deployer, keep it secret, and fix the common license key errors.

Author: FiveCrate
Published:
Updated:
Read time: 12 min
Applies to
FiveM (Legacy) and FiveM for GTAV Enhanced, txAdmin v8.1.2, Cfx Portal (November 2026)
Last verified

Direct Answer

A FiveM server license key, now called a server registration key, is the value stored in sv_licenseKey, and it registers your server with Cfx under your Cfx account. Create one for free in the Cfx Portal, copy it, paste it into the txAdmin recipe deployer or into server.cfg, and then guard it like a password. The Portal replaced Keymaster, and keys made in Keymaster already appear there.

Applies to: FiveM (Legacy) and FiveM for GTAV Enhanced servers, txAdmin v8.1.2, and the Cfx Portal as checked in November 2026. Asset Escrow is not implemented on Enhanced yet, so the escrow notes below concern Legacy servers.

What the License Key Is

The key is one line of server configuration: the server-commands reference says sv_licenseKey sets the license key for the server and points to portal.cfx.re to get one. Newer Cfx tools call the same value a server registration key, and the txAdmin deployer notes that the field was formerly known as License Key:

NameWhere you will see it
License keysv_licenseKey, the server-commands docs, Keymaster-era tutorials
Server registration keyThe Cfx Portal, Cfx support articles, the txAdmin recipe deployer

Current keys start with cfxk_. The deployer shows the placeholder cfxk_xxxxxxxxxxxxxxxxxxxx_xxxxx in its key field.

Why every public server needs one

  • Every setup path starts with it. The Setting Up a Server page lists registering a free key on the Cfx Portal under “Before you begin”, and txAdmin marks the key field as required.
  • It belongs to an account. The hosting-provider page asks for “the license key associated with your Cfx account”.
  • Only LAN servers skip it. Setting sv_lan to true makes the server LAN-only, keeps it off the public list and skips license key checks.
  • A failed check stops the server. Forum logs show FXServer printing a fatal error and exiting when the key check fails.

Keymaster Is Gone: Keys Now Live in the Cfx Portal

Cfx launched the Cfx.re Portal in December 2024, describing it as Keymaster rebuilt from scratch, and announced that Keymaster would be gradually deprecated. A Cfx staff reply in the launch thread confirmed that both share the same data, so keys created in Keymaster are already in the Portal.

The key list lives at portal.cfx.re/servers/registration-keys, the page that both the “Server license keys” link on fivem.net and the Portal link in the txAdmin deployer open. Where an older tutorial says Keymaster, use the Portal.

Two account rules apply. Cfx support caps each account at three active server registration keys and says it is working on a way to allow more. Each key is also created for one registered server, which the Portal identifies by its Server ID.

How to Generate a Key in the Cfx Portal

  1. Open portal.cfx.re/servers/registration-keys and sign in with your Cfx account.
  2. Under Active, select the + button.
  3. Fill in the server details. Cfx support says the Name, Tagline, Description and Language must be filled in before a key can be generated.
  4. Select Generate Key.
  5. Open the newly registered server and click Copy Key.

To see the key again later, return to the Servers page and select the server’s name. The details from step 3 also become your public listing text; the Missing server data guide explains those fields.

Where the Key Goes

Option 1: The txAdmin recipe deployer

On a fresh install, the official setup flow collects the key while txAdmin deploys a recipe:

  1. In Step 1: Review Recipe, click Next.
  2. In Step 2: Input Parameters, use the Portal link under the Server Registration Key field. It opens the Portal in a new tab, where you generate and copy a key.
  3. Paste the key into the field and click Run Recipe.

The txAdmin page in the server manual calls this screen the “Before you begin” step, while the getting-started page and the current deployer label it Step 2: Input Parameters. It is the same field.

txAdmin’s recipe documentation lists svLicense as a required variable that the deployer writes into server.cfg in place of {{svLicense}} at the end of the deployment. The official default recipe ships this line:

sv_licenseKey "{{svLicense}}"

Developers who redeploy often can pre-fill the field with the TXHOST_DEFAULT_CFXKEY environment variable; txAdmin’s environment docs say it only auto-fills the deployer and can be changed later in server.cfg. The full walkthrough is in txAdmin recipes explained.

Option 2: server.cfg on a vanilla or existing server

The vanilla setup guide sets the key directly in server.cfg, and its example config ends with a comment pointing to the Portal. Here is that line with the cfxk_ placeholder; put your real key in its place:

# License key for your server (https://portal.cfx.re)
sv_licenseKey "cfxk_xxxxxxxxxxxxxxxxxxxx_xxxxx"

On a server already managed by txAdmin, open CFG Editor, change the value, click Save File, then restart the server so it boots with the new key.

Option 3: A game server host

The hosting-provider page says to add the license key associated with your Cfx account to your server instance. If the host’s panel has no key field, edit sv_licenseKey in server.cfg.

Confirm the key was accepted

On the next start, look for these lines in the server console. They come from a forum log, and the column padding can differ:

[          svadhesive] Authenticating server license key...
[          svadhesive] Server license key authentication succeeded. Welcome!

If an error appears instead, find the matching heading below.

Keep the Key Secret

Cfx support says that an email about your key leaking on GitHub means the key was committed to a public repository, either by you or by someone you shared it with. Treat it like a password:

  • Never commit a server.cfg that contains the key to a public repository.
  • Delete the key line before you paste a config file or console log into the forum, Discord or a support ticket.
  • Share the key only with people who manage that server.

If your server files live in Git, move the key into a nested config. The docs’ example server.cfg shows nested configs loaded with exec:

# server.cfg (safe to commit)
exec server_internal.cfg
# server_internal.cfg (keep private, list it in .gitignore)
sv_licenseKey "cfxk_xxxxxxxxxxxxxxxxxxxx_xxxxx"

If the key leaked

Cfx’s fix is to regenerate it. On the Server Registration Keys page, select the Server ID of the leaked key, select Regenerate, then Yes. Put the new key in your server’s config file and restart.

Cfx states that once a key is regenerated, it is no longer at risk. Its 2022 incident report put the damage in context: a server key cannot give anyone access to your server’s databases or files, but someone running your key can confuse the server list, which may then alternate between your server and theirs.

Common License Key Errors and Fixes

SymptomLikely causeFix
“no license key was specified” at startupserver.cfg was not loaded, or the key line is missingStart from the server-data folder with +exec server.cfg
“The Server License does not appear to be valid.” in txAdminThe pasted text is not a keyUse Copy Key and paste only the key
“An error occurred while checking server license key” with HTTP 429Key checks are rate-limited, often by a restart loopStop the server, wait, start once
The same error with CURL error code 6The licensing host name could not be resolvedWait for Cfx services, then check DNS
“You lack the required entitlement”The asset sits on another account, or the key is wrongCheck the key, then transfer the asset
Listing shows “Missing server data”Listing fields are blank in the PortalFill them in the Portal

“no license key was specified”

The vanilla guide lists this among common startup issues and ties it to two mistakes: you did not change into the right folder, or you left out +exec. Either way, FXServer never read your server.cfg, so it never saw sv_licenseKey.

Start the server from the server-data folder and pass the config explicitly. The docs’ Linux example:

cd ~/FXServer/server-data && bash ~/FXServer/server/run.sh +exec server.cfg

The Windows example for a plain command prompt:

cd /d C:\FXServer\server-data
C:\FXServer\server\FXServer.exe +exec server.cfg

Adjust both paths to your own folders. If the config loads and the error remains, check that the sv_licenseKey line exists and is not commented out.

“The Server License does not appear to be valid.”

The txAdmin deployer shows this when the pasted value does not match the key format. It only checks the shape of the text: txAdmin accepts keys in the current cfxk_ format and in the older 32-character format, and rejects anything else.

Click Copy Key in the Portal and paste only the key itself, with no quotes and no sv_licenseKey prefix.

“An error occurred while checking server license key”

This prefix means FXServer could not complete the key check at startup, and the text after the colon says why. Under txAdmin, the failure can turn into a restart loop: FXServer exits, txAdmin starts it again, and every start checks the key again. Two variants show up in forum logs.

HTTP 429. A 2026 report shows it like this:

Fatal Error: An error occurred while checking server license key: HTTP 429: 429 Too Many Requests

HTTP 429 is the standard status for rate limiting: the client sent too many requests in a given amount of time. In a March 2026 forum thread, the owner reported the server working again after following a reply’s advice: stop the server completely, wait 30 to 60 minutes, confirm the key in server.cfg, and start it only once.

CURL error code 6 (Couldn’t resolve host name). curl uses error 6 when the remote host name could not be resolved, so the check never reached Cfx. In 2021 and 2022 forum threads, this error cleared by itself and the posters put it down to a problem on the Cfx side. If it persists, check that the machine has working DNS and outbound internet access.

“You lack the required entitlement to use [asset name]”

This is an Asset Escrow error: a protected resource refuses to start because the server is not entitled to run it. Cfx support’s fix:

  1. Restart the server and make sure the server key is correct.
  2. If you bought the resource on a different Cfx account, transfer it to your current account, the one that owns the server key. In the Portal, open the Granted Assets page, select the asset, select Transfer, enter the username, select Transfer again, then click Confirm transfer request in the email Cfx sends.

Transfers have hard limits: an asset can be transferred once, only within 28 days of buying or claiming it, and the move cannot be reversed.

Do not confuse this with “Failed to verify protected resource”. Cfx support ties that one to files corrupted in transfer: make sure the .fxap file and all hidden files reached the server, because some FTP programs skip them.

Key accepted, but the listing shows “Missing server data”

A working key gets you past the license check, but the listing text now comes from the Portal. A server with blank listing fields shows “Missing server data (must be configured in Portal)”. The Missing server data guide walks through each field. If the server does not appear at all, work through FiveM server not showing in the server list.

Which Account Should Own the Key

Keep the server key and your purchased assets on the same Cfx account. The escrow docs say the server owner must purchase a protected resource to be eligible to run it. Cfx’s escrow FAQ adds that buyers can download a purchase directly to their own Cfx account, and the entitlement fix above moves the asset to the account behind your key.

Running a key from someone else’s account has a side effect in txAdmin too. txAdmin explains that player hardware ID tokens (HWIDs) are tied to the server owner, so after switching sv_licenseKey to a key owned by another person, the existing HWIDs no longer match. It recommends wiping them under Master Actions, then Clean Database.

Managing Keys in the Portal

TaskSteps on the Servers pageResult
View or copy a keySelect the server’s name, then Copy KeyThe key is on your clipboard
RegenerateSelect the Server ID, Regenerate, then YesNew key; update server.cfg
DeactivateSelect the key, then DeactivateStatus becomes Inactive
Re-activateSelect the key, then Re-ActivateStatus returns to Active

Plan live, test and development servers around the limit of three active keys per account.

Next Steps

Browse FiveCrate assets

Original FiveM assets made in-house, with free updates and a multi-server license.

Browse assets →

Official documentation and repository references