How to Add Admins on Your Valheim Server

Grant admin access on your Valheim dedicated server via adminlist.txt and enable in-game console commands.

Valheim admins are managed via adminlist.txt — a plain text file with one SteamID64 per line. Admins can use kick/ban/save commands in-game and access dev commands when authenticated.

Add an Admin

Find the player's SteamID64

Look up the player's Steam profile at steamid.io and copy their SteamID64 — a 17-digit number starting with 7656.

Stop the server

In the XGamingServer Panel, go to Console and stop your server.

Open adminlist.txt

Click Files in the sidebar and find adminlist.txt in the save directory.

Add the SteamID64

Add one SteamID64 per line:

76561198012345678
76561198087654321

Save and start

Click Save Content and start your server from Console. The player has admin access on next connect.

Enable the Console (Player Side)

Players who want to use admin commands need to enable the console:

Open Steam launch options

In Steam, right-click Valheim > Properties > General.

Add -console

In the Launch Options field, add:

-console

Launch and press F5

Start the game and press F5 in-game to open the console.

Admin Commands vs Dev Commands

Valheim splits commands into two categories:

TypeAccessExamples
Admin commandsAlways available to admins on multiplayer serverskick, ban, unban, banned, save, quit
Dev commandsRequire typing devcommands after admin authgod, ghost, spawn, tod, weather, creative

Dev commands are normally for singleplayer testing. To use them on a dedicated server you need the Server Devcommands mod from Thunderstore. See Enable Devcommands.

Removing an Admin

Edit adminlist.txt, delete the SteamID64 line, save, and restart the server.

Common Issues

ProblemFix
Admin commands don't workVerify the SteamID64 in adminlist.txt is correct (17 digits, no spaces) and the server has been restarted
Console doesn't open with F5Player must add -console to Steam launch options. Verify with right-click Valheim → Properties
Can't use spawn/godThose are dev commands, not admin commands. Type devcommands first (requires the mod on dedicated servers)

How is this guide?

40% Off — Limited TimeGet your Valheim server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page