Cheats & codes
Don't Starve Cheat Codes
Grouped by type and platform, each one labelled reported working or tested.
There are 42 cheat codes for Don't Starve across PC (Microsoft Windows). Each code below lists the exact button combination or console command, what it does, and whether using it disables achievements.
Console commands
42Adventuring starter kit
DS and DST, gives you a starter kit of adventuring items
Press ~ to open console then type
Despawn player
DST only, despawns and removes to character select the chosen player, for example c_despawn(AllPlayers[1])
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Force precipitation
DST only, starts rain or snow, add false to stop it, TheWorld:PushEvent("ms_forceprecipitation", false)
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Force save
DST only, forces the server to save right now
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Free crafting
Unlocks every recipe and lets you build anything without materials.
Open the console and type the command exactly, including the capitals and brackets.
Free crafting (DS and DST)
DS and DST, unlocks every crafting recipe and lets you craft without materials
Press ~ to open console then type, DST host or admin, press Ctrl for Remote mode
Free crafting (Original DS)
Original DS equivalent, unlocks every crafting recipe and lets you craft without materials
Press ~ to open console then type in single-player DS
Full health
Sets health to full. The number runs from 0 to 1, so 0.5 is half.
Open the console and type the command.
Full sanity
Sets sanity to full. The number runs from 0 to 1.
Open the console and type the command.
Give prefab
DS and DST, puts that amount of the named item straight into your inventory, only works for items that can be carried, for example c_give("goldnugget", 10)
Press ~ to open console then type, DST host or admin, press Ctrl for Remote mode
Give yourself an item
Adds the named item in the given quantity.
Open the console and type the command. Change the name and number as needed.
God mode
DS and DST, toggles god mode, health, hunger and sanity no longer drain and attacks cannot hurt you, revives you if dead without leaving god mode on
Press ~ to open console then type, DST host or admin, press Ctrl for Remote mode
God mode (Original DS)
Original DS only, makes you invulnerable, use false instead of true to turn it off, use c_godmode() in DST
Press ~ to open console then type in single-player DS
Kill player
DST only, kills the chosen player
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
List active players
DST only, lists the active players, needed to find the AllPlayers number index
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
List all players
DST only, lists every player including disconnected ones
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Movement speed (Original DS)
Original DS naming for movement speed multiplier, older guides use this form
Press ~ to open console then type
Movement speed multiplier
DST, multiplies your movement speed, 1 is normal, values around 2 to 6 are fast, 20 plus can walk over water and through walls
Press ~ to open console then type
Open the console
Opens the console, where every command below is typed.
Press the ` key, above Tab, during play. Press it again to close the console.
Reset world
DST only, restarts the world, c_reset(true) saves first then regenerates
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Reveal the map
Uncovers the whole map.
Open the console and type the command exactly.
Reveal whole map (DS and DST)
DS and DST, reveals the whole map
Press ~ to open console then type
Reveal whole map (Original DS)
Original DS two-step form, reveals the whole map
Press ~ to open console then type both lines in single-player DS
Revive player from ghost
DST only, revives that player from ghost form, for example AllPlayers[1]:PushEvent('respawnfromghost')
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Set health
DS and DST, sets your health to that fraction of maximum, for example c_sethealth(0.9) is 90 percent health
Press ~ to open console then type
Set hunger
DS and DST, sets your hunger to that fraction of maximum, for example c_sethunger(0.9) is 90 percent
Press ~ to open console then type
Set max health (Original DS)
Original DS only, raises max health to the given value
Press ~ to open console then type in single-player DS
Set max sanity (Original DS)
Original DS only, raises max sanity to the given value
Press ~ to open console then type in single-player DS
Set moisture
DST only, sets your wetness to that fraction, moisture does not exist in base DS
Press ~ to open console then type
Set sanity
DS and DST, sets your sanity to that fraction of maximum, for example c_setsanity(0.9) is 90 percent
Press ~ to open console then type
Set season
DST only, starts the named season, autumn, winter, spring or summer
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Set season length
DST only, sets how many days the named season lasts
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Set temperature
DS and DST, sets your body temperature to the given value to stop freezing or overheating
Press ~ to open console then type, DST host or admin, press Ctrl for Remote mode
Set time phase
DST only, sets the time phase, use day, dusk or night
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Shutdown server
DST only, shuts the server down, saving first if you pass true
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Skip to next day
DST only, skips straight to the next day cycle
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Spawn a creature
Spawns the named creature under your mouse cursor.
Open the console and type the command.
Spawn prefab
DS and DST, spawns that amount of the named item, creature or boss under your mouse cursor, for example c_spawn("beefalo") or c_spawn("deerclops")
Press ~ to open console then type, DST host or admin, press Ctrl for Remote mode
Stop hunger drain (Original DS)
Original DS only, stops your hunger from draining
Press ~ to open console then type in single-player DS
Super god mode
DS and DST, like god mode but also fills health, hunger and sanity to full and they stay full when you turn it off, also revives you if dead
Press ~ to open console then type, DST host or admin, press Ctrl for Remote mode
Teleport to nearest prefab
DS and DST, teleports you to the nearest object or creature with that prefab name
Press ~ to open console then type
Teleport to player
DST only, teleports you to the named player, for example c_goto(AllPlayers[2])
Press ~ to open console then type, host or admin, press Ctrl for Remote mode
Tools for Don't Starve cheats
-
Why is my cheat not working?
Answer a few questions and get the specific reason, from our guides.
-
Search Don't Starve codes by effect
Type "money" or "god mode" and find the code, typos forgiven.
-
Test your controller and button sequences
See every button respond, and check a sequence press by press.
Quick answers