How to Enable Cheats and Admin Commands on Your Valheim Server

Learn how to enable cheats and run admin commands on your Valheim server using the RiverHosting panel, so you can manage your world with full control.
Valheim includes a built-in console that lets server admins run commands to manage the world, spawn items, control the weather, and more. To use these commands on your hosted server, you need to make sure cheats are enabled and that your Steam account has admin rights. This guide walks you through the full setup using the RiverHosting panel.
Before you start
- You need an active Valheim server through RiverHosting. Log in to the panel at panel.riverhosting.com.
- You need your Steam 64 ID. You can find it by visiting steamid.io and entering your Steam profile URL. Your Steam 64 ID looks like a long number, for example:
76561198012345678. - You must be the server owner or a subuser with Player Manager access.
- Join the server at least once first, so the panel knows your name and Steam ID.
Admin commands in Valheim let you do things like kick players, ban users, spawn items, change the time of day, or remove enemies. They are sometimes called cheat commands or devcommands.
1. Add yourself as an admin on the server
Before cheats will work for you in-game, your Steam account needs to be listed as an admin on the server. Here is how to do that from the panel.
- Log in to the RiverHosting panel and open your Valheim server.
- Click Players in the left-hand menu.

- Find your name in the list. Use the All Players tab if you are not online right now.
- Click Make Op. The panel adds your Steam 64 ID to the server's
adminlist.txtfor you. - Repeat for anyone else who should be an admin.
Admin changes only take effect after the server has been restarted. Restart your server from the panel after using Make Op.
2. Restart your server to apply the admin list
- Go back to your server page in the RiverHosting panel.
- Click the Restart button to restart your Valheim server.

- Wait for the server to come back online before joining.
3. Enable cheats in-game using the console
Once your Steam ID is on the admin list and the server has restarted, you can enable cheats while connected to the server in-game.
- Join your Valheim server from the game client.
- Press F5 on your keyboard to open the in-game console. A text input bar will appear at the bottom of the screen.
- Type the following command and press Enter:
devcommandsYou should see a message confirming that dev commands have been enabled. You can now use admin commands freely during your session.
Devcommands are not permanently active. You will need to type devcommands again each time you join the server if you want to use cheat commands.
4. Useful admin commands to try
Here are some commonly used Valheim admin commands you can run from the in-game console after enabling devcommands.
god- Toggles god mode, making you invincible.fly- Toggles the ability to fly around the map.pos- Shows your current coordinates in the world.goto [x] [z]- Teleports you to a specific map location.spawn [name] [amount]- Spawns a creature or item by name.removedrops- Removes all item drops on the ground nearby.resetwind- Resets the wind direction to default.tod [0-1]- Sets the time of day. For example,tod 0.5sets it to midday.ban [name]- Bans a player by their in-game name.kick [name]- Kicks a player from the server.
Make sure to type commands in lowercase exactly as shown. Valheim commands will not work if they are typed in the wrong case.
Troubleshooting
- The F5 console does not open in-game. Make sure you have launched Valheim normally and that you are connected to your server. Some PC configurations require you to enable the console in the game launch options. In Steam, right-click Valheim, go to Properties, and add
-consoleto the launch options field. - Devcommands says you are not an admin. Check the Operators tab on the Players page to confirm you were made an admin. Also confirm that you restarted the server after using Make Op.
- Commands are not working after typing them. Confirm that devcommands was enabled successfully before trying other commands. The console should show a confirmation message when devcommands is toggled on.
- You are not listed on the Players page. Join the server once so the panel picks up your name and Steam ID, then try Make Op again. Players joining from Xbox with crossplay cannot be made admin from the panel.
- A banned player can still join. Use Ban on the Players page and restart the server. Ban changes only take effect when the server reloads its lists.
Need help?
If you are still having trouble setting up admin commands or cheats on your Valheim server, the RiverHosting support team is ready to help.
Visit the RiverHosting support page at https://riverhosting.com/support to open a ticket or get in touch with the team. We are happy to help you get everything working.