Find your ID
- Steam: your SteamID64, a 17-digit number starting with
7656119(e.g. via steamid.io). - With crossplay (startup variable Crossplay on): Valheim needs the ID with the platform in front, e.g.
Steam_7656119XXXXXXXXXX. Xbox or Game Pass players see their ID in the game menu with F2.
Make yourself admin
- Start the server once so the files are created.
- In the client area, open the Files tab and go to
.config/unity3d/IronGate/Valheim/(the folder.configstarts with a dot). - Open
adminlist.txtwith Edit and put your ID on its own line below the comment lines. - Save and restart the server.
Further admins each go on a new line.
Open the console in the game
Valheim only shows the console when it is enabled:
- In Steam: right-click Valheim → Properties → Launch options: enter
-console. - In the game, F5 opens the console.
Key commands
| Command | Effect |
|---|---|
kick Name | Kick a player (also by ID) |
ban Name | Ban a player |
unban ID | Lift a ban |
banned | Show banned players |
save | Save the world now |
devcommands | Cheat commands on/off (e.g. god, fly, spawn) – admins only |
Banned players are in bannedlist.txt, allowed players (if you want a guest list) in permittedlist.txt – both in the same folder as adminlist.txt. As soon as permittedlist.txt has at least one entry, only these players can join.
Good to know
- Changes to the lists apply after a restart.
- With crossplay always use the
Steam_…format, otherwise the entry has no effect.