Need some help managing your Viking realm? Whether you need to kick a rule-breaker or just want to have access to server management commands, giving yourself or a friend admin privileges is a crucial step for any server owner.
Adding an admin is super straightforward and just requires pasting a player's ID into a specific text file. Let us get your admin permissions set up!
Always make sure your server is completely stopped before editing configuration files. If the server is still running while you edit, your changes will get overwritten and will not save!
Step 1: Get the Player's ID
Before we can add an admin, we need to know exactly who we are adding. Valheim uses a few different ID types depending on where the player bought the game.
76561197960287930 (Always 17 digits long and usually starts with 7656). You can easily find this by pasting their Steam profile link into a website like SteamID.io.2533274790328912 (Usually 16 digits). When they join the server, the console will often show this with an "Xbox_" prefix.5B3C9A8E2F1D4A7C (A short mix of random letters and numbers).The absolute easiest way to get any of these IDs (especially for Xbox and Crossplay) is to have the player join the server, and then check your server Console tab. It will print out a message showing their username and their specific ID when they connect. If you see a prefix like Xbox_2533274790328912 in your server console, you can usually just copy and paste the entire thing exactly as the console shows it.
Step 2: Add the ID to Your Server
Now that you have the correct ID, we need to paste it into your server's admin list file.
.config > unity3d > IronGate > Valheim.
📁 .config
📁 unity3d
📁 IronGate
📁 Valheim
adminlist.txt file to open the text editor.Step 3: Enabling the In-Game Console
Before you can type any commands in-game, you have to enable the console in your Steam settings. By default, pressing F5 will not do anything.
-console into the text box.List of Multiplayer Admin Commands
Once you are an admin and have the console open, you can manage your server with these essential multiplayer commands:
kick [name/ip/userID]Kicks a player from the server.
ban [name/ip/userID]Permanently bans a player.
unban [ip/userID]Unbans a specific player.
bannedShows a list of all currently banned players.
pingChecks your current ping to the server.
infoPrints the current system info.
lodbias [number]Sets the draw distance for the server.
Fun Commands (Cheats)
Vanilla Valheim does not allow admins to use cheats (devcommands) on dedicated multiplayer servers! To use the fun commands below, you must install a mod like Server Devcommands on both the server and your game client.
If you have the proper mods installed or are playing in a local single-player world, type devcommands into the console to enable cheats. Then, you can use these fun commands:
godEnables God Mode (invincibility).
ghostEnemies will completely ignore you.
healInstantly restores your health to full.
flyToggles flying mode on and off.
nocostAllows you to build freely without needing any materials.
spawn [item name] [amount]Spawns a specific item (e.g.,
spawn Wood 50).tod [0-1]Changes the time of day (0 and 1 are midnight, 0.5 is noon). Type
tod -1 to reset to default.
🛠️ Commands Not Working?
If your basic admin commands are not working, double-check that you entered your ID correctly into the adminlist.txt file and that there are no extra spaces before or after the number. Also, remember to restart the server after adding your ID!
Still stuck?
Our team is happy to help. Open a ticket through the live chat button in the bottom-right corner of our website.