Don't Starve

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.

Verified

Console commands

42

Adventuring starter kit

DS and DST, gives you a starter kit of adventuring items

Press ~ to open console then type

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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.

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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.

PC Reported working
Did this work for you?

Full sanity

Sets sanity to full. The number runs from 0 to 1.

Open the console and type the command.

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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.

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Kill player

DST only, kills the chosen player

Press ~ to open console then type, host or admin, press Ctrl for Remote mode

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Movement speed (Original DS)

Original DS naming for movement speed multiplier, older guides use this form

Press ~ to open console then type

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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.

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Reveal the map

Uncovers the whole map.

Open the console and type the command exactly.

PC Reported working
Did this work for you?

Reveal whole map (DS and DST)

DS and DST, reveals the whole map

Press ~ to open console then type

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Set moisture

DST only, sets your wetness to that fraction, moisture does not exist in base DS

Press ~ to open console then type

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Spawn a creature

Spawns the named creature under your mouse cursor.

Open the console and type the command.

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Stop hunger drain (Original DS)

Original DS only, stops your hunger from draining

Press ~ to open console then type in single-player DS

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?
A code stopped working after a patch? Tell us and we will retest it. Know one we are missing? Submit it here. What the tested badge means, and which codes carry it.

Tools for Don't Starve cheats

Quick answers

About Don't Starve cheats

How many cheats does Don't Starve have?
This page lists 42 for Don't Starve, all of them console commands.
How do you open the console in Don't Starve?
Open the console: `. Press the ` key, above Tab, during play. Press it again to close the console.
How do you enter cheats in Don't Starve?
Press ~ to open console then type, host or admin, press Ctrl for Remote mode. A few codes use a different method, shown beside each one.
Do cheats disable achievements in Don't Starve?
None of the 42 codes here carries an achievement or trophy warning in our notes. That is not a guarantee, so keep a separate save if achievements matter to you.
Which platforms are these Don't Starve cheats for?
The codes on this page are listed for PC (42 codes). Where the game came out on other systems, the codes may differ there.
Are these Don't Starve cheats still working?
All 42 are marked "Reported working": each comes from a documented source, and none has been run by us yet. A code we test gets a dated "Tested" badge.