CSGOLuckTools
EN
Trade skins

CS2 autoexec generator

Tick the settings you want and get a ready-to-use autoexec.cfg. Every line is a command that exists in CS2 today, with values held inside the game's own limits.

Only live commandsDownload .cfgClamped to real ranges

Show

Mouse

In-game sensitivity. Multiply by your DPI for eDPI.
Scales sensitivity while scoped.

Gameplay

Press once to crouch, again to stand.
Press once to walk, again to run.
Zooms back in after a shot with a scoped rifle.
1 lets you take off an M4A1-S or USP-S silencer with right click.

Performance

0 is no limit. The game's dump lists 120 as the default.
Stops menus using a whole GPU.
Only has an effect when the game's low-latency mode (r_low_latency) is on. Test it before keeping it.

On-screen info

Replaces net_graph, which no longer exists.

HUD and radar

0.9 to 1.1.
0.25 to 1. Smaller shows more of the map.
0.8 to 1.3.
0 lets the radar use the whole map area instead.
0 hides the new-player lessons.

Audio

0 to 1.
0 to 1. The default is 0.04.
0 to 1.
0 to 1.
0 to 1.
0 to 1.
0 to 1.
1 is the default. Set 0 to keep sound while tabbed out.
0 to 1.

Viewmodel

60 to 68.
-2 to 2.5.
-2 to 2.
-2 to 2.
Replaces cl_righthand, which no longer exists.

Network

Default is 80000. Raising it is a CS:GO habit. Leave it off unless a connection problem calls for it.

Binds

Need buy binds or more keys? Build them with the bind generator and paste its lines under these.

File

autoexec.cfg

6 lines
// autoexec.cfg built with CSGOLuck Tools
echo "autoexec.cfg loaded"

// Mouse
sensitivity 1.25

// Performance
fps_max 0

// On-screen info
cl_showfps 1

// Audio
volume 0.5

host_writeconfig

Save it in game\csgo\cfg inside your CS2 folder, then add +exec autoexec to your launch options.

What an autoexec.cfg does

An autoexec.cfg is a plain text file of console commands, one per line. CS2 runs it when you tell it to, usually at launch, so your settings are applied the same way every time and on any PC you copy the file to. It does nothing that typing the lines into the console would not do, which is also why it is safe: no game files change.

The game does keep your menu settings, in your Steam userdata folder and Steam Cloud. An autoexec is for the rest: values you want written down, kept in one place and easy to move. To make the game run the file, add +exec autoexec to your launch options. The CS2 launch options builder has that entry ticked by default.

What goes in it

