A Don't Starve Together server mainly needs three solid foundations: a valid Klei cluster token, a suitable cluster configuration and deliberately chosen world or mod options. If you enable Caves, you also need to plan for a second shard. This guide walks you through ordering, setup, verification and common sources of errors. How to choose mods and enable them in the cluster is covered in Don't Starve Together: Setting Up Mods.

Requirements

For a dedicated server, you need a valid Don't Starve Together license, a Klei account, access to the server dashboard and a decision on whether you want to play only the surface world or Caves as well. The token is created via the official Klei page for game servers at accounts.klei.com. There you generate the cluster token your server needs to authenticate with Klei.

If you're starting with a small co-op group, a lean configuration makes sense. The baseline setup provides 2-4 GB RAM, or 4 GB with Caves. Treat this as a planning value: mods, player count and world size can increase the requirements. At game-serverhosting, technical control is the focus: you manage tokens, configuration files, restarts and mods deliberately instead of relying on an opaque default setting.

If you're comparing other co-op setups, you'll find similar planning questions in Rent and Set Up a Valheim Server – Co-op Guide 2026 and in Rent and Set Up an Enshrouded Server – Co-op Guide.

Ordering the Server

  1. Go to game-serverhosting
  2. Choose 2-4 GB RAM (with Caves: 4 GB)
  3. The server is set up automatically

After provisioning, you shouldn't immediately mix in mods and world options. Set up the token first, start the server once without any additional changes and check whether it's visible in Don't Starve Together. Only after that is it worth adding Caves, world rules and Workshop mods. This makes it easier to tell later which change caused an error.

Creating the Cluster Token

  1. Launch DST → Account → Games → Game Servers (Klei Entertainment)
  2. Generate a token at accounts.klei.com
  3. Enter the token in the dashboard

The cluster token isn't a cosmetic name; it's the link between your dedicated server and the Klei service. Treat it like a credential: don't post it publicly, don't show it in screenshots and don't publish it in shared configuration examples. If you've accidentally exposed a token, create a new one via the Klei page and replace it in the dashboard.

Enabling Caves

Caves need a second shard. This means the surface world and the caves run as separate server processes that communicate with each other via the cluster configuration. So only enable Caves once the base server is running stably.

# cluster.ini
[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10889
cluster_key = secret

The canonical GSH egg starts the master shard. For Caves, you additionally need a second shard that is actually running, plus a supported instance and port setup for it. Creating a Caves folder or setting shard_enabled = true alone does not start this second process. Check the provisioning beforehand; the following cluster configuration assumes both shards are set up.

The cluster_key must match between the participating shards. Don't use a publicly known example value in production. If Caves are unreachable, first check whether both shards have started, whether the master port matches and whether the second shard uses the same cluster data.

World Settings

World settings go in worldgenoverride.lua. This file affects the generation and rules of your world. Ideally, change it before your first real play session, because many settings no longer apply cleanly retroactively after the world has been generated.

return {
    override_enabled = true,
    overrides = {
        day = "longday",
        season_start = "autumn",
        autumn = "longseason",
        winter = "shortseason",
        beefalo = "often",
        berry = "more",
    }
}

This example makes days longer, starts in autumn, lengthens autumn, shortens winter and increases certain resources and creatures. Options like these can change the difficulty significantly. For a new group, that's often helpful; for an experienced group, however, it can reduce the survival tension. So briefly document which values you've set, so that later changes remain traceable.

Installing Mods

dedicated_server_mods_setup.lua defines which Workshop mods are downloaded. They are additionally enabled in the modoverrides.lua of each shard. Check the surface world and Caves separately; a downloaded mod is not automatically active in both worlds. If errors occur, save the log files of both shards along with the time of the startup attempt; Klei describes the logs and required error information.

ServerModSetup("378160973")    -- Global Positions
ServerModSetup("462434129")    -- Wormhole Marks
ServerModSetup("458587300")    -- Season Clock

Don't install too many mods at once. Add a small group first, test joining the server and then add more mods. Especially after game updates, individual Workshop mods can become incompatible. If players get stuck while connecting, temporarily disable the most recently added mods and check whether all clients can load the same mod dependencies.

For other mod- or community-heavy server concepts, you can use the Rent a Team Fortress 2 Server – Community Server Guide as a comparison. If co-op survival with clear server control matters to you, the Rent and Set Up a V Rising Server – Vampire Guide is also a good thematic fit.

Admin Commands

Admin rights and console commands help with running the server, but should be used sparingly. Use them mainly for maintenance, rollbacks and testing, not as a substitute for proper backups.

c_rollback(1)                   -- roll back to the previous snapshot
c_reset()                       -- reload the current save
c_godmode()                     -- Invulnerable
c_supergodmode()                -- Immortal + no hunger

For permanent admin rights, the Klei user ID (KU_...) goes in your cluster's adminlist.txt, one ID per line. Back up the file and check the permissions after restarting. Verify admin rights after a restart by using a harmless command or by checking in-game whether the expected permissions apply. c_reset() reloads the current save; it does not create a new world. A rollback, on the other hand, discards progress since the selected snapshot. Only use such commands when the consequences are clear.

Verifying the Result

After setup, you should check four things: the server appears in Don't Starve Together, joining works without mod errors, the desired world options are active and Caves are reachable if you've enabled them. It's also worth taking a look at the server logs right after startup. Errors related to tokens, shards or mods often show up there earlier than in the game client.

Ask a second person from your group to join as a test. This way you're not just checking your local client, but also whether the server is reachable for others and whether Workshop content is distributed correctly.

Troubleshooting

If the server isn't visible, first check the cluster token and restart the server. A missing or invalid token prevents proper authentication. If Caves are missing, check the shard configuration and whether the second shard is really running. If mods are causing problems, remove the most recently added Workshop IDs and continue testing in small steps.

If world options don't seem to take effect, the world may have already been generated beforehand. In that case, depending on the setting, you'll need a new world or will have to consciously keep playing with the existing parameters. Always back up the current state before making destructive changes.

FAQ

Do I absolutely need a Klei cluster token?

For an online-authenticated Don't Starve Together dedicated server, you need a cluster token from Klei; an explicitly offline-configured cluster is a different operating mode. The token is created via the official Klei game server page and entered in the server dashboard.

Should I enable Caves right at the first start?

Only if you really want to play them. Caves require a second shard and increase complexity. For the initial check, starting without Caves is often clearer.

Can I add mods later?

Yes. Enter the Workshop IDs for downloading in dedicated_server_mods_setup.lua and additionally enable the mods per shard in modoverrides.lua. Then restart both participating shards in a controlled way. Add mods step by step so you can more easily trace errors back to a specific change.

When is the best time to change worldgenoverride.lua?

Ideally before the first real world generation. Many world options take effect when the world is created and can't always be changed cleanly retroactively later.

What do I do if players get stuck while joining?

First check the logs and temporarily disable the most recently added mods. Then check the token, the shards and whether all required Workshop content is loaded correctly.

How do I use admin commands safely?

Use admin commands deliberately for maintenance and testing. Critical commands like c_reset() should only be run after careful consideration and ideally after a backup.