All guides

CS2 console commands - the full list

This page lists only commands that actually work in the current build of CS2 - all default values are taken from the official Valve wiki. If other guides mention net_graph, cl_interp_ratio, and the like, those have either been renamed (cq_netgraph replaced net_graph) or are server-side cvars.

How to open the CS2 console

The console is off by default. Enable it in Settings → Game → "Enable Developer Console" → Yes. Open it with the ~ or ` key (tilde, left of 1). To rebind it: bind "F1" toggleconsole.

For persistent settings, create autoexec.cfg in the game/csgo/cfg/ folder and add +exec autoexec.cfg to your launch options. A ready-made file with defaults is at the end of this guide.

The "CHEAT" flag

Cheat commands only work when the server has sv_cheats 1 enabled - that is, local offline servers or practice bot servers. They're blocked on matchmaking, FACEIT, and public servers.

Crosshair

CS2 supports all the cl_crosshair* commands from CS:GO plus new ones (cl_crosshair_t, cl_crosshairgap_useweaponvalue, cl_crosshair_friendly_warning).

CommandDefaultDescription
cl_crosshairstyle20/1 = disabled, 2 = default (dynamic recoil), 3 = classic dynamic, 4 = classic static, 5 = semi-static
cl_crosshairsize5Length of the crosshair lines
cl_crosshairthickness0.5Line thickness (0.5 - 4)
cl_crosshairgap0Gap from center; negative = smaller, positive = larger
cl_crosshairgap_useweaponvaluetrueDynamic gap based on the weapon (new in CS2)
cl_crosshairdotfalseCenter dot
cl_crosshair_ttrueT-shaped crosshair (no top line)
cl_crosshair_drawoutlinetrueBlack outline around the crosshair
cl_crosshair_outlinethickness1.0Outline thickness (0 - 3)
cl_crosshairalpha200Opacity (0 - 255)
cl_crosshairusealphatrueUse opacity
cl_crosshaircolor50=red, 1=green, 2=yellow, 3=blue, 4=cyan, 5=custom RGB
cl_crosshaircolor_r50Red (0 - 255), requires cl_crosshaircolor 5
cl_crosshaircolor_g250Green (0 - 255)
cl_crosshaircolor_b50Blue (0 - 255)
cl_crosshair_friendly_warning1Highlight when aiming at a teammate
cl_crosshair_sniper_width1Line thickness of the sniper scope crosshair
cl_observercrosshairtrueCrosshair in spectator mode

Viewmodel - the weapon model in your hands

CommandDefaultDescription
r_drawviewmodeltrueShow the weapon in your hands
viewmodel_fov60Viewmodel FOV (54 - 68)
viewmodel_presetpos11 = Desktop, 2 = Couch (closer), 3 = Classic (CS 1.6 style)
viewmodel_offset_x1Horizontal offset (-2 - 2.5)
viewmodel_offset_y1Forward/back offset (-2 - 2)
viewmodel_offset_z-1Vertical offset (-2 - 2)
cl_righthandtrueWeapon in the right hand; false = left

Radar

In CS2 cl_radar_scale works (default 0.7). A new addition is cl_radar_rotate (rotates the radar with your view).

CommandDefaultDescription
cl_radar_scale0.7Map size on the radar (0.25 - 1.0)
cl_radar_always_centeredtruePlayer always centered; false = shows more of the map at the edges
cl_radar_rotatetrueRotate the radar to match your facing direction
cl_radar_icon_scale_min0.6Minimum size of player icons (0.4 - 1.25)
cl_radar_square_with_scoreboardtrueSquare radar when the scoreboard is open
cl_drawhud_force_radar00=default, 1=always show, -1=always hide
radarvisdistance1000Beyond this distance an enemy is only shown when aimed at directly

HUD and interface

CommandDefaultDescription
cl_hud_color110=team color, 1=white, 3=light blue, 4=blue, 5=purple, 6=red, 7=orange, 8=yellow, 9=green, etc.
hud_scaling1Scale of all HUD elements
hud_showtargetidtrueShow the player's name when you aim at them
safezonex1HUD horizontal squeeze (0.85 - 1)
safezoney1HUD vertical squeeze (0.85 - 1)
cl_drawhudtrueEnable HUD rendering
cl_teamid_overhead_mode2Teammate names overhead: 1=icons, 2=icons+names+weapon
cl_teammate_colors_show1Teammate colors: 1=colors, 2=colors+letters
cl_show_clan_in_death_noticetrueClan tags in the kill feed
cl_use_opens_buy_menutrueOpen the buy menu with +use (E) in the buy zone

Performance and FPS

CommandDefaultDescription
fps_max400FPS cap in a match; 0 = unlimited
fps_max_ui120FPS cap in menus; 0 = unlimited
cl_showfps00=off, 1=FPS, 2=smoothed FPS, 3=server time, 4=FPS + log
cq_netgraph0Command queue stats (replaces net_graph): ping, loss, FPS, subtick
engine_no_focus_sleep50Engine sleep when the window isn't focused; 0 = don't sleep
mat_queue_mode-1Multithreaded rendering: -1=auto, 0=single thread, 2=forced
r_drawparticlestrueRender particles; false = a few more FPS at the cost of visuals

Sound and voice

snd_voipvolume is the new name for voice chat volume (it replaced voice_scale). Music categories can be muted individually.

CommandDefaultDescription
volume1Master volume
snd_gamevolume1Game sound volume (gunfire, footsteps)
snd_voipvolume1Voice volume (replaces voice_scale)
voice_modenabletrueEnable voice chat
snd_musicvolume1Master music volume
snd_menumusic_volume0.04Main menu music
snd_roundstart_volume0Round start music
snd_roundend_volume0.16Round end music
snd_mvp_volume0.16MVP music
snd_deathcamera_volume0.16Music after death

Mouse and sensitivity

CommandDefaultDescription
sensitivity2.5Mouse sensitivity
zoom_sensitivity_ratio1Sensitivity multiplier while zoomed (AWP, Scout)
m_pitch0.022Vertical mouse movement multiplier
m_yaw0.022Horizontal mouse movement multiplier

Cheat mode and practice (sv_cheats 1)

These work ONLY on local or practice servers with sv_cheats 1. They're blocked on MM/FACEIT/public servers.

CommandDefaultDescription
sv_cheatsfalseEnable cheat commands
noclip-Fly through walls (toggle)
god-Invincibility (toggle)
sv_infinite_ammo01 = no reloading, 2 = infinite ammo with reloading
sv_showimpacts0Bullet impact points: 1=both sides, 2=client, 3=server
sv_grenade_trajectory_prac_pipreviewfalsePicture-in-picture preview of the grenade trajectory
sv_grenade_trajectory_time_spectator4How many seconds the trajectory is shown to a spectator
sv_infinite_ammo0Infinite ammo (1/2)
sv_friction5.2World friction
sv_gravity800World gravity
sv_full_alltalkfalseAny player (including spectators) can talk to everyone

Bots

CommandDefaultDescription
bot_add-bot_add <ct/t> <type> <difficulty> <name> - add a bot
bot_kick-bot_kick <all/t/ct/name> - kick a bot
bot_kill-bot_kill <all/t/ct/name> - kill a bot
bot_difficulty20=Easy, 1=Normal, 2=Hard, 3=Expert
bot_quota1Total number of bots in the game
bot_quota_modecompetitivenormal / fill / match
bot_stop0all / not_bomber / t / ct - freeze bots
bot_zombiefalseBots don't attack (stand still and don't shoot)
bot_walkfalseBots only walk, never run
bot_controllabletruePlayers can take control of a bot
bot_eco_limit2000Don't buy if they have less money than this

Server match settings (mp_*)

mp_* commands run on servers. Many are useful for practice: a long round, infinite money, no freeze time.

CommandDefaultDescription
mp_warmuptime90Warmup duration in seconds
mp_warmup_end-End warmup immediately (command)
mp_warmup_pausetimer01 = warmup never ends (for practice)
mp_freezetime5Freeze time at round start; 0 = disable
mp_roundtime3Round length in MINUTES
mp_roundtime_defuse2.25Round length for defuse mode (minutes)
mp_buytime45How many seconds you can buy for
mp_buy_anywhere00=default, 1=both teams, 2=T, 3=CT can buy anywhere
mp_maxmoney10000Maximum money
mp_startmoney1000Starting money for the match
mp_c4timer40Bomb timer in seconds
mp_maxrounds15Maximum rounds in a match
mp_friendlyfiretrueDamage from teammates
mp_ignore_round_win_conditionsfalseRound never ends (for practice)
mp_restartgame0Restart in N seconds
mp_pause_match-Pause the match (during freeze time)
mp_unpause_match-Unpause the match
mp_warmup_pausetimer01 = endless warmup

Demos and replay

CommandDefaultDescription
record-record <name> - start recording a .dem
stop-Stop recording
playdemo-playdemo <name> - play a .dem file
demo_togglepause-Toggle pause (handy on a bind)
demo_timescale-demo_timescale 0.5 - playback speed (0.1 - 4)
demo_gototick-demo_gototick 12345 - jump to a tick
demo_info-Info about the current demo
spec_pos-Dump the spectator position and angles to the console

Utilities and general commands

CommandDescription
bindbind "key" "command" - bind a command to a key
unbindRemove the bind from a key
unbindallRemove ALL binds (careful!)
key_listboundkeysList all binds
toggleconsoleOpen/close the console
clearClear the console output
statusList of players with SteamID and ping

Network and client

CommandDefaultDescription
cl_lagcompensationtrueServer-side lag compensation
cl_predictweaponstrueClient-side prediction of weapon effects
cl_join_advertise10=no, 1=official servers, 2=all. Advertise your game to friends
cl_dm_buyrandomweaponstrueGet a random weapon on spawn in DM

Launch options

Set them in Steam: right-click CS2 → Properties → Launch Options.

A ready-made set: -novid -console -high -fullscreen +fps_max 0 +exec autoexec.cfg. Note: -tickrate 128 is not needed in CS2 - the game runs at 64 tick plus the engine's subtick calibration.

OptionWhat it does
-novidSkip the Valve intro
-consoleOpen the console at startup
-highHigh process priority in Windows
-fullscreenForce fullscreen
-w 1920 -h 1080Force a resolution
+fps_max 0Remove the FPS cap at startup
+exec autoexec.cfgLoad your own config
-allow_third_party_softwareAllow NVIDIA Reflex and third-party software

Ready-made autoexec.cfg

Copy it into game/csgo/cfg/autoexec.cfg. Add +exec autoexec.cfg to your launch options:

// autoexec.cfg for CS2 - all cvars are official, from the Valve Developer Wiki

// === Performance ===
fps_max 0
fps_max_ui 240
engine_no_focus_sleep 0
mat_queue_mode -1

// === HUD ===
safezonex 0.9
safezoney 0.9
cl_hud_color 0
cl_radar_scale 0.7
cl_radar_always_centered 0
cl_radar_rotate 1
cl_radar_icon_scale_min 0.6
cl_teamid_overhead_mode 2
cl_teammate_colors_show 2
cl_use_opens_buy_menu 1

// === Sound ===
volume 0.5
snd_voipvolume 1
snd_gamevolume 1
snd_musicvolume 0
snd_menumusic_volume 0
snd_roundstart_volume 0
snd_roundend_volume 0
snd_mvp_volume 0
snd_deathcamera_volume 0
snd_mapobjective_volume 0

// === Crosshair (classic static) ===
cl_crosshairstyle 4
cl_crosshairsize 2
cl_crosshairthickness 1
cl_crosshairgap -2
cl_crosshair_drawoutline 1
cl_crosshair_outlinethickness 1
cl_crosshaircolor 1
cl_crosshairdot 0
cl_crosshairalpha 200

// === Viewmodel (classic) ===
viewmodel_presetpos 3
viewmodel_fov 68
viewmodel_offset_x 2.5
viewmodel_offset_y 2
viewmodel_offset_z -2
cl_righthand 1

// === Binds ===
bind "f" "+lookatweapon"
bind "x" "use weapon_knife;use weapon_flashbang"

echo "autoexec.cfg loaded"
host_writeconfig

Practice config for nades

First start a local server: type map de_mirage in the console (or any map), then run this config (paste the whole thing into the console, or save it as practice.cfg and run exec practice.cfg):

This gives you infinite grenades, a long round, infinite money, a visible throw trajectory, bullet impact points, and handy binds.

// Nade practice (offline bot server)
// Launch: map de_mirage + this cfg in the console

sv_cheats 1
sv_infinite_ammo 1
ammo_grenade_limit_total 5
mp_warmup_end
mp_freezetime 0
mp_roundtime 60
mp_buytime 9999
mp_buy_anywhere 1
mp_maxmoney 60000
mp_startmoney 60000
mp_restartgame 1
mp_ignore_round_win_conditions 1
mp_warmup_pausetimer 1
sv_grenade_trajectory_prac_pipreview 1
sv_grenade_trajectory_time_spectator 20
sv_showimpacts 1
bot_kick
god

bind "z" "noclip"
bind "x" "give weapon_smokegrenade;give weapon_flashbang;give weapon_hegrenade;give weapon_molotov"
bind "c" "respawn_entities"

How to hide the HUD

Useful for screenshots, recording demos, editing clips, or a clean stream. The commands are entered in the console; they work in matches, on FACEIT, and on public servers.

It's handy to put it on a bind: bind "F8" "toggle cl_drawhud 0 1" - one key hides and brings back the HUD.

  • cl_drawhud 0 - remove the entire HUD (including the crosshair and kill feed).
  • cl_draw_only_deathnotices 1 - keep only the kill feed and the crosshair.
  • crosshair 0 - hide only the crosshair.
  • cl_drawviewmodel 0 - hide the weapon and hands in first person.
  • To restore: cl_drawhud 1, cl_draw_only_deathnotices 0, crosshair 1, cl_drawviewmodel 1.

Where to find a server's IP

The address of any CS2 server is available in the MonitoringCS2 listing - each one shows the IP:port, current player count, map, and ping. Copy the address and use the connect IP:port command.

Frequently asked questions

How do I enable the console in CS2?+

Go to Settings - Game and set Enable Developer Console to Yes. After that the console opens with the tilde key (~).

What is sv_cheats and how do I enable it?+

sv_cheats is the command that unlocks cheat and practice commands on a server. Type sv_cheats 1; it only works on your own server or in an offline game.

Which CS2 console commands are most useful for practice?+

Popular ones are sv_infinite_ammo 1 (infinite ammo), sv_grenade_trajectory_v2 1 (grenade paths), mp_buytime 9999 and mp_buy_anywhere 1. They all require sv_cheats 1 first.

What is an autoexec and why use it?+

autoexec.cfg is a file of commands that runs automatically when the game starts. It is the convenient place to keep your personal settings, binds and parameters so you do not type them every time.

How do I bind a command to a key in CS2?+

Use the bind command, for example bind "f" "+lookatweapon". The key comes first and the action second; you can save binds in autoexec.cfg.