Skip to content
Counter-Strike 2
Game Configurator

Counter-Strike 2 Server Configuration Generator

Use the CS2 server config generator to create server.cfg for your Counter-Strike 2 server online. Describe the server you want in your own words or set every option yourself, and watch the file update live. Free and no sign-up required; copy, download or share it via a link.

Built by Florian Galz

Example result

Example: the generated server.cfg

You set the options using a form or AI Easy Mode, and the generator creates the finished server.cfg for Counter-Strike 2 live. Below are the first lines of the default configuration; your file contains your values and all other settings.

Example · Default configuration

Output

server.cfg
// Counter-Strike 2 — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/cs2/config-generator // Server basicshostname "ZAP Counter-Strike 2"sv_password ""sv_setsteamaccount ""mapgroup "mg_active"game_alias "competitive"game_type "0"game_mode "1"tv_enable 0 // Rounds & timemp_maxrounds 30
  • +26 rowsYou can copy or download the complete file in the generator; the sample lines here only show the beginning.

Features

What the CS2 server config generator can do

A form for your server.cfg and game mode files, AI that understands requests in your own words, and the finished file always in view.

4 config files in one tool

Switch between server.cfg, Competitive (gamemode_competitive.cfg), Premier / TMM (gamemode_competitive_tmm.cfg) and Wingman (gamemode_competitive2v2.cfg) at the top of the generator. Each profile has its own settings.

31 server.cfg settings in 7 categories

Server name, password, GSLT, map and game mode, rounds and timings, economy, teams and friendly fire, bots, RCON and sv_cheats, plus gravity and overtime, each with a brief explanation next to the field.

Describe your server in your own words

In “Simple” mode, describe your server, for example, “Competitive 5v5 with GSLT”. The AI suggests suitable values and explains each change, and you choose which ones to apply.

Live preview of server.cfg

Every change appears immediately in the file preview. Changed lines are highlighted so you can see what differs from the defaults.

Import existing server.cfg

