How to Add Mods to Your Don’t Starve Together Server
Don’t Starve Together comes with a full mod system for servers. You do not have to upload the mods yourself — the server downloads them from the Steam Workshop on its own. Two files are responsible for this:
dedicated_server_mods_setup.luadefines which mods are downloaded.modoverrides.luadefines which mods are active in the world — per shard.
Warning
Stop your server before adding mods. After a game update, mods may be incompatible and cause crashes.
Find the Workshop ID
Open the mod in the Steam Workshop
Open the Steam Workshop for Don’t Starve Together and look up the mod you want.Read the ID from the address
The Workshop ID is the number at the end of the URL. Forhttps://steamcommunity.com/sharedfiles/filedetails/?id=350811795the ID is350811795.
Add mods for download
Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP or use the file browser in the dashboard.Open the file
In the main directory of your server, open the following file:mods/dedicated_server_mods_setup.luaEnter the mods
Add one line per mod with its Workshop ID:luaServerModSetup("350811795") ServerModSetup("2902364746")Add collections
If you want to load a complete Workshop collection, use this command with the ID of the collection instead:luaServerModCollectionSetup("379114180")Save
Save the file.
Enable mods in the world
Open the cluster folder
Navigate to the folder that contains thecluster.inifile. That is your cluster folder. Inside you will find the shard foldersMaster(overworld) and, if the caves are enabled,Caves.Open modoverrides.lua
Open themodoverrides.luafile in theMasterfolder. If it does not exist yet, create it:<cluster folder>/Master/modoverrides.luaEnter the mods
Add each mod with its Workshop ID in the formatworkshop-<ID>:luareturn { ["workshop-350811795"] = { enabled = true }, ["workshop-2902364746"] = { enabled = true }, }Set mod options
If a mod offers its own options, add them viaconfiguration_options. The valid names and values are listed in themodinfo.luafile of the mod in question:luareturn { ["workshop-2902364746"] = { enabled = true, configuration_options = { mode = "Easy Cartography" }, }, }Cover the caves
If the caves are enabled on your server, copy the same file to<cluster folder>/Caves/modoverrides.luaas well. Every shard has its own mod list.Start the server
Start your server. On startup it downloads the listed mods and enables them, so the first start can take a little longer.
Important
Both files belong together: every mod you enable in modoverrides.lua also needs a matching ServerModSetup() line in dedicated_server_mods_setup.lua — and the other way around. If one of the two entries is missing, the mod will not be loaded.
Do players have to do anything?
No. Server-only mods do not have to be downloaded by joining players at all. Mods that also have to run on the client are downloaded and enabled automatically through the Steam Workshop when players join.
Tip
Downloaded mods are stored by the server as mods/workshop-<ID>/ folders. You can use this to check whether a mod was actually loaded. Also create a backup of your world before changing mods.