Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

Become an admin with adminlist.txt

Valheim has no admin password: rights go through three text files, stored in the server's save folder (the one set with the -savedir option, or ~/.config/unity3d/IronGate/Valheim on Linux without it):

  • adminlist.txt: the admins;
  • bannedlist.txt: the banned players;
  • permittedlist.txt: the whitelist. As soon as it holds one ID, every other player is refused.

Each file holds one ID per line, with no spaces. The format has changed over time:

  • the official wiki mentions the SteamID64, the 17-digit number of a Steam account;
  • with crossplay, the ID carries a platform prefix, for example Steam_ followed by the SteamID64;
  • since version 1.0, the game also uses a new format, V_ followed by digits. The 1.0.12 patch notes state that old IDs (Steam_…) are still accepted.

The safest way is to copy the ID exactly as the game shows it: in the connected players panel (F2 key), or in the server log when the player connects:

journalctl -u valheim -n 200 | grep -i -E "steam|V_"

Then add the line to the file as the server user, and restart the server to be sure the list is read again:

sudo -u valheim nano /opt/valheim/donnees/adminlist.txt
sudo systemctl restart valheim

These paths and the valheim service come from the guide creating a Valheim dedicated server; adapt them to your setup.

02

Open the console with F5

Commands are not typed on the VPS: the Valheim server has no interactive console. The admin types them in their own game, connected to the server, in the developer console. It is disabled by default:

  1. in the Steam library, right-click Valheim, then Properties;
  2. in the General tab, type -console in the launch options field;
  3. start the game, join the server, then press F5.

Depending on the game version, an option in the settings can also enable the console. The help command lists the commands available to your account. Common player commands can also be typed in the chat window, preceded by a slash.

03

Admin commands

The official wiki reserves them for players whose ID is in the admin list. The main ones:

  • kick followed by a name, an IP address or an ID: removes the player, who can come back;
  • ban followed by a name, an IP address or an ID: bans the player;
  • unban followed by the same details: lifts the ban;
  • banned: shows the list of banned players;
  • save: forces the world to save, useful before a restart or an update.

For example:

kick Ragnar
ban Steam_76561190000000000
banned
unban Steam_76561190000000000
save

The name and ID above are examples: use the ones shown in the F2 panel. Banning by ID is more reliable than by name, which a player can change.

Three other admin commands act on the world settings: setworldpreset (apply a preset), setworldmodifier (change a specific setting) and resetworldkeys (return to the default settings, without touching progression). They change the game for every player: save with save and back up the data folder before using them.

04

Player commands and devcommands

Other commands do not need admin rights. The most useful ones to check a server:

  • ping: measures latency to the server;
  • info: shows system information;
  • lodbias followed by a number: sets the draw distance;
  • help: the full list.

devcommands enables the cheat commands (flying, god mode, teleporting, spawning items). Be careful with them on a server:

  • the official wiki states that these commands work in single player or in a game hosted from the client, not on a dedicated server, and that admin status only grants access to the admin commands;
  • since version 1.0, according to the official patch notes, items created with these commands are marked as cheated items, and using them can block achievements;
  • some mods claim to unlock them on a dedicated server: they install like any other mod (see installing mods on a Valheim server), and each game update can break them.
05

Good admin practice

  • Few admins: every line in adminlist.txt can kick and ban everyone. Remove accounts that no longer use it.
  • A backup before any change: run save, then copy the data folder off the VPS, as in the guide creating a Valheim dedicated server. A daily copy can be scheduled with a scheduled task (see scheduled tasks on a VPS).
  • A clean stop: sudo systemctl stop valheim sends the stop signal set in the service, and the server saves the world before shutting down.
  • Files from the VPS: editing adminlist.txt is done over SSH (see connecting to a VPS over SSH). Keep SSH access key-based, and open no ports other than the game's, 2456 and 2457 in UDP (see game server ports).

Other games of the same kind have their own logic: see Project Zomboid admin commands and those of 7 Days to Die.

06

On CloudFive

CloudFive has no ready-made Valheim plan: the server is installed on a VPS, and managed as described in this guide. The Ryzen VPS, from €5.99 per month, is well suited:

  • an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage;
  • root access and a dedicated IPv4 address;
  • basic anti-DDoS protection included. The game-specific filter is part of Premium Protection, a paid option (see protecting a game server against DDoS).

The servers are in France, on our own network, monthly with no commitment, with support in French 7 days a week. To choose the VPS size, see which VPS for a game server and the gaming VPS page.

07

Frequently asked questions

How do I become an admin on a Valheim server?

Add your player ID, one ID per line, to the adminlist.txt file in the server's save folder, then restart the server. Copy the ID exactly as the game shows it in the F2 panel or in the server log.

Which ID goes in adminlist.txt on Valheim?

The one the game shows for the player. The official wiki mentions the SteamID64; with crossplay it takes a platform prefix such as Steam_, and since version 1.0 the game also uses a V_ format followed by digits. Old Steam_ IDs are still accepted according to the 1.0.12 patch notes.

How do I open the console in Valheim?

Add -console to the game's launch options in Steam (right-click Valheim, Properties, General), then press F5 in game. Depending on the version, the console can also be enabled in the settings.

What are the Valheim admin commands?

kick, ban and unban followed by a name, an IP address or an ID, banned to list banned players, save to force the world to save, and setworldpreset, setworldmodifier and resetworldkeys for the world settings. They are reserved for players listed in adminlist.txt.

Can devcommands be used on a Valheim dedicated server?

The official wiki states that cheat commands work in single player or in a game hosted from the client, not on a dedicated server, and that admin status does not unlock them. Since version 1.0, using them can also block achievements.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay