Don't Starve Cheats: All Console Commands for PC
- PC Press ~ to open the console, run RunScript("consolecommands") once, then type a command and press Enter.
Published by Andrew B.
No cheats match that filter.
God mode and health
| Cheat | Command | Effect |
|---|---|---|
| God mode | PCc_godmode() | Stops sanity, hunger and health from draining, and revives you if you die |
| Super god mode | PCc_supergodmode() | Same as god mode, but also maxes out your health, hunger and sanity |
| Set health | PCc_sethealth(Percent) | Set your health to a fraction of maximum, from 0.01 up to 1 (full) |
| Set hunger | PCc_sethunger(Percent) | Set your hunger to a fraction of maximum, from 0.01 up to 1 (full) |
| Set sanity | PCc_setsanity(Percent) | Set your sanity to a fraction of maximum, from 0.01 up to 1 (full) |
Items and crafting
| Cheat | Command | Effect |
|---|---|---|
| Give item | PCc_give("Prefab",Amount) | Spawn the named item straight into your inventory |
| Free crafting | PCc_freecrafting() | Craft anything for free from anywhere, including recipes you haven't unlocked yet |
World and map
| Cheat | Command | Effect |
|---|---|---|
| Spawn object | PCc_spawn("Prefab",Amount) | Spawn the named creature or object under your mouse cursor |
| Reveal map | PCc_revealmap() | Reveals the whole map; it resets to normal after you exit or change maps |
| Skip days | PCc_skipdays(Days) | Skips forward the given number of days |
Debug and testing
| Cheat | Command | Effect |
|---|---|---|
| Set run speed | PCc_speed(Value) | Change your movement speed; 1 is normal, and 40 lets you walk through walls and over water |
| Rollback | PCc_reset() | Rolls back to your last save |
| Save game | PCc_save() | Force-saves your current game |
A code here did not work? Tell us and it gets rechecked. Report a code
How to enter cheats in Don't Starve
PC
- Press ~ to open the console (this pauses the game).
- Type RunScript("consolecommands") and press Enter once per world.
- Type any command exactly as shown and press Enter.
Compatibility notes
Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.
- DLC seasons The Don't Starve Wiki ties some season commands to a DLC: GetSeasonManager():StartAutumn() and StartSpring() need Reign of Giants, StartWet() and StartDry() are Shipwrecked seasons, and StartTemperate() and StartLush() belong to Hamlet. Don't Starve Wiki (Fandom): Console/Commands
- Console switched off If ~ does nothing, the wiki says to change ENABLECONSOLE = false to true under [MISC] in settings.ini, in Documents\Klei\DoNotStarve on Windows and Mac or ~/.klei/DoNotStarve on Linux. The key can be rebound in the controls menu. Don't Starve Wiki (Fandom): Console/Commands
- Hamlet DLC The wiki notes that in Hamlet, walking in or out of interiors does not switch god mode off, but being carried by the BFB does. Don't Starve Wiki (Fandom): Console/Commands
- Changing levels The wiki says you need to re-enter c_freecrafting() after switching levels. Don't Starve Wiki (Fandom): Console/Commands
FAQ
How do you open the console in Don't Starve?
Press ~ to open it. If nothing happens, set ENABLECONSOLE = true in your settings.ini file, then try again.
Is there a god mode command in Don't Starve?
Yes. c_godmode() stops sanity, hunger and health from draining and revives you if you die.
Is there a way to get free items in Don't Starve?
Yes. c_give("prefab",amount) gives you an item directly, and c_freecrafting() lets you craft anything for free.
Do these commands work in Don't Starve Together?
No. Don't Starve Together has its own separate list of console commands.
How do I skip ahead to the next day in Don't Starve?
Use c_skipdays(1) to jump forward one day, or a higher number to skip further.
