Valheim has a built-in console with cheat commands for spawning items, enabling god mode, and testing. Here is how to enable it and the most useful commands.
How to Enable the Console
- Open the console with F5 in-game
- Type
devcommandsand press Enter (older versions usedimacheater) - Cheats are now active for your session
Note: On dedicated servers, some commands require admin status (your Steam ID in the adminlist.txt file).
Essential Cheat Commands
| Command | Effect |
|---|---|
devcommands | Enable/disable cheats |
god | Toggle god mode (no damage) |
fly | Toggle flying |
ghost | Enemies ignore you |
nocost | Free crafting/building, no resource cost |
tod -1 | Reset time of day to default |
tod 0.5 | Set time to noon |
raiseskill <skill> <amount> | Increase a skill level |
resetcharacter | Reset skills and inventory |
Spawning Items and Creatures
spawn <item> <amount> <level>
Examples:
spawn Wood 50, 50 woodspawn Coins 9999, gold coinsspawn Boar 3 2, three level-2 boars
For food and feasts, use the item name (e.g. spawn QueensJam 10).
Useful Utility Commands
| Command | Effect |
|---|---|
pos | Show your coordinates |
goto x,z | Teleport to coordinates |
location | Find structures |
removedrops | Clear dropped items |
killall | Kill nearby enemies |
tame | Tame nearby creatures |
exploremap | Reveal the entire map |
resetmap | Hide the map |
Server Admin Commands
On a dedicated server, admins can use:
kick <name>, kick a playerban <name>, ban a playersave, force a world savebanned, list banned players
Add Steam IDs to adminlist.txt in your server's config folder to grant admin rights.
Are Cheats Safe to Use?
Cheats only affect your own world or a server where you are admin. They do not affect other players' separate worlds. Using devcommands does not ban you, Valheim has no anti-cheat for private servers.
FAQ
How do I open the Valheim console?
Press F5, then type devcommands to enable cheats.
What is the spawn command in Valheim?
spawn <item> <amount> <level> creates items or creatures.
Can I use cheats on a dedicated server? Yes, if your Steam ID is in the server's adminlist.txt.
Related: Valheim dedicated server, Valheim progression guide, Valheim best seeds