Installing BepInEx mods on a Valheim server
BepInExPack Valheim, folder structure, enabling it from the Pelican panel, syncing mods with your players and reading the logs: the complete method for a stable modded dedicated server.
By Salem ASSADI • Published 5 November 2026 • Updated 26 November 2026 • Related plan: Valheim server
No server yet? Start with the guide Create a Valheim dedicated server.
Why install BepInEx mods on a Valheim server
Valheim has no official mod system. The entire modding scene is built on BepInEx, a framework that injects .NET plugins into the game at startup. Setting up Valheim server BepInEx mods therefore takes a bit of method: the server has to load the framework, the plugins have to be compatible with the game version, and in most cases players need exactly the same mods in exactly the same versions.
This guide covers installing BepInExPack Valheim on a Linux dedicated server, the folder structure, enabling it from the Pelican panel, the difference between server mods and client mods, configuration through .cfg files, distributing mods to players with r2modman, and troubleshooting with the LogOutput.log file. It applies to our dedicated Valheim server offer, which advertises BepInEx compatibility, but the approach works on any Linux server.
Prerequisites
- A working dedicated Valheim server, accessible from the Pelican panel (panel.rxcorp.me).
- An SFTP client (FileZilla, WinSCP…) or the panel's web file manager.
- A mod manager on the player side: r2modman or Thunderstore Mod Manager.
- A precise list of the mods you want, with their dependencies, taken from Thunderstore (Valheim community).
- A recent backup of the world (see step 1, do not skip it).
Step 1: back up the world before installing anything
A Valheim world consists of two files: the .db (terrain geometry, buildings, chest contents) and the .fwl (metadata: name, seed, version). Some mods add items or building pieces: if you remove them later, the corresponding objects may disappear from the world. Taking a backup first is therefore essential.
- Stop the server from the Pelican console so the world is written cleanly to disk.
- Create a backup from the panel's Backups tab.
- In addition, download the
.dband.fwlfiles over SFTP from the server's worlds folder (worlds_localorworldsdepending on your instance's configuration, as stated in the product page FAQ).
The .db.old and .fwl.old files that the game generates automatically are a copy of the previous save: keep them too, they serve as an extra restore point.
Step 2: understanding BepInExPack Valheim
BepInExPack Valheim is the reference package published by denikson on Thunderstore. It contains BepInEx preconfigured for Valheim, along with the libraries needed to load into the game's Unity engine. It is this package, not the generic BepInEx release available on GitHub, that nearly every Valheim mod declares as a dependency.
Linux server version and client version
The same package is used for both client and server, but the loading mechanism differs:
- Windows client: loading goes through the
winhttp.dllDLL (Doorstop) placed next tovalheim.exe. - Linux server: loading goes through the Linux Doorstop library, preloaded by a shell script (
start_server_bepinex.shin current versions of the pack) which then launchesvalheim_server.x86_64.
The exact contents of the pack (script names, doorstop_libs folder, Doorstop configuration file) may change from one version to the next. Always refer to the README of the version you download.
Step 3: folder structure on the server
Once BepInEx is installed and has been launched at least once, the server root looks like this:
/home/container/
├── valheim_server.x86_64
├── start_server_bepinex.sh <- launch script with BepInEx (depends on the pack)
├── doorstop_libs/ <- Linux injection libraries
├── BepInEx/
│ ├── core/ <- BepInEx internal files, do not modify
│ ├── plugins/ <- your mods (.dll files or mod folders)
│ ├── config/ <- .cfg files generated by the mods
│ ├── patchers/ <- preloader patchers (rarely used)
│ └── LogOutput.log <- loading log
└── valheim_server_Data/
The three locations to remember are BepInEx/plugins (where you drop the mods), BepInEx/config (where their settings live) and the BepInEx/LogOutput.log file (where you diagnose problems). The root path /home/container/ is the one Pelican containers usually use; in the file manager, it simply corresponds to the root that is displayed.
Step 4: enable BepInEx from the Pelican panel
There are two approaches, depending on your instance's configuration.
Option A: via the Startup tab
Open your server's Startup tab in Pelican and look at the available variables. Depending on the egg in use, a variable may let you enable BepInEx or choose the modded launch mode: the server then downloads and launches the pack itself at startup. Labels depend on the egg; read each variable's description rather than relying on a specific name. On an RXCORP Valheim server, delivered without mods, no such variable is offered: move on to option B, or ask on the RXCORP Discord.
Option B: manual upload over SFTP
- Download the latest stable version of BepInExPack Valheim from Thunderstore (Manual Download button).
- Extract the archive on your computer. It contains a
BepInExPack_Valheimfolder. - Copy the contents of that folder (not the folder itself) to the server root, next to
valheim_server.x86_64. - Make sure the launch script is executable if the panel lets you, then check that the startup command calls the BepInEx script rather than the bare binary.
- Start the server once without any plugin: BepInEx creates its folders and the
BepInEx/config/BepInEx.cfgfile.
Server arguments remain the standard Valheim arguments, passed by the script to the binary. As an example, a typical launch line looks like this:
./valheim_server.x86_64 -nographics -batchmode -name "Mon Serveur" -port 2456 -world "MonMonde" -password "motdepasse" -public 1
BepInEx/core and do not mix two versions of BepInEx. To update the pack, replace all of its files with those from the new version, after taking a backup.Step 5: install plugins and their dependencies
Each Thunderstore mod comes as an archive containing at least one .dll, a manifest.json and a README. Place the .dll file(s) (or the entire mod folder) in BepInEx/plugins. The manifest.json lists the dependencies: install all of them, in the required versions or newer.
Jotunn, the shared library
Jotunn (Jötunn, The Valheim Library) is a library used by many mods to add items, recipes, pieces or commands. It changes nothing on its own, but it must be present on the server and on players' machines as soon as a mod requires it. Jotunn also includes a mod compatibility check on connection, which can reject a player whose mod list does not match the server's.
Examples of well-known mods
The mods below are popular in the community. Their compatibility with the current version of Valheim varies over time: check the last update date and the comments on Thunderstore before installing them.
- Valheim Plus: the original ValheimPlus project has been taken over as a community-maintained fork. It gathers many settings (inventory, building, kilns and furnaces, stamina…) into a single configuration file.
- Epic Loot: adds enchanted items and rarities; it must be installed by every player.
- PlanBuild: blueprint-based building tools, built on Jotunn.
- NoBuildDelay and similar quality-of-life mods, mentioned on our product page.
Step 6: server-only mods vs mods every player must install
This is the point that causes the most mistakes. Valheim runs largely in a distributed way: each client simulates part of the world around it. A mod installed only on the server therefore often has no visible effect.
| Mod type | Where to install it | Example use cases |
|---|---|---|
| Server only | Server | Administration, backups, logging, some connection rules |
| Client only | On each player who wants it | UI, minimap, display, graphics |
| Server and clients | Everywhere, identical versions | New items, recipes, creatures, building pieces, gameplay |
For the third category, versions must be strictly identical. Many mods bundle ServerSync, a library that sends the server's configuration to clients when they connect (the server enforces its values) and can block a player whose mod version differs. This is intentional: without it, each player could apply their own settings or end up desynchronized with items their client does not know about. Each mod's README usually states whether it is "server-side", "client-side" or required on both sides.
Step 7: configure mods with .cfg files
On the first startup with a new plugin, BepInEx generates a file in BepInEx/config, named after the mod's identifier (for example auteur.nomdumod.cfg). Stop the server, edit the file in the web file manager, then restart. The format is a commented INI:
## Settings file was created by plugin ExampleMod
[General]
## Enables or disables the mod.
# Setting type: Boolean
# Default value: true
Enabled = true
## Numeric value with an allowed range.
# Setting type: Int32
# Default value: 10
# Acceptable value range: From 1 to 100
StackMultiplier = 10
The BepInEx.cfg file configures BepInEx itself. For a server, make sure writing the log to disk is enabled:
[Logging.Disk]
Enabled = true
LogLevels = Fatal, Error, Warning, Message, Info
For mods using ServerSync, the server's values override the clients'; the server's .cfg files are therefore the ones that count.
Step 8: distribute mods to players with r2modman
To avoid every player installing mods by hand, use r2modman or Thunderstore Mod Manager:
- Create a Valheim profile and install exactly the same mods and versions as on the server (BepInExPack Valheim is added automatically as a dependency).
- In the profile settings, use the profile export as a code.
- Share this code with players, who import it with the import-profile-from-code option, then launch the game with the Start modded button.
You can also copy the .dll files from the r2modman profile folder to BepInEx/plugins on the server: that way you are certain the versions match. Every time a mod is updated, update the server and generate a new profile code.
Crossplay and mods: proceed with caution
Valheim crossplay (PlayFab) is enabled from your server's startup settings in Pelican. It changes the network layer used for connections, which can cause problems with some mods that touch networking or the connection process. In addition, Xbox and Game Pass players cannot install BepInEx mods: if a mod is required on the client side, they will not be able to join the server or will run into inconsistent behavior. If your group mixes PC and console players, stick to strictly server-side mods, and test each addition before adopting it for good. When in doubt, disable crossplay on a heavily modded server.
Troubleshooting: reading LogOutput.log and fixing common errors
The BepInEx/LogOutput.log file is rewritten on every startup. A successful load shows lines like these:
[Message: BepInEx] BepInEx 5.x.x.x - valheim_server
[Info : BepInEx] Loading [Jotunn x.y.z]
[Info : BepInEx] Loading [ExampleMod x.y.z]
[Message: BepInEx] Chainloader startup complete
If this file does not exist or is not updated after a restart, BepInEx is not loaded: the server was started without the BepInEx script. Also check the Pelican console, which shows the server output live.
Version mismatch on connection
The player is disconnected with an incompatibility message. There are three possible causes: the Valheim version differs between client and server (update both), a mod is missing on one side, or its versions differ. The Jotunn or ServerSync check usually lists the mod involved. Align everything on the r2modman profile code.
A plugin does not load
Search the log for the mod's name and for [Error or [Warning lines. Common causes: a missing dependency (the log reports that a plugin was skipped because of a missing dependency), a .dll placed outside BepInEx/plugins, an archive extracted with one folder level too many, or a mod that became incompatible after a Valheim update. In that last case, only an update of the mod by its author will fix the problem.
Wrong BepInEx version
Using generic BepInEx, BepInEx 6 or a pack from another community instead of denikson's BepInExPack Valheim leads to loading errors or crashes. Delete the existing BepInEx files (after setting aside plugins and config), reinstall the official Thunderstore pack, then put your mods and configurations back.
The server crashes after adding a mod
Proceed by elimination: remove the recently added plugins, restart, then reintroduce them one at a time. As a last resort, restore the backup from step 1.
Conclusion
A stable modded Valheim server comes down to a few simple rules: back up the world before every change, use BepInExPack Valheim, install dependencies such as Jotunn, match versions exactly between server and players with an r2modman profile code, and read LogOutput.log as soon as something fails to load. To host your world, see our dedicated Valheim server offer and the hardware details on the infrastructure page. More tutorials are available in the guides section, and support is reachable on Discord or at [email protected].