Skip to main content
If you click on a link and make a purchase we may receive a small commission. Read our editorial policy.

Counter-Strike 2 console commands for FPS, lag, and more

Learn all the essential CS2 console commands for every situation

The player secures a triple kill with a pistol in CS2.
Image credit: Rock Paper Shotgun/Valve

Looking for a list of Counter-Strike 2 console commands? Console commands in games are typically associated with cheats, and cheats in competitive games like Counter-Strike 2 are typically frowned upon. But there are lots of different uses for the various console commands available in CS2, and some of them are actively encouraged if you want to maximise your FPS and performance in Valve's new flagship FPS.

In this comprehensive guide to Counter-Strike 2 console commands, we'll explain how to open the console, how to rebind your console key, and how to create your own autoexec file to automate console commands every time you launch the game. We'll also go over our list of the various CS2 console commands you can use to control the game, and we've even highlighted a dozen or so of the very best Counter-Strike 2 console commands to use if you want to boost FPS and minimise lag!

Watch on YouTube

How to open the CS2 console

Here's how to easily open the Counter-Strike 2 console from in-game:

  1. Launch CS2 and click the cog icon to open Settings.
  2. Click on the "Game" tab at the top.
  3. Set the "Enable Developer Console" dropdown to "Yes".
  4. Close the Settings menu.
  5. Hit (~) or (`) on your keyboard to bring up the CS2 console.

By default, the hotkey to open the console in CS2 is the key between TAB and ESC in the top-left of your keyboard. On UK keyboard layouts this should be (`), while on US keyboard layouts the key should be (~).


How to rebind your console key in CS2

You can also rebind the hotkey to open the CS2 console to something that's easier for you to use. To do this, head back into the Settings menu but this time click on the "Keyboard / Mouse" tab.

Then click on the "UI Keys" secondary tab (or scroll down to find the "UI Keys" section), and change the key next to "Toggle Console" to whatever key you'd like to use to open the console in Counter-Strike 2.


CS2 console commands list

Below you can browse our list of the most useful Counter-Strike 2 console commands we've come across, along with descriptions of what each console command does and how to use it.

