How to Add Admins and Use Console Commands on a Valheim Server
Valheim controls admin access with a plain text file listing player IDs. Once someone is listed, they can open the in-game console on your server.
Find the player ID
The admin list uses the player's Steam ID in SteamID64 format, a long number such as 7656119XXXXXXXXXX. Players can find it on a site such as steamid.io by pasting their profile link. Do not guess IDs. A wrong one simply does nothing.
Add an admin
- Stop the server from the Console tab.
- In the Files tab, open the server's save directory (the one set by -savedir).
- Open adminlist.txt. If it does not exist, create it.
- Add one ID per line. Lines starting with // are treated as comments.
- Save and start the server.
The same folder holds bannedlist.txt and permittedlist.txt. Use the same one ID per line format in each.
Use the console
When an admin is in game, they press F5 to open the console. Commands are typed there. Depending on your version, you may need to type devcommands first to unlock some commands on the server. Commonly used server-management commands include:
- kick name to remove a player.
- ban name to add a player to the banned list.
- unban name to remove a ban.
- banned to list bans.
- save to force a world save.
- info to show server information.
Type help in the console to see the commands your version supports, as the list changes between updates.
Allow list
If you fill permittedlist.txt, only the listed IDs can join. Leave it empty if you want a public server. Pair this with a server password for extra protection.
Tips
- Only give admin to people you trust, since they can change the world.
- Remove an admin by deleting their line and restarting.
- If changes do not apply, confirm you edited the file in the correct save directory.
Ask us on Discord if you need help.