Picture this: you have just spent three exhausting hours sailing across a massive ocean biome in Valheim, your ship’s hull heavy with precious iron ore. Suddenly, a violent storm rolls in, and a Sea Serpent ambushes your vessel. Your ship splinters into pieces, your Viking drowns in the freezing waters, and hours of hard-earned progression sink to the bottom of the sea. Every player who has stepped foot into the 10th realm of Yggdrasil [2] has faced this exact, soul-crushing scenario. Valheim is a co-op multiplayer hardcore survival game [2], and it does not pull its punches. But what if you did not have to accept that brutal defeat? What if you could bend the rules of the Nine Realms to your will?
Whether you are trying to recover lost gear, test out massive base-building designs without the tedious gathering phase, or simply want to explore the map without fear, mastering Valheim cheats and console commands is your ultimate fallback plan.
TL;DR: The Short Answer
- To use Valheim cheats and console commands, you must first enable the developer console by adding
-consoleto the game’s launch options in your Steam library. - Once in-game, press
F5to open the command console. - Type
devcommandsand press Enter to activate cheat mode (this will display a warning message). - You can now use powerful commands like
god(invincibility),spawn [item] [quantity]to get resources instantly, orexploremapto reveal the entire world. - Note: These commands generally only work in single-player worlds or if you are the designated host of a multiplayer session.
Table of Contents
- TL;DR: The Short Answer
- How to Enable the Developer Console in Valheim
- Essential Valheim Cheats and Console Commands
- Common Mistakes When Using Devcommands
- Alternative Methods for Managing Progression
- Advanced Tips: Mastering Debug Mode
- Comprehensive Valheim Item IDs and Spawn Codes
- The Ultimate QoL Solution: XMODhub
- Frequently Asked Questions
- Final Verdict
How to Enable the Developer Console in Valheim
Valheim is an open-world survival game played from a third-person perspective [1], and its mechanics are deeply rooted in a cycle of gathering resources, building, eating, exploring, and fighting [3]. Because the developers at Iron Gate Studio designed the game to be challenging, the console is disabled by default to preserve the vanilla experience.
To gain access to Valheim cheats and console commands, you need to perform a quick setup outside of the game:
- Open your Steam Library and locate Valheim.
- Right-click on Valheim and select Properties.
- In the General tab, look for the Launch Options field at the bottom.
- Type
-consoleinto the text box. - Close the menu and launch Valheim.
Once you are loaded into your world as a fallen Viking [1], press the F5 key. A dark grey box will drop down from the top of the screen. Type devcommands and hit Enter. If done correctly, the console will return a message stating that cheats are true. You are now ready to manipulate the 10th realm.
Essential Valheim Cheats and Console Commands
The survival mechanics in Valheim are restrained compared to other games in the genre; for instance, food gives you more stamina and health, but your character will not keel over and die if you forget to eat [3]. However, the grind for materials is relentless. Crafting recipes only show up once the materials for them are gathered [2], meaning you cannot just sit in your base living off wood and stone [2]. Here are the most vital commands to bypass the grind.
Combat and Survival Commands
god: Enables God Mode. You will take absolutely no damage from enemies, fall damage, or environmental hazards.ghost: Enemies will completely ignore you. This is perfect for when you are mapping out surrounding areas or building a base in a dangerous biome.heal: Instantly restores your health to maximum.puke: Resets your hunger/fullness, allowing you to immediately consume different foods for optimal health and stamina buffs.
Resource and Item Spawning
To spawn items, the syntax is spawn [ItemName] [Amount] [Level]. Based on community reports, item names are strictly case-sensitive and usually run together without spaces.
spawn Wood 50: Drops 50 pieces of Wood at your feet.spawn Iron 30: Drops 30 Iron ingots, bypassing the need to mine muddy scrap piles in the Swamps.spawn Coins 1000: Gives you currency to trade with Haldor the merchant.
World and Exploration Commands
exploremap: Instantly clears the fog of war from your entire map.resetmap: Re-hides the entire map (useful if you want to undo the previous command).tod [0-1]: Changes the time of day.tod 0.5sets it to noon,tod 0or1sets it to midnight, andtod -1returns it to default.env [EnvironmentName]: Changes the weather. For example,env Clearstops a storm in its tracks.
Common Mistakes When Using Devcommands
Even with ultimate power at your fingertips, it is easy to make critical errors that can ruin your Valheim experience or even corrupt your save file. Before you start spawning in massive amounts of loot, be aware of these common pitfalls.
1. Crashing the Game with Massive Spawns
One of the most frequent mistakes players make is adding too many zeroes to a spawn command. Typing spawn Stone 10000 might sound like a great way to build a massive castle, but dropping ten thousand individual entities into the game’s physics engine all at once will almost certainly crash Valheim and potentially corrupt your character data. Always spawn items in manageable stacks (e.g., 50 or 100).
2. Misunderstanding Multiplayer Limitations
Valheim supports co-operative gameplay with up to ten people [1]. However, Valheim cheats and console commands are heavily restricted in multiplayer. If you are playing on a dedicated server hosted by a third-party service, devcommands will simply not work for you, even if you are an admin. Cheats are primarily designed for local single-player worlds or peer-to-peer multiplayer where the host is actively playing and executing the commands.
3. Ruining the Core Gameplay Loop
The simplicity of Valheim is exactly what makes it so easy to sink into [3]. The gameplay loop consists of gathering materials through exploration and combat, using them for base improvements, and pushing toward the next tier of advancement [2]. By overusing the spawn command, you strip away the motivation to explore that next dangerous biome beyond the horizon [3]. Use cheats responsibly to enhance your fun, not destroy the game’s purpose.
Alternative Methods for Managing Progression
If you find that manually typing out Valheim cheats and console commands is breaking your immersion or feels too clunky, there are several alternative methods to tailor the difficulty of the game to your liking.
World Modifiers
Based on community reports following recent updates, Iron Gate Studio introduced native World Modifiers. Before loading into your world, you can adjust sliders in the world menu to change resource drop rates, enemy difficulty, and even allow you to teleport with raw metal ores (a feature famously restricted in the vanilla game). This is a fantastic, legitimate alternative to using the developer console.
Memory Editing and Tables
For players who want deeper control over their game without constantly pulling down the F5 console, external tools can be highly effective. If typing out long strings of text feels archaic, you might want to explore a Valheim Cheat Engine Table: How to Use It & Best Alternatives for a more streamlined, UI-driven approach to altering game values. These tables allow you to lock your health or stamina values permanently during a session, providing a smoother experience than repeatedly typing heal.
Save Scumming (Backup Management)
If your only reason for wanting to use cheats is the fear of losing your gear out at sea, you can simply back up your character and world files. By navigating to your local AppData folder (based on community reports), you can copy your save files before a dangerous boss fight. If you die, simply overwrite the current save with your backup.
Advanced Tips: Mastering Debug Mode
For the ultimate base builders and theory-crafters, standard Valheim cheats and console commands are not enough. You need to activate Debug Mode.
While devcommands is active, type debugmode into the console and press Enter. This unlocks three highly powerful hotkeys that fundamentally change how Valheim is played:
- Press Z (Flying Mode): Your Viking will take to the skies. You can fly around the map at high speeds, which is perfect for scouting out the perfect base location or building massive structures without needing to construct temporary scaffolding. Spacebar moves you up, Ctrl moves you down.
- Press B (No Placement Cost): This is the holy grail for builders. When this is active, you can craft any item, build any structure, and upgrade any piece of gear without needing the required materials in your inventory. You also do not need a nearby Workbench or Forge to build.
- Press K (Kill All Enemies): Instantly kills all loaded enemies and creatures in your immediate vicinity. If you are trying to build a peaceful settlement and Greydwarves keep interrupting you, pressing K will clear the area instantly.
Pro Tip: When fighting powerful Forsaken bosses like The Elder [2], using the K key will instantly defeat them. However, reports vary on whether this properly triggers the global key required for certain world events to progress, so it is safer to fight bosses normally or use God Mode rather than the instant kill hotkey.
Comprehensive Valheim Item IDs and Spawn Codes
Knowing the spawn syntax is only half the battle; the game requires you to input the exact internal capitalization and spelling for every item. If you type spawn iron pickaxe, the console will return an error. You must type spawn PickaxeIron.
To help you dominate the 10th realm faster, here is a highly sought-after cheat sheet for the most essential internal Item IDs:
| Item Category | Exact Spawn ID |
|---|---|
| Top-Tier Weapons | MaceSilver (Frostner) |
| Late-Game Armor | ArmorPaddedCuirass |
| Rare Materials | BlackMetalScrap |
| Building Resources | YggdrasilWood |
| Boss Summon Items | WitheredBone |
| Essential Tools | PickaxeIron |
Note: You can append a number to the end of weapon and armor commands to spawn them at a higher upgrade tier. For example, spawn MaceSilver 1 4 will spawn one Frostner upgraded to level 4.
Character Skill and Progression Commands
Beyond items and building, you can directly manipulate your Viking’s raw stats. Grinding skills like Run, Jump, or Swords can take hundreds of hours, especially since dying penalizes your skill levels. Use these commands to reclaim your lost experience:
raiseskill [skill] [amount]: Increases the specified skill by the entered amount. For example, typingraiseskill run 50will instantly boost your running level by 50 points.resetskill [skill]: Completely wipes your progression in a specific skill back to zero.resetcharacter: Warning! This completely resets all of your skills and clears your entire inventory. Use this only if you want to start completely fresh without generating a new world.
The Ultimate QoL Solution: XMODhub
While Valheim cheats and console commands are incredibly powerful, they come with significant friction. You have to memorize exact item IDs, constantly toggle the console open and closed, and manually re-enter commands every time you launch the game. When you are deep into the late-game grind, preparing for the full version release on September 9, 2026 [1], you do not want to waste time typing commands.
This is where XMODhub changes the game. XMODhub is a premium, user-friendly client that injects Quality of Life (QoL) improvements directly into Valheim without the need for complex console setups or messy mod installations.
Instead of babysitting your stamina meter during a brutal boss fight, XMODhub offers seamless toggle switches for your most desired features.
How to dominate Valheim with XMODhub:
- Download XMODhub: Install the lightweight client from the official website and create your account.

