Codes, secrets & unlockables
Valheim cheat codes
A single, organized reference for every cheat and secret currently documented for Valheim.
Save your game before using cheats. Some codes may disable achievements or trophies for the current session.
Valheim developer commands
Enable on PC
Add -console to Valheim’s launch options, start a single-player world, press F5, then enter devcommands.
Useful commands
- god — toggle God Mode
- heal — restore health
- ghost — enemies ignore you
- killall — kill nearby enemies
- tame — tame nearby creatures
- raiseskill <skill> <amount> — raise a skill
- goto <x> <z> — teleport to coordinates
- exploremap — reveal the map
- freefly — toggle free camera
- spawn <prefab> <amount> — spawn an object
- debugmode — enable creative-building controls
Developer commands are intended for single-player testing. Back up the world before spawning or deleting entities.