Skip to content
cs2.au
← Guides

How to create an autoexec.cfg in CS2

Put autoexec.cfg in game/csgo/cfg and test it with exec autoexec before adding it to your launch options.

Find the CS2 cfg folder

In your Steam Library, right-click Counter-Strike 2 and choose Manage → Browse local files. Open game, then csgo, then cfg. Create a plain-text file called autoexec.cfg. On Windows, show file extensions in File Explorer and check that it didn’t save as autoexec.cfg.txt.

Put a test message in the file

Add this line, save the file and open CS2. Type exec autoexec into the developer console. If you see the message, the game is reading the file. Add the settings you actually want, one command per line.

echo "autoexec loaded"

Copy a starter autoexec based on ArminC AutoExec

This short example uses radar and menu music settings from ArminC AutoExec, a community config released under CC0. Copy it into autoexec.cfg, save it and run exec autoexec in the developer console. The radar shows more of the map and the menu music starts at low volume. Adjust the values to suit you.

The full ArminC bundle is linked below. Open the ZIP and find its cfg folder. It has separate files for binds, mouse, crosshair, audio and more. Read through those settings and back up any autoexec.cfg you already have. Keep the arminc folder next to the bundle’s autoexec.cfg when you copy them into your game’s cfg folder.

// Radar and audio settings adapted from ArminC AutoExec (CC0-1.0)
// https://github.com/armync/ArminC-AutoExec
cl_hud_radar_scale "1.15"
cl_radar_scale "0.4"
cl_radar_icon_scale_min "0.7"
cl_radar_always_centered "0"
snd_menumusic_volume "0.04"
echo "autoexec loaded"

Run your autoexec at startup

Open the game’s Properties in Steam, then find Launch Options under General. Add the option below, separated by a space from any options you already use. Restart the game and check the console for your test message, then check that one of your settings took effect.

+exec autoexec.cfg

Browse servers →

All guides →