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.
Codes last checked on against the sources listed at the bottom of this page. Covers PC, Mac and Linux (base game and DLCs, single-player).
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 |
How to enter cheats
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.
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.
