How to Make Autoexec CS2: Setup Guide for Custom Commands

Posted on 9 September 2026 | 11
News

Setting up a customized configuration file in Counter-Strike 2 ensures that your preferred settings load automatically every time you start the game. By creating an autoexec file, players can lock in essential console commands, custom keybinds, and visual tweaks without entering them manually in every session. Understanding the proper creation and file placement is key to optimizing your overall gameplay experience.

Creating and Saving Your CS2 Autoexec File

To begin, open a basic text editor such as Notepad on your computer to write your desired commands. Input each individual console command on a separate line to ensure the game processes them cleanly. Save the document with the exact name autoexec.cfg and set the file type to All Files so Windows does not append a text extension.

Locating the Correct CS2 Directory

Once your configuration file is ready, you must place it in the designated Counter-Strike 2 system directory. Navigate through your Steam installation path to reach the game's cfg folder, typically located under steamapps, common, Counter-Strike Global Offensive, game, csgo, and cfg. Placing the file in this specific location allows the game engine to detect your custom instructions seamlessly.

Configuring Steam Launch Options

To guarantee that Counter-Strike 2 runs your script upon launching, you should add a launch parameter in Steam. Right-click Counter-Strike 2 in your Steam library, navigate to Properties, and locate the General settings tab. In the Startup Options field, enter +exec autoexec.cfg so the engine automatically executes your settings when starting up.

Testing and Troubleshooting Your Commands

After launching the game, you can open the developer console to verify whether your configuration loaded properly. If your custom crosshair or network settings did not apply, manually type exec autoexec in the console to test the execution. Double-check that your file extension ends in cfg and that there are no syntax errors within your text file.