Admin commands for Don't Starve Together

You must add your Klei User ID to the server's adminlist.txt before these commands will work. Join the server with that account, then open the in-game console with ~. The key can differ on some keyboard layouts.

CommandWhat it does
c_announce("Server restart in 10 minutes")Sends a message to every connected player.
c_save()Saves the current world.
c_shutdown()Saves and shuts down the game server cleanly.
c_spawn("log", 10)Spawns the specified prefab near your character.
c_give("log", 10)Adds the specified prefab to your inventory.
c_godmode()Toggles god mode for your character.

Prefab names must use the game's internal identifier. Test commands carefully and take a backup before using anything that changes the world. If the console accepts a command but nothing happens, restart the server after checking that your exact KU_ ID is present in adminlist.txt.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to find and join your Don't Starve Together server

Your server appears in Don't Starve Together's Browse Games list under the name set in...

How to add a server token to Don't Starve Together

A dedicated Don't Starve Together server needs a cluster token from the Klei account that will...

How to change your Don't Starve Together server name and password

The server name, description and join password can all be changed through the cluster.ini Config...

How to change the game mode and PvP on a Don't Starve Together server

The cluster.ini Config Editor controls the server's game mode, PvP and whether the world pauses...

How to change the player limit on a Don't Starve Together server

The active player limit is stored as max_players in cluster.ini. Keep it within the slot...