God Mode (God Mode)
Makes the player invincible to damage.
god
Press F5 to open the console, type 'god' and press Enter. Type 'god' again to disable.
33 cheat codes for Valheim on PC.
Makes the player invincible to damage.
god
Press F5 to open the console, type 'god' and press Enter. Type 'god' again to disable.
Teleports the player to the specified X and Z coordinates on the map.
goto [x] [z]
Press F5 to open the console, type 'goto [x] [z]' (replace [x] and [z] with desired numerical coordinates) and press Enter.
Permanently changes your character's hair to the specified style number.
hair [hair#]
Press F5 to open the console, type 'hair [hair#]' (replace [hair#] with a number corresponding to a hair style) and press Enter.
Spawns a specified quantity of an item or monster at a given level.
spawn [item_name] [quantity] [level]
Press F5 to open the console, type 'spawn [item_name] [quantity] [level]' (replace with actual item name, quantity, and optionally level) and press Enter.
Eliminates all nearby hostile creatures.
killall
Press F5 to open the console, type 'killall' and press Enter.
Reveals the entire map, uncovering all areas.
exploremap
Press F5 to open the console, type 'exploremap' and press Enter.
Activates a free-moving camera, allowing you to fly around independent of your character. Great for screenshots.
freefly
Press F5 to open the console, type 'freefly' and press Enter. Type 'freefly' again to return to normal.
Enables the use of all other cheat commands in the console. This must be entered first.
devcommands
1. Press F5 to open the console. 2. Type 'devcommands' (without quotes) and press Enter. You should see a confirmation message. This only needs to be done once per game session.
Toggles invincibility. You will take no damage.
god
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'god' (without quotes) and press Enter. Repeat the command to toggle off.
Toggles flying for your character.
fly
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'fly' (without quotes) and press Enter. Repeat the command to toggle off.
Toggles passing through objects and terrain. Often used in conjunction with 'fly'.
noclip
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'noclip' (without quotes) and press Enter. Repeat the command to toggle off.
Enables a debug overlay and unlocks additional keybinds for specific cheats: - Press 'B' to toggle Free Build/Repair mode (no material cost, no workbench needed). - Press 'K' to kill all nearby enemies. - Press 'Z' to toggle a free-flying camera.
debugmode
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'debugmode' (without quotes) and press Enter. Repeat the command to toggle off. 4. Once active, use B, K, or Z keys as described.
Spawns a specified amount of an item or a creature. Item names are case-sensitive. Level is for creatures (e.g., 'Goblin 3').
spawn [item_name/creature_name] [amount] [level]
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'spawn [item_name] [amount]' (e.g., 'spawn Wood 100', 'spawn Ooze 5'). 4. For creatures, type 'spawn [creature_name] [level]' (e.g., 'spawn Troll 2').
Instantly heals your character to full health.
heal
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'heal' (without quotes) and press Enter.
Reveals the entire map, including all points of interest.
explore_map
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'explore_map' (without quotes) and press Enter.
Resets all map exploration, making the entire map unknown again.
resetmap
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'resetmap' (without quotes) and press Enter.
Instantly kills all hostile creatures in the immediate vicinity.
killall
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'killall' (without quotes) and press Enter.
Sets the time of day. 0 is midnight, 0.5 is midday. Use 'tod -1' to reset to normal progression.
tod [0-1]
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'tod [value]' (e.g., 'tod 0.5' for midday, 'tod 0' for midnight, 'tod -1' to revert).
Changes the current environment or weather. Useful names include 'Rain', 'Clear', 'Misty', 'Fog', 'Snow', 'Ashrain', 'DeepForestMist', 'Eikthyr', 'GDKing', 'Bonemass', 'Moder', 'GoblinKing'.
env [environment_name]
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'env [environment_name]' (e.g., 'env Rain'). Use 'resetenv' to revert to default.
Starts a specific world event or a random event. Examples of event names: 'wolves', 'skeletons', 'greydwarfs', 'foresttrolls'.
event [event_name] / randomevent
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'event [event_name]' (e.g., 'event wolves') or 'randomevent' for a random one. Use 'stopevent' to end a current event.
Adjusts the game's difficulty scaling as if there were a different number of players. Affects enemy health, damage, and drops.
players [number]
1. First, enable devcommands (see 'Enable Devcommands'). 2. Press F5 to open the console. 3. Type 'players [number]' (e.g., 'players 1' for single-player scaling, 'players 5' for increased difficulty).
Makes your character invulnerable to damage, ignores stamina drain, and prevents hunger. Toggle on/off by repeating the command.
god
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `god` and press Enter.
Allows the player to fly freely through the air and pass through objects (no clip). Use Space to ascend, Ctrl to descend. Toggle on/off by repeating the command.
fly
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `fly` and press Enter.
Enables a suite of creative mode functions: Press 'Z' to toggle fly mode, 'K' to kill all nearby enemies, and 'B' to toggle free building placement (no workbench or material costs needed; also instantly repairs items). Toggle on/off by repeating the command.
debugmode
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `debugmode` and press Enter. Then use Z, K, or B keys as described.
Instantly kills all hostile creatures in the vicinity of the player.
killall
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `killall` and press Enter.
Fully restores the player's health.
heal
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `heal` and press Enter.
Reveals the entire map, uncovering all areas and points of interest.
exploremap
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `exploremap` and press Enter.
Hides all previously explored areas, resetting the map to its initial state.
resetmap
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `resetmap` and press Enter.
Sets a specific skill to a desired level (e.g., 'raiseskill bows 100'). Valid skills include: jump, run, swords, knives, clubs, polearms, spears, axes, bows, unarmed, block, pickaxes, woodcutting, sneaking, swimming, fishing.
raiseskill [skill] [level]
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `raiseskill bows 100` (or your desired skill and level) and press Enter.
Spawns a specified amount of an item at a given quality level into the player's inventory (e.g., 'spawn SwordSilver 1 3' for one silver sword at level 3). Item names are case-sensitive and must be exact.
spawn [item] [amount] [level]
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `spawn SwordIron 1 4` (or your desired item, amount, and level) and press Enter. You may need to look up exact item IDs online.
Sets the time of day. 'tod 0' is midnight, 'tod 0.5' is midday. 'tod -1' resets to normal game time progression.
tod [value]
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `tod 0.2` (for morning, or your desired value) and press Enter.
Makes enemies ignore you, and you take no damage. Toggle on/off by repeating the command.
ghost
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `ghost` and press Enter.
Disables material costs for crafting and building, and allows free repairs. Note: This does not remove workbench requirements. Toggle on/off by repeating the command.
nocost
1. Open Valheim settings, go to the 'Misc' tab, and check 'Developer console'. 2. Press F5 in-game to open the console. 3. Type `devcommands` and press Enter to enable cheat commands (must be done each game session). 4. Type `nocost` and press Enter.