Adding an admin and command list (world modifiers)
Game version notice
This guide may have been written for an earlier version of Valheim. Some of the information (file paths, panel option names, commands) may no longer match the current state of the game.
A short guide on how to grant admin permissions on your Valheim server.
- First, we need to open the
adminlist.txtfile, which we will find by going into the directories:.config/unity3d/IronGate/Valheim/ - In the
adminlist.txtfile we enter the admin's steamID64. You can find the SteamID64 using steamid.io, or directly from the game (the F2 key while on the server).

3. After correctly adding the steamID64 and saving the adminlist.txt file, you need to restart the server.
Admin command list
help- list of commandskick[name/ip/userID] - kick a playerban[name/ip/userID] - ban a playerunban[name/ip/userID] - unban a playerbanned- list of banned playersping- check pinglodbias[number] - render distanceinfo- system information
World modifiers
As an admin you can now set world modifiers in the game:
| Modifier | Value | Command |
|---|---|---|
| Combat | Very easy | setworldmodifier combat veryeasy |
| Easy | setworldmodifier combat easy | |
| Normal | - | |
| Hard | setworldmodifier combat hard | |
| Very hard | setworldmodifier combat veryhard | |
| Death penalty | Casual | setworldmodifier deathpenalty casual |
| Very easy | setworldmodifier deathpenalty veryeasy | |
| Easy | setworldmodifier deathpenalty easy | |
| Normal | - | |
| Hard | setworldmodifier deathpenalty hard | |
| Hardcore | setworldmodifier deathpenalty hardcore | |
| Resource rate | .5x | setworldmodifier resources muchless |
| .75x | setworldmodifier resources less | |
| Normal | - | |
| 1.5x | setworldmodifier resources more | |
| 2x | setworldmodifier resources muchmore | |
| 3x | setworldmodifier resources most | |
| Raid frequency | None | setworldmodifier raids none |
| Much less | setworldmodifier raids muchless | |
| Less | setworldmodifier raids less | |
| Normal | - | |
| More | setworldmodifier raids more | |
| Much more | setworldmodifier raids muchmore | |
| Portals | Portal items | setworldmodifier portals casual |
| Normal | - | |
| No boss portals | setworldmodifier portals hard | |
| No portals | setworldmodifier portals veryhard |
tip
To reset all modifiers at once, use the setworldpreset default command.
There are also "world keys" you can set to enable or disable specific switches. To use them, we first need to run the devcommands command, which should return true:
| World modifier | Menu value | devcommand |
|---|---|---|
| No build cost | On | setkey nobuildcost |
| Off | removekey nobuildcost | |
| Passive hostile creatures | On | setkey passivemobs |
| Off | removekey passivemobs | |
| Player-based raids | On | setkey playerevents |
| Off | removekey playerevents | |
| No map | On | setkey nomap |
| Off | removekey nomap |