Valheim console commands: admin commands, cheats and your server
Published on 31 October 2026
Valheim console commands are typed into the console that you open in a world with F5. There are three kinds: player commands that anyone can use, admin commands such as kick and ban for players on adminlist.txt, and cheats, which only unlock after you type devcommands. According to the Valheim Wiki, cheats work in singleplayer and in a world you host from the game, not on a dedicated server. And since Valheim 1.0, most cheats lock your character and world out of achievements. Checked for Valheim 1.0.21, the patch of 28 October 2026.
| Kind | Who can use them | Examples |
|---|---|---|
| Player commands | Everyone | help, ping, say |
| Admin commands | Players on adminlist.txt of a dedicated server | kick, ban, save |
| Cheats | After devcommands, not on a dedicated server | god, fly, spawn |
How do you open the console in Valheim?
On PC the console is off by default. Iron Gate explains how to turn it on:
- Steam: right-click Valheim in your library, choose Properties and add
-consoleunder Launch Options. - Microsoft Store or PC Game Pass: add
-consoleto the end of the Target field of a shortcut to Valheim.exe, after a space. - Xbox: the console is on by default.
Then press F5 in a world. On a controller, press LB, LT and Start together. Nothing happens on a laptop or Mac keyboard? Check that the function keys are not in Fn mode, and start the game through the same shortcut you added the option to.
Player commands anyone can use
| Command | What it does |
|---|---|
help | Lists the commands |
ping | Shows your latency to the server |
say, s | Sends a chat message, or shouts it |
lodbias 5 | Sets the draw distance, from 1 to 7 |
fov 80 | Changes your field of view |
maxfps 60 | Sets a frame rate limit |
printseeds | Prints the seeds and positions of nearby dungeons |
resetspawn | Resets your spawn point |
clear | Clears the console window |
Emotes work in the chat with a slash in front, such as /sit, /wave and /cheer.
Admin commands on a dedicated server
Players whose ID is on the server's adminlist.txt get a few extra commands. They type them in the game, in the console under F5:
kickwith a name, IP address or ID: removes a player from the server.banandunban: bans a player, or lifts the ban.banned: lists everyone who is banned.save: saves the world straight away.setworldpreset,setworldmodifierandresetworldkeys: change the world modifiers of the whole world, such as the difficulty, or reset them. See Valheim world modifiers on your server.
Being an admin gives you these commands only. It does not unlock cheats or debug mode on a dedicated server.
How do you make yourself admin on a Valheim server?
- Find your ID. Open the F2 panel in the game, or look in the server log while you connect: the ID of every player appears there. On our servers, that log is the console in the game panel.
- Copy it exactly. Iron Gate describes the form as platform, underscore and user ID, and it is case sensitive. A Steam ID looks like
Steam_7656119XXXXXXXXXX. - Add it to the list. In the game panel, open File managers, go to the
savesfolder and openadminlist.txt. Put each ID on its own line, with no spaces or comments. - Restart and test. Restart your server and connect again. If
banneddoes not work, check that your ID is exactly right.
bannedlist.txt works the same way for banned players, and permittedlist.txt is a whitelist. Be careful with that one: according to Iron Gate, adding a person to the permitted list bans everyone else. To keep strangers out, a good password and Public Server turned off in Startup are usually enough.
Your own Valheim world, online day and night? On a Valheim server from CakeHosting you decide who gets in, and your world keeps running while you sleep. See the Valheim server plans, from €4.95 a month.
Cheats: how devcommands works
Type devcommands in the console to turn cheats on, and type it again to turn them off. Then debugmode adds a few shortcut keys: B to build without a workbench or materials, Z to fly, K to kill nearby enemies and L to remove items lying on the ground.
| Cheat | What it does |
|---|---|
god | Your health never drops below 1 |
ghost | Enemies ignore you |
fly | Turns flying on or off |
heal | Refills health, stamina and eitr |
spawn Wood 50 | Spawns 50 wood; also works for creatures, with a level as a third number |
tod 0.5 | Sets the time to noon; 0 and 1 are midnight, tod -1 goes back to normal time |
skiptime | Skips ahead, 240 seconds by default |
sleep | Skips forward one day |
exploremap | Reveals the whole map; resetmap hides it again |
killenemies | Kills nearby enemies; killall also kills tamed creatures |
tame | Tames nearby tameable creatures |
raiseskill Swords 10 | Raises a skill; All raises every skill |
pos | Shows your coordinates; goto with x and z takes you there |
event | Starts a raid by name; stopevent ends it |
Go easy with spawn: thousands of items at once can make the game hang.
What do cheats do to your achievements?
Valheim has had achievements since 1.0, and Iron Gate protects them from cheats:
- A lasting flag. Most devcommands, such as
spawn, mark your character and the world save as permanently locked out of achievements. The photo camerafreeflyis the exception. - Cheated items. Spawned items are visibly marked as cheated. If a player without cheats picks one up, that character is in a temporary cheat state until the cheated items are gone again.
- Mods count too. According to the Valheim Wiki, mods also block achievements. How to install them: Valheim mods.
- Changed your mind? The Valheim Wiki lists the devcommand
yesiuseddevcommands, which turns achievements back on after you used devcommands.butiwantmy achievementsanyway
What works on your dedicated server?
- Everyone plays fair. Cheats such as
godandflydo not work on a dedicated server, not even for admins. What admins do get: kick, ban, unban, save and the world modifiers. - Characters travel with the player. Your character is stored on your own PC, not on the server. Items spawned in singleplayer can therefore end up in your shared world.
- Want to cheat in the server world anyway? Download the world, open it in the game itself and upload it again. The world then carries the cheat flag, so make a backup first.
- Type
savebefore a restart when you have just built a lot.
Friends on Xbox or PlayStation joining in? Read Valheim crossplay server. Still setting up? Start with How to set up a Valheim dedicated server.