CS2 Autoexec Config: Create and Load autoexec.cfg

A CS2 autoexec is a plain-text file of console commands. Put your personal autoexec.cfg in game/csgo/cfg/ and verify that it loads before adding a long configuration.

Find the correct folder

  1. In Steam, open CS2 Properties > Installed Files > Browse.
  2. Open game/csgo/cfg/ inside that installation.
  3. Create a plain-text file named autoexec.cfg.
  4. Show file extensions so it does not become autoexec.cfg.txt.

The library root varies. Do not paste an old path that omits game/ or removes spaces from Counter-Strike Global Offensive.

Start with a small test

Add echo "CS2 personal autoexec loaded" on its own line. In the CS2 console, use exec autoexec.cfg to test the file. Check the message and any errors. To request it at startup, add +exec autoexec.cfg in Steam’s Launch Options and confirm the intended settings after restarting.

Add commands carefully

Put one command per line and keep a copy of your previous settings. Confirm names in current settings or a current command reference. Do not copy CS:GO interpolation, update-rate, particle or crosshair strings as guaranteed current CS2 optimizations. A file cannot bypass server-protected settings.

Troubleshoot loading

Check the exact extension, the installation you are launching and the folder path. Another config or menu action may overwrite a setting. Removing a line does not always restore the old value already saved by the game; restore that setting explicitly.

See our launch options guide, crosshair guide and performance guide. Reference checked on 6 November 2026: autoexec installation guide.

Frequently asked questions

Where does CS2 autoexec.cfg go?

Place your personal file in game/csgo/cfg inside the CS2 installation reached through Steam’s Browse control.

How do I make autoexec.cfg?

Create a plain-text file with the exact .cfg extension and put each intended console command on its own line.

How do I test whether it runs?

Add an echo message, execute the file with exec autoexec.cfg and check the console message and errors.

How do I load it at startup?

Add +exec autoexec.cfg to CS2’s Steam Launch Options and verify its effect after restarting.

Why does my file not execute?

Check the actual installation folder, file name and extension. autoexec.cfg.txt is not the intended name.

Can I copy all CS:GO commands into CS2?

No. Some names and supported behaviours changed. Confirm current commands instead of copying a legacy performance string.

Does an autoexec unlock server-protected commands?

No. A configuration file does not grant control over a matchmaking server.

Will deleting a line restore my previous setting?

Not necessarily. The game may have saved the applied value, so restore the original setting explicitly.

You need to accept marketing consents
Invalid email address.
Added successfully.