Skip to content

How to Configure a Don't Starve Together Server

Learn how to configure the server name, password, game mode, PvP, Klei Cluster Token, and caves for your Don't Starve Together server.

26 November 20264 min read1 Views0 helpful

Don't have your own server yet? Host your Don't Starve Together server with ZAP-Hosting from €4.49 / month.

Introduction

With the right configuration, you can make your Don't Starve Together game server exactly the way you want it: give it a custom name and password, choose a game mode, turn PvP on or off, and add a cave world if you like. In this guide, we'll show you which settings are available, where to find them in ZapX, and which files you can edit yourself.

How configuration works

Don't Starve Together reads its server settings from two files:

  • DoNotStarveTogether/Cluster_1/cluster.ini contains settings for the entire server, such as its name, password, game mode, and player count
  • DoNotStarveTogether/Cluster_1/Master/server.ini contains settings for the surface world, mainly the ports

You don't need to edit either file manually. In ZapX, you can find the settings under Configuration in the Startup parameters tab. Every time your server starts, it completely rewrites cluster.ini and server.ini using the values from the startup parameters.

Important

Any changes made directly to cluster.ini or server.ini will be lost the next time the server starts. Always change your settings in the Startup Parameters instead.

To change a setting:

  1. In your game server management panel, open the Configuration tab.
  2. Select the Startup parameters category.
  3. Adjust the settings you want, then click Save.
  4. Restart the server, for example by clicking Restart now. Your changes will only take effect after the restart.

Startup parameters at a glance

Startup parameterDescription
Server nameYour server's name in the server list. If you leave this field blank, your server will be named ZapX Don't Starve Together Server.
Server descriptionA short description of your server in the server list. Default: Hosted by ZAP-Hosting
Server passwordThe password required to join. Leave this blank for a server without a password.
Max. playersThe number of players who can play on your server at the same time
Game modesurvival (default), endless, or wilderness; see below
PvPtrue allows players to fight each other; false disables it. Default: false
Klei cluster tokenA token from your Klei account that your server uses to sign in to Klei; see below
Cavestrue also starts the cave world on the same server; see Enable caves. Default: off
Whitelist SlotsThe number of slots reserved for players on the whitelist; see Whitelist. 0 = no whitelist (default)
Mods: Read access to server filestrue allows mods to read files in your server's cluster folder. Default: off
Mods: Write access to server filestrue allows mods to write files in your server's cluster folder. Default: off

Game mode and PvP

Use the Game mode field to choose the rules your server uses:

Game modeDescription
survivalThe default mode. If all players die, the world resets.
endlessPlayers who die can be revived at the portal.
wildernessPermadeath: players who die cannot be revived.

Use PvP to choose whether players can damage each other. For a cooperative team survival experience, leave PvP set to false.

Make your server public with a Klei Cluster Token

Without a Klei cluster token, your server starts in offline mode. It won't appear in the public server list and will only be accessible on the local network. To let your friends find your server, you'll need a token from your Klei account:

  1. Sign in to accounts.klei.com with your Klei account.
  2. Open the Don't Starve Together section for Game Servers, available directly at accounts.klei.com/account/game/servers?game=DontStarveTogether.
  3. Enter a name for your server and click Add New Server. The name is for your own reference only.
  4. Copy the token shown.
  5. In ZapX, open Configuration and go to Startup parameters. Enter the token in the Klei cluster token field, click Save, and restart the server.
Important

Treat your token like a password and don't share it. If there is no adminlist.txt, the player whose Klei account the token belongs to will be an admin. Learn more in Become an admin.

Mods: access to server files

Some mods need access to files in your server's cluster folder. This is disabled by default. You can enable it with two startup parameters:

  • Mods: Read access to server files adds the -allow_persistentstorage_read_sandbox_escape parameter at startup.
  • Mods: Write access to server files adds the -allow_persistentstorage_write_sandbox_escape parameter at startup.
Warning

With write access, mods can modify your server's files. Only enable these settings if a mod specifically requires them.

For instructions on installing mods and activating them in your world, see Install mods.

Other settings in cluster.ini

Your server sets some values in cluster.ini every time it starts. You can't change these using the startup parameters, and any manual changes will be overwritten the next time the server starts:

EntryValueDescription
pause_when_emptytrueThe world pauses as long as no players are connected.
vote_enabledtrueIn-game voting is enabled.
enable_vote_kickfalsePlayers can't kick other players through a vote.
autosaver_enabledtrueThe world is saved automatically at regular intervals.
console_enabledtrueAdmins can use the in-game console.
cluster_intentioncooperativeYour server's playstyle category in the server list

You can edit the following files yourself; your server won't overwrite them:

File in the DoNotStarveTogether/Cluster_1/ folderPurposeGuide
adminlist.txtAdmins for your serverBecome an admin
whitelist.txtPlayers with a reserved slotWhitelist
Master/modoverrides.luaActive mods and their settingsInstall mods
Master/worldgenoverride.lua, Master/leveldataoverride.luaSurface world generation settingsManage save games

Specify which mods your server downloads in the mods/dedicated_server_mods_setup.lua file. You can access all files through the Files tab or via SFTP.

Conclusion

Your Don't Starve Together server is now set up just the way you want it. For instructions on connecting to your server, see Connect to the server. If something isn't working as expected, our Common issues guide can help. If you have any other questions, our support team is available every day! 🙂

Free tools

Don't Starve Together Tools

View all

FAQ

Frequently asked questions

Go to Configuration and open the Startup Parameters tab. There you can set the server name, password, max. players, game mode, PvP, Klei Cluster Token, caves, and whitelist slots. Restart the server after saving your changes.
Your server completely rewrites cluster.ini and server.ini at every startup using the values from the startup parameters. Always change your settings in the startup parameters instead.
Without a Klei Cluster Token, your server starts in offline mode and is only accessible on the local network. Create a token in your Klei account, enter it in the Klei Cluster Token startup parameter, and restart the server.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.