GuavaHost
Language & currency
Client AreaGame Panel Toggle navigation
Games All Games
Minecraft JavaMinecraft BedrockMinecraft GeyserRustRuneScape: DragonwildsPalworldValheimValheim + BepInExARK: Survival EvolvedARK: Survival AscendedProject ZomboidEnshroudedDon't Starve TogetherCounter-Strike 2TerrariatModLoaderHytaleMulti-Game ServerDiscord Bot Hosting
Navigation PricingReviewsHelp CenterSupport Company About UsFAQRefer to earnSLATerms of ServicePrivacy Policy
Language & currency
Client AreaGame Panel

Editing server.cfg: CS2 Server Settings Explained

Your CS2 server reads its settings from a file called server.cfg, and learning a handful of key values there lets you set the server name, a password, the game mode, and the round rules exactly how you want them.

2 min read · Updated Sep 24, 2026 · By GuavaHost Team

Where server.cfg lives

The main config file is game/csgo/cfg/server.cfg. The easiest place to edit it is Server properties under Game tools in your server menu at customer.guavahost.com, which opens it as plain text with a Save changes button. You can also open it on the Files tab. If it is not there yet, create it: the Files tab has no new file button, so make a server.cfg on your computer and upload it into game/csgo/cfg/ with Upload files, or create it over SFTP. CS2 runs the commands in this file automatically each time a map loads, so it is the right home for settings you always want on.

Before a big edit, take a backup on the Backups page. Restoring later overwrites current files, so a snapshot is a quick undo button.

The essential settings

Add these lines to server.cfg, one per line, each value in quotes where shown:

  • hostname "My GuavaHost CS2 Server" sets the name shown in the browser.
  • sv_password "letmein" makes the server private. Leave it empty (sv_password "") for a public server.
  • rcon_password "somethingLong" lets you send admin commands remotely. Keep it long and secret.
  • sv_lan "0" keeps the server visible on the internet rather than LAN only.
  • sv_cheats "0" should stay off for normal play.

Choosing a game mode and type

CS2 picks a mode from two values, game_type and game_mode, which work as a pair:

  • Competitive: game_type 0, game_mode 1
  • Wingman (2v2): game_type 0, game_mode 2
  • Casual: game_type 0, game_mode 0
  • Deathmatch: game_type 1, game_mode 2
  • Arms Race: game_type 1, game_mode 0
  • Custom: game_type 3, game_mode 0

Set the pair that matches the mode you want. Custom is the base for most community plugins and practice setups.

Round and economy settings

These common values shape how a match feels:

  • mp_maxrounds "24" sets the rounds in a match.
  • mp_roundtime "1.92" and mp_roundtime_defuse "1.92" set round length in minutes.
  • mp_freezetime "15" is the buy time before a round starts.
  • mp_startmoney "800" and mp_maxmoney "16000" control the economy.
  • mp_friendlyfire "1" turns team damage on.

A word on tickrate

You may have read that you must pay for a "128 tick" CS2 server. That advice is left over from CS:GO. CS2 replaced fixed tickrate with a sub-tick system, where the game records the exact moment you fire or move regardless of the server tick. There is no -tickrate setting to change in CS2, and every GuavaHost CS2 server already uses sub-tick, so you are not missing anything by leaving it alone.

Applying your changes

Most values load when a new map starts. To apply them right away, open the Console tab and type exec server.cfg, or restart the server with Restart at the top of the server page. A few settings, like hostname, only take full effect after a map change or restart, so when in doubt, restart.

Still stuck? Jump into our Discord at discord.gg/GuavaHost and the team will help you out.

  • cs2
  • server.cfg
  • configuration
  • game-modes
  • tickrate

Host a Counter-Strike 2 server From $2.99/mo, with instant setup and DDoS protection.

Still need help? Our team is online 24/7 to answer questions.

Contact support

Related guides

More from Counter-Strike 2.

  • Play Steam Workshop maps on your CS2 server

    Host any Workshop map or collection by its ID: run host_workshop_map in the Console, or add it to Custom Parameters so it loads on every start.

    5 min

  • How to Connect to Your CS2 Server

    Connecting to your Counter-Strike 2 server takes two things: your server's IP and port from the control panel, and the in-game developer console, where you type one connect command to join.

    2 min

  • What Is a GSLT and Why Your CS2 Server Needs One

    A Game Server Login Token (GSLT) is a free code from Steam that publicly identifies your CS2 server, and without one your server cannot appear in the community server browser or accept internet players.

    2 min

  • Installing CS2 Plugins with Metamod and CounterStrikeSharp

    Almost every CS2 plugin runs on two pieces of software: Metamod:Source, which hooks into the game, and CounterStrikeSharp, which lets plugins be written in C#, so you install those two first and then drop plugins on top.

    3 min

  • Setting Up Practice, Retake, and Surf Servers in CS2

    With a few config files and the right plugins, one CS2 server can become a nade-practice range, a retake trainer, or a surf map, and this guide covers the key settings for each.

    2 min