How to autoexec cs2

6 min readWinio Team
cover

If you want full control over your settings in Counter-Strike 2, using an autoexec.cfg is one of the most effective tools available. An autoexec allows you to automatically apply your preferred settings every time the game launches. This ensures consistent crosshair, sensitivity, binds, and performance settings without manual reconfiguration.

Autoexec is also widely used by pro players, as it allows them to keep their settings consistent, and transfer them to new PCs easily. To follow CS pro performance, visit Winio and get 5 free predictions on their matches.

What Is Autoexec in CS2

An autoexec.cfg is a custom configuration file that contains console commands executed automatically when the game starts. It works alongside the default config.cfg, but serves a different purpose.

Autoexec vs config.cfg

  • config.cfg is managed by the game and updates frequently
  • autoexec.cfg is controlled by the player and remains consistent

Autoexec vs Launch Options

  • Launch options define what the game executes on startup
  • Autoexec defines which settings are applied

This combination makes autoexec essential for players who want stable and repeatable settings.

Who wins?

All Matches
All matches and predictions

How to Create and Enable Autoexec in CS2

Step 1: Locate the Config Folder

Navigate to:

C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg

Or, if you installed the game not on your system drive:
D:\SteamLibrary\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg

step_1

Step 2: Create autoexec.cfg

Make sure “File name extensions” are enabled in your view settings. This is needed so you can manually set the file extension to "cfg”: a configuration file.

step_2

Right click empty space, and create a new text document

step_2_1

Rename this new file to: autoexec.cfg .Make sure you remove “.txt” at the end and replace it with “.cfg”, so the file extension changes properly.

Make sure that file extensions are enabled in the “view” menu from the previous step so the file does not become “autoexec.cfg.txt”.

step_2_2

Step 3: Add a test command to autoexec

We will add a test command to the autoexec file so we can check CS2 loads it properly.

  • Open the autoexec.cfg file with any text editor, for example Notepad
  • Add the following line to the file:

cl_showfps 1

step_3
  • Save the file

Step 4: Make CS2 load autoexec on launch

In Steam:

  • Open Library
  • Right-click CS2 → Properties
  • Add to Launch Options:

+exec autoexec.cfg

step_4

Step 5: Launch CS2 and verify it works

If you’ve done everything correctly, you should see an fps counter on your screen once you launch the game.

step_5

If you do not see the fps counter, go over the steps one more time and check that you did everything correctly. Most commonly, the reasons for autoexec not working are:

  1. Incorrect file path. Make sure you created the file in “Counter-Strike Global Offensive\game\csgo\cfg”, as there are other paths that may also contain “cfg” folders.
  2. Incorrect file extension. Ensure file extensions are enabled in the view settings, and you replace the “.txt” extension with the “.cfg” extension. Windows should prompt you that you are about to change the file extension, and the icon of the file should change as well if you’re doing everything correctly.
  3. Launch options typos. Verify you are adding this line exactly: “+exec autoexec.cfg”. If you are using other launch options, make sure this line is separated with spaces from other launch options, and nothing else besides spaces.

Best Autoexec Commands for CS2

Now that autoexec is working properly, you can open the file with a text editor, and add the commands you want.

Crosshair Settings

  • cl_crosshairsize 2.5
  • cl_crosshairthickness 0.5
  • cl_crosshairgap -2
  • cl_crosshair_drawoutline 0
  • cl_crosshaircolor 5
  • cl_crosshairdot 0

These commands help maintain a consistent and visible crosshair.

Mouse and Sensitivity

  1. sensitivity 1.8
  2. zoom_sensitivity_ratio 1
  3. m_rawinput 1
  • m_rawinput 1 ensures direct mouse input without operating system interference
  • Consistent sensitivity is critical for accurate aiming

Movement and Binds

  • bind "mwheelup" "+jump"
  • bind "mwheeldown" "+jump"

Jumpthrow Bind

  • alias "+jumpthrow" "+jump;-attack"
  • alias "-jumpthrow" "-jump"
  • bind "v" "+jumpthrow"

This allows consistent grenade throws without timing errors.

Performance Settings

  1. fps_max 0
  2. fps_max_ui 60
  • fps_max 0 removes the FPS cap
  • UI is limited to reduce unnecessary load

Note: In CS2, most graphics settings are controlled through the in-game menu rather than console commands.

Viewmodel Settings

  • viewmodel_fov 68
  • viewmodel_offset_x 2.5
  • viewmodel_offset_y 2
  • viewmodel_offset_z -2

These settings adjust weapon position for better visibility.

Radar and HUD

  • cl_radar_scale 0.4
  • cl_radar_always_centered 0
  • cl_hud_radar_scale 1.1
  • cl_radar_icon_scale_min 0.6

Improves map awareness and visibility of teammates and enemies.

Example Autoexec.cfg

Here is a clean, ready-to-use configuration:

echo AUTOEXEC LOADED

// Crosshair

cl_crosshairsize 2.5

cl_crosshairgap -2

cl_crosshairthickness 0.5

cl_crosshair_drawoutline 0

cl_crosshaircolor 5

// Sensitivity

sensitivity 1.8

zoom_sensitivity_ratio 1

m_rawinput 1

// Movement

bind "mwheeldown" "+jump"

bind "mwheelup" "+jump"

alias "+jumpthrow" "+jump;-attack"

alias "-jumpthrow" "-jump"

bind "v" "+jumpthrow"

// Viewmodel

viewmodel_fov 68

viewmodel_offset_x 2.5