- Auto-Detect Valheim: Launch the XMODhub app. It will automatically detect your Valheim installation (whether you are playing the Early Access version from 2021 or preparing for the 2026 full release [1]).
- Toggle Cheats: Launch the game through the hub. Use the in-game overlay to instantly toggle features like Infinite Stamina, Infinite Health, One-Hit Kill, and Zero Crafting Requirements with a single click.
No more typing god every time you log in. XMODhub remembers your preferences, allowing you to focus entirely on building your Viking legacy.
Frequently Asked Questions
Can I use Valheim cheats and console commands on a dedicated multiplayer server?
Generally, no. By default, devcommands only work in single-player or for the host of a peer-to-peer multiplayer session. If you are playing on a rented dedicated server, the console will reject cheat commands. Reports vary on certain server-side mods that can bypass this restriction, but in vanilla Valheim, dedicated server admins cannot spawn items or use God Mode via the F5 console.
Will using console commands disable my Steam achievements?
Currently, Valheim does not have official Steam achievements implemented in its Early Access build. However, based on community reports and standard practices by Coffee Stain Publishing [2], it is highly likely that using devcommands will disable achievement progression for that specific world or character once achievements are fully rolled out in the 2026 full release [1].
How do I spawn a boss using console commands?
You can spawn any of the Forsaken bosses using the spawn command. For example, to spawn the second boss, type spawn gd_king (which is the internal entity name for The Elder [2]). Be warned: spawning multiple bosses at once can cause catastrophic damage to your base and severely drop your frame rate.
Does God Mode stop me from starving?
In Valheim, you cannot technically starve to death. Eating better food gives you more stamina and health, making preparation meaningful [3], but your character will not die if your food buffs run out. God Mode (god) prevents you from taking damage from enemies and the environment, but it does not freeze your food timers. You will still lose your maximum health and stamina buffs as food digests, though your base health will never drop below 1 from taking damage.
Final Verdict
Surviving the harsh, low-resolution stylized three-dimensional world of Valheim [1] is a badge of honor for many gamers. The meticulous preparation, the terrifying ocean voyages, and the triumphant boss fights against the Forsaken [2] create an unforgettable co-op survival experience. However, your time is valuable. Whether you are dealing with a devastating glitch, recovering from an unfair death, or simply wanting to unleash your inner architect without the constraints of gathering wood and stone, Valheim cheats and console commands offer the perfect sandbox experience.
If you find the vanilla developer console too restrictive or tedious to operate, upgrading your experience with XMODhub is the logical next step. With support for over 5,000+ top-tier titles—including similar massive survival crafting games like Terraria, ARK: Survival Evolved, and Palworld—XMODhub ensures that you spend less time typing archaic commands and more time enjoying the game on your own terms. Equip your best gear, toggle your preferred QoL features, and carve out your rightful place in Valhalla.
Stop Grinding, Start Enjoying.
Bypass the tedious resource gathering and unlock your full potential instantly.

I am a passionate gamer and writer at XMODhub, dedicated to bringing you the latest gaming news, tips, and insights.
Connect with me:
LinkedIn Profile ↗