The builder offers 36 settings in 8 groups, plus a few single-key binds. Every one is a command or variable that exists in CS2 (checked against the game's data, dated 28 October 2026), and every number is held inside the game's own limits. Defaults and ranges for any of them are in the CS2 console commands list.

GroupSettingsFor example
Mouse2sensitivity zoom_sensitivity_ratio
Gameplay4option_duck_method option_speed_method cl_sniper_auto_rezoom
Performance3fps_max fps_max_ui engine_low_latency_sleep_after_client_tick
On-screen info4cl_showfps cl_hud_telemetry_ping_show cl_hud_telemetry_frametime_show
HUD and radar8cl_hud_color hud_scaling cl_radar_scale
Audio9volume snd_menumusic_volume snd_mvp_volume
Viewmodel5viewmodel_fov viewmodel_offset_x viewmodel_offset_y
Network1rate

A starter file

With the builder's default ticks, this is what you get. It is a real output, not a mock-up:

// autoexec.cfg built with CSGOLuck Tools
echo "autoexec.cfg loaded"

// Mouse
sensitivity 1.25

// Performance
fps_max 0

// On-screen info
cl_showfps 1

// Audio
volume 0.5

host_writeconfig

Three things to notice. Comments start with //, so you can add your own notes. The echo line prints a message in the console, which is how you confirm the file ran. And host_writeconfig at the end saves the result to config.cfg, so the values stay if the autoexec is missing next time.

Mouse, crosshair and viewmodel lines

The first line in the Mouse group is your sensitivity, and the number is the in-game value, not your eDPI. Multiply it by your mouse DPI to get eDPI and see where you stand with our eDPI calculator. If you are coming from Valorant, the Valorant to CS2 sensitivity converter gives you the number to paste.

Two other builders make lines you can paste under the ones here. The CS2 crosshair generator outputs the console commands for a crosshair, and the CS2 viewmodel generator outputs the four viewmodel commands with a preview. Buy keys and grenade keys come from the CS2 bind generator.

Where to put autoexec.cfg

Save the file here, in the cfg folder next to your CS2 files:

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

~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/autoexec.cfg

Your Steam library may be on another drive. In Steam, right-click CS2, choose Manage, then Browse local files, and open game, csgo, cfg. If there is no cfg folder, create one.

How to use it

  1. Tick what you want above and adjust the values.
  2. Click Download autoexec.cfg, or copy the text into a new file with that name.
  3. Put it in the cfg folder shown above.
  4. Add +exec autoexec to the CS2 launch options in Steam.
  5. Start the game and open the console. If you left the echo line on, you will see autoexec.cfg loaded.

Old lines that fail in CS2

If you are carrying an old CS:GO autoexec, these lines do nothing: the commands are not in CS2's command list (checked against files dated 28 October 2026).

CommandWhat it wasUse instead
net_graphOn-screen network and FPS graphcl_showfps and the cl_hud_telemetry_* cvars
cq_netgraphOften passed around as the net_graph replacementIt is not a CS2 command. Use cl_showfps and cl_hud_telemetry_*
cl_cmdrateClient command rateNothing to set. The game manages its own update rates
cl_updaterateServer update rateNothing to set. The game manages its own update rates
cl_righthandLeft or right handcl_prefer_lefthanded
cl_bobamt_latSideways viewmodel bobNothing. The bob cvars are gone
cl_bobamt_vertVertical viewmodel bobNothing. The bob cvars are gone
cl_bob_lower_amtWeapon lower bobNothing. The bob cvars are gone
cl_bobcycleBob cycle lengthNothing. The bob cvars are gone
cl_usenewbobSwitches viewmodel bob styleNothing. The bob cvars are gone
viewmodel_recoilViewmodel recoil amountNothing. The cvar is gone
m_rawinputRaw mouse inputNothing to set in the console
cl_lagcompensationLag compensation toggleNothing. It cannot be turned off from the client
cl_predictClient prediction toggleNothing. It cannot be turned off from the client
voice_scaleVoice volumesnd_voipvolume
voice_enableVoice on or offvoice_modenable
cl_crosshaircolorPreset crosshair colour 0 to 5cl_crosshaircolor_r, _g, _b and _a
cl_grenadepreviewGrenade trajectory previewsv_grenade_trajectory_prac_pipreview on a practice server

FAQ

Where does autoexec.cfg go in CS2?

In the game's cfg folder: Steam, then steamapps, common, Counter-Strike Global Offensive, game, csgo, cfg. The folder is still called Counter-Strike Global Offensive. The quickest way there is to right-click CS2 in Steam, choose Manage, then Browse local files, and open game, then csgo, then cfg.

How do I make CS2 run my autoexec?

Save the file as autoexec.cfg in that folder and add +exec autoexec to your launch options. The launch option is a safety net: if the file already ran at startup, running it again is harmless.

Why do my settings not stick without an autoexec?

CS2 keeps your in-game settings in your Steam userdata folder and Steam Cloud, so they follow the account rather than a file you can see. An autoexec is a plain text file you control, so it re-applies the same values every launch and is easy to copy to another PC.

Why does the generator not offer cl_cmdrate, cl_updaterate or net_graph?

They are not in CS2's command list, so typing them only prints an error. Use cl_showfps and the cl_hud_telemetry commands to see FPS, ping and packet loss. See the removed list below for the full set.

Do I need host_writeconfig at the end?

It saves your current settings to config.cfg so they carry over if the autoexec is missing next time. It is optional, and the generator includes it by default.

Can an autoexec get me banned?

No. A cfg file runs ordinary console commands. Cheat-protected commands will not run on servers where cheats are off, and Valve's rule on binds with several input actions is covered on our bind generator page.

More CS2 tools