ImperialHost.cc · Guides · Survival and open world
Don’t Starve Together server: joining and setup
A Don’t Starve Together server needs a token from Klei and won’t start without it. Then you set the name, password, admins and mods.
Before you start
- A Don’t Starve Together server with us and access to the game panel.
- A Klei account to create a server token at accounts.klei.com.
1. Add the Klei token
- Sign in at accounts.klei.com and open the game servers page for Don’t Starve Together. Type a name and click Add New Server. The token appears in the list, copy it.
- In the client area open Services, pick the server and click Open game panel.
- On the Startup tab paste the token into the SERVER TOKEN field. It saves by itself.
- On the Console tab click Restart (the circular arrow at the top near the server's name).
At every start the server writes the token from SERVER TOKEN into the cluster_token.txt file. So don't edit that file by hand.
2. Find the server in the game
- In the game open Browse Games and search for the server's name. You find the name on the Startup tab in CLUSTER NAME.
- Pick the server and join. If it has a password, the game asks for it.
3. Set up the server
- On the Startup tab: CLUSTER NAME is the name in the server list, CLUSTER DESCRIPTION the description, MAX PLAYERS the player limit (1 to 64) and GAME MODE the game mode
survival,endlessorwilderness. - Type the join password into SERVER PASSWORD. An empty field means no password.
- Changes take effect after a restart: on the Console tab click Restart.
The server overwrites the game_mode, max_players, cluster_name, cluster_description and cluster_password lines in cluster.ini with the values from the Startup tab at every start. Change them only there.
4. Add admins
- Join the server. When you sign in, the console on the Console tab prints your Klei ID. It starts with
KU_. - On the Files tab open the
DoNotStarveTogether/config/serverfolder, wherecluster.iniis, and click New File. - Type the IDs, one per line, for example
KU_ab12cd34. Click Create File, typeadminlist.txtin File Name and confirm with the Create File button. - Restart the server. An admin can then kick and ban players in the game.
5. Add Steam Workshop mods
- A mod's ID is in the address of its Steam Workshop page after
?id=, for example378160973. - On the Files tab open the
dedicated_server_mods_setup.luafile in themodsfolder. Add the lineServerModSetup("378160973")with your mod's ID at the end and save it with Save Content. - In the
DoNotStarveTogether/config/server/Masterfolder create amodoverrides.luafile with New File containingreturn { ["workshop-378160973"] = { enabled = true } }. Create the same file in theCavesfolder too. - Restart the server. The server downloads the mods by itself at the start.
Separate more mods in modoverrides.lua with a comma: return { ["workshop-111"] = { enabled = true }, ["workshop-222"] = { enabled = true } }.
Troubleshooting
The server won't start
A valid token is missing. The console then prints E_INVALID_TOKEN and Your Server Will Not Start. Check that SERVER TOKEN holds the whole token without spaces and restart the server.
I can't join after a game update
The server and the game need the same version. On the Startup tab switch on AUTO-UPDATE SERVER and restart the server.
An admin has no rights
The file must be named exactly adminlist.txt and sit next to cluster.ini, not in the Master or Caves folder. The ID must start with KU_, a Steam ID does not work. Restart the server after a change.
A mod did not load
In modoverrides.lua the ID needs the workshop- prefix, in dedicated_server_mods_setup.lua it is only the number. The modoverrides.lua file must be in both the Master and Caves folders.
Still stuck?
Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.