The settings that shape a Valheim server exactly how your group wants it — from a relaxed building sandbox to a brutal no-portals hardcore run — using the built-in World Modifiers, no mods needed. The presets, the startup flags, the one tweak everyone wants, and how to set admins and a whitelist.
Valheim doesn't use a big config file — you shape the game with World Modifiers, set on the dedicated server through three startup parameters: -preset (a complete package), -modifier (individual dials) and -setkey (on/off switches). Order matters: the official server manual says a preset overwrites earlier modifiers, so put -modifier flags after the -preset.
Below are the presets, the most popular tweaks, and the admin/whitelist files — plus a link back to our full how to make a Valheim server walkthrough if you're starting from scratch.
What you'll need
- Access to your server startup command / launch parameters (a panel field or the start script).
- Access to the save directory for adminlist.txt / permittedlist.txt / bannedlist.txt.
- Your and your admins' Platform User IDs (format
[Platform]_[User ID]). - The ability to restart the server to apply modifier changes.
- Optional:
-crossplayif players are on different platforms.
Shape your Valheim server, setting by setting
Step 1: Pick a preset for the baseline
A
-presetsets everything at once. The valid values in the official server manual are Normal, Casual, Easy, Hard, Hardcore, Immersive and Hammer. Setting a preset overwrites any modifiers set before it../valheim_server.x86_64 -name "My Server" -port 2456 \ -world "Dedicated" -password "secret" -crossplay \ -preset casualStep 2: Fine-tune with individual modifiers
Override single dials with
-modifier <key> <value>. The manual listscombat(veryeasy, easy, hard, veryhard),deathpenalty(casual, veryeasy, easy, hard, hardcore),resources(muchless, less, more, muchmore, most),raids(none, muchless, less, more, muchmore) andportals(casual, hard, veryhard). Place them after the preset so it doesn't overwrite them.-modifier combat hard -modifier deathpenalty casual -modifier resources moreStep 3: The portal-ore tweak (most popular)
The single most-requested change: let players take all items, metals included, through portals so there's no boat-hauling grind. One flag does it.
-modifier portals casualStep 4: Toggle switches with -setkey
Four checkbox options are set with
-setkey:nobuildcost,playerevents(raids based on each player's progress),passivemobs(enemies won't attack until provoked) andnomap. Portal rules are set with theportalsmodifier instead.-setkey nobuildcost # free building -setkey passivemobs # enemies won't attackStep 5: Set admins and (optionally) a whitelist
Three plain-text files live in the default save path:
adminlist.txt(admin powers),bannedlist.txt(bans) andpermittedlist.txt. Add one Platform User ID per line in the format[Platform]_[User ID], which is case sensitive; the server log and the in-game F2 panel show it. Note: the manual warns that adding anyone to permittedlist.txt bans everyone else.# adminlist.txt: one Platform User ID per line, copied from the server log [Platform]_[User ID] # permittedlist.txt — leave EMPTY unless you want whitelist-onlyStep 6: Restart to apply
World Modifiers come from the launch line, so add or change the flags and restart the server for them to take effect. Stop it with CTRL+C in the console window, as the manual advises, rather than closing the window.
Tune it to your group
Portals casual is the crowd-pleaser
For most friend groups, -modifier portals casual (carry ores through portals) removes the biggest grind and is the single most popular change.
Preset first, then override
Set a -preset for a sensible baseline, then add individual -modifier flags after it for the couple of things you want different. A preset placed last overwrites the modifiers before it.
Whitelist is opt-in
permittedlist.txt only whitelists when it has entries — an accidental name in it locks everyone else out. Leave it empty unless you deliberately want a private server.
Crossplay adds a relay hop
-crossplay lets Xbox and other platforms join through a relay, with no port forwarding. The Valheim wiki notes the trade-off: players on a crossplay server are more likely to see lag, timeouts and disconnects.
Common problems & fixes
My modifier changes do nothing
World Modifiers are read at launch. Add the -preset / -modifier / -setkey flags to the actual startup line (not a config file) and restart the server.
Everyone got kicked / can't join
permittedlist.txt has an entry, so the server is whitelist-only. Empty the file (or add everyone's Platform User ID) and restart.
A modifier I set is being ignored
Check the order of the flags. A -preset overwrites modifiers set before it, so move every -modifier after the -preset.
A modifier I removed from the launch line still applies
World modifiers are stored with the world when it loads, so deleting a flag does not undo it. Launch once with -resetmodifiers, a dedicated-server parameter from the patch notes that the manual does not list, then set the flags you want.
Admin commands don't work
Your ID isn't in adminlist.txt in the expected format, or the file is in the wrong place. Use [Platform]_[User ID] exactly as the server log shows it, one per line, in the default save path, then restart.
Valheim is a trademark of Iron Gate AB / Coffee Stain Publishing. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Iron Gate. You must own a legitimate copy of the game to play.