Every FiveM server needs a license key from the keymaster portal. It ties your server to your Cfx.re account and is required to start. Here is how the keymaster works and how to fix the errors people run into.
What the Keymaster Is
The keymaster is the Cfx.re portal where you generate and manage server license keys. Each key authorizes one server to run and connects it to your account. Without a valid key in your config, the server will not start.
Creating a Server Key
- Log in to the Cfx.re keymaster portal with your forum account
- Select the option to register a new server
- Choose whether the key is for a specific IP or a dynamic setup
- Copy the generated key
You can create a key bound to a fixed IP address or one that allows any IP, which is handy if your host changes addresses. For most rented servers, a key that is not locked to a single IP is the easier choice.
Adding the Key to Your Server
Open your server.cfg and set the license key line:
sv_licenseKey "your_key_here"
Save the file and restart the server. The key authenticates your server with Cfx.re on startup.
Managing Your Keys
In the keymaster you can see all your keys, edit their IP binding, and revoke keys you no longer use. Keep your keys private. Anyone with your key could run a server under your account, so treat it like a password.
Common Keymaster Errors
Invalid license key: Usually a typo or a revoked key. Recopy the key carefully and make sure there are no extra spaces or quotes.
Key already in use: The same key is running on another server. Each key can only run one server at a time, so create a second key for a second server.
IP mismatch: Your key is locked to a different IP than your current host. Edit the key in the keymaster to allow your new IP, or switch it to a non IP locked key.
Banned key: Keys can be banned for violations. If this happens you will need to address the cause and may need a new key.
Best Practices
Use a separate key for each server you run. Never share keys publicly or paste them in screenshots. If you migrate hosts, update the key binding in the keymaster before starting on the new IP.
FAQ
Where do I get a FiveM server key? From the Cfx.re keymaster portal, logged in with your forum account.
Can I use one key for two servers? No. Each key runs one server at a time. Create a separate key for each server.
Why does my key say IP mismatch? The key is bound to a different IP. Update the binding in the keymaster or use a non IP locked key.
Related: How to make a FiveM server, FiveM server artifacts build guide, FiveM server list guide