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.
- Go to accounts.klei.com and log in.
- Open the page for game servers (Game Servers) for Don't Starve Together.
- 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
- Open Files in the control panel and find your cluster folder.
- Create or edit the file
cluster_token.txtand paste the token as the only content. - Save the file.
3. Start the server and connect
- Click Start and watch the console until the server is ready.
- Start Don't Starve Together, open the server list (Browse Games) and search for the name of your server.
- 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
| File | What it is used for |
|---|---|
cluster.ini | Shared settings: number of players (max_players), password and whether the cluster is online. |
server.ini | Settings for a single shard, such as the port and whether it is the main world. |
worldgenoverride.lua | Changes world generation, such as presets. |
adminlist.txt | Admins, 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.luawithServerModSetup("workshop-id"). - Turn them on in
modoverrides.luafor 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
- How to connect with FileZilla (FTP and SFTP)
- FTP or SFTP: which should you use?
- How to choose the right size
- How to add extra RAM or upgrade
- Players cannot connect to my server
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.