# How to Add Admins on Your Valheim Server (/docs/valheim/admin-setup)



import { Step, Steps } from 'fumadocs-ui/components/steps';

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 [#add-an-admin]

<Steps>
  <Step>
    Find the player's SteamID64 [#find-the-players-steamid64]

    Look up the player's Steam profile at [steamid.io](https://steamid.io) and copy their **SteamID64** — a 17-digit number starting with `7656`.
  </Step>

  <Step>
    Stop the server [#stop-the-server]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop your server.
  </Step>

  <Step>
    Open adminlist.txt [#open-adminlisttxt]

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

    {/* Screenshot needed: File Manager showing adminlist.txt */}
  </Step>

  <Step>
    Add the SteamID64 [#add-the-steamid64]

    Add one SteamID64 per line:

    ```
    76561198012345678
    76561198087654321
    ```
  </Step>

  <Step>
    Save and start [#save-and-start]

    Click **Save Content** and start your server from **Console**. The player has admin access on next connect.
  </Step>
</Steps>

Enable the Console (Player Side) [#enable-the-console-player-side]

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

<Steps>
  <Step>
    Open Steam launch options [#open-steam-launch-options]

    In Steam, right-click **Valheim** > **Properties** > **General**.
  </Step>

  <Step>
    Add -console [#add--console]

    In the **Launch Options** field, add:

    ```
    -console
    ```
  </Step>

  <Step>
    Launch and press F5 [#launch-and-press-f5]

    Start the game and press **F5** in-game to open the console.
  </Step>
</Steps>

Admin Commands vs Dev Commands [#admin-commands-vs-dev-commands]

Valheim splits commands into two categories:

| Type               | Access                                            | Examples                                              |
| ------------------ | ------------------------------------------------- | ----------------------------------------------------- |
| **Admin commands** | Always available to admins on multiplayer servers | `kick`, `ban`, `unban`, `banned`, `save`, `quit`      |
| **Dev commands**   | Require typing `devcommands` after admin auth     | `god`, `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](/docs/valheim/enable-devcommands).

Removing an Admin [#removing-an-admin]

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

Common Issues [#common-issues]

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

Related Guides [#related-guides]

* [Console Commands](/docs/valheim/console-commands)
* [Ban & Kick Players](/docs/valheim/ban-and-kick-players)
* [Whitelist](/docs/valheim/whitelist)
* [Enable Devcommands](/docs/valheim/enable-devcommands)
