The tradition of using local servers goes all the way back to Counter-Strike 1.6, and the logic hasn't changed in Source 2. To get infinite ammo in CS2 (Counter-Strike 2), open the console with the ~ key, type sv_cheats 1, then enter sv_infinite_ammo 1. After that, your ammo never runs out and reloading is completely disabled. Setting the value to 2 keeps the reload animation but makes your total reserve infinite. These commands work exclusively on a local server, in a private lobby, and in Practice mode.

Infinite ammo in CS2: command, setup, and training

Expert Verdict

The infinite ammo console command solves the biggest technical headache during warmups — constantly running out of bullets while drilling spray control or grenade lineups. Without exception, enabling server-side settings is required for it to work, since the game classifies this parameter as a cheat variable that's locked out in matchmaking.

Quick Guide: Ammo Setup

  1. Enable cheat mode: Open the console and type sv_cheats 1 — this activates cheat mode (no server-side setting will work without it).
  2. Non-stop firing: Enter sv_infinite_ammo 1 to completely disable the reload animation. Perfect for spray control practice.
  3. Realistic practice: Use sv_infinite_ammo 2 so your magazine still empties but the reserve stays infinite. Great for timing drills.
  4. Alternative method: Launch a local map through Play -> Practice, where you can simply tick the relevant checkbox.

Personally, I only use the console. The built-in GUI is too casual and constantly bugs out on Workshop maps. For those who want to configure their client at a pro level and truly understand how the Source 2 engine works under the hood, we've compiled all the insider knowledge on the VRedux homepage.

Quick Answer — How to Enable Infinite Ammo in CS2

If you're looking for how to get infinite ammo in CS2, the answer comes down to a single server variable. Let's break down exactly how it affects gameplay depending on the value you set:

Command Value In-Game Effect Ideal Use Case
sv_infinite_ammo 0 Disabled (default) Standard competitive match.
sv_infinite_ammo 1 Ammo never depletes, no reload needed Spray training, weapon spread testing, wallbang practice.
sv_infinite_ammo 2 Magazine depletes normally, but total reserve is infinite Smoke and flash lineup practice, AWP timing drills.
Console command sv_infinite_ammo 1 in CS2 to activate infinite ammo

How to Enable the Developer Console in CS2

Before you can type any cheats or binds, you need the developer console itself. A lot of newcomers skip this step. To avoid headaches, I recommend checking out how to properly open the console in CS2 using one of two proven methods.

Method 1: Through Game Settings (Recommended)

  1. Go to the CS2 main menu and click the gear icon (Settings).
  2. Navigate to the Game tab.
  3. Find the "Enable Developer Console (~)" option and toggle it to Yes.
  4. Now you can press the ~ key at any point during a match to bring up the input line.

Method 2: Through Steam Launch Options

  1. Open your Steam library, right-click Counter-Strike 2, and select "Properties."
  2. Under the "General" tab, scroll down to the "Launch Options" field.
  3. Type -console. The console window will now open automatically every time you launch the game.

Infinite Ammo Command: sv_infinite_ammo Nuances

Honestly, when I first switched to the Source 2 engine, I was worried Valve would break all the old scripts. But fortunately, the CS2 console commands for infinite ammo stayed exactly the same.

sv_infinite_ammo 1 — No-Reload Mode

In this mode, the numbers in the bottom-right corner of your HUD freeze. You can hold down left-click with the Negev and fire for five minutes straight. I personally used this mode while hunting for new wallbangs on Nuke — it saves a ton of time since you're never interrupted by a magazine swap animation. By the way, this exact infinite ammo command in CS2 is what players search for the most.

sv_infinite_ammo 2 — Realistic Training Mode

Here, the magazine empties, your character reloads, but the ammo reserve never hits zero. Why bother? To preserve muscle memory. If you're drilling a flash-pop entry onto a site, you need to feel the exact timing of your AK-47's reload animation. Any cheat or command that alters gameplay should sharpen your skill, not dull it.

How to Disable Infinite Ammo in CS2

To revert everything to default, type sv_infinite_ammo 0. If your ammo doesn't reset immediately, restart the round with mp_restartgame 1.

Infinite Ammo Through the Practice Menu

The devs at Valve added a built-in GUI for configuring a local server. If the infinite ammo code in CS2 intimidates you, just do the following:

  1. Click the Play button in the main menu.
  2. Switch to the Practice tab.
  3. A settings panel appears on the left. Check the boxes for: Infinite Ammo, Grenade Camera, Infinite Warmup, and Open Group.
  4. Pick your map and start the match.
Practice mode setup in CS2 with Infinite Warmup and Infinite Ammo checkboxes enabled
Criteria Via the Practice Menu Via the Developer Console
Launch speed A couple of mouse clicks Requires typing commands
Workshop maps ❌ Doesn't work (menu is inactive) ✅ Works flawlessly
Flexible config customization ❌ Limited functionality ✅ Full server control

Here's a non-obvious catch: the UI settings only work on official Valve maps. If you downloaded a custom aim-training map like Aim Botz, the menu won't be available. You'll have to use the console.

Ready-Made Practice Config (practice.cfg)

Manually typing infinite ammo commands in CS2 every single time is torture. Experienced players use custom configs. I've put together the perfect template for you.

