Valheim Tutorials

How to Enable Cheats on Your Valheim Server

Vanilla devcommands does not work on a Valheim dedicated server. Use the built-in admin commands for world tweaks, or install the Server_devcommands BepInEx mod for the full cheat set.

Last updated: May 16, 2026

4.9

608+ Satisfied Customers

Vanilla Valheim devcommands runs in the client and is blocked on a dedicated server, so most “Valheim cheats” guides you’ll find online don’t work when you run them while connected to a WinterNode server. There are two paths that do work:

  • Built-in admin commands for world-level changes (skip time, reset wind, trigger or cancel raid events, reset boss progression, change world modifiers). These need adminlist membership but no mods.
  • Server_devcommands BepInEx mod to unlock the full devcommands set (spawn, god, fly, heal, etc.) over the network on a dedicated server.

The sections below cover both paths, plus the vanilla flow for singleplayer or a listen server.

Built-in Server Admin Commands

These run from the in-game F5 console while you are on the server admin list. They are not part of devcommands and they work on a vanilla dedicated server with no extra setup.

CommandWhat it does
/setworldmodifier <modifier> <value>Change a world modifier (combat, raids, resources, etc.) from the console instead of the in-game menu.
resetwindReset the wind direction.
event <name>Force-start a named world event (for example, a specific raid).
randomeventTrigger a random world event appropriate for your current biome and progression.
stopeventCancel the currently running event.
resetkeysWipe global keys (boss-defeat flags and other progression markers). Useful for “un-defeating” bosses to change raid escalation.
skiptime <seconds>Advance world time by the given number of seconds.
sleepShortcut for skipping to morning.

You need to be on the adminlist for these to run. The standard admin moderation commands (/kick, /ban, /unban, /banned) are documented in the Become an Admin guide.

Enable Full Cheats with Server_devcommands

To use the full devcommands set (item spawning, god mode, fly, heal, and the rest) on a dedicated server, install the Server_devcommands BepInEx mod.

  1. Install BepInEx on your Valheim server if it isn’t already running
  2. Download Server_devcommands from Thunderstore
  3. Drop the mod’s .dll into BepInEx/plugins/ on the server via SFTP or the File Manager
  4. Restart the server so BepInEx loads the plugin

Once the mod is active, devcommands sent from a connected client are accepted by the server, so the full cheat set behaves the way it does in singleplayer. You still need the F5 console enabled on your own client (see the next section).

Enable the F5 Console on Your Client

The in-game console is disabled by default. Add a Steam launch parameter so it opens when you press F5.

  1. Open Steam and go to your Library
  2. Right-click Valheim and choose Properties
  3. Under General, find the Launch Options field
  4. Enter -console (with the hyphen)
  5. Close the Properties window
  6. Start Valheim

In-game, press F5 to open the console. If nothing happens, double-check the launch parameter and restart Valheim through Steam.

Cheats in Singleplayer or on a Listen Server

If you are playing singleplayer or hosting a listen server from your own Steam client, the vanilla cheat flow works:

  1. Press F5 to open the console
  2. Type devcommands and press Enter
  3. The console replies with “Dev commands: True”

This unlocks the commands below for the current session. None of them work on a dedicated server without Server_devcommands.

CommandWhat it does
spawn <item> [amount] [level]Spawn an item, creature, or prefab. Example: spawn SwordIron 1 4
godToggle invulnerability and infinite stamina
flyToggle no-clip flight (move with W/A/S/D and space/ctrl)
freeflyDetach the camera from your character for screenshots
healRestore your health to full
tameTame the closest creature within range
killallKill all creatures within ~20 meters
pukeClear your food buffs
posPrint your current world coordinates
goto <x> <z>Teleport to coordinates
location <name>Teleport to a named location (e.g. location StartTemple)
resetcharacterReset your skills and learned recipes
raiseskill <skill> <amount>Raise a specific skill by a number of levels

Item names use Valheim’s internal prefab IDs, not the in-game display name. For example, iron sword is SwordIron, not “Iron Sword”. The Valheim wiki item code list has a full reference.

To turn the toggle back off without restarting, run devcommands again. The console replies with “Dev commands: False”.

Still Not Working?

If the F5 console doesn’t open, the admin commands aren’t accepted, or Server_devcommands doesn’t behave after install, contact our support team with:

  • Your Server UUID
  • Whether you’re trying to cheat as a client connected to a WinterNode dedicated server, or in singleplayer / a listen server
  • A description of what command you ran and what happened (or didn’t)
  • Whether F5 opens the console at all, or whether the command itself is what fails

Frequently Asked Questions

Not by default. Devcommands runs in the client and is blocked on a dedicated server, so spawn, god, fly, heal and the rest of the cheat set will not do anything when you run them while connected to one. To enable the full cheat set on a dedicated server, install the Server_devcommands BepInEx mod. A handful of built-in admin commands (setworldmodifier, resetwind, event, randomevent, stopevent, resetkeys, skiptime, sleep) do work on a vanilla dedicated server.

No. setworldmodifier, resetwind, event, randomevent, stopevent, resetkeys, skiptime, and sleep are server-side admin commands and run on a vanilla dedicated server as long as you are on the adminlist. Item spawning, god mode, fly, heal, and the rest of devcommands require the Server_devcommands BepInEx mod.

Yes. Add -console to Valheim's Steam launch options, press F5 in-game, and run devcommands. That unlocks the full cheat set for the current session. This vanilla flow only works in singleplayer or on a locally-hosted (listen) server, not on a dedicated server.