DevToggle
Automatically enables devcommands and debugmode on world load. Hotkeys to toggle devcommands, debugmode, god mode, ghost mode, time of day, and environment overrides. On-screen confirmations for every
About this mod Author’s original text
DevToggle — Valheim Mod
Author: YouDied!
Version: 1.0.0
Framework: BepInEx 5.x
What it does
Automatically enables developer tools when loading into a world, with hotkeys to toggle everything on the fly. On-screen messages confirm every action.
- DevCommands — the master switch. Must be ON before anything else will work.
- Debug Mode — enables creative-mode keys: B no-cost building, Z fly, K kill enemies, L remove drops.
- God Mode — invincible.
- Ghost Mode — enemies ignore you.
- Time of Day — set a fixed time or restore the normal cycle.
- Environment — force a weather override or restore default weather.
Install
- Make sure BepInEx 5.x is installed.
- Drop DevToggle.dll into /BepInEx/plugins.
- Launch the game — the config file is created automatically at
/BepInEx/config/YouDied.DevToggle.cfg.
Default hotkeys
| Action | Key |
|--------|-----|
| Toggle Dev Commands | 0 |
| Toggle Debug Mode | - |
| Toggle God Mode | G |
| Toggle Ghost Mode | H |
| Apply Time of Day | F6 |
| Reset Time of Day | Alt + F6 |
| Apply Environment | F7 |
| Reset Environment | Alt + F7 |
All hotkeys are configurable. Set to None to disable any of them.
Configuration
Config sections are numbered so they appear in a logical order in any config manager.
1 - DevCommands
| Setting | Default | Description |
|---------|---------|-------------|
| EnableDevCommands | true | Auto-enable devcommands on world load |
| ToggleDevCommands | 0 | Hotkey to toggle devcommands on/off |
2 - DebugMode
Requires DevCommands to be ON.
| Setting | Default | Description |
|---------|---------|-------------|
| EnableDebugMode | true | Auto-enable debugmode on world load |
| ToggleDebugMode | - | Hotkey to toggle debugmode on/off |
3 - God Mode
Requires DevCommands to be ON.
| Setting | Default | Description |
|---------|---------|-------------|
| EnableGodMode | false | Auto-enable god mode on world load |
| ToggleGodMode | G | Hotkey to toggle god mode on/off |
4 - Ghost Mode
Requires DevCommands to be ON.
| Setting | Default | Description |
|---------|---------|-------------|
| EnableGhostMode | false | Auto-enable ghost mode on world load |
| ToggleGhostMode | H | Hotkey to toggle ghost mode on/off |
5 - Time of Day
| Setting | Default | Description |
|---------|---------|-------------|
| AutoSetTOD | false | Auto-apply TODValue on world load |
| TODValue | 0.5 | 0.0 = midnight · 0.5 = noon · 1.0 = midnight |
| HotkeyResetTOD | Alt+F6 | Reset to normal day/night cycle |
| HotkeyApplyTOD | F6 | Apply TODValue immediately |
6 - Environment
| Setting | Default | Description |
|---------|---------|-------------|
| AutoSetEnv | false | Auto-apply environment override on world load |
| EnvName | Clear | Environment to apply (see valid values below) |
| HotkeyResetEnv | Alt+F7 | Reset to default weather |
| HotkeyApplyEnv | F7 | Apply EnvName immediately |
Valid environment names:
Clear · Twilight_Clear · Misty · Darklands_dark · Heath clear · DeepForest Mist · GDKing · Rain · LightRain · ThunderStorm · Eikthyr · GoblinKing · nofogts · SwampRain · Bonemass · Snow · Twilight_Snow · Twilight_SnowStorm · SnowStorm · Moder · Ashrain · Crypt · SunkenCrypt
Hotkey safety
Hotkeys are suppressed while:
- The chat window (T) is open and focused.
- The F5 developer console is open.
This prevents accidental toggles while typing commands or chatting.
Known limitations
⚠ Manual console changes can desync DevCommands state
If you type devcommands directly in the F5 console, the mod's internal
state will be out of sync. Hotkeys for debug mode, god mode, and ghost mode
use the mod's tracked state to determine whether DevCommands is active, so
they may behave incorrectly after a manual toggle. To resync, simply press
the DevCommands hotkey (0) twice.
ConfigurationManager support
If you have BepInEx ConfigurationManager installed, changes made in the
in-game config UI take effect immediately — no world reload needed. Enabling
or disabling any auto-enable toggle applies instantly.
Lice
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: