How to host a Don’t Starve Together server

Individually light, but remember you are running two of them for a single world. Both need to be up for players to move between the surface and the caves, and both need to be backed up together — a surface save restored without its matching caves save is not a coherent world.
How to install it
- Get a server token from your Klei account on their website. Nothing works without it, so do this first.
- Install Steam’s command-line tool, then the Don’t Starve Together server using an anonymous login.
- Create a cluster folder containing your token and cluster settings, plus two shard folders inside it — one for the surface, one for the caves.
- Start both shards. Two processes, same cluster. This is the step people miss entirely.
- Check you can travel down a sinkhole in game. That is the only real proof the two halves are talking to each other.
Generate one from your Klei account and save it as cluster_token.txt in the cluster folder. A public server requires owning the game to get one, and nothing works without it.
How to configure it
| File | Shard | Setting that decides it |
|---|---|---|
| Master/server.ini | Surface | is_master = true |
| Caves/server.ini | Caves | is_master = false |
| both | — | Each needs its own server_port; setting both as master, or neither, is the usual cause of a cluster that starts but never connects. |
- Shard mode must be enabled in cluster.ini or the two halves will never find each other, however correctly each one is set up.
- Exactly one shard is the master. Setting both or neither is the usual cause of a cluster that starts but does not connect.
- Each shard needs its own port as well as sharing the cluster port.
- Mods are configured per shard. A mod enabled on the surface only will behave unpredictably underground.
Setting up only the surface and concluding caves are broken or disabled. They are not — they are a second server that was never started.
Written from experience running these servers. If something here no longer matches what you are seeing, tell us and we will recheck it.
Building GameDash at Schokker IT — the game server control panel we always wished existed. Writes about infrastructure automation, the SDK and running game servers at scale.