Knowledge base

Get started with your Don't Starve Together server

Your Don't Starve Together server gives you a world that runs around the clock. Before it can start online it needs a cluster token from Klei. Here is the whole way.

What you need

  • Your control panel login.
  • A Klei account (the same one you use for Don't Starve Together) so you can get a cluster token.
  • The game on your computer so you can test.

1. Get your cluster token

The server needs a token that ties it to your Klei account. It is free, and you must create it yourself.

  1. Go to accounts.klei.com and log in.
  2. Open the page for game servers (Game Servers) for Don't Starve Together.
  3. Type a name for your server and add it. Then copy the token shown in the list.

Copy the token exactly. Even an extra space or invisible character gives the error E_EXPIRED_TOKEN. Never share your token with anyone.

2. Put the token on the server

  1. Open Files in the control panel and find your cluster folder.
  2. Create or edit the file cluster_token.txt and paste the token as the only content.
  3. Save the file.

3. Start the server and connect

  1. Click Start and watch the console until the server is ready.
  2. Start Don't Starve Together, open the server list (Browse Games) and search for the name of your server.
  3. Enter the password if you set one. The address and port are in the control panel if you want to connect directly.

4. The most important settings and files

FileWhat it is used for
cluster.iniShared settings: number of players (max_players), password and whether the cluster is online.
server.iniSettings for a single shard, such as the port and whether it is the main world.
worldgenoverride.luaChanges world generation, such as presets.
adminlist.txtAdmins, one user ID per line (KU_ ID). If it is empty, the owner of the token is the only admin.

If you also want to run caves (Caves), you need a Master shard and a Caves shard that belong to the same cluster and use separate ports. If you need help with the setup, write to us.

5. Mods

  • Add Workshop mods in the file dedicated_server_mods_setup.lua with ServerModSetup("workshop-id").
  • Turn them on in modoverrides.lua for each shard, otherwise they are not loaded.
  • Take a backup before you add many mods.

Common problems

  • The server does not start online: The token is missing, copied wrongly or expired. Get a new one and paste it again.
  • You cannot find the server: Check that the server is running and that the name is spelled correctly. Try connecting directly, see Players cannot connect.
  • Mods do not work: Check that the mod is both installed and turned on in modoverrides.lua.

See also

Need help?

If you are stuck, open a ticket and we will help. Please include what the console shows and what you have already tried.

Was the article helpful?