How to Add Admins to Your Valheim Server
Admin access on your Valheim server is granted by adding player IDs to the adminlist.txt file. Steam players use their Steam64 ID with a V_ prefix. Console and Game Pass players use their own platform ID, which requires crossplay to be enabled first.
Find the player's ID
Since Valheim 1.0, each player ID in adminlist.txt starts with a platform prefix. The safest way to get the right value is the in-game player panel:
- Join the server while the player is online.
- Press F2 to open the player info panel and find the player.
- Copy their ID exactly as shown, including the prefix, for example
V_for Steam orX_for Xbox and Game Pass. Other platforms, such as PS5 and Switch 2, use their own prefix. - Add the ID on its own line in
adminlist.txtusing the steps below, then restart the server.
Add a Steam admin
- Log into the Game Control Panel and navigate to your server.
- Click Configuration Files.
- Locate
adminlist.txtand click Text Editor. - Enter the player's ID on a new line, including the
V_prefix. Copy it from the F2 panel in-game, or look up their Steam64 ID at steamidfinder.com and addV_in front. It should look likeV_76561198XXXXXXXXX. If the F2 panel shows a different value, use that one. - Click Save and restart the server.
Add an Xbox or Game Pass admin
Before you start: Crossplay must be enabled on your server before Xbox and Game Pass players can connect. Follow the Enable Crossplay guide first.
- Start or join a game. On Xbox, open the pause menu and select Player List. On PC (Game Pass), press F2 instead.
- Find the player and copy their ID exactly as shown, including the
X_prefix. - Log into the Game Control Panel and navigate to your server.
- Click Stop to stop the server.
- Click Configuration Files, locate
adminlist.txt, and open it with Text Editor. - Paste the ID on a new line, including the
X_prefix, and click Save. It should look likeX_123264873210. - Start the server.
Enable the in-game console (Xbox and Game Pass)
To use admin commands in-game on Game Pass, you need to launch Valheim with the -console flag. You can do so by following this guide: How to Enable In-Game Console in Valheim