logo
Menu
CS2
CS2
Game Reviews
Updated 2026-03-16
5911

CS2 Autoexec Setup: Step-by-Step Guide to Creating a CFG File

Avid gamer and PC enthusiast who enjoys intense Valorant and CS2 gaming sessions or taking it slow with serene farming games or simulation games. When not crafting custom rigs or...
5 min read

Every CS2 player has their own quirks and unique settings, from custom key binds to unconventional video configurations. Manually adjusting these every time can be tedious. However, using config files, you can automate the process effortlessly. Here’s how to create a CFG file and set up an autoexec function in CS2.

Contents
CS2 Autoexec Setup: Step-by-Step Guide to Creating a CFG File
CS2
Tweet Share on Facebook Copy link Send via Email
22 Bet

CS2 Autoexec Explained: What It Is and How It Works

A CS2 autoxec is a config file (CFG) is a set of commands that get “automatically executed” upon startup. It eliminates the need for manually configuring and tweaking every single setting that typically gets reset when the game is closed.

Most players use it to customize their crosshair, ViewModel settings, binds, HUD, and resolutions. However, you can pretty much add any setting/command you like, and it should still work once you launch CS2.

CS2 Autoexec Setup: Step-by-Step Guide to Creating a CFG File

Guide: How to Create and Use a Config File

While creating a config file can seem intimidating, it’s actually made just using the built-in Windows notepad app.

  • Click on the Windows search bar and type in “Notepad” and open it.
  • Type or paste in all of the commands you want to include in the autoexec file.
  • Go to “File” and click on “Save as.”
  • Name the file “autoexec” and set the file type as “All Files.”

Now, it’s time to move the autoexec file to the CS2 install location.

CS2 Autoexec Setup: Step-by-Step Guide to Creating a CFG File
  • Open Steam, right-click on the Counter-Strike 2 game from your library, and select “Properties.
  • Navigate to “Installed Files” and click “Browse.”
  • Now, open the following folders “game” > “csgo” > “cfg”
  • You are now in the config folder. Move the autoexec file into this folder and close it.

Despite already being in the CFG folder, it won’t automatically launch by itself. For this, you’ll need to:

CS2 Autoexec Setup: Step-by-Step Guide to Creating a CFG File
  • Open Steam, right-click on the Counter-Strike 2 game from your library, and select “Properties.
  • Under “General,” find “Launch Options” and type in “+exec autoexec.cfg”. Close settings and launch CS2.

There you have it, all of the commands you included in your autoexec file should automatically be applied whenever you open CS2.

How to Load and Use Another Player’s CFG File in CS2?

One of the biggest advantages of config files is their flexibility. They allow players to instantly apply their preferred settings, even when switching between different computers or setups. Plus, you’re not limited to just your own setup. You can simply download and use config files from other players. In fact, if you wanted to, you could grab s1mple’s CFG file and use it as your own.

To do that, you’ll need to:

  • Find and download another player’s CFG file (or ask for it if it’s from a friend).
  • Copy the file and paste it into the CFG folder I’ve mentioned above. It’s “game” > “csgo” > “cfg.”
  • Now, head over to Steam, right-click on Counter-Strike 2, and select “Properties.”
  • Under “General,” find “Launch Options” and type in “+exec *name*.cfg”. Just replace “*name*” with the CFG file name, and you should be good to go.

Note: If you don’t want to use the CFG file as an autoexec, simply leave it in the same folder, then launch CS2. Once in a game, open the console, type in “exec *name*” and press Enter to launch.

How to Modify and Customize a CS2 Config File?

Since the config file is made using Notepad or any text editor, we can also use the same applications to customize it. All you have to do is double-click on any CFG file and rewrite, add, or delete any of the commands to your liking. It’s that simple.

Just remember to replace the Steam CS2 Launch Options command if you change the name of an autoexec!

Tweet Share on Facebook Copy link Send via Email
Anwell

More articles

Complete CS2 Console Commands Guide in 2026
CS2 console commands are a powerful tool that allows players to customize their gameplay, change settings, and even optimize performance using the developer console. Typing these commands in can allow for on-the-fly changes to server settings and can even provide access to hidden game settings. So today, we’re tackling the most popular CS2 console commands and how to use them.
February 21, 2025
CS2 Launch Options in [year]
CS2 Launch Options in 2026
November 01, 2024
How to play CS2 on Mac? Steps to Take
How to play CS2 on Mac? Steps to Take
November 29, 2024
What Are the Cheapest CS2 Knives in 2026?

CS2 knives are some of the most appreciated items in the game. Although guns are usually the idea you have in your head when you think about CS2, knives are also great because they provide melee benefits for the players. However, some of the best knives in the game have a discouraging price tag, while the cheaper ones are something players avoid as they consider them lower quality. But if you know where to look and you’re in desperate need of this item, finding the cheapest CS2 knife will let you enjoy the fun without breaking the bank. This post will reveal the most affordable CS2 knives you can buy this year.

October 31, 2024
How to Use Rainbet: Beginner Guide to Registration, Deposits & Betting (2026)

Many users search for guides explaining how to use Rainbet before creating an account or depositing funds. Rainbet is an online crypto gambling and betting platform that may offer casino games, sportsbook betting, live casino features, and esports betting options depending on the user’s location and account access.

Like many online gambling platforms, Rainbet typically requires users to register an account, complete any required verification steps, and deposit supported funds before accessing betting or gaming features. However, platform availability can vary depending on local gambling laws, regional restrictions, and updates to the platform’s Terms and policies.

Users should also understand that gambling involves financial risk and outcomes are never guaranteed. Before using any online betting platform, it is important to review local regulations, read the latest platform Terms, and only participate with money that can afford to be lost.

This article is for informational purposes only and does not constitute legal advice. Online gambling laws vary by country and may change over time. Users should check local regulations and Rainbet’s latest Terms before using the platform. Gambling involves financial risk. Users should only gamble with money they can afford to lose.

May 26, 2026
Top 7 Most Expensive Skins in CS2 in [year]
Top 7 Most Expensive Skins in CS2 in 2026
October 10, 2024
How to Use Rainbet: Beginner Guide to Registration, Deposits & Betting ([year])
How to Use Rainbet: Beginner Guide to Registration, Deposits & Betting (2026)
May 26, 2026
Top 7 Most Expensive Skins in CS2 in [year]
Top 7 Most Expensive Skins in CS2 in 2026
October 10, 2024