> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wasabihosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Valheim Admin Commands & Access Lists

> Manage admins on your Valheim server hosting instance: adminlist.txt, bans, whitelist, the F5 console, and every useful server command explained.

Valheim keeps server administration deliberately simple: three plain-text lists control who is an admin, who is banned, and (optionally) who may join at all. Admins then run commands through the in-game console. This guide covers all of it.

## The Three Access Lists

These files live in the server's **save directory**, the same location that contains the `worlds_local` folder (or the folder set by `-savedir`; see [server configuration](https://docs.wasabihosting.com/games/valheim/server-configuration.md)). Edit them with the panel **File Manager** or SFTP.

| File | Purpose |
| - | - |
| `adminlist.txt` | Players with admin rights (can use console commands) |
| `bannedlist.txt` | Banned players (cannot join) |
| `permittedlist.txt` | Whitelist: **if this file has any entries, only listed players can join** |

Format: **one SteamID64 per line**, nothing else. Lines starting with `//` are comments.

```
// Admins
76561198000000001
76561198000000002
```

> [!WARNING]
>
> `permittedlist.txt` is all-or-nothing: as soon as it contains a single ID, everyone not on the list is locked out, including you, if you forget to add yourself. Leave it empty for a public (password-protected) server.

> [!NOTE]
>
> You do **not** need to restart the server after editing these lists, because they're picked up automatically. However, a newly added admin must **disconnect and rejoin** before their console access works.

## Finding a SteamID64

A SteamID64 is a 17-digit number starting with `7656`.

* Paste the player's Steam profile URL into [SteamID.io](https://steamid.io) and copy the **steamID64** value.
* If the profile URL is the numeric form (`steamcommunity.com/profiles/7656...`), the ID is right in the URL.
* IDs of players currently connecting also appear in the server log in the panel Console.

## Enabling the In-Game Console

The console is disabled by default **on the client**. This is a client launch option, not a server setting.

**1. Add the launch option in Steam**

In your Steam library, right-click **Valheim → Properties → General**, and add to Launch Options:

```
-console
```

**2. Join the server and open the console**

Connect to your server and press `F5` to open the console.

**3. Verify admin status**

If your SteamID64 is in `adminlist.txt`, server commands like `kick` and `save` will work. If they're rejected, double-check the list and rejoin.

## Server Commands (F5 Console)

| Command | Description |
| - | - |
| `kick [name/ip/userID]` | Kick a player from the server |
| `ban [name/ip/userID]` | Ban a player (adds them to `bannedlist.txt`) |
| `unban [ip/userID]` | Remove a ban |
| `banned` | Show the current ban list |
| `save` | Force an immediate world save |
| `lodbias [1-5]` | Set the server's level-of-detail bias (render distance trade-off) |
| `ping` | Show your ping to the server |
| `help` | List available commands |

Banning by SteamID64 is the most reliable option, because names change but IDs don't.

> [!TIP]
>
> No console access at the moment? You can achieve the same result by editing the lists directly: add the offender's SteamID64 to `bannedlist.txt` via the File Manager and they're banned on their next connection attempt, no restart required.

## About devcommands (Cheats)

> [!WARNING]
>
> Typing `devcommands` in the console unlocks cheat/debug commands (`god`, `fly`, `spawn`, `tod`, and more). These are singleplayer-style developer tools: they only affect the admin who enables them, they're easy to fat-finger, and item spawning can quickly ruin a survival server's economy and trust. Use them sparingly on a live server, if at all, and tell your players when you do.

## Managing the Server Itself

Kicks, bans, and saves run in-game, but starting, stopping, and monitoring the server happens in the [Game Panel](https://panel.wasabihosting.com). If you want co-admins to restart the server or edit the access lists without full account access, give them panel [sub-users](https://docs.wasabihosting.com/server/sub-users.md) permissions. For scheduled restarts and automated saves, use the panel's **Schedules** feature, and keep regular [backups](https://docs.wasabihosting.com/server/backups.md) of your world.

> [card] [Run your own Viking realm](https://wasabihosting.com/game-servers/valheim)
>
> Valheim server hosting from €7.49/month with full file access, panel console, and 24/7 support included.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.