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; Xbox and Game Pass players use their XboxID, which requires crossplay to be enabled first.
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 Steam64 ID on a new line, but include a V_ infront of it You can find a Steam64 ID at steamidfinder.com or by pressing F2 in-game. It should look like V_7698031657843 .
- 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.
- To obtain your xboxID, start a game in single player.
- Once you are ingame, Hold LB + LT, then press the View button. This will open the dev/playinfo window..
- Look for your player details, it should show your XboxID. Copy this down.
- Log into the Game Control Panel and navigate to your server.
- Click Stop to stop the server.
- Click Configuration Files, locate
Adminnlist.txt, and open it with Text Editor. - Paste the XboxID on a new line, include an X_ infront of the ID, and click Save. It should look like X_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:
- Navigate to the game install folder, by default
C:\XboxGames\Valheim\Content\. - Right-click
valheim.exeand select Create Shortcut. - Right-click the shortcut and click Properties.
- On the Shortcut tab, find the Target field and append
-consoleto the end, leaving a space before the flag. - Click OK to save.
- Launch the game using the shortcut. Press F5 to open the console.