CS2/CS:GO Autoexec | How to Create an autoexec.cfg

A CS2 autoexec file is a great way to store buy binds, custom binds (like Jump Throw), crosshairs, and other settings.

Using an autoexec.cfg file makes it very easy to restore all your custom settings if you play on a different computer, reinstall Counter-Strike, or lose your settings for any other reason.

We'd recommend storing a copy of your autoexec online (Google Drive, iCloud, etc.) so you can access it anywhere and have a backup in case anything happens to your computer/Counter-Strike files.

Jump ahead with these links:

How to Create a CS2 autoexec.cfg File

To create and enable a CS2/CS:GO autoexec.cfg file, follow these steps:

  1. Open any text editor. We'll use Notepad as our text editor because it comes preinstalled Windows.
  2. Write or paste your binds into the text editor.
  3. Counter-Strike 2 (CS2) Binds In Notepad Text Editor
    Buy Binds and Other Useful CS2 Binds in Notepad
  4. In your Steam library, right-click on Counter-Strike 2.
  5. Click "Properties" in the popup.
  6. Counter-Strike 2 (CS2) Properties In Steam Library
  7. Select the "Installed Files" tab in the new popup, then click the "Browse" button.
  8. Counter-Strike 2 (CS2) Browse Files In Installed Files
  9. A file explorer will open at "[...Some Other Folders]\Counter-Strike Global Offensive". Double-click the "game" folder, then double-click the "csgo" folder and finally double-click the "cfg" folder.
  10. Copy the path of your CS2 cfg folder by clicking on it to highlight the full path and then pressing "CTRL" + "C" at the same time.
  11. Counter-Strike 2 (CS2) cfg Folder
  12. In Notepad, where you wrote your binds, click "File" -> "Save As".
  13. Paste the path of your CS2 cfg folder at the top of the popup to make sure we save our file in the correct folder.
  14. In the "File name" field, type "autoexec.cfg".
  15. Select "All Files" in the "Save as type" dropdown options.
  16. Click Save.
  17. Save Counter-Strike 2 autoexec.cfg in CS2 cfg folder
  18. To ensure Counter-Strike 2 loads your autoexec file every time you launch the game, we need to edit your CS2 launch options. As we did in steps 3 and 4, right-click Counter-Strike 2 in your Steam library and then click "Properties".
  19. Counter-Strike 2 (CS2) Properties In Steam Library
  20. The popup should open to the "General" tab. In the "Launch Options" field, type "+exec autoexec.cfg"
  21. Counter-Strike 2 (CS2) Launch Options In Steam

After completing the above steps, the settings in your autoexec file will work every time you launch Counter-Strike 2.

If your game was already open, relaunch it or open the developer console and type "exec autoexec.cfg".

How to Edit a CS2 autoexec.cfg File

If you already have a Counter-Strike 2 autoexec, follow these steps to edit it:

  1. Locate your autoexec.cfg file. It should be in your CS2 "cfg" folder. You can locate the "cfg" folder by:
    1. In your Steam library, right-click Counter-Strike 2.
    2. Click "Properties" in the popup.
    3. Counter-Strike 2 (CS2) Properties In Steam Library
    4. In the new popup, click the "Installed Files" tab.
    5. Click the "Browse" button on the "Installed Files" tab. A file explorer will open.
    6. Counter-Strike 2 (CS2) Browse Files In Installed Files
    7. Your autoexec.cfg file should be in the folder opened in the file explorer [...Some Other Folders]\Counter-Strike Global Offensive/game/csgo/cfg.
    8. Counter-Strike 2 (CS2) autoexec.cfg File Location
    9. Open the file in any text editor, such as Notepad.
    10. Add any settings, binds, etc., to your autoexec file.
    11. Press "CTRL" + "S" on your keyboard to save the file.

If your game is already open, you'll need to relaunch it or enter "exec autoexec.cfg" in the developer console for the changes to take effect.

If the settings in your autoexec file don't load when you launch your game, ensure you have"+exec autoexec.cfg" set in your CS2 launch options.

What is an autoexec.cfg in Counter-Strike 2

In Counter-Strike 2, an autoexec is a config file that can store settings, key binds, buy binds, crosshairs, and more. With "+exec autoexec.cfg" set in your CS2 launch options, the settings in your autoexec file will be applied every time you launch your game.

An autoexec file lets you to quickly set your settings if you're playing on a different account or computer. Just place a copy of the file in your game's cfg folder and set the launch options to "+exec autoexec.cfg" or enter the command "exec autoexec.cfg" in the developer console to load your settings.

An autoexec file can also store settings and binds that aren't available in the CS2 settings UI. For example, you can store a jump-throw bind that throws your smoke at the apex of your jump every time for perfectly precise jump-thrown set smokes.

Lastly, using an autoexec file makes copying the settings of friends, streamers, and pro CS2 players easier.