Guide

FiveM Server License Key: Get One from the Cfx.re Portal

How to get a free FiveM server license key on portal.cfx.re, where sv_licenseKey goes, and how to fix invalid or missing license key errors on your server.

Every FiveM server needs a license key. You create it for free at portal.cfx.re (the page that used to be called keymaster) and put it into server.cfg as sv_licenseKey "yourkey". If the console complains about the key, the cause is usually a typo, a wrong config file or a key that was made for a different server address.

What does a license key error look like?

You will see messages like these in the console and in forum threads:

Could not authenticate server license key.
This server does not have a license key specified. Please set sv_licenseKey ...

The exact wording differs between versions, so treat these as examples. The meaning is stable: the first says the key was rejected, the second says no key was loaded at all.

How do I get a FiveM server license key?

  1. Sign in at portal.cfx.re with your Cfx.re account.
  2. Open the section for server keys.
  3. Create a new key and give it a label you will recognise.
  4. If the form asks for a server IP, enter the public IP of the machine that will run the server.
  5. Copy the key.

Create the key while you are signed in to the account that will own the server. That way you can find it again when you rebuild or move the server.

The official setup docs say to register a free license key on the Cfx Portal. The Portal layout changes from time to time, so button names may differ. If you rent a server, ask your host whether they supply the key or expect yours.

Where does sv_licenseKey go?

Put it in server.cfg, on its own line, in quotes:

sv_licenseKey "yourkey"

Spelling matters: it is sv_licenseKey, one word, and the server commands reference lists it as a plain convar. Leave no spaces or line breaks inside the key. Keep the key private. Anyone who has it can run a server under your account.

If the console says no key was specified even though the line exists, the server is probably not reading that file. Check the working folder and whether you start with +exec server.cfg. txAdmin users should confirm that the CFG file it launches is the one you edited. A quick check: search the file for sv_licenseKey and confirm there is one match in the file the server reads. Then restart the whole server, because the key is read at start.

How do I fix "Could not authenticate server license key"?

  1. Copy the key again from the Portal and paste it fresh. No trailing space, no quotes inside the quotes.
  2. Make sure there is exactly one sv_licenseKey line, and that it is not commented out with #.
  3. Check that you edited the server.cfg the server actually starts with.
  4. Compare the IP registered on the key with the server's public IP. Some host guides say keys are bound to the IP given at creation (community-reported, not stated in the official docs I checked). If you moved hosts or got a new IP, create a new key for the new address.
  5. Restart the server fully, not just a resource.
  6. Make a brand new key and try that one.

Check your public IP with the FiveM IP Finder if the server is already listed, or look at your host's panel. A server behind a proxy may show another address; see how to find a FiveM server IP.

Can I use one license key for multiple servers?

I could not find an official statement about key limits per account or per server in the docs I checked. The common practice is one key per server, and the key may be tied to an IP (see above), so a second machine usually needs its own key. Treat this as unconfirmed. If you run several servers, create one key each. Sharing one key between servers is also a bad idea because you cannot revoke it for one server only.

Does the license key decide how many players I can have?

Not alone. Slot limits are tied to the server's OneSync setup and to Element Club options on your Cfx.re account. The key itself stays the same. For the current tiers and what they include, see Element Club on fivem.net/server-hosting; this guide does not quote prices. More in OneSync explained.

Does the key control server name and banner?

Today the Portal also holds the metadata. sv_hostname, sv_projectName, sv_projectDesc and load_server_icon are deprecated in the docs in favour of Portal settings. See FiveM server banner size and Portal. If your server is running but not listed, read FiveM server not showing in server list.

What usually doesn't help

  • Searching for "cracked" or shared keys. They get revoked, and you risk your account (community-reported).
  • Reinstalling the artifact. The key is in your config, not in the binaries.
  • Changing the port. The key check does not depend on the game port.
  • Buying hosting only to get a key. The key itself is free.

If nothing works

Open a thread on forum.cfx.re. Include the exact console line, your artifact build, whether you start via txAdmin, your public IP type (static or dynamic) and what the Portal shows for the key. Never paste the key itself; blur it or replace it with xxxx. Portal account issues can also be reported on the Cfx.re support site. Include the console output from the moment you start the server to the first error, because the lines before the error often show which config file was loaded. If the server starts but players still cannot connect, go through FiveM port forwarding for 30120 next.

Last checked: 18 August 2026

Frequently asked questions

Is the FiveM server license key free?

Yes. The official docs say to register a free license key on the Cfx Portal. Element Club options are optional for larger player counts.

What is keymaster in FiveM?

The old name of the key management page. Today you use portal.cfx.re.

Where do I put my FiveM license key?

In server.cfg as sv_licenseKey "yourkey".

Why does my FiveM license key say invalid?

Typos, a second or commented line, a wrong server.cfg, or a key bound to another IP are the usual reasons. Make a new key if the IP changed.

Can I change the IP of a license key?

Some host guides say you update the IP in the Portal. Since the Portal changes, look for the key's edit option or create a new key.

FiveM.tools was founded with sponsorship from Nyru.