Skip to content

Dota 2 Console Commands: FPS, Minimap, Camera, and Your Own Config

You can change the FPS counter, network stats, and control settings through the console without cheats. Camera distance works differently, and you need to run your own command file with exec.

CasewayCaseway
11 min322
Dota 2 Console Commands: FPS, Minimap, Camera, and Your Own Config
Share

Dota 2 console commands for the interface and controls marked cheat require sv_cheats 1 in your own lobby. Commands marked developmentonly aren't available to players. Start by enabling the console, then choose the settings you need. We wouldn't copy someone else's entire config: along with an FPS counter, you could end up with unfamiliar camera and order behavior.

Quick summary
Console
Turn on Enable console in settings and assign a key separately.
FPS
cl_showfps 1 turns on the FPS counter.
Camera
dota_camera_distance requires sv_cheats 1.
Config
Run a file in game/dota/cfg with the exec command.

How to enable the console in Dota

Turn on Enable console in the game settings, then assign a key to Console in the keybinds. These are separate options: one enables the console, and the other opens it.

  1. Open the Dota 2 settings and turn on Enable console. That's the option's name in the English localization.
  2. Find Console in the keybinds and assign a key.
  3. Press that key and enter cl_showfps 1 to test it. The FPS counter will appear at the top of the screen.

Another option is to add -console or -dev to the game's launch options. Both enable the console and override the Enable console setting. This behavior is documented in the Dota 2 localization files. You still need to set a key to open the console.

Commands that work without cheats

Console variables have flags that explain why one setting persists after you quit while another can't be changed in a regular match. Any restrictions for the commands below are listed alongside what they do.

Terms in this article
cheat
Requires sv_cheats 1. Use these settings only in your own lobby.
archive
The value is saved in your settings.
per_user
This setting is account-specific.
developmentonly
This command or variable isn't available to players.

dota_camera_distance is marked cheat, and its default value is 1200. You can't change the camera distance with this variable in a regular game. The restriction is listed in the Dota 2 console dump.

Warning

Don't confuse camera speed with camera distance. dota_camera_speed changes how fast the camera moves, while dota_camera_distance is marked cheat and requires sv_cheats 1 in your own lobby.

How to show FPS and network stats in Dota 2

Enter cl_showfps 1 to show FPS at the top of the screen. The counter has several modes, including smoothed FPS and server latency in milliseconds. To show network stats on screen, use the separate dota_hud_netgraph variable.

FPS and network
  • Turns on the FPS counter. Default: 0, counter off.0 — off; 1 — FPS; 2 — smoothed FPS; 3 — server latency in ms; 4 — FPS logged to a file
  • Sets the FPS cap. Default: 120.0 — no cap; number — FPS limit
  • Sets the FPS cap while the interface is open. Default: 0.
  • Shows network stats on screen. Default: false; the value is saved.true — enabled; false — disabled

In Dota 2, fps_max sets the FPS cap, while the counter shows your actual frame rate. The command can't guarantee the game will reach your chosen value. Use cl_showfps 4 for a counter that logs to a file. Mode 1 is enough to check FPS during a match.

Minimap icon size and camera behavior

You can adjust hero icon size on the minimap and prevent accidental movement orders there. dota_minimap_misclick_time sets how long after you move the cursor over the minimap the game ignores movement orders. The default is 0.2 seconds.

Some commands from older lists no longer work: dota_portrait_animate, dota_cheap_water, cl_smooth, and dota_minimap_creep_scale are developer-only, dota_camera_disable_yaw requires sv_cheats, and Dota 2 lacks net_graph—dota_hud_netgraph 1 turns on network stats instead. These still work and persist between launches: dota_hud_extra_large_minimap (larger minimap), dota_minimap_disable_rightclick (disables right-click commands on the minimap), dota_screen_shake (screen shake), and dota_player_smart_multiunit_cast.

Pudge with a hook and the minimap in Dota 2
Image: Valve, store.steampowered.com
Minimap and camera
  • Hero icon size on the minimap. Default: 600.
  • Delay before movement orders are accepted after you move the cursor over the minimap. Default: 0.2.
  • Camera movement speed. Default: 3000.
  • Disables camera zoom changes. Default: false.true — disable zoom; false — allow zoom
  • Disables the camera snapping back to your hero after respawning. Default: true.true — return the camera; false — don't return it
  • Makes the camera follow your hero while you hold the hero select key. Default: false.true — enabled; false — disabled

All settings in this section are marked archive. When adjusting camera speed, change only that value and leave the rest alone. That makes it easier to see whether moving around the map feels right, and to restore the original value of 3000 if the new speed gets in the way.

Right-click orders, quickcast, and Alt tooltips

Holding the right mouse button can repeat an order. Alt tooltips show rune spawn times, neutral creep camp stack times, and tower attack range. The settings below are saved. Alt tooltips and quickcast are enabled by default.