Create a text document, paste the code below, and save the file as practice.cfg (make sure to set the file type to "All Files").

// Enable cheats and infinite ammo
sv_cheats 1
sv_infinite_ammo 2

// Inventory and buy settings
ammo_grenade_limit_total 5
mp_buy_anywhere 1
mp_maxmoney 60000
mp_startmoney 60000
mp_buytime 9999

// Round settings
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_warmup_end
mp_restartgame 1

// Impacts and bots
sv_showimpacts 1
bot_kick

echo "PRACTICE CONFIG LOADED SUCCESSFULLY!"

Move this file to the game's system directory. In CS2, the path has shifted slightly compared to Global Offensive, even though the folder kept its old name. Pay attention to your operating system:

Operating System Path to the cfg Folder
Windows C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\
macOS ~/Library/Application Support/Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/
Linux ~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/

Launch a local map, open the console, and type exec practice. The server will instantly reconfigure to ideal practice conditions. The main thing is to make sure your game doesn't crash mid-session — if you keep running into that, read up on why CS2 crashes to desktop and how to fix it.

Where Infinite Ammo Works and Where It Doesn't

The most common question in the community: "Will I get banned for using cheat commands?" Let's clear this up once and for all.

VAC (Valve Anti-Cheat) scans your PC's RAM. The sv_cheats 1 variable is a built-in, legitimate tool. Using it on a local server (where you're the host) makes it physically impossible to get banned.

Error executing CS2 console commands on official VAC-protected servers

However, modifying server variables in competitive matches is strictly prohibited. You simply won't be able to do it — the server will reject the request.

Game Mode Does the Command Work? Reason
Local server (with bots) ✅ Yes You are the server admin.
Private lobby with friends ✅ Yes The lobby host can enable cheat variables.
Matchmaking / Premier mode ❌ No Valve's server blocks any attempt to change sv_cheats.
Third-party platforms (Faceit, ESEA) ❌ No External anti-cheat strictly monitors all cvars.

Common Issues and Fixes

Sometimes you type everything correctly, but the game still refuses to give you infinite ammo. Here are the main reasons why the infinite ammo code in CS2 might fail:

  • "Unknown command" error: Check your keyboard layout. Commands must be entered in English only. Make sure there are no extra spaces before sv_.
  • Command is ignored: You forgot to type sv_cheats 1 before entering the main variable. Without developer mode enabled, the server will reject the request.
  • Only works for the host: If you're playing with friends on a custom map, make sure the lobby creator (host) is the one who entered these commands in their console.

FAQ: Frequently Asked Questions

Can I enable infinite ammo in CS2 matchmaking?

No. The sv_infinite_ammo command requires sv_cheats 1, which is physically blocked on VAC-secured Valve servers (matchmaking, Premier). The server simply rejects your command. On Faceit and ESEA, the anti-cheat additionally locks down convars. The command only works on a local server, in Practice, and in private lobbies.

Will I get banned for using sv_infinite_ammo on my own server?

No. VAC is only active on VAC-secured servers. On a local server or in Practice, sv_cheats 1 and sv_infinite_ammo are legitimate developer tools. Using third-party software in official matchmaking can lead to serious penalties, but local settings are completely safe.

What's the difference between sv_infinite_ammo 1 and sv_infinite_ammo 2?

Value 1 — ammo is never consumed, no reload needed (you can hold the fire button and shoot indefinitely). Value 2 — magazine ammo depletes normally, but the total reserve is infinite (reloading is still required). For spray training, 1 is more convenient; for utility lineups, 2 feels more realistic.

How do I get infinite grenades in CS2?

The sv_infinite_ammo 1 variable automatically makes grenades infinite as well. To carry all 5 types at once, add ammo_grenade_limit_total 5. You can give yourself a specific grenade with give weapon_smokegrenade and similar commands.

Why isn't the sv_infinite_ammo command working?

Three main reasons: 1) you haven't entered sv_cheats 1; 2) you're on a VAC-secured server (matchmaking, Faceit) where cheat commands are blocked; 3) your keyboard layout isn't set to English when typing the command.

How do I bind infinite ammo to a key?

Type this in the console: bind "F9" "sv_cheats 1; sv_infinite_ammo 1; ammo_grenade_limit_total 5". Pressing F9 on a local server will apply all settings automatically. To make the bind persistent, add this line to your autoexec.cfg.

Does infinite ammo work on Workshop maps?

Through the Practice menu GUI, the "Infinite Ammo" checkbox is only available on official Valve maps. However, the console method works flawlessly: launch a Workshop map, type sv_cheats 1, then sv_infinite_ammo 1.

Conclusion

A properly configured local server is half the battle when it comes to understanding Source 2 mechanics. Remember: sv_cheats 1 unlocks every server-side setting, and sv_infinite_ammo saves hours of grunt work when discovering new utility lineups and memorizing recoil patterns. Stop wasting time on pointless reload juggling — train smart.

While other players hemorrhage ELO because they never bothered to learn grenade timings, you can refine your skills to perfection. If you want to go even deeper into game mechanics, I highly recommend checking out the Counter-Strike 2 technical guides section, packed with articles on system optimization and advanced config tuning. Happy fragging!