Every serious CS2 player ends up typing into the console sooner or later. It is faster than digging through menus, and some settings only live there. Here is how to switch it on and which commands actually matter.
How to enable the developer console
The console is turned off by default. Open Settings → Game and set Enable Developer Console (~) to Yes. From now on, press the ~ key (the one under Esc on most keyboards) to open and close it.
Prefer launch options? In your Steam Library, right-click Counter-Strike 2, open Properties and add -console to the launch options. The console will then open by itself every time the game starts.
The essential commands
These are the commands most players use every week. None of them need cheats, so they work on any server, including official matchmaking. Click a command to copy it, then paste it into the console and press Enter.
| Effect | Console command | Needs sv_cheats |
|---|---|---|
| Show FPS counter | – | |
| Show frame-time telemetry | – | |
| Remove the FPS limit (default 400) | – | |
| Crosshair size | – | |
| Crosshair gap | – | |
| Crosshair centre dot | – | |
| Weapon view-model FOV (54–68) | – | |
| View-model preset position (1–3) | – | |
| Join a server by IP | – | |
| Leave the server | – |
Show your FPS and frame time
Want to know if your PC keeps up? Type cl_showfps 1 for a simple FPS counter in the corner. Set it back to 0 to hide it.
For more detail, CS2 has a built-in telemetry overlay. cl_hud_telemetry_frametime_show 2 shows your frame time, which tells you more than FPS alone: a smooth, steady frame time feels better than a high but jumpy FPS number. You can also find these telemetry options in the game settings menu.
Looking for the classic net_graph from CS:GO? It does not exist in CS2, and old replacement commands you may find online don't work either — use the telemetry options instead.
fps_max: remove the frame cap
By default CS2 limits your frame rate with fps_max 400. On a strong PC with a high-refresh monitor, you can type fps_max 0 to remove the limit completely.
Unlimited is not always better, though. If your PC runs hot or your frame time jumps around, a fixed cap a bit above your monitor's refresh rate can feel smoother. Test both and trust what you see on the telemetry overlay.
Crosshair basics
You can build a crosshair in the in-game editor, but the console is quicker for small changes. The three cvars that matter most:
cl_crosshairsize— how long the lines are (try2for a small, clean cross).cl_crosshairgap— the space in the middle (negative values like-1make it tighter).cl_crosshairdot 1— adds a dot in the centre;0removes it.
Small and tight crosshairs are popular for precise headshots, while a bigger gap helps some players see the target behind the cross. There is no perfect setting — pick what keeps your eyes on the enemy's head.
Viewmodel: where your gun sits
The viewmodel is the weapon and hands you see on screen. Moving it out of the way gives you a cleaner view of the action. These are the allowed ranges:
| Command | Range | What it does |
|---|---|---|
viewmodel_fov | 54 to 68 | Higher = gun looks smaller and further away |
viewmodel_offset_x | -2.5 to 2.5 | Moves the gun left / right |
viewmodel_offset_y | -2 to 2 | Moves the gun forward / back |
viewmodel_offset_z | -2 to 2 | Moves the gun up / down |
viewmodel_presetpos | 1 to 3 | Quick preset positions |
A common start is viewmodel_fov 68 with a preset, then fine-tune the offsets until the gun stops blocking your view.
Save everything in an autoexec
Typing the same commands every session gets old fast. Instead, create a plain text file called autoexec.cfg in the game's cfg folder (inside your CS2 install, under game/csgo/cfg). Put one command per line, for example cl_showfps 1 and fps_max 0, and save it.
To load it, type exec autoexec in the console. If you want it to run automatically, add +exec autoexec.cfg to your launch options. Keep the file simple: only add commands you understand, and change one thing at a time so you know what made the difference.
Practice server commands
Practice commands are where the console gets powerful, with one big catch: most of them are cheat-protected. Start your own offline match or a private server, then type sv_cheats 1 first. They do not work in matchmaking or on someone else's server, where cheats stay off.
| Command | What it does | Needs sv_cheats 1? |
|---|---|---|
sv_cheats 1 | Unlocks cheat-protected commands for everyone on your server | Is the switch |
noclip / noclip 0 | Fly through walls; turn it off again | Yes |
god | Makes you invulnerable | Yes |
getpos, setpos x y z, setang pitch yaw | Print or set your position and view angles, handy for repeating a lineup | Yes |
sv_infinite_ammo 1 | Your active weapon never runs dry | Yes |
sv_rethrow_last_grenade | Throws your last grenade again from the same spot | Yes |
sv_showimpacts 1 | Shows bullet impact boxes (client in red, server in blue) | Yes |
sv_showimpacts_time 10 | How many seconds impacts stay visible | Used together with the one above |
sv_grenade_trajectory_prac_pipreview 1 | Picture-in-picture camera that follows your grenade | Practice-server command; turn cheats on to be safe |
sv_grenade_trajectory_prac_trailtime 8 | Seconds the flight path stays drawn (8 is the maximum) | Same as above |
mp_warmup_end | Ends warmup so the round can start | No |
mp_restartgame 1 | Restarts the game after one second | No (server settings only) |
mp_ignore_round_win_conditions 1 | The round never ends, even if a team is wiped | No |
mp_buy_anywhere 1, mp_buytime 9999, mp_freezetime 0 | Buy anywhere, with no time limit and no freeze time | No |
Server-side mp_ settings only apply when you are the host. On a community server you need admin rights, so on a public server they simply do nothing for you.
Bots
bot_kick removes all bots from your server. If bots keep coming back, set bot_quota 0 first and then run bot_kick. bot_place drops a bot at your crosshair, which is perfect for testing a peek or a spray. Bot commands are meant for your own practice match; as with the rest of this section, they do nothing useful in matchmaking.
Sound and mouse
Volume sliders in the menu are blunt. These cvars let you fine-tune what you hear, so footsteps stand out from the music.
| Command | Range / default | What it does |
|---|---|---|
volume | 0.0 to 1.0 | Master volume, e.g. volume 0.4 |
snd_roundstart_volume and snd_roundend_volume | 0.0 to 1.0 | Round start and end music |
snd_mvp_volume | 0.0 to 1.0 | MVP anthem |
snd_tensecondwarning_volume | 0.0 to 1.0 | Ten-second bomb warning |
snd_mute_losefocus | 0 or 1 | Mute the game when it is not the active window |
voice_scale | 0.0 to 1.0 | Volume of teammates' voice chat |
voice_enable | 0 or 1 | Voice chat on or off |
For your mouse, sensitivity 2.0 sets the base speed and zoom_sensitivity_ratio scales it while scoped. Careful with old CS:GO guides: m_rawinput was removed in CS2 and returns an unknown-command message, so don't put it in your autoexec.
Network and obsolete commands
Old CS:GO tutorials are full of network tweaks. Most of them are dead in CS2, which uses a sub-tick system instead of the old rate model.
| Command | Status in CS2 |
|---|---|
cl_cmdrate, cl_updaterate | Obsolete: gone with Source 2 |
cl_interp | Read-only: it reports the interpolation in use, you cannot tune it |
cl_interp_ratio | Still exists, but Valve says not to set it directly |
rate | Still active, default 786432 (the Unrestricted option); leave it alone |
net_graph | Removed: use the Telemetry options in Settings → Game |
The short version: if a guide tells you to paste a block of network commands, skip it. Check your ping and loss in the telemetry overlay instead.
Crosshair share codes
You do not have to rebuild a pro crosshair by hand. Share codes start with CSGO- followed by five groups of letters, and old CS:GO codes still work. Import one in Settings → Game → Crosshair, or type apply_crosshair_code CSGO-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx in the console with the real code. The import overwrites your current crosshair, so export your own code first. Size scales with resolution, so you may need a small tweak to size or gap afterwards.
Autoexec, host_writeconfig and resetting settings
host_writeconfig saves your current settings to config.cfg right away. It is a good last line for your autoexec, so the changes stick. To start from a clean slate, you can set a cvar back to its default value by hand, and unbindall wipes every key binding, so use it with care.
Troubleshooting: console will not open or settings reset
- The ~ key does nothing: enable Enable Developer Console (~) in Settings → Game, or bind Toggle Console to another key as described above.
- Autoexec is ignored: check the file is named exactly
autoexec.cfg(notautoexec.cfg.txt), sits in the cfg folder, and that your launch option reads+exec autoexec.cfg. - Commands say unknown: the command is probably a CS:GO leftover, such as
m_rawinput,cl_updaterateor the old net_graph. - Practice command refused: turn on
sv_cheats 1on your own server. It never works in matchmaking. - Settings reverted: run
host_writeconfigafter changes, and keep your important commands in the autoexec so they load every launch.
Put your settings to work
Fresh crosshair, smooth frames — now go play. Join a live community server with connect IP:PORT or simply pick one from our CS2 server list. Want to grind aim and nades first? Check our CS2 practice commands guide.
Command cheat sheet: copy and paste
| Goal | Command |
|---|---|
| Show FPS and ping | cl_showfps 1 |
| Remove the FPS cap | fps_max 0 |
| Move the gun on screen | viewmodel_fov, viewmodel_offset_x and related values |
| Save everything | host_writeconfig |
| Practice: infinite money and ammo | sv_cheats 1, mp_maxmoney 65535, sv_infinite_ammo 1 on your own server |
Images are provided by Steam and belong to their publishers.
Where to use these commands
Console settings that change the client, such as crosshair and viewmodel, work everywhere. Cheat commands only work on your own practice server or a community server that allows them. To find a community server for aim, surf or retakes, browse the CS2 server list and read the community servers guide. If you want to run your own, see how to host a CS2 server.
Related CS2 guides
- CS2 practice commands
- Best settings and sensitivity explained
- Fix low FPS and stutter in CS2
- Aim training for CS2
- New crosshair options
Live now: Counter-Strike 2
See all →
LIVE
Twitch
6,386
4k elo prem top 50 . ПОДСОЛНУХ ДОБРЫЙ НАГИБ ПРЕМА w/ @ryujincs1 !tg !winline
m3wsuru
LIVE
Twitch
3,520
LIVE: Butterfly vs LUNACY | CCT | !tg !bb
97zonerru
LIVE
Twitch
3,174
ПРЕМЬЕР С ЧАТТЕРСАМИ, БАЛДЕЕМ | !bb !tg !yt
chopperinhoru
LIVE
Twitch
2,913
Иду ЗА 😈 @m0nesyof w @donk1437/!Пати!elo!донат !роспись
Cozart_2s1ruWatching good players is the fastest way to steal ideas for your own setup. Catch more live CS2 action on Oggo Live.
Practice on the best live CS2 servers
Put this into practice. These community servers are online right now, sorted by players. See the full list on the CS2 server list, or browse servers by tag.









