Getting and setting up a FiveM license key (Cfx.re Keymaster)
Every FiveM server needs a license key, no matter how small your project is. Without a valid key, the server simply refuses to start. Fortunately, a key is free and you can get one in a few minutes via Keymaster, the official portal from Cfx.re, the makers of FiveM. Below you'll walk through the entire process: from creating an account to putting the key in your server.cfg, plus solutions for the most common error messages.
Why FiveM requires a license key
The license key ties your server to your Cfx.re account. That lets the platform identify servers, prevent abuse and block servers that break the rules. As an admin, this benefits you too: the server list stays cleaner and your server is verifiably yours.
A standard key costs nothing and is more than enough for most servers. If you want more player slots or extra platform features, Cfx.re offers paid subscriptions for that. For a starting server you don't need to worry about it yet; you can always upgrade later.
Important to know: a key is tied to your server's IP address and may only be active on one running server at a time. If you move to a different host or your server gets a new IP address, update it in Keymaster. If you don't, your server will refuse to start.
Creating a Cfx.re account
Keymaster works with your Cfx.re account, the same account you use for the official FiveM forum. If you don't have one yet, it's quickly sorted:
- Go to the Cfx.re forum and register an account with an email address you actually use.
- Confirm your email address via the confirmation email you receive.
- Then log in to the Keymaster portal at keymaster.fivem.net with that same account.
Use a strong, unique password and enable extra account security where possible. Your license key, and with it your entire server, hangs off this one account. In the worst case, a hijacked Cfx.re account means someone else runs off with your server identity.
Step by step: generating your key in Keymaster
- Log in to Keymaster and choose to register a new server.
- Give your server a recognizable name, so you can easily find it later if you manage multiple keys.
- Enter your server's IP address. If you rent a server from a host, you'll find this IP address in your control panel or in the email with your server details.
- Fill in the remaining fields Keymaster asks about your server and project.
- Generate the key and copy it straight to a safe place, such as a password manager.
Treat your key like a password: never share it in screenshots, Discord messages or public config files. Someone with your key can run a server under your account, and you get to clean up the consequences afterwards. Keep this in mind when asking for help on a Discord or forum too: people surprisingly often paste their complete server.cfg into a support channel, key included. Strip that line out before you share anything.
If you run a test or development server alongside your main server, simply create a second key for it; keys are free, after all. Give each key in Keymaster a clear name, such as the server name plus its purpose. That way you avoid ending up with three keys six months from now and no idea which one runs where.
Putting the key in your server.cfg
Open your server.cfg and add this line (or replace the existing one):
sv_licenseKey "your_key_here"
Watch out for these points:
- Paste the key exactly as Keymaster shows it, with no spaces before or after and no missing characters at the end.
- Keep the key on one line; a broken key won't be recognized.
- Save the file and then fully restart the server. Just saving isn't enough: the key is only read at startup.
If your server runs at a host with a control panel, there's often a dedicated field for the license key in your server's settings or startup parameters. That field fills in the key automatically on start, so you don't have to touch server.cfg yourself. If you use such a field, don't also put the key in server.cfg: setting it in two places guarantees confusion about which value is actually being used the next time you swap keys.
If you manage your server with txAdmin, the setup wizard asks for the license key while creating your server and puts it in the right place itself. The same rule applies: one place is enough. Consciously choose where your key lives (panel, txAdmin or server.cfg) and stick with it.
Fixing common error messages
If your server won't start and the console points at the license, the problem is almost always in one of these corners:
| Symptom | Likely cause | Fix |
|---|---|---|
| Key is rejected as invalid | Typo, extra space or incompletely pasted key | Copy the key from Keymaster again and replace the old one completely |
| Key stops working after moving hosts | The IP address in Keymaster is no longer correct | Update the server IP in Keymaster and restart your server |
| Key is already in use | Another (test) server is still running with the same key | Stop that server or create a separate key for your test environment |
| New key doesn't work right after creation | The registration hasn't propagated everywhere yet | Wait a few minutes and then restart the server |
| Server runs, but doesn't show in the server list | Usually not a key problem, but ports or firewall | Check that the correct ports are open at your host |
If you're stuck, always check the server console first: FiveM reports fairly precisely what goes wrong during the license check. For persistent problems, also verify in Keymaster that your server registration is still active and that you're not accidentally looking at an old key.
One last, less pleasant possibility: Cfx.re can revoke keys from servers that violate the terms of service, for example through illegal content or platform abuse. If your key has been revoked, generating a new key usually doesn't fix the problem for good; the underlying issue has to be resolved first. Stick to the platform's rules and in practice you'll never run into this.
Get your FiveM server online right away
Once you have your key, you'll naturally want somewhere to use it. At MC-Node, your FiveM server runs on our own hardware with NVMe storage in the Previder data center in Hengelo, with DDoS protection included. Paste your license key into the panel, upload your resources and you're online. All plans can be cancelled monthly and start at just €1.75 per month for a Small plan; there's even a free Free plan to test with calmly before your community takes off. Check out the FiveM server plans at MC-Node and put your key to work tonight.