AutoConsoleCommands
This code automatically executes a custom list of console commands in Valheim every time you enter a world, so you don’t have to type them manually.
About this mod Author’s original text
AutoConsoleCommands by Pille
AutoConsoleCommands is a Valheim mod (BepInEx plugin) that automatically runs a user-defined list of in-game console commands whenever you enter (or re-enter) a world. This is especially useful if you regularly enable certain cheats or other console commands without having to type them manually each time.
How It Works
Define a comma-separated list of commands (e.g., god, debugmode) in the plugin’s config file.
Simply edit the AutoConsoleCommands.cfg file in your BepInEx config folder to add or remove commands.
Triggers on world join: Detects when you spawn into a world and executes your commands right away.
Commands only run once per spawn, so you won’t see repeated commands unless you disconnect/reconnect or respawn with a fresh player entity.
Installation
Place the DLL "~/BepInEx/plugins/AutoConsoleCommands.dll" into BepInEx/plugins within your Valheim install folder.
Run Valheim once. The plugin will create a config file named AutoConsoleCommands.cfg in your BepInEx/config folder.
Configuration
Open BepInEx/config/AutoConsoleCommands.cfg in a text editor and edit the CommandList to your preferred commands. For example: CommandList = god, debugmode, heal
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: