Valheim cheats: All codes, console commands & how to enter them

valheim cheats console commands guide imageIron Gate Studio, Dexerto

You can use cheats if you want to mix up gameplay and make things easier in Valheim. So, here’s a rundown of every cheat and console command you can use in the Viking-inspired title.

While there are countless activities to enjoy in Valheim, you may hit a point during your playthrough where you want to tone down the challenges, or simply adjust the experience. Thankfully there are plenty of cheats and console commands available that allow you to do just that.

Article continues after ad

So, here are all the cheats you can enable in Valheim.


valheim winter fighting

How to activate and use cheats in Valheim

In order to start adding cheats to your game, you’ll need to know how to open the command console. Importantly, cheats only work in a single-player setting, and cannot be activated on a multiplayer server.

In order to activate cheats in Valheim:

  1. Ensure that the cheat console is activated on Steam.
    • Right-click Valheim, then ‘Properties,’ go to ‘General‘, ‘Launch Options‘ and type ‘-console.’
  2. Launch Valheim and enter the world you plan to apply cheats on.
  3. Click ‘F5‘ on your keyboard.
  4. Type “devcommands” into the box to activate cheats.
  5. Start adding your cheat codes!

All Valheim cheats & codes

All of Valheim’s known cheats are listed below, which have been broken down into sections for characters, and gameplay codes.

Article continues after ad

Valheim character cheats

Cheat Code Effect
god Enables God mode, making you invincible to damage.
ghost Enables Ghost, makes you invisible to enemies.
heal Fully heals your character.
puke Resets hunger, restores default health and stamina.
pos Print your current position.
hair Permanently removes hair.
beard Permanently removes beard.
model [0/1] Switches your character between masculine and feminine bodies.
reset character Resets your character’s data.
raise skill [skill] [amount] Raises a specific skill’s level.
reset skill [skill] Resets a specific skill to 0.
addstatus [status] Adds a status effect (Burning, cold, rested, etc.)
clearstatus Clears all status effects
die Kills the player
nocost Building has no cost
nomap Disables the map for the character
setpower Sets your current guardian power and resets its cooldown.

Gameplay cheats

Cheat Code Effect
freefly Freefly Photo Mode.
ffsmooth Freefly smoothness.
location Spawn location.
goto [x,z] Teleport to entered coordinates.
exploremap Explore entire map.
resetmap Reset map exploration.
genloc Regerates all locations.
resetspawn Resets spawn location.
find [text] [pingmax] Searches loaded objects and a location list matching the name of the object and pings it on the map (up to a maximum area).
tod [0-1] Sets time of day. Both 0 and 1 will give you midnight, whereas 0.5 gives you noon.
tod -1 Resets time of day to default.
skiptime [seconds] Skips forward in time, allowing you to change the day number and time of day.
wind [angle 0-360] [intensity 0-1] Sets wind to a specific angle and intensity.
optterrain Optimize old terrain modifications
resetwind Resets wind angle and intensity.
sleep Skips forward one day.
removedrops Remove all item drops in area.
forcedelete [radius] [name] Force removes all of a certain objects in a given radius.
players [num] Sets difficulty scaling based on the number of players (0 = Reset).
tame Tames all nearby tamable animals.
killall Kills all nearby enemies.
event [name] Starts the named event.
stopevent Stops the current event.
setkey [name] Sets a new global key.
resetkeys [name] Resets the specified key.
listkeys Lists all the global keys.
env [env] Sets debug environment.
resetenv Resets the debug environment.
dpsdebug Toggles the damage-per-second debug overlay on/off.
debugmode Turns on Creative Mode:
  • Press Z to fly.
  • Press K to kill all enemies in the area.
  • Press B to repair any items without a workbench, as well as place items wherever you like.

Item & spawn cheats

In order to start spawning items or bosses, you’ll need to use the code spawn [item] [quantity] [level]. Importantly, using these can cause in-game issues, so use them at your own risk.

A list of all the spawnable items has been compiled by Reddit user Demogrim, but the most important thing to note here is about spawning Haldor, the Trader.

If cheats are used to spawn the mysterious little gnome, he will not be able to be removed, meaning his location is no longer randomized. He also floats a little bit above the ground, so there’s that, too.

Article continues after ad
valheim trader haldor sitting at a fireIron Gate Studio
Once you spawn this cheeky little dude, it’s pretty hard to get rid of him!

Valheim console commands

In addition to the vast array of cheat codes you can add to your Valheim game, there’s a series of console commands that will come in handy for those who want to see if their servers run smoothly.

Valheim’s console commands are:

Console Command Effect
help Lists all commands.
info Prints the system’s information.
save Forces a world save.
ping Shows your ping, or connection stability.
kick [name/ip/userID] Kicks a specific player from the server.
ban [name/ip/userID] Bans a specific player from the server.
unban [name/ip/userID] Unbans a banned player.
banned Shows the current ban list.
lodbias [0-5] Sets draw difference for the server.

So that’s everything you need to know about Valheim’s cheats and console command codes! If you’re looking to carve your name into history, you can check out the best Valheim mods to download, how to repair tools and weapons in Valheim, all Valheim bosses & how to summon them, or how to get pickaxes in the game.

Article continues after ad