How to configure a Don't Starve Together auth token
The developers of Don't Starve Together, Klei Entertainment, require dedicated servers to have an auth token. Without an auth token, a server will not start and instead display an error message like this:
[00:00:08]: [200] Account Failed (6): "E_INVALID_TOKEN"
[00:00:08]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:08]: !!!! Your Server Will Not Start !!!!
[00:00:08]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:00:08]: No auth token could be found.
[00:00:08]: Please visit https://accounts.klei.com/account/game/servers?game=DontStarveTogether
[00:00:08]: to generate server configuration files
[00:00:08]:
[00:00:08]: Alternatively generate a cluster_token you can
[00:00:08]: open the console from a logged-in game
[00:00:08]: client with the tilda key (~ / ù) and type:
[00:00:08]: TheNet:GenerateClusterToken()
[00:00:08]: This will create 'cluster_token.txt' in
[00:00:08]: your client settings directory. Copy this
[00:00:08]: into your cluster settings directory.
This guide will show you how to generate an auth token and configure it in the app.
Generating an auth token
- Visit the Klei server registration website
- Log into your Klei account
- Find the
ADD NEW SERVER
section - Pick a unique
Cluster Name
so you can easily find and join your server - Press the
Add New Server
button to register your server - Press the
Configure Server
button - Adjust the settings to your liking
- Press the
Download Settings
button to download aMyDediServer.zip
file
Setting an auth token
- Start your server
- Pause your server
- Open the
Config
screen in the app - Upload your
MyDediServer.zip
to.klei/DoNotStarveTogether
- Restart your server and start playing