The autoexec.cfg is the file that applies your settings every time Counter-Strike 2 starts: mouse sensitivity, viewmodel, FPS cap, HUD colors, radar scale, net rate and binds. Building it by hand means remembering the exact name of every cvar and the valid range of each value. This tool organizes the most-used options into a form by category (Mouse, Viewmodel, Video, HUD and Net), with the default value highlighted and limits that prevent invalid values, and generates the file in real time in the key "value" format. You can enable ready-made binds, like jumpthrow (with the correct alias set) and clear-decals (r_cleardecals), choosing the key for each. The file ends with host_writeconfig, and you can download it to drop straight into the cfg folder. The cvars used are stable across updates, so the autoexec stays valid after patches.
How to use
Adjust, enable binds and download
Go through the groups (Mouse, Viewmodel, Video, HUD, Net) and adjust the cvars.
Enable the binds you want (jumpthrow, clear decals) and choose the keys.
Copy the contents or download autoexec.cfg and place it in the game cfg folder.
The file
What an autoexec.cfg is
A .cfg is just a text file with one cvar per line, in the format key "value". When you run exec autoexec in the console, CS2 executes each line in order, as if you had typed everything by hand. The advantage is reproducibility: the same sensitivity, the same viewmodel and the same networking every time the game starts, without touching the menu.
This tool groups cvars by function. Mouse holds sensitivity, zoom_sensitivity_ratio and m_rawinput; Viewmodel holds viewmodel_fov (54–68), the X/Y/Z offsets and the preset position; Video holds the fps_max and fps_max_ui caps; HUD/radar holds the HUD color and the radar scales; and Net holds rate. Each field respects the range the game accepts, and the generated file closes with host_writeconfig to write the changes to your profile.
Net: rate (higher is better on modern connections).
Examples
From the form to the file
A typical mouse and viewmodel block comes out like this in the autoexec: sensitivity "1.8"; zoom_sensitivity_ratio "1"; m_rawinput "1"; viewmodel_fov "68"; cl_righthand "1". A higher viewmodel_fov (68) pushes the gun back a little, freeing up screen space; m_rawinput "1" makes sure Windows does not interfere with mouse input.
The jumpthrow bind is not a single line, it needs a pair of aliases and then the bind on the chosen key. Checking the option and picking, say, the alt key, the tool emits: alias "+jumpthrow" "+jump; -attack; -attack2"; alias "-jumpthrow" "-jump"; bind "alt" "+jumpthrow". So holding the key jumps and releasing throws the grenade at the same instant, making the throw consistent.
In practice
Settings worth reviewing
Sensitivity is personal, but the game default (around 2) tends to be high for precise aim, many players sit between 1 and 2 with a large mousepad. A zoom_sensitivity_ratio of 1 keeps the same feel when scoping with rifles and the AWP. In Video, an fps_max that matches your monitor avoids tearing and stabilizes frametime; leaving it at 0 uncaps the FPS, which is not always better.
On the radar, a smaller cl_radar_scale (near 0.4) shows more of the map, useful for reading rotations, while cl_hud_radar_scale adjusts the size of the widget on screen. A higher rate is recommended on any current broadband connection. After generating, save the autoexec.cfg in the …/game/csgo/cfg folder and, if you want it to run on its own, add +exec autoexec.cfg to the Steam launch options.
Typical sensitivity: between 1 and 2 with a large mousepad.
zoom_sensitivity_ratio 1 = same feel when scoping.
An fps_max that matches your monitor stabilizes frametime.
+exec autoexec.cfg in Steam options runs it all on launch.
Embed
Use this tool on your site
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
Place the file in …/Counter-Strike Global Offensive/game/csgo/cfg. In-game, open the console (enable it in Settings → Game) and run exec autoexec to apply everything at once. To have it run on its own when the game starts, many add +exec autoexec.cfg to the Steam launch options, which guarantees the config loads on any PC.