viewmodel_offset_y 2

viewmodel_offset_z -2

// Radar

cl_radar_scale 0.4

cl_radar_always_centered 0

// FPS

fps_max 0

Common Issues and Fixes

  • Incorrect file path. Make sure you created the file in “Counter-Strike Global Offensive\game\csgo\cfg”, as there are other paths that may also contain “cfg” folders.
  • Incorrect file extension. Ensure file extensions are enabled in the view settings, and you replace the “.txt” extension with the “.cfg” extension. Windows should prompt you that you are about to change the file extension, and the icon of the file should change as well if you’re doing everything correctly.
  • Launch options typos. Verify you are adding this line exactly: “+exec autoexec.cfg”. If you are using other launch options, make sure this line is separated with spaces from other launch options, and nothing else besides spaces.

Additional Tips

Make File Read-Only (Optional)

  • Prevents the game from overwriting settings
  • May block updates if changes are needed

Conclusion

An autoexec.cfg is one of the simplest and most effective ways to control your settings in Counter-Strike 2. It ensures consistency, saves time, and allows for deeper customization than the in-game menu alone.

Start with a basic setup, then gradually refine your commands based on your preferences and playstyle.

Is autoexec allowed in matchmaking and competitive play?

Yes. Autoexec files are fully allowed since they only apply client-side settings and do not provide unfair advantages.

Do I need to reapply autoexec after updates?

No. If set up correctly with launch options, it will run automatically every time you start the game.

Should I make my autoexec.cfg read-only?

Optional. It can prevent settings from being overwritten, but it may also block changes if you want to update your config.

CS2
Moscow Cyber Games 2026: Asian Qualifier
The Huns

The Huns

Today06:00
Rare Atom

Rare Atom

CS2
NODWIN Clutch Series #11
GenOne

GenOne

Today11:00
Zero Tenacity

Zero Tenacity

CS2
GLuck Moscow Cyber Games 2026 Closed Qualifier
Nemesis

Nemesis

Today12:00
C

Color

CS2
United21 Season 54
ReThink

ReThink

Today13:30
INFURITY

INFURITY

CS2
NODWIN Clutch Series #11
Butterfly

Butterfly

Today14:00
Black Phoenix

Black Phoenix

CS2
CCT Eu 2026 Challengers #5
WBT

WBT

Today14:00
mellren

mellren

CS2
CCT Eu 2026 Challengers #5
Noir Verse

Noir Verse

Today16:45
Bushido Wildcats

Bushido Wildcats

CS2
Moscow Cyber Games 2026: Asian Qualifier
The Huns

The Huns

Today06:00
Rare Atom

Rare Atom

CS2
NODWIN Clutch Series #11
GenOne

GenOne

Today11:00
Zero Tenacity

Zero Tenacity

CS2
GLuck Moscow Cyber Games 2026 Closed Qualifier
Nemesis

Nemesis

Today12:00
C

Color

CS2
United21 Season 54
ReThink

ReThink

Today13:30
INFURITY

INFURITY

CS2
NODWIN Clutch Series #11
Butterfly

Butterfly

Today14:00
Black Phoenix

Black Phoenix

CS2
CCT Eu 2026 Challengers #5
WBT

WBT

Today14:00
mellren

mellren

CS2
CCT Eu 2026 Challengers #5
Noir Verse

Noir Verse

Today16:45
Bushido Wildcats

Bushido Wildcats

Other Articles on CS 2

Why Predicting a 2–0 Is Harder Than Predicting the Match Winner

Why Predicting a 2–0 Is Harder Than Predicting the Match Winner

Predicting a 2–0 requires more than identifying the stronger team. Here’s why forecasting a clean sweep in a BO3 is significantly harder than simply picking the match winner.

Dead Hand Collection in CS2: All Skins, Gloves and Terminal Mechanics

Dead Hand Collection in CS2: All Skins, Gloves and Terminal Mechanics

The Dead Hand Collection brought 17 community-created weapon skins and 22 new glove finishes to CS2. Here’s how the collection works, which items it includes, and how the Terminal mechanics differ from traditional cases.

How to Change Gamma in CS2

How to Change Gamma in CS2

This guide explains how gamma and brightness work in CS2 and how to adjust them for better visibility. It also covers monitor and GPU settings that can improve clarity without hurting performance.

NiKo CS2 Settings 2026: Crosshair, Sensitivity & Config

NiKo CS2 Settings 2026: Crosshair, Sensitivity & Config

Copy NiKo's latest CS2 settings: 800 DPI, 720 eDPI, crosshair code, 1280x960 resolution, viewmodel, video settings, gear.

CS2 Interp Settings: Best Commands for Smooth Gameplay

CS2 Interp Settings: Best Commands for Smooth Gameplay

This guide explains how interpolation works in CS2 and why many old CS:GO commands are no longer relevant. It also shows how to use packet buffering to improve smoothness based on your connection stability.

CS2 Team Rankings 2026: Valve VRS Top 30 and Monthly Changes

CS2 Team Rankings 2026: Valve VRS Top 30 and Monthly Changes

Latest CS2 Valve VRS rankings for August 2026: top 30 teams, points, monthly changes, biggest risers, and how the official system works.

Esports World Cup 2026 CS2: Teams, Rosters, Matches & Prize Pool

Esports World Cup 2026 CS2: Teams, Rosters, Matches & Prize Pool

Complete EWC 2026 CS2 guide: dates, format, $2 million prize pool, all 32 teams and rosters, opening matches, favorites, and dark horses.