Hosting a Don't Starve Together server

A Don't Starve Together world is a cluster of shards, usually the overworld and the caves, each its own process. A dedicated machine runs several clusters at once with room to spare.

How is a server organised?

As a cluster folder with one subfolder per shard. The overworld shard is the master; the caves shard connects to it, and players travel between them through sinkholes. The cluster folder holds cluster.ini and cluster_token.txt; each shard folder holds its own server.ini, world settings and modoverrides.lua.

~/.klei/DoNotStarveTogether/Autumn/
  cluster.ini
  cluster_token.txt
  Master/server.ini
  Master/modoverrides.lua
  Caves/server.ini
  Caves/worldgenoverride.lua

How do I install it?

Download app 343050 with SteamCMD, then start each shard from the bin64 folder with the null renderer binary. The 64-bit build needs a few 32-bit compatibility libraries on some systems, notably libcurl variants; install whatever the first start reports missing.

steamcmd +force_install_dir /srv/dst +login anonymous +app_update 343050 validate +quit
cd /srv/dst/bin64
./dontstarve_dedicated_server_nullrenderer_x64 -cluster Autumn -shard Master &
./dontstarve_dedicated_server_nullrenderer_x64 -cluster Autumn -shard Caves &

In production, give each shard its own systemd unit so they restart independently and log separately.

What is the cluster token?

A key tied to your game account that lets the server appear in the browser and identifies you as its owner. Generate it from the game's account page or with the in-game console, and paste the single line into cluster_token.txt. Treat it like a password: anyone with it can run servers under your name.

Which settings matter in cluster.ini?

The [GAMEPLAY] section sets game_mode (survival, endless or wilderness), max_players, pvp and pause_when_empty. The [NETWORK] section sets the name, description, password and whether the cluster is listed. [SHARD] enables sharding and holds the master_port and cluster_key that the shards share between themselves. Six players is the shipped default; groups of 8 to 16 are common on dedicated hardware.

Which ports does each shard need?

Each shard has its own UDP server_port in its server.ini, and these are the only ports players reach. The master_port stays internal when both shards run on the same machine. Plan a block per cluster so nothing collides:

ClusterOverworld UDPCaves UDPInternal master port
Autumn109991100010888
Winter110101101110889
Event110201102110890

Each shard also takes two Steam ports set by authentication_port and master_server_port; give them unique values per shard as well.

How do workshop mods work?

In two steps. List each mod's workshop number in mods/dedicated_server_mods_setup.lua inside the install folder, which tells the server to download them at start. Then enable them per shard in modoverrides.lua, with any configuration options the mod offers. Client-side mods need nothing on the server; mods that change gameplay are downloaded by players automatically when they join.

-- mods/dedicated_server_mods_setup.lua
ServerModSetup("375859599")
ServerModSetup("378160973")

How much hardware does a cluster use?

About one core and 1 to 2 GB of memory per shard, so an overworld and caves pair needs roughly two cores and 3 GB. Large bases with many items on the ground and long-running worlds raise both a little. ESSENTIAL-GAME-1, with 6 cores and 32 GB DDR4, runs three or four clusters for $43.20 a month and is also sold in Singapore and Sydney. Communities with themed servers often prefer ESSENTIAL-3 with 12 cores.

How do I protect long worlds?

Back up the whole cluster folder, since a world spans both shards and they must be restored together. The game keeps rolling snapshots of its own, but a copy off the machine protects against a corrupted disk or a mistaken regenerate command. Use the console command c_save() before the copy, or stop both shards. The Copy data between servers with rsync guide shows how to send those copies to another server.

Machines for Don't Starve Together clusters

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-GAME-1AMD Ryzen 5 5600X632 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-3AMD Ryzen 9 5900X1232 GB2x 512 GB SSD NVMe1 Gbps unmetered$61.20
ESSENTIAL-GAME-2AMD Ryzen 7 5800X864 GB2x 960 GB SSD NVMe1 Gbps unmetered$60.00
ESSENTIAL-SAMD Ryzen 7 9700X864 GB2x 512 GB SSD NVMe1 Gbps unmetered$46.20
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20

One Ryzen machine can host several overworld and caves clusters side by side.

See all servers and prices

Related pages

Game server hosting

Ryzen X3D and Ryzen 5000 machines for Minecraft, Rust, CS2 and FiveM worlds that need steady tick rates.

Read more

Essential servers

Affordable bare metal for websites, development and first production apps.

from $38.40 a monthRead more

Copy data between servers with rsync

Move or mirror data from one machine to another over SSH with rsync, keep permissions intact, resume big copies and do a final short sync.

Read more

Firewall for game servers

Open exactly the UDP and TCP ports a game needs, protect query ports from reflection abuse and keep lag low under load.

Read more

Questions and answers

How many processes does a Don't Starve Together server run?

One per shard. A standard world runs an overworld (master) shard and a caves shard, each as its own process.

What is cluster_token.txt for?

It holds a key tied to your game account that lists the server and marks you as its owner. Keep it private like a password.

Which ports does a Don't Starve Together server use?

Each shard has its own UDP server_port, such as 10999 for the overworld and 11000 for the caves, plus unique Steam ports per shard.

How do I add workshop mods to a Don't Starve Together server?

List the workshop numbers in dedicated_server_mods_setup.lua, then enable each mod per shard in modoverrides.lua.

How much hardware does one Don't Starve Together world use?

About one core and 1 to 2 GB of memory per shard, so an overworld with caves needs roughly two cores and 3 GB.