Don't Starve Together guide

Get a Don't Starve Together server token

Make a Don't Starve Together server token on your Klei account, save it as cluster_token.txt, and fix the "Your Server Will Not Start" error.

Updated · By the HostForge team

Every Don't Starve Together dedicated server needs a server token from a Klei account. The server signs in to Klei with it when it starts; that is how the server is listed in the game's Browse Games list. Without a token it doesn't make or load a world at all.

1. Make the token

  1. Open accounts.klei.com/account/game/servers?game=DontStarveTogether, the page the server itself points to, and sign in with the Klei account you play Don't Starve Together on.
  2. Under Add New Server, type a name for the server and add it.
  3. Copy the server token it shows for that server.

The token is one line of text. Keep it to yourself: a server that uses it signs in as your Klei account.

2. Use it

Save the token as cluster_token.txt in the server's cluster folder, beside cluster.ini, as described in setting up a Don't Starve Together dedicated server. One token serves the whole cluster: the surface and the Caves read the same file.

When the server refuses it

Without a token, or with one Klei doesn't accept, the server logs:

[200] Account Failed (6): "E_INVALID_TOKEN"
!!!! Your Server Will Not Start !!!!
No auth token could be found.
Please visit https://accounts.klei.com/account/game/servers?game=DontStarveTogether
to generate server configuration files

Check that cluster_token.txt holds the whole token on one line and sits in the folder named by -cluster. If it still fails, make a new token on the same page and use that one.

On HostForge

Paste it once

On HostForge, paste the token when you create the server. HostForge gives it only to your server and never shows it again; you can replace it in the server's Settings tab. If Klei refuses it, the start stops within seconds and says so, instead of waiting for a world that never comes.

Don't Starve Together server hosting

More Don't Starve Together guides