Skip to main content
Open the Valheim console with F5. On a FREAKHOSTING dedicated server, players on Admins and bans can use admin commands such as kick, ban, unban, banned, save, setworldmodifier and setworldpreset. Cheat commands (god, ghost, debugmode, spawn and others) need devcommands and work in single player or on a world you host from the game, not on a dedicated server.

How to open the Valheim console

  • Keyboard: press F5.
  • If F5 does nothing: turn on the developer console in the game’s settings menu, or add -console to Valheim’s Steam launch options (right-click Valheim > Properties > General > Launch options). The launch option overrides the setting.

Commands for every player

Admin commands on a dedicated server

You must be on the Admins tab of Admins and bans (admin list).

Devcommands cheats (single player and hosted worlds)

Type devcommands and press Enter to turn cheats on; type it again to turn them off.
In Valheim 1.0, using most devcommands puts a permanent flag on your character and the world that blocks achievements. freefly is an exception. Iron Gate added a Steam-only opt-in command to allow achievements anyway.

Frequently asked questions

Do devcommands work on a Valheim dedicated server?

Cheat commands don’t work on a dedicated server, even for admins. Admin commands such as kick, ban and setworldmodifier do. See ghost mode and debug fly.

Why does the console not open when I press F5?

The console is off in your game. Turn it on in the settings menu or add -console to the Steam launch options.

How do I find a player’s ID to ban them?

Use their SteamID64 from steamid.io, or the ID shown in the game’s F2 panel. Bans on Admins and bans use SteamID64s.

Valheim server guide

Every Valheim page in one place.

Admin list

Make yourself admin.

Ghost mode and debug fly

What works on a dedicated server.

World modifiers

Values for setworldmodifier.

Checked against the Valheim Wiki console commands page, Iron Gate’s dedicated server guide and Valheim 1.0 FAQ on 30 October 2026. Commands may change if the game changes.

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!

Last Updated: October 2026