A FiveM server does not start without a valid license key. The key is not issued by the hosting provider: it belongs to your own Cfx.re account, so after ordering you request it yourself and provide it to the server.
This guide walks through requesting the key, setting it in server.cfg and the most common errors, and shows how to keep the key safe.
Requesting the key
- Open the Cfx.re Portal and sign in with your Cfx.re (FiveM forum) account; if you do not have one, register first.
- In the Servers area start creating a new key. The form may ask for a server name and the server’s IP address; you find the IP address on your service page.
- Copy the generated key and share it with nobody. The Portal’s menu labels can change, so follow the current interface.
Open image full size Where the key goes
The key goes into the server.cfg file using the sv_licenseKey setting. After editing the file the server must be restarted.
- Keep the value inside quotation marks, without stray spaces or line breaks.
- If the server’s management interface (for example txAdmin) has a separate field for the key, enter it there; do not keep two different sv_licenseKey lines in server.cfg.
- With a game server service the service page shows where the file or setting is; if you cannot find it, ask in a ticket.
sv_licenseKey "cfxk_YOUR_KEY"Common errors
| Symptom | Likely cause | What to do |
|---|---|---|
| The server stops right after starting | A missing or wrong key. | Read the console log and check the key for stray spaces or line breaks. |
| The key is not accepted | It was requested for another server or IP address, or you replaced it. | Check the details stored with the key on the Portal and request a new one if needed. |
| The key leaked | You shared it in a screenshot, a public file or a chat. | Create a new key, replace it in server.cfg, and delete the old one on the Portal. |
Keeping the key safe
- Do not publish server.cfg in screenshots, on GitHub or in forums; mask the key and the database password first.
- Do not send the key by e-mail or in a public chat. For support you can include it in a ticket if the team asks.
- When moving or changing provider, check that the key is assigned to the new server.