Console CommandDescription
fps_max [#]Caps the FPS. Set to 0 for no limit!
bind [action] [key]Binds an action to a hotkey e.g. jump throw bind.
sv_cheats [0/1]Toggles use of "cheatier" commands in private matches.
sv_infinite_ammo [0/1]Toggles infinite ammo on or off.
noclipLets you fly around and pass through walls and floors.
godToggles invulnerability on or off.
killInstantly kills and respawns the player.
disconnectDisconnect from the current server.
quitQuit Counter-Strike 2.
cl_drawhud [0/1]Toggles the in-game HUD on or off.
cl_show_team_equipmentShows weapons and gear above teammates' heads.
cl_reload_hudReloads the HUD at default scale.
r_drawtracers_firstperson [0/1]Toggles your firing tracers on or off.
cl_autohelp [0/1]Toggles the in-game hints on or off.
cl_hide_avatar_images [0/1]Toggles the visibility of player avatar images on or off.
cq_netgraph 1Displays latency data on-screen.
cl_showfps 1Displays basic FPS data on-screen.
cl_showfps 2Displays in-depth FPS data on-screen.
cl_showfps 3Displays in-depth FPS and server data on-screen.
cl_showfps 4Displays and logs to file in-depth FPS data on-screen.
cl_showfps 0Removes any FPS display.
give weapon_[weapon name]Spawns the specified weapon.
sv_rethrow_last_grenadeRepeats the last grenade throw exactly.
sv_grenade_trajectory [0/1]Toggles tracers for grenade trajectories.
sv_gravity [#]Sets the gravity (default is 800).
mp_respawn_on_death_ct [0/1]Allows counter-terrorists to instantly respawn after death.
mp_respawn_on_death_t [0/1]Allows terrorists to instantly respawn after death.
mp_roundtime [mins]Sets the round time to the specified number of minutes.
mp_buytime [secs]Sets the buy time to the specified number of minutes.
mp_roundtime_defuse [mins]Sets the round time on Defuse modes.
mp_roundtime_hostage [mins]Sets the round time on Hostage modes.
mp_buy_anywhere [0/1]Toggles whether you can enter the shop from anywhere.
mp_maxmoney [#]Sets the maximum amount of money you can have.
mp_startmoney [#]Sets the amount of money you start the game with.
sv_lan 1Starts a LAN private server.
mp_restartgame 1Restarts match. Needed before some commands take effect.
changelevel [map code]Changes the level in private matches.
launch_warmup_map [map name]Starts a practice mode match on the specified map.
sensitivity [#]Changes your mouse sensitivity.
viewmodel_fov [#]Changes your field of view.
ent_bboxDisplays an object's collision box in orange.
bot_kickRemoves all bots from the server.
bot_addAdds bots to the server.
bot_placeSpawns a bot at the position you're looking at.
bot_crouchMakes all bots on the server crouch.
bot_stop 1Freezes all bots.
bot_mimic 1Forces all bots to mimic your movements.
cl_disable ragdolls [0/1]Toggles ragdoll physics on or off.
cl_ragdoll_workaround_threshold [#]Sets the accuracy of ragdoll positions.
cl_crosshairsize [#]Sets the crosshair size.
cl_crosshairthickness [#]Sets the crosshair thickness.
cl_crosshairdot [#]Sets the crosshair dot size.
cl_crosshairgap [#]Sets the crosshair gap size.
cl_crosshaircolor [1-4]Changes the crosshair colour to different preset colours.
cl_crosshairstyle [0-5]Switches between static, dynamic, and other crosshair styles.
cl_crosshaircolor_r [#]Sets the amount of red in the crosshair colour.
cl_crosshaircolor_g [#]Sets the amount of green in the crosshair colour.
cl_crosshaircolor_b [#]Sets the amount of blue in the crosshair colour.
cl_crosshaircolor_alpha [#]Sets the alpha (opacity) of the crosshair colour.
cl_crosshair_friendly_warning [0/1]Toggles the crosshair friendly fire warning on or off.
volume [0-1]Adjusts the game's master volume from 0 (muted) to 1 (max).
voice_modenable [0/1]Toggles voice chat on or off.
voice_scale [0-1]Adjusts teammate voice volume from 0 (muted) to 1 (max).
voice_mute [player name]Mutes a particular player's voice chat.
voice_unmute [player name]Unmutes a particular player's voice chat.
cl_interp [#]Sets the interpolation time.
cl_interp_hermite [0/1]Toggles hermite interpolation on or off.
cl_updaterate [#]Sets the interpolation update rate.
cl_interp_ratio [#]Sets the interpolation ratio.
vprof_offDisables the VProf profiler.
iv_offDisables the interpolation variable profiler.
demo_flushFlush writing the demo file every network update.

Many of these commands require use in an autoexec.cfg file rather than the in-game console. The section below explains how to set up your own autoexec.cfg file.


Best CS2 console commands for FPS and lag

Below we've highlighted some of the very best Counter-Strike 2 console commands that we've found to boost your FPS and minimise lag of various kinds while playing CS2. Not all of them may help you in your particular setup, but it won't hurt you to try them out and see if you notice any performance impact!

Note: we recommend setting these commands using an autoexec.cfg file instead of through the in-game console, because many of these commands will reset to their default values each time you launch CS2.

Best CS2 console commands for FPS:

  • fps_max 0
  • cl_disable_ragdolls 1
  • vprof_off
  • iv_off
  • cl_autohelp 0
  • cl_hide_avatar_images 1
  • cl_crosshair_friendly_warning 0
  • cl_interp 0.015625
  • cl_updaterate 128
  • cl_interp_ratio 1
  • demo_flush 0

fps_max 0

Setting the FPS cap to zero is shorthand for removing the FPS cap limit altogether. This means Counter-Strike 2 will run as fast as your machine can handle, rather than arbitrarily stopping once it hits a certain number of frames per second.

cl_disable_ragdolls 1

This command will disable the ragdoll physics of player corpses, freeing up a little bit of CPU draw if you're playing on an old CPU-bound machine.

vprof_off

VProf is a visual profiling tool that runs in the background while CS2 is running, and collects information in order to optimise the game's performance in the long run. Unfortunately, if you're particularly CPU-bound, then just having this running can result in reduced performance. That's why encourage turning VProf off and seeing if you notice any improvement.

iv_off

just like VProf, IV is a profiler (this time an "interpolation variable profiler") which runs in the background while CS2 is playing. The resources that it uses up while running may seem negligible to many, but to some playing on lesser machines it can be worth disabling this profiler to improve performance.

cl_autohelp 0

This console command disables the automatic contextual hints that appear in-game, such as "you have the bomb, take it to the bombsite", and so on. Not only are these hints distracting and pointless once you know the game, but disabling them can actually have a marginal performance effect for low-end machines.

cl_hide_avatar_images 1

This command, as you can imagine, disables the avatar images for players in Counter-Strike 2. These avatars are taken from Steam itself, and disabling them can free up some small tidbits of resources for both CPU and GPU.

cl_crosshair_friendly_warning 0

If you really want to make CS2 as lightweight as possible for your poor ailing PC, you can use this command to remove the friendly fire warning that appears on your crosshair when you aim at a teammate. Just make sure you can tell friend from foe without its help!

cl_interp 0.015625

The next few commands aren't exactly about boosting FPS, but they can help make the game feel much better and minimise instances of lag and choppiness in-game. Interpolation smoothes out the movement between packets of data sent from the server to the client. It relates to how accurate the client feels during moments where the difference between client and server appears at its fullest.

By default the interpolation time is set to 0.1, but clever Counter-Strike players have figured out that lowering this value to 0.015625 makes things feel a lot more natural when it comes to server-client issues like peeking around corners.

cl_updaterate 128

The cl_updaterate command has a very similar job to the cl_interp command. Both relate to interpolation times. It seems like cl_updaterate's default value is 20, which is far too low for our liking with a competitive game like Counter-Strike 2. Set it up to 128 ticks and see if you feel a difference when combines with the other commands in this list.

cl_interp_ratio 1

The final interpolation-related console command we recommend changing is cl_interp_ratio 1. By default this value is 2. As we understand it, the game actually figures out the interpolation time by finding the higher of the following two values: first, cl_interp; and second, cl_interp_ratio divided by cl_updaterate. Setting the updaterate up and the interp_ratio down smoothes the interpolation, making things feel a lot nicer in-game.

demo_flush 0

This console command probably won't make any noticeable difference to your CS2 performance, but it won't hurt to disable it and see. Essentially it stops a particular process from writing data to a file with each network update.


How to set up an autoexec file in CS2

Many Counter-Strike 2 players like to set up what's called an autoexec file, which is a text document in the game files which automatically runs a bunch of console commands every time you start CS2 - so you don't have to type the commands in every time. Many commands only work (or are only practical) if used in an autoexec file.

Here's how to set up an autoexec file for CS2:

  1. Right-click Counter-Strike 2 in your Steam Library.
  2. Click "Manage" > "Browse Local Files".
  3. Navigate to the "Game" > "CSGO" > "CFG" folder.
  4. Right-click an empty space and select "New" > "Text Document"
  5. Rename the file to "autoexec.cfg", removing the ".txt" at the end.
  6. Click "Yes" when asked for confirmation about changing the file extension.
  7. Open the "autoexec.cfg" file in Notepad.
  8. Add any console commands you want to execute every time you launch CS2.
  9. Save and close the file.
  10. Right-click Counter-Strike 2 in your Steam Library.
  11. Click "Properties".
  12. In the "General" tab, scroll down to "Launch Options".
  13. In the text box, type "+exec autoexec.cfg".
  14. Close the Properties window and launch Counter-Strike 2.

If you follow all of these steps, you'll find that any console commands you input into that autoexec.cfg file will automatically be activated whenever you launch CS2, so you never have to manually enter those commands again. Lovely!

That concludes our comprehensive guide on how to use all the best console commands in Counter-Strike 2 to boost FPS, minimise lag, control private matches, customise your HUD and crosshair, and much more. For even more useful options, check out our guide on the best CS2 settings, and our list of CS2 crosshair codes.

Read this next