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 account 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 securely authenticate with Wube's services.
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 your profile at Factorio.com.
- Scroll down to the "Service Token" section.
- 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 the /config/ directory.
- Open
server-settings.json. - Find the fields:
usernameandtoken(sometimes labeledservice_token). - Enter your Factorio Username (not your email address).
- Enter the Token into the token field.
Note: If you provide a token, you should leave the password field blank. - Save the file and Restart the server.
Troubleshooting
- 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 string.
- Verification: Set
"require_user_verification": trueto ensure players must also be logged in, preventing spoofing.
Verified production starts here. View plans.