Server Startup Parameters

Complete reference for all Valheim dedicated server startup parameters and launch options.

Valheim servers are configured through startup parameters (command-line arguments). On XGamingServer, these are managed through the Startup page.

Core Parameters

ParameterDescriptionExample
-nameServer name shown in browser-name "My Valheim Server"
-portServer port (uses port and port+1)-port 2456
-worldWorld name (creates new if doesn't exist)-world "MyWorld"
-passwordServer password (min 5 characters)-password "secret"
-publicShow in server browser (1=yes, 0=no)-public 1

World Modifier Parameters

ParameterValuesDescription
-presetdefault, easy, hard, hardcore, casual, hammer, immersiveApply a difficulty preset
-modifier combatveryeasy, easy, hard, veryhardCombat difficulty
-modifier deathpenaltycasual, veryeasy, easy, hard, hardcoreDeath penalty severity
-modifier resourcesmuchless, less, more, muchmoreResource gathering rate
-modifier raidsnone, muchless, less, more, muchmoreRaid frequency
-modifier portalscasual, hard, veryhardPortal item restrictions
-setkeynomap, playerevents, passivemobs, nobuildcostToggle special keys

Network Parameters

ParameterDescriptionExample
-crossplayEnable crossplay (Steam + Xbox + MS Store)-crossplay
-savedirCustom save directory path-savedir "/saves"
-saveintervalAuto-save interval in seconds (default: 1800)-saveinterval 900
-logFileCustom log file path-logFile "/logs/valheim.log"

Set Keys

Set keys enable special world rules:

KeyEffect
nomapDisable the map entirely
playereventsOnly trigger events near players
passivemobsCreatures don't attack unless provoked
nobuildcostBuilding requires no materials (creative mode)

Apply via startup parameter:

-setkey nomap -setkey nobuildcost

Common Configurations

Standard Public Server

-name "My Server" -port 2456 -world "MyWorld" -password "mypass" -public 1

Private Casual Server

-name "Chill Vikings" -port 2456 -world "CasualWorld" -password "secret" -public 0 -preset casual

Hardcore Server

-name "Hardcore Vikings" -port 2456 -world "HardWorld" -password "tough" -public 1 -preset hardcore -setkey nomap

Creative Building Server

-name "Build Server" -port 2456 -world "Creative" -password "build" -public 0 -setkey nobuildcost -modifier raids none

Configuring on XGamingServer

Go to Startup

In the sidebar, click Startup.

Set parameters

Most parameters are exposed as form fields — server name, port, world name, password, crossplay toggle, and world modifiers.

Restart your server

Changes take effect on the next server start.

📝 Note: World modifiers set via startup parameters are applied when a world is first created. To change modifiers on an existing world, use in-game console commands. See World Modifiers.

See also: Configure World Modifiers | Change Difficulty | Crossplay

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Valheim server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page