Menu
 

Auth Token Setup - Factorio Wiki

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

  1. Log in to Factorio.com.
  2. Scroll down to the **"Service Token"** section (or "Profile" area).
  3. Click **Reveal** next to your token.
  4. Copy the long string of random characters.

Applying the Token

You need to edit your `server-settings.json` file located in /config/.

  1. Open `server-settings.json`.
  2. Find the fields: username and token (sometimes labeled service_token or password in older configs).
  3. Enter your **Factorio Username** (NOT email).
  4. Enter the **Token** into the password/token field.
    Note: Leave `password` blank if using `token`.
  5. 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": true to 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.

Top