BlogCS2CS2 Autoexec Config Guide, How to Create cfg File

CS2 Autoexec Config Guide, How to Create cfg File

Admin1/1/2025
copy image
Copy Link

Beginner players often face the problem when the CS2 config is repeatedly reset for inexplicable reasons when starting the game. In this case, setting up and using Autoexec will significantly help you.

In this article, we are going to tell you how to save your settings to the config file, how to launch the game CFG of some other person, and also how you can reset game settings with the help of Autoexec.

What is CS2 Autoexec?

CS2 developers provided a brilliant opportunity for players to customize almost all existing settings. Players regularly try different screen resolutions, experimenting with mouse sensitivity, crosshair, model position, HUD, binds, etc.

Some Counter-Strike 2 settings are performed exclusively through the developer’s console. Occasional reset of game setup can become an absolute nightmare if you do not save them beforehand. To not set up everything again, there is an Autoexec file.

Autoexec — is a .cfg file where all your settings and commands are securely saved and automatically applied when you start CS2. Autoexec gives you a significant advantage, especially if you have several computers or decide to visit a LAN tournament in your city. Download your Autoexec config on a flash drive or place it online. After that, you can use it on your new computer. All settings, except for Video, will be automatically applied by Autoexec. Video setup should be manually adjusted. Just 1 minute and everything is done! You can play using your own commands without any issues.

Autoexec will not only optimize the application with your settings but also get an opportunity to use the settings of someone else, e.g. pro-players or your friends. So, if you want to feel yourself with awp as s1mple, download his Autoexec and upload it through the console. Over the course of time, you will be able to restore your previous setup as quickly.

How to create a Config File

To start with, you should set up the game. Then open the developer’s console and enter the command host_writeconfig name, meaning name - is the name of your config. Once you enter this command, name.cfg will be created.

host_writeconfig Configuration Created

To find name.cfg, just open Program FIles(x86)/Steam/userdata/Your steamID3/730/local/cfg/name.cfg , You can use third-party services to find your SteamID3.

steamID3 - This is what we need to find folder

Or retrieve your link to the trade offer. The only numbers that will be contained in this link are your SteamID3.

Trade URL includes your steamID3

Once you are done, name.cfg should be placed in the folder: Steam/steamapps/common/Counter-Strike Global Offensive/cs2/cfg .

How to use Config as Autoexec

The hardest part is behind. The only thing left is to install an automatic Autoexec application of our config every time you start the game. It can be done with the help of the +exec launch option.

Rename it into autoexec.cfg and add the +exec autoexec.cfg command to the game launch options. Go to Steam gaming library, click the right button of the mouse on CS2 and select Properties, then open the general tab, click the Set Launch Options button, enter +exec autoexec.cfg, and click OK.

+exec autoexec.cfg

Done! Your Autoexec will now be automatically applied when you start the game.

How can I launch someone’s CFG File?

Have you ever dreamed of playing with s1mple or ZywOo settings? To start with, you should download the config with a pro-player setup. Before proceeding to the below-mentioned steps, we advise you to save your personal autoexec beforehand, we have already told you how you can do this.

  1. Download the archive together with the settings file.
  2. Unzip the config file in any folder you like.
  3. Go to Steam/steamapps/common/Counter-Strike Global Offensive/cs2/cfg folder and place the downloaded config file there.
  4. Start the game, open the developer’s console (Button ~ by default), and write command exec name, where name stands for the name of the config file you downloaded.
  5. Video settings should be edited separately.

Done! To return your previous setup, write the command exec name, where the name stands for the name of your previous config file.

How can I edit the Config File?

Config is a simple txt file, where you can find lines containing commands for the game. The config file can be opened and edited with the help of simple Windows Notepad or Notepad++.

By default, the config file consists of standard console commands similar to those you enter in the developer’s console. If you need to update the config file, you can feel like a software developer for a few minutes and write them manually. However, we recommend you re-create the file through the developer’s console; it is much easier, and you are unlikely to make any mistakes writing a command.

ContactsYou can contact us using the online widget on this page or via contacts below
© Copyrights Eloboss 2025. All rights reserved.Eloboss isn’t endorsed or in any way affiliated with Valve Corporation, Riot Games, Inc., Electronic Arts, Blizzard Entertainment, Epic Games, NetEase Games and doesn’t reflect the views or opinions of anyone officially involved in producing or managing CS2, Counter-Strike 2, Deadlock, League of Legends, Valorant, Teamfight Tactics, Wild Rift, Dota 2, Apex Legends, Fortnite, Overwatch 2, Marvel Rivals. CS2, Counter-Strike 2, Dota 2 and Deadlock are registered trademarks of the Valve Corporation. League of Legends, Valorant, Teamfight Tactics and Wild Rift are registered trademarks of the Riot Games, Inc. Apex Legends is registered trademark of Electronic Arts. Fortnite is registered trademark of Epic Games. Overwatch 2 is registered trademark of Blizzard Entertainment. Marvel Rivals is registered trademark of NetEase Games. Any other marks are trademarks and/or registered trademarks of their respective owners.