Counter-Strike 2 configuration
Build a clean server.cfg for CS2, set secure passwords, customize hostnames, and configure the settings that matter for community servers.
Need a server? Counter-Strike 2 server hosting
This guide covers the configuration files and key settings for your Counter-Strike 2 server. For first boot and connecting, see Getting started with your Counter-Strike 2 server.
The main config is at game/csgo/cfg/server.cfg. CS2 inherits most cvars from CS:GO with small differences. Admin permissions are not set here - they need a plugin, which the CS2 admin setup guide walks through.
What Goes in server.cfg
The blocks below are one file, split by what each group controls. Paste them in order, or take only the sections you need.
Identity and access
Everything that decides who can see the server and who can administer it.
hostname "My GSK CS2 Server"
sv_password ""
rcon_password "STRONG_RANDOM"
sv_region 1
sv_lan 0
sv_pure 1 | Setting | Notes |
|---|---|
hostname |
Server browser display |
sv_password |
Set for private |
rcon_password |
Required for remote management |
sv_pure |
1 enforces consistency; 0 allows custom assets |
sv_region |
0=US East, 1=US West, 2=SA, 3=EU, 4=Asia, 5=Aus, 6=ME, 7=Africa |
Match format
mp_maxrounds 24
mp_match_can_clinch 1
mp_halftime 1
mp_overtime_enable 1
mp_overtime_maxrounds 6
mp_overtime_startmoney 12500
mp_match_end_restart 0
mp_match_restart_delay 15 | Setting | Notes |
|---|---|
mp_maxrounds |
24 = first to 13 (MR12 competitive) |
mp_overtime_enable / mp_overtime_maxrounds |
1 / 6 = overtime in blocks of six rounds |
mp_overtime_startmoney |
12500 = money at the start of each overtime half |
Round timing
mp_warmuptime 30
mp_warmup_pausetimer 0
mp_freezetime 15
mp_buytime 20
mp_buy_anywhere 0
mp_roundtime 1.92
mp_roundtime_defuse 1.92
mp_timelimit 0
mp_round_restart_delay 5 | Setting | Notes |
|---|---|
mp_freezetime |
Seconds before round start |
mp_buytime |
Buy window in seconds |
mp_roundtime_defuse |
Round length in minutes on defuse maps |
Economy
mp_startmoney 800
mp_maxmoney 16000
cash_team_terrorist_loser_bonus 1400
cash_team_loser_bonus 1400 | Setting | Notes |
|---|---|
mp_startmoney / mp_maxmoney |
Opening money and the cash ceiling |
Teams, voice and friendly fire
mp_friendlyfire 0
mp_autoteambalance 1
mp_limitteams 2
mp_solid_teammates 1
mp_teammates_are_enemies 0
sv_alltalk 0
sv_voiceenable 1
sv_deadtalk 0
sv_full_alltalk 0
cl_disablefreezecam 1 For a casual server, mp_friendlyfire 0 and mp_autoteambalance 1 keep pubs friendly, and sv_alltalk 0 keeps team comms private.
Downloads and persistence
sv_downloadurl ""
sv_allowdownload 1
sv_allowupload 1
writeid
writeip Edits do not apply until you reload the config
After editing, run
exec server.cfgin the console or restart.
Practice Server Config
For a nade-practice or warmup setup, save this as game/csgo/cfg/practice.cfg and run exec practice in the console. CS2 practice commands explains a full nade practice config, plus rethrow, noclip and clearing smokes. For scrims and matches rather than practice, running competitive matches covers match configs and the plugins they need:
sv_cheats 1
mp_warmup_end
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_maxmoney 60000
mp_startmoney 60000
mp_buytime 9999
mp_buy_anywhere 1
sv_infinite_ammo 1
ammo_grenade_limit_total 5
sv_grenade_trajectory_prac_pipreview 1
sv_grenade_trajectory_prac_trailtime 8
mp_restartgame 1
bot_kick See where every grenade goes
sv_grenade_trajectory_prac_trailtime 8keeps each throw's flight path drawn for 8 seconds, the most CS2 allows, andsv_grenade_trajectory_prac_pipreview 1adds a picture-in-picture preview of the grenade. Older practice configs usesv_grenade_trajectory_prediction, which CS2 does not have, so that line does nothing.
FAQ
How do I pick the game mode?
A CS2 mode is a pair, not a setting. Competitive is game_mode 1 with game_type 0, Wingman is 2 and 0, Deathmatch is 2 and 1, and Arms Race is 0 and 1, and one wrong number drops your team somewhere nobody asked for. Both are Startup-tab fields.
Related guides
How to install plugins on a Counter-Strike 2 server
Install Metamod:Source and CounterStrikeSharp on a CS2 server, add admins in admins.json, verify the stack with meta list, and avoid the plugins that get GSLTs banned.
CS2 Bot Commands: Add, Kick and Remove Bots for Good
How to remove bots in CS2 so they stay gone, plus bot_add, bot_kick, bot_quota modes, difficulty, weapon limits and cheat-only bot commands.
How to add Steam Workshop maps for Counter-Strike 2
Subscribe to Workshop maps, reference target item IDs on your server, and seamlessly rotate community maps into your CS2 cycle.
How to Set Up a CS2 Retake Server: Valve's Retakes Mode or the cs2-retakes Plugin
Run a CS2 retake server: Valve's built-in Retakes mode (game type 0, mode 5) or the cs2-retakes plugin, with Startup values, paths and commands.

Need a Counter-Strike 2 server?
Deploy an instantly-provisioned Counter-Strike 2 server on high-clock hardware. DDoS protected, no contracts, cancel anytime.
From $11.50 /month