CS2 practice config generator
Pick what you want in practice mode and copy the result. Paste the commands into your server console, or download prac.cfg, put it in game/csgo/cfg on the server and run exec prac. Practice commands need sv_cheats 1, which only affects the server it is on, never your matchmaking account.
Your practice config
// prac.cfg: practice mode for a CS2 server sv_cheats 1 mp_limitteams 0 mp_autoteambalance 0 mp_freezetime 0 mp_roundtime 60 mp_roundtime_defuse 60 mp_roundtime_hostage 60 mp_ignore_round_win_conditions 1 mp_respawn_on_death_ct 1 mp_respawn_on_death_t 1 mp_buy_anywhere 1 mp_buytime 9999 mp_startmoney 60000 mp_maxmoney 60000 ammo_grenade_limit_total 5 sv_grenade_trajectory_prac_pipreview 1 sv_showimpacts 1 sv_showimpacts_time 10 bot_kick sv_infinite_ammo 1 mp_warmup_end mp_restartgame 1
Paste the lines into the server console, or put prac.cfg in game/csgo/cfg on the server and run exec prac. Run it again after every map change.
Binds for your own game console
bind "v" "noclip" bind "n" "sv_rethrow_last_grenade" bind "j" "god"
Back to a real match
sv_cheats 0 exec gamemode_competitive mp_restartgame 1
How it works
Every option adds the console commands for it, in the order the server needs them. sv_cheats comes first because grenade trajectories, rethrow and noclip depend on it.
The config ends with mp_warmup_end and mp_restartgame 1 so every setting applies at once.
Map changes load the game mode settings again, so run exec prac after every map change.
Example
Choosing infinite ammo, grenade trajectories and buy anywhere gives a config with sv_cheats 1, sv_infinite_ammo 1, sv_grenade_trajectory_prac_pipreview 1, mp_buy_anywhere 1, mp_buytime 9999 and mp_maxmoney 60000, ending with mp_restartgame 1. Saved as game/csgo/cfg/prac.cfg, it loads with exec prac.
Questions
Does sv_cheats on my server affect my account?
No. sv_cheats only applies on the server where it is turned on and has no effect on your Premier or matchmaking account.
Why does exec prac say the file is not found?
The file is not in game/csgo/cfg, or it was saved as prac.cfg.txt. Check the exact name in the file manager.
What is the difference between sv_infinite_ammo 1 and 2?
1 gives infinite ammo with no reloading. 2 keeps reloading but never runs out of reserve ammo, closer to a real spray.
How do I go back to a normal match?
Run sv_cheats 0, then exec gamemode_competitive, then mp_restartgame 1. The generator shows these lines under the config.
Related guides
CS2 Practice Server Config (Ready to Paste, 2026)
A ready to paste CS2 practice server config with infinite ammo, grenade trajectories, rethrow, buy anywhere and no round end, plus how to load it on a server.
ReadHow to Host a CS2 Server: Hosted, Self Hosted or Free (2026)
Host a CS2 server three ways: hosted in a minute with the GSLT done, self hosted with SteamCMD app 730 and port 27015, or a free Practice lobby.
ReadHow to Play CS2 Against Bots With Friends (Private Match)
How to play CS2 with friends against bots or in a private match: the in game Practice lobby, a private server, bot commands, difficulty and team setup.
ReadHow to Play CS2 Workshop Maps on a Server (IDs and Collections)
How to play CS2 Workshop maps on a server: find the map ID, load it with host_workshop_map, set up collections and map rotation, and fix common errors.
ReadSkip the setup
A server of ours comes online in about a minute with its ports open, its own address and backups.