Add an Admin to a Don’t Starve Together Server
This guide shows you how to grant admin privileges to a player on your own Don’t Starve Together (DST) dedicated server. Admin rights let you use console commands, spawn items, teleport, and manage other players. You’ll need access to the server’s files—either through a hosting panel or directly on the machine running the server—and the player’s Klei ID (also called User ID).
What You’ll Need
- Access to your DST dedicated server’s files (via FTP, a hosting control panel, or local file system).
- The player’s Klei ID. This is a 17-digit number found on their Klei account page (accounts.klei.com) or by asking them to run
c_print(ThePlayer.userid)in their client console. - A text editor (like Notepad++ or VS Code) to edit the server’s configuration files.
Step-by-Step
- Locate the server’s save directory. For dedicated servers, this is usually a folder named
saveinside your cluster folder. If you’re using a hosting service, the file manager will show this. For a locally hosted server, it’s typically inDocuments/Klei/DoNotStarveTogether/followed by your cluster name (e.g.,MyCluster). - Open the
cluster_adminlist.txtfile. Inside thesavefolder, you’ll find a file namedcluster_adminlist.txt. If it doesn’t exist, create it with your text editor. This is the file that lists all admin IDs, one per line. - Add the player’s Klei ID. On a new line, paste the player’s 17-digit Klei ID. Do not add any extra characters, spaces, or quotes. Save the file.
- Restart the server. For the change to take effect, you must restart the server. If you’re using a hosting panel, use the restart button. If local, stop the server process and start it again.
- Verify the admin status. After the server restarts, the player should log in. They can test by pressing
~(tilde) to open the console and typing a command likec_give("goldnugget", 1). If they can spawn items, they’re admin. Alternatively, check the server log for a line like “Adding admin” with their ID.
Common Mistakes
- Using the wrong ID. The Klei ID is not the same as the Steam ID or the player’s in-game name. It’s a 17-digit numeric ID. If you use the wrong one, the player won’t get admin.
- Editing the wrong file. Some guides mention
adminlist.txt(without “cluster_”). That’s for older versions or single-player. For dedicated servers, it’s alwayscluster_adminlist.txtinside thesavefolder. - Not restarting the server. The admin list is read only at server startup. If you don’t restart, the change won’t apply.
- Adding spaces or extra characters. The file must contain only the Klei ID, one per line. Any extra whitespace or punctuation can cause the ID to be unrecognized.
Tips
- Back up your
cluster_adminlist.txtbefore editing, especially if you have many admins. It’s a small file, but losing it means re-adding everyone. - Use the in-game console to get the Klei ID. If you’re unsure about a player’s ID, ask them to run
c_print(ThePlayer.userid)in their client console (press~). This prints the exact ID to their screen. - Consider using the
cluster_whitelist.txtfor players you want to allow but not give admin. Admin is for trusted players only, as they can spawn items and alter the world. - If you have multiple clusters, each has its own
savefolder. Make sure you’re editing the correct cluster’s file.
Troubleshooting
The player still can’t use admin commands after restart. Double-check the Klei ID. Have the player re-run c_print(ThePlayer.userid) and compare it to what’s in the file. Also, ensure the file is saved as plain text (not UTF-8 with BOM, which can add invisible characters).
The server won’t start after editing. This usually means the file has a formatting issue. Open it in a text editor and ensure there are no extra spaces or blank lines with invisible characters. Delete the entire line and re-add the ID.
Admin works but the player can’t use all commands. Some commands require the player to be in the same server as the admin. If they’re trying to use console commands from the client, they must be connected to the server. Also, some commands are only available in debug mode—but that’s not related to admin status.
I can’t find the save folder. If you’re using a hosting service, check the file manager for a folder named save inside your cluster folder. If you’re self-hosting, the default path is Documents/Klei/DoNotStarveTogether/ but you might have changed it in your startup script. Look for the -conf_dir argument in your server launch parameters.
Frequently Asked Questions
Can I add multiple admins at once?
Yes, just put each Klei ID on a separate line in cluster_adminlist.txt.
Is there a way to add an admin without restarting the server?
No, the admin list is loaded at startup. You must restart the server for changes to take effect.
What’s the difference between admin and the cluster_whitelist.txt?
Admin grants full console access. Whitelist only allows the player to join when the server is set to whitelist-only. They are separate files.
Can I remove an admin later?
Yes, simply remove their Klei ID from the file and restart the server.
Does this work for dedicated servers on Steam or Xbox?
This guide is for the PC version of Don’t Starve Together. Console versions (Xbox, PlayStation, Switch) do not support dedicated servers in the same way, and admin lists are handled differently.
What if I don’t have access to the server files?
If you’re renting from a hosting provider, you must have file access. If you don’t, contact your provider’s support. If you’re playing on a friend’s server, ask them to add you.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.