Factorio: Authentication Token Setup
To run a Public server or automatically download mods, your server needs to prove it owns a valid copy of the game. It does this via an **Auth Token** (not your password!).
1. Why use a Token?
Using your real password in a config file is a security risk. Tokens are revocable keys that allow the server to "act" as you.
2. Mod Portal Access
Without a token, your server cannot download mods from the Mod Portal during startup. You would have to upload them manually.
3. Public Listing
Only authenticated servers can appear in the global Server Browser. Unverified servers are Direct Connect (IP) only.
Step-by-Step Guide
- Log in to Factorio.com.
- Scroll down to the **"Service Token"** section (or "Profile" area).
- Click **Reveal** next to your token.
- Copy the long string of random characters.
Applying the Token
You need to edit your `server-settings.json` file located in /config/.
- Open `server-settings.json`.
- Find the fields:
usernameandtoken(sometimes labeledservice_tokenorpasswordin older configs). - Enter your **Factorio Username** (NOT email).
- Enter the **Token** into the password/token field.
Note: Leave `password` blank if using `token`. - Save and Restart.
Troubleshooting "Authentication Failed"
- **Steam Users:** If you bought the game on Steam, you must link your Steam account on the Factorio website to generate a token.
- **Spaces:** Ensure you didn't copy a whitespace character at the end of the token.
- **Verification:** Set
"require_user_verification": trueto ensure players must also be logged in, preventing spoofing.
Verified production. Host your Factorio server with Supercraft, where our panel handles token validation automatically for hassle-free modding.