The CS2 developer console gives you access to commands for configuring the game, testing settings, practicing utility, and troubleshooting.
Unlike older versions of Counter-Strike, CS2 makes the process simple: enable the console in the game settings, then press its assigned key. You can also change the keybind if the default key doesn’t work with your keyboard layout.
How to Enable and Open the Console in CS2

Opening the console takes only a few seconds. You don’t need a launch option or special configuration file.
Enable Developer Console in Game Settings
Start Counter-Strike 2 from your Steam library.
Click the Settings button from the CS2 main menu.
Select the Game tab in the Settings menu.
Find Enable Developer Console (~) in the Game settings.
Change the setting to Yes to enable the developer console.
Once enabled, CS2 allows you to open the console using its assigned toggle key.
Press the Toggle Console Key
Press the ~ (tilde) key to open the console. Depending on your keyboard layout, this may also be associated with the backtick (`) key or another physical key.
If the console appears, you can enter commands directly into the text field at the bottom.
How to Change the CS2 Console Key

If the default key is inconvenient or doesn’t work correctly with your keyboard layout, you can assign the console to another key.
Change It in Keyboard/Mouse Settings
Open Settings → Keyboard/Mouse and look for the console-related keybind. If your current CS2 build exposes the console toggle as a configurable binding, assign a key that is easy to reach.
This is preferable to changing configuration files because you can immediately see which key CS2 is using.
Bind a Custom Key With toggleconsole
You can also use the console command:
bind "F10" "toggleconsole"
Replace F10 with your preferred key.
The toggleconsole command simply opens or closes the developer console. Once you have successfully opened the console, this gives you an easy way to assign a more convenient key.
Browse CS2 skins on Tradeit while you finish configuring your loadout. →
Buy CS2 SkinsWhy Is the CS2 Console Not Opening?

If pressing ~ does nothing, check the following before changing configuration files.
Check Developer Console Is Enabled
Return to Settings → Game and make sure Enable Developer Console (~) is set to Yes. If it is disabled, the toggle key won’t open the console.
Check the Keybind and Keyboard Layout
The physical key associated with ~ varies between keyboard layouts. On some keyboards, you may need to use a different key combination or assign a custom key.
If you use a non-US keyboard layout, this is one of the first things worth checking.
Restart CS2 and Verify Game Files
If the setting is enabled but the console still refuses to appear, restart CS2. If the problem persists, use Steam’s Verify integrity of game files option to rule out corrupted or missing files.
Reset Console Position or Config Only as a Last Resort
If the console opens but is positioned incorrectly or behaves strangely, avoid immediately deleting your entire CS2 configuration. Back up your config first and troubleshoot the specific setting causing the problem.
What Can You Use the CS2 Console For?
The console is useful for a wide range of tasks, including:
For a complete list of useful commands, see our CS2 console commands guide rather than treating the console itself as a command reference.
FAQs
What is the default key for the CS2 console?
The default console toggle is ~ (tilde), although the physical key can vary depending on your keyboard layout.
Why does the tilde key not open the console on my keyboard?
The ~ key is located differently on different keyboard layouts. Try the physical key associated with tilde/backtick or assign another key to toggleconsole.
Can I bind the CS2 console to another key?
Yes. Once the console is open, use:bind "F10" "toggleconsole"
You can replace F10 with another key.
What is the toggleconsole command in CS2?
toggleconsole opens the developer console when it is closed and closes it when it is open.
Can I open the CS2 console from the main menu?
Yes. Once the developer console is enabled, you can toggle it while you’re at the main menu as well as in appropriate game states.
Do I need a launch option to use the developer console?
No. CS2 does not require a launch option such as -console to enable the developer console. Simply enable it through the game’s settings.
Does enabling the developer console affect VAC or matchmaking?
No. Simply enabling the developer console does not disable VAC or prevent you from playing matchmaking. However, individual console commands can have restrictions depending on the server, game mode, or whether you’re playing an official match.
