Skip to content

How to Configure Your Counter-Strike 2 Server

You can customize your server via the config files in the /game/csgo/cfg/ directory.

Edit server.cfg

The server.cfg is the main configuration file of your server.

  1. Stop the server
    Stop your server via the dashboard.

  2. Connect via SFTP
    Connect to your server via SFTP or use the File Browser in the dashboard.

  3. Open server.cfg
    Open the file server.cfg at:

    /game/csgo/cfg/server.cfg
    /game/csgo/cfg/server.cfg
  4. Adjust settings
    Adjust the desired values (see table below).

  5. Start the server
    Save the file and start your server.

Important settings

SettingDescriptionExample
mp_maxroundsMaximum number of rounds24
mp_roundtimeRound time in minutes1.92
mp_roundtime_defuseRound time on defusal maps1.92
mp_freezetimeFreeze time at round start (seconds)15
mp_buytimeBuy time in seconds20
mp_startmoneyStarting money800
mp_maxmoneyMaximum money16000
mp_friendlyfireFriendly fire (0 = off, 1 = on)1
mp_autoteambalanceAuto team balance (0 = off, 1 = on)1
mp_limitteamsMax player difference between teams1
sv_alltalkEveryone can hear each other (0 = off, 1 = on)0

Example

mp_maxrounds 24
mp_roundtime_defuse 1.92
mp_freezetime 15
mp_buytime 20
mp_startmoney 800
mp_maxmoney 16000
mp_friendlyfire 1
mp_maxrounds 24
mp_roundtime_defuse 1.92
mp_freezetime 15
mp_buytime 20
mp_startmoney 800
mp_maxmoney 16000
mp_friendlyfire 1

Game mode configs

Each game mode has its own config file that is loaded when the mode is selected:

FileGame Mode
gamemode_competitive.cfgCompetitive
gamemode_competitive2v2.cfgWingman
gamemode_casual.cfgCasual
gamemode_deathmatch.cfgDeathmatch
gamemode_custom.cfgCustom
gamemode_armsrace.cfgArms Race
gamemode_demolition.cfgDemolition

Note

Game mode configs override the values from server.cfg. For example, if you want to change the round time in competitive mode, you need to edit gamemode_competitive.cfg.

Useful console commands

You can execute the following commands via the server console in the dashboard:

CommandDescription
mp_warmup_endEnd warmup phase
mp_restartgame 1Restart game immediately
changelevel de_dust2Change map
bot_kickRemove all bots
bot_add_tAdd bot to Terrorists
bot_add_ctAdd bot to Counter-Terrorists