Skip to content
Sign inStart a server

Free tool

Valheim world modifiers and server launch command

Valheim has no settings file: the server name, password, world and difficulty are all arguments on the line that starts the server. Pick them here and copy the line for Linux or Windows, with the world preset, modifiers and keys in the order the game needs. New to hosting? Read how to host a Valheim server.

Checked against Iron Gate's dedicated server guide and our own live tests of -preset, -modifier and -setkey on Steam build 25527701 on . Sources: Iron Gate: a guide to dedicated servers.

Server

The name players see in the server list.

The password players type to join: at least 5 characters. While the server is listed, keep it out of the world name.

No password, so anyone who finds the server can join.

The server loads the world with this name, or makes a new world with it.

2456 by default. Valheim also uses the port after it, so forward both.

Off hides the server: players join with its address instead.

Runs the server on the crossplay backend, so players on every platform can join. Without it, only Steam players can see and join it.

World settings

On: the command passes no preset, modifiers or keys, so the world keeps the settings saved in it, such as a world you made in single player. Off: the settings below are applied at every start.

The game's standard balance.

Leaves it to the world preset.

Leaves it to the world preset. On Normal, everything you carry drops and you lose 5% of your skills.

Leaves it to the world preset.

Leaves it to the world preset.

Leaves it to the world preset. On Normal, some items can't go through.

Building pieces need no materials, though you still have to discover each recipe. Off means the world preset decides.

Enemies don't attack until you provoke them. Off means the world preset decides.

Nobody can open the map or the minimap, which makes the game harder. Off means the world preset decides.

Raids follow each player's own boss progress instead of the bosses the whole server has beaten. Off means the world preset decides.

Saves and Valheim backups

1800 by default: every 30 minutes.

4 by default: one short-term copy and three long-term ones, on the server's own disk.

7200 by default: two hours.

43200 by default: twelve hours.

Reference

Every preset, modifier and key

What each argument does, in the game's own words where it has them.

World presets: -preset

Valheim world presets
ArgumentPresetWhat it does
-preset normalPresetNormalWhat it doesThe game's standard balance.
-preset casualPresetCasualWhat it doesEnemies leave you alone until provoked, there are no raids, resources drop at 150%, you keep your gear when you die, and anything goes through portals.
-preset easyPresetEasyWhat it doesFights are easier: you deal 110% damage and enemies deal 75%.
-preset hardPresetHardWhat it doesFights are harder: you deal 85% damage, and enemies deal 150% and grow stronger more often.
-preset hardcorePresetHardcoreWhat it doesEnemies deal double damage, dying destroys what you carry and resets your skills, there's no map, and no portals while a boss is active.
-preset immersivePresetImmersiveWhat it doesNo map, no portals, and the game's fire hazards turned on.
-preset hammerPresetHammerWhat it doesBuilding costs no materials, enemies leave you alone until provoked, and there are no raids.

Modifiers: -modifier

Valheim world modifiers
ArgumentLevelWhat it does
-modifier combat veryeasyLevelCombat: Very easyWhat it doesYou deal 125% damage and enemies deal only 50%.
-modifier combat easyLevelCombat: EasyWhat it doesYou deal 110% damage and enemies deal 75%.
-modifier combat hardLevelCombat: HardWhat it doesYou deal 85% damage, enemies deal 150%, and tougher enemies appear more often.
-modifier combat veryhardLevelCombat: Very hardWhat it doesYou deal 70% damage, enemies deal 200%, and tougher enemies appear more often.
-modifier deathPenalty casualLevelDeath penalty: CasualWhat it doesYou keep what you wear, the rest drops where you died, and you lose 1% of your skills.
-modifier deathPenalty veryeasyLevelDeath penalty: Very easyWhat it doesEverything you carry drops where you died and you lose 1% of your skills.
-modifier deathPenalty easyLevelDeath penalty: EasyWhat it doesEverything you carry drops where you died and you lose 2.5% of your skills.
-modifier deathPenalty hardLevelDeath penalty: HardWhat it doesWhat you wear drops where you died, everything else you carry is destroyed, and you lose 7.5% of your skills.
-modifier deathPenalty hardcoreLevelDeath penalty: HardcoreWhat it doesEverything you carry is destroyed and you lose all of your skills.
-modifier resources muchlessLevelResources: Much lessWhat it doesResources drop at about half the normal rate.
-modifier resources lessLevelResources: LessWhat it doesResources drop less than normal.
-modifier resources moreLevelResources: MoreWhat it doesResources drop more than normal.
-modifier resources muchmoreLevelResources: Much moreWhat it doesResources drop much more than normal.
-modifier resources mostLevelResources: MostWhat it doesResources drop at up to three times the normal rate.
-modifier raids noneLevelRaids: NoneWhat it doesRegular raids stop, though some night attacks can still happen.
-modifier raids muchlessLevelRaids: Much lessWhat it doesRaids come much less often.
-modifier raids lessLevelRaids: LessWhat it doesRaids come less often.
-modifier raids moreLevelRaids: MoreWhat it doesRaids come more often.
-modifier raids muchmoreLevelRaids: Much moreWhat it doesRaids come much more often.
-modifier portals casualLevelPortals: CasualWhat it doesEvery item can go through portals, even ones that are normally blocked.
-modifier portals hardLevelPortals: HardWhat it doesPortals can't be used while a boss is active.
-modifier portals veryhardLevelPortals: Very hardWhat it doesPortals are turned off completely.

Keys: -setkey

Valheim world keys
ArgumentKeyWhat it does
-setkey nobuildcostKeyNo build costWhat it doesBuilding pieces need no materials, though you still have to discover each recipe. Off means the world preset decides.
-setkey passivemobsKeyPassive enemiesWhat it doesEnemies don't attack until you provoke them. Off means the world preset decides.
-setkey nomapKeyNo mapWhat it doesNobody can open the map or the minimap, which makes the game harder. Off means the world preset decides.
-setkey playereventsKeyPlayer-based raidsWhat it doesRaids follow each player's own boss progress instead of the bosses the whole server has beaten. Off means the world preset decides.

Questions

Questions and answers.

What order do the world arguments go in?
-preset first, then each -modifier, then each -setkey. In our tests -preset cleared every modifier and key the world already had, so anything written before it was lost.
Do modifiers change a world that already exists?
Yes. In our tests the server applied -preset, -modifier and -setkey to the world at every start, an existing world as well as a new one. To keep a world's own settings, leave all three out: turn on Keep this world's own settings.
Which ports does a Valheim server use?
2456 by default, and Iron Gate's guide says Valheim also uses the port after it, so forward 2456 and 2457. With -crossplay, the guide says no port forwarding is needed.
Are the arguments case-sensitive?
No. In our tests the server accepted -preset Hard, -modifier Combat VeryHard and -setkey NoMap the same as the lower-case spellings.