Controls and interface
  • Sets right-click attack behavior. Default: 0.
  • Repeats an order while you hold the right mouse button. Default: false.true — enabled; false — disabled
  • Enables quickcast. Default: true.true — enabled; false — disabled
  • Shows rune spawn times when you hold Alt. Default: true.true — enabled; false — disabled
  • Shows neutral creep camp stack times and an arrow when you hold Alt. Default: true.true — enabled; false — disabled
  • Shows tower attack range when you hold Alt. Default: true.true — enabled; false — disabled
  • Reduces flashes in effects. Default: false.true — enabled; false — disabled
  • Sets the interface color mode. Default: 0.

Your own command file: cfg folder, exec, and saving

Config files are stored in game/dota/cfg. If you're looking for a Dota 2 autoexec, the autoexec.cfg file in this folder runs every time you start the game. Use exec autoexec.cfg to load it without restarting. To check that it works on your computer, add the line echo autoexec_ok to the file, then open the console after launching the game.

  1. Create a text file with the .cfg extension in the game/dota/cfg folder. For example, name it autoexec.cfg.
  2. Add the commands you need, one per line. To test it, you can start with cl_showfps 1 and dota_hud_netgraph true.
  3. Open the console and enter exec autoexec.cfg.
  4. Use host_writeconfig to save your config. Variables marked archive are saved in your settings.
Config files and keybinds
  • Runs a command file from the config folder. Replace the argument with your file's name.
  • Writes the config.
  • Binds a command to a key. To open the console with your preferred key, run bind <key> toggleconsole, for example bind F11 toggleconsole.
  • Unbinds the specified key.
Tip

Before changing a setting, note its original value next to the command. That makes it quicker to restore your usual camera or controls than to track down the cause of a problem in a large config.

Commands for your own lobby

sv_cheats is off by default. Set it to 1 in your own lobby to unlock settings marked cheat. Commands that create units, spawn runes, or add bots have a separate client_can_execute flag. Use them only in your own lobby.

Your own lobby
  • Enables settings marked cheat in your own lobby. Default: false.1 — enable; 0 — disable
  • Command to create a unit, marked client_can_execute.
  • Command to spawn a rune, marked client_can_execute.
  • Command to add bots, marked client_can_execute.

The client_can_execute and cheat flags describe different things. The first controls whether the client can run a command; the second means cheats must be enabled. For dota_camera_distance, check the cheat flag.

All commands in this guide

CommandDefaultWhat it doesSaved
cl_showfps01 — FPS, 2 — smoothed FPS, 3 — server latency, 4 — FPS logged to a fileno
fps_max120FPS cap; 0 — no capyes
fps_max_ui0FPS cap while the interface is openyes
dota_hud_netgraphfalseon-screen network statsyes
dota_minimap_hero_size600hero icon size on the minimapyes
dota_minimap_misclick_time0.2how many seconds movement orders are ignored after you move the cursor over the minimapyes
dota_camera_speed3000camera speedyes
dota_camera_accelerate49camera accelerationyes
dota_camera_disable_zoomfalsedisable zooming with the mouse wheelyes
dota_camera_edgemovetruemove the camera when the cursor reaches the edge of the screenyes
dota_reset_camera_on_spawntruecenter the camera on your hero after respawningyes
dota_camera_hold_select_to_followfalsehold the hero select key to make the camera follow themyes
dota_camera_distance1200camera distance; requires sv_cheatscheat
dota_force_right_click_attack0right-clicking an ally issues an attack orderyes
dota_player_auto_repeat_right_mousefalserepeat an order while holding the right mouse buttonyes
dota_ability_quick_casttruequickcastyes
dota_hud_reduced_flashfalsereduce flashes in effectsyes
dota_hud_colorblind0interface color modeyes
sensitivity1.25mouse sensitivityyes
volume1sound volume(0–1)yes
snd_musicvolume1music volume(0–1)yes

Dota 2 console dump (SteamDatabase, DumpSource2), 09.10.2026. “Saved” means the archive flag; “cheat” means the command only works with sv_cheats 1 in your own lobby.

FAQ

How to enable the console in Dota 2

Turn on Enable console in the game settings and assign a key to Console. You can also enable the console with the -console or -dev launch option. Either one overrides the setting.

How to show FPS in Dota 2

Enter cl_showfps 1 to show the counter at the top of the screen. Value 2 shows smoothed FPS, and 0 turns the counter off. For network stats, use dota_hud_netgraph true.

Can you zoom out in Dota 2 with a command?

You can't change the camera distance with dota_camera_distance in a regular game. The variable is marked cheat and requires sv_cheats 1 in your own lobby. The default camera distance is 1200.

How to save your commands in Dota 2

Save your commands in a .cfg file in game/dota/cfg, then run it with exec. Variables marked archive are saved in your settings. Use host_writeconfig to write your config.

Found a mistake or inaccuracy?Select text on the page and press Ctrl+Enter to add it to your message automatically.
Share
Caseway
CasewayEditorial Team

Caseway blog editorial team: CS2 skin market news and breakdowns, guides, and item Wiki.

97 articles on the blogAll articles by this author
Caseway casesDota 2 cases on Caseway49 cases, from $0.50All cases
See all articles