devcommands, then ghost (enemies ignore you) or debugmode and press Z to fly. These cheats work in single player and on a world you host from the game. On a dedicated server, including FREAKHOSTING servers, the game refuses cheat commands for everyone, admins included.
How to use ghost mode and debug fly
1
Open the console
Press F5. If nothing happens, turn on the console in the game’s settings menu or add
-console to the Steam launch options. See console commands.2
Turn on cheats
Type
devcommands and press Enter.3
Use ghost or fly
Type
ghost, or type debugmode and press Z to fly. Type the same command again to turn it off.Why doesn’t ghost or fly work on my server?
A dedicated server doesn’t accept cheat commands from players, and being on Admins and bans doesn’t change that. Admins can still use admin commands such askick, ban, setworldmodifier and setworldpreset.
If you need flying or free building on your server, you have two options:
- Use a world copy in single player. Download the world with the Download button on Worlds, load it in single player, build with cheats, then upload it again. Stop the server before uploading. See upload a local world.
- Use a mod. Community mods on Thunderstore can allow admin commands on a dedicated server. They usually need to be on the server and on the admin’s game. Read the mod’s page and back up first; see mods.
hammer World Preset in Startup may be what you want; see world modifiers.
Cheats and achievements in Valheim 1.0
Using most devcommands puts a permanent flag on your character and on the world, which blocks achievements.freefly is an exception. The game asks you to confirm before you enter a cheated state. Iron Gate added a Steam-only opt-in command for players who want achievements anyway.
Frequently asked questions
What is the fly command in Valheim?
Typedevcommands, then debugmode, and press Z. Space takes you up and Ctrl down.
What is debug fly in Valheim?
It is the flying you get insidedebugmode by pressing Z.
How do I turn ghost mode off?
Typeghost again. Type devcommands again to turn cheats off completely.
Related guides
Valheim server guide
Every Valheim page in one place.
Console commands
Admin commands and devcommands.
Admin list
Make yourself admin.
World modifiers
No build cost and Hammer mode.
Checked against the Valheim Wiki console commands page and the 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:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: October 2026