CHECK_AVAILABLE_MARK

Autoexec

Settings & TechAlso: autoexec.cfg, autoexec file, auto execUpdated in November 2026
In short

An autoexec (autoexec.cfg) is a file of console commands that CS2 runs by itself every time the game starts. Players keep their binds and personal settings in it.

Autoexec.cfg is a plain text file with console commands, one per line. The game reads it at launch and applies everything in it: binds, crosshair, radar and sound settings, the position of the gun on screen. The name is short for “automatically executed.” Unlike any other config, it does not have to be called by hand.

In CS2 the file goes into the game folder, game/csgo/cfg. It can be made in any text editor, as long as it is saved with the .cfg extension rather than .txt. If the commands did not apply, there are three things to check: the file name, the folder and typos in the commands. Many players add +exec autoexec.cfg to their launch options to be safe.

There are two reasons to keep one. First, some things cannot be set in the menus — buying a full set of grenades with one key, for instance. Second, portability: one file restores everything after a reinstall or on someone else's PC, such as at a tournament. Commands that CS2 blocks on official servers will not work from an autoexec either.

How it sounds in a match
“Send me your autoexec — I want to see how you've got your nades bound.”

Questions and answers

Where do I put autoexec.cfg in CS2?

In game/csgo/cfg inside the folder where the game is installed. You can open it from Steam: the game's Properties, then Installed Files, then Browse. The file has to be named exactly autoexec.cfg.