Upload your file (up to 2 MB) or paste its contents. Recognized settings appear in the form; the generator appends other commands at the end of the file on export. Comment lines (//) are not carried over.

Free, no sign-up, passwords stay private

Copying, downloading, and sharing work without an account. Your server password, RCON password, and GSLT are never included in a share link or sent to the AI in “Simple” mode.

Guide

How to create your CS2 server.cfg

Six steps from choosing a profile to getting the finished file onto your CS2 server.

Step 1

Choose a config file

Select a profile at the top of the generator: server.cfg, Competitive, Premier / TMM or Wingman. The preview, download and share link always apply to the selected profile.

Step 2

Import an existing file (optional)

Use the import icon in the toolbar to upload your current file or paste its contents. The generator adds recognized values to the form.

Step 3

Describe the server or set values

In “Simple” mode, describe your server in your own words and apply the AI suggestions you want. In “Advanced” mode, set each option yourself, organized by category.

Step 4

Check live preview

The finished file appears next to the form. On smaller screens, expand the preview below the form. Changed lines are highlighted.

Step 5

Copy, download, or share

Copy the contents, download the file, or create a share link. The server password, RCON password, and GSLT are excluded from the link.

Step 6

Upload to the server

Upload the file to your server’s game/csgo/cfg/ folder and restart the server, or run “exec server.cfg” in the console. For a ZAP-Hosting CS2 server, the server name, password, GSLT, and game mode are set from the panel on every startup. Change these basic settings there or via direct transfer after signing in.

Setup

File location & usage

Two ways to get the config onto a server: upload it yourself or transfer it with one click through our panel.

The manual method

Upload yourself

  1. 1

    Download file

    Download the generated server.cfg using the button above.

  2. 2

    Upload via file manager or FTP/SFTP

    Place in game/csgo/cfg/server.cfg (Linux) or game\csgo\cfg\server.cfg (Windows).

  3. 3

    Apply changes

    Restart your server or run “exec server.cfg” in the console.

The ZAP-Hosting way

Transfer instantly, no upload required

Rent a Counter-Strike 2 server from us and transfer your settings directly from this page with one click.

  • No FTP, no file manager
  • Live in seconds
  • Undo anytime

Knowledge

What belongs in CS2 server.cfg—and what doesn’t

Four things that often cause confusion when setting up a CS2 server.

server.cfg and game mode files

The server.cfg contains your server’s basic settings. When a game mode such as Competitive runs, CS2 also applies values from the corresponding game mode file, such as gamemode_competitive.cfg. That’s why mp_maxrounds is set to 24 in the Competitive profile, while server.cfg defaults to 30.

Launch parameters aren’t cvars

CS2 sets the maximum player count (2 to 64), starting map, and additional launch parameters at server startup using -maxplayers, +map, and the command line. The generator includes them in the form but doesn’t write them to server.cfg.

GSLT for public servers

A Game Server Login Token is practically required for public servers. You can create one for free at steamcommunity.com/dev/managegameservers using App ID 730. The generator writes it to the file as sv_setsteamaccount. For a ZAP-Hosting CS2 server, the GSLT is loaded from the panel on every startup and overrides the file.

Use RCON and sv_cheats with care

An RCON password grants full admin access to the server; leaving the field empty keeps RCON disabled. sv_cheats is intended for practice or mapping servers and should never be enabled on a public server.

More tools

More CS2 tools for servers and players

Launch options, grenade lineups for your practice server, buy binds and crosshairs.

FAQ

Frequently asked questions about CS2 Server Config Generator

File location, game mode files, GSLT and security—quick answers.

Yes. The form, AI-powered “Simple” mode, import, live preview, copying, downloading, and share links all work without an account. You only need to sign in to transfer changes directly to a compatible ZAP-Hosting CS2 server.

On Linux, it’s at game/csgo/cfg/server.cfg relative to the server directory; on Windows, at game\csgo\cfg\server.cfg. The game mode files are in the same folder. Upload the file there and restart the server, or run “exec server.cfg” in the console. On a ZAP-Hosting CS2 server, the server name, password, GSLT and game mode are loaded from the panel at every startup and override the file. Change these basic settings in the panel or transfer them directly after logging in. Downloading the file alone won’t change anything on the server.

Yes. Use the import icon in the toolbar to upload a .cfg or .txt file up to 2 MB, or paste its contents. The generator adds recognized settings to the form and appends other commands, such as exec lines, at the end of the file on export. Comment lines (//) are not carried over.

The server.cfg contains the basic settings. Game mode files set values for their respective modes, such as mp_maxrounds 24 in the Competitive profile. The profile switcher lets you edit server.cfg, Competitive (gamemode_competitive.cfg), Premier / TMM (gamemode_competitive_tmm.cfg), and Wingman (gamemode_competitive2v2.cfg) separately.

Both are CS2 launch parameters (-maxplayers and +map), not server.cfg cvars. The generator shows them in the form so your setup is complete, but doesn’t write them to the file. The same applies to additional launch parameters.

A Game Server Login Token is practically required for public servers. Create one for free at steamcommunity.com/dev/managegameservers using App ID 730 and enter it in the generator’s GSLT field. The generator writes it to server.cfg as sv_setsteamaccount. For a ZAP-Hosting CS2 server, the GSLT is set from the panel on every startup; change it there or via direct transfer.

Describe the server you want in your own words, such as an aim or practice server with lots of rounds and short wait times. The AI suggests suitable values and explains each change. You decide which suggestions to apply; nothing changes without your confirmation.

The three fields are masked in the form. They’re never included in a share link or sent to the AI in “Simple” mode. A share link contains only the non-secret values you changed and the selected profile.

Any more questions?

Contact Support
Ready?

Get your Counter-Strike 2 server online today

Rent your Counter-Strike 2 server now and transfer this config with one click.

4.4/5 Trustpilot32,000+ Active serversSince 2010

No setup. No risk. Online in seconds.

Flexible TermCancel anytimeOnline in 60 seconds

Looking for more tools? View all CS2 tools