Half-Life 2 Console Commands
The PC version of Half-Life 2 has a developer console for cheats, item spawns and chapter jumps. Since the November 2024 20th Anniversary Update, Episode One, Episode Two and Lost Coast run from the same game, so most commands work there too.
- Cheats
- 55
- Platforms
- PC, PlayStation, Xbox
- Type
- Console commands
- Last reviewed
- November 1, 2026


Before you use cheats: Sources agree that turning on sv_cheats disables Steam achievements for that session; guides say restart the game with sv_cheats 0 to restore them. Spawned entities can crash the game or trap you, so make a manual save before experimenting.
How to enter cheats
PC
Options, Keyboard, Advanced: tick Enable developer console, or add -console to the Steam launch options. Press the tilde (~) key under Esc. Most commands need sv_cheats 1 typed first.
PlayStation
PS3 (The Orange Box): no built-in developer console. Button codes entered during play restore health and ammo and unlock all chapters.
Xbox
Xbox (2005) and Xbox 360 (The Orange Box): no built-in developer console. Button codes entered during play restore health and ammo and unlock chapters; Xbox 360 adds god mode.
Mobile
Android (Nvidia SHIELD port, 2014): no developer console or cheat codes are documented, so the PC commands here are for PC only.
All Half-Life 2 commands
55 cheats
Cheat mode and survival (7)
Turn cheat mode on, which most other commands need
Use sv_cheats 0 to turn it off. Turning it on disables Steam achievements for the session.
PCsv_cheats 1PCsv_cheats 0God mode: you take no damage
Toggle. Type it again to turn it off.
PCgodBuddha mode: damage still lands but your health stops at 1
Toggle. Type it again to turn it off.
PCbuddhaNoclip: fly and pass through walls and floors
Toggle. Switch it off over solid ground so you do not get stuck.
PCnoclipHide from NPCs so they stop targeting you
Toggle. Type it again to turn it off.
PCnotargetDamage yourself by an amount you choose
Example: hurtme 50.
PChurtme <amount>Kill your character at once
explode kills with explosive damage but shows no blast.
PCkillPCexplode
Weapons, ammo and items (15)
Equip the HEV suit, the standard weapons and ammo, and add up to 25 health if you are under 100
Extras such as Annabelle still need give.
PCimpulse 101Refill ammo for the weapon in your hands
PCgivecurrentammoPistol and pistol ammo
Ammo also answers to item_box_srounds.
PCgive weapon_pistolPCgive item_ammo_pistol.357 Magnum and its ammo
PCgive weapon_357PCgive item_ammo_357SMG, its ammo and SMG grenades
Also valid: item_box_mrounds for ammo, item_ar2_grenade for grenades.
PCgive weapon_smg1PCgive item_ammo_smg1PCgive item_ammo_smg1_grenadePulse rifle (AR2), its ammo and energy balls
PCgive weapon_ar2PCgive item_ammo_ar2PCgive item_ammo_ar2_altfireShotgun and shells
PCgive weapon_shotgunPCgive item_box_buckshotCrossbow and bolts
PCgive weapon_crossbowPCgive item_ammo_crossbowRocket launcher and rockets
Rockets also answer to item_ml_grenade.
PCgive weapon_rpgPCgive item_rpg_roundFrag grenade
PCgive weapon_fragCrowbar
give weapon_stunstick only adds suit power; the player cannot wield it.
PCgive weapon_crowbarGravity gun
PCgive weapon_physcannonBugbait (pheropods) for commanding antlions
PCgive weapon_bugbaitAnnabelle, Father Grigori's shotgun
Select it with its number key, not the mouse wheel.
PCgive weapon_annabelleHealth, suit battery and HEV suit pickups
Kit restores 25 health, vial 10, battery adds 15 suit power.
PCgive item_healthkitPCgive item_healthvialPCgive item_batteryPCgive item_suit
Spawning, entities and vehicles (8)
Spawn any entity where you are aiming
Key and value pairs can follow the name. Entities the level has not loaded can crash the game.
PCent_create <classname>Spawn an NPC where you are aiming
Aim at open ground. Run npc_create_equipment weapon_pistol first to arm it.
PCnpc_create npc_<name>Spawn a Combine soldier, police officer, zombie, antlion, Alyx or Dog
npc_combine_s is the soldier and npc_metropolice the Civil Protection officer.
PCnpc_create npc_combine_sPCnpc_create npc_metropolicePCnpc_create npc_zombiePCnpc_create npc_antlionPCnpc_create npc_alyxPCnpc_create npc_dogFire an input at a named entity, or at whatever you aim at with !picker
A value and a delay can follow. The second example sets your target on fire.
PCent_fire <target> <input>PCent_fire !picker igniteDelete the object or NPC under your crosshair
Both do the same job.
PCimpulse 203PCent_removeFreeze the AI of every NPC
Toggle. Run it again to let NPCs move.
PCai_disableSpawn the buggy in front of you
It spawns armed.
PCimpulse 82PCch_createjeepSpawn an airboat in front of you
It spawns unarmed. Add the gun with ent_fire airboat enablegun 1.
PCimpulse 83PCch_createairboat
Gravity gun, suit power and view (5)
Turn the gravity gun into the supercharged Citadel version
Combine soldiers' dropped weapons dissolve while it is on. Use 0 to switch it off.
PCphyscannon_mega_enabled 1Infinite suit power for sprinting, the flashlight and breathing underwater
Use 0 to go back to normal.
PCsv_infinite_aux_power 1Change the game speed for slow motion or fast forward
1 is normal. Below 1 slows the game and above 1 speeds it up.
PChost_timescale <number>Switch between third-person and first-person view
PCthirdpersonPCfirstpersonShow the frame rate counter
Use 0 to hide it.
PCcl_showfps 1
Maps and chapter select (16)
Load any map by name; maps * lists every valid name
Chapter maps are below. changelevel also switches maps from a running game.
PCmap <mapname>PCchangelevel <mapname>PCmaps *Unlock chapters on the New Game screen up to this number
Values run from 1 to 15. Use 15 to unlock everything.
PCsv_unlockedchapters <number>Chapter 1, Point Insertion: load its first map
Later maps: d1_trainstation_02 to d1_trainstation_04.
PCmap d1_trainstation_01Chapter 2, A Red Letter Day: load its first map
Later map: d1_trainstation_06.
PCmap d1_trainstation_05Chapter 3, Route Kanal: load its first map
Later maps: d1_canals_01a, d1_canals_02, d1_canals_03, d1_canals_05.
PCmap d1_canals_01Chapter 4, Water Hazard: load its first map
Later maps: d1_canals_07 to d1_canals_13.
PCmap d1_canals_06Chapter 5, Black Mesa East: load its first map
Later map: d1_eli_02.
PCmap d1_eli_01Chapter 6, We Don't Go To Ravenholm...: load its first map
Later maps: d1_town_01a, d1_town_02, d1_town_03, d1_town_02a, d1_town_04, d1_town_05.
PCmap d1_town_01Chapter 7, Highway 17: load its first map
Later maps: d2_coast_03, d2_coast_04, d2_coast_05, d2_coast_07, d2_coast_08.
PCmap d2_coast_01Chapter 8, Sandtraps: load its first map
Later maps: d2_coast_10, d2_coast_11, d2_coast_12, d2_prison_01.
PCmap d2_coast_09Chapter 9, Nova Prospekt: load its first map
Later maps: d2_prison_03, d2_prison_04, d2_prison_05.
PCmap d2_prison_02Chapter 9a, Entanglement: load its first map
Later maps: d2_prison_07, d2_prison_08, d3_c17_01.
PCmap d2_prison_06Chapter 10, Anticitizen One: load its first map
Later maps: d3_c17_03 to d3_c17_08, including d3_c17_06a and d3_c17_06b.
PCmap d3_c17_02Chapter 11, Follow Freeman!: load its first map
Later maps: d3_c17_10a, d3_c17_10b, d3_c17_11, d3_c17_12, d3_c17_12b, d3_c17_13.
PCmap d3_c17_09Chapter 12, Our Benefactors: load its first map
Later maps: d3_citadel_02 to d3_citadel_05.
PCmap d3_citadel_01Chapter 13, Dark Energy: load its first map
The only map in this chapter.
PCmap d3_breen_01
Xbox and PS3 button codes (4)
Restore 25 health (spawns a medpak)
Enter it during play. These versions have no built-in console.
Xbox and Xbox 360- Up
- Up
- Down
- Down
- Left
- Right
- Left
- Right
- B
- A
PlayStation- Up
- Up
- Down
- Down
- Left
- Right
- Left
- Right
- Circle
- Cross
Refill ammo for your current weapon
One wiki lists an extra RB (R1 on PS3) at the start.
Xbox 360- Y
- B
- A
- X
- RB
- Y
- X
- A
- B
- RB
Xbox (2005 original)- Y
- B
- A
- X
- White
- Y
- X
- A
- B
- White
PlayStation- Triangle
- Circle
- Cross
- Square
- R1
- Triangle
- Square
- Cross
- Circle
- R1
Unlock all chapters
Xbox 360- Left
- Left
- Left
- Left
- LB
- Right
- Right
- Right
- Right
- RB
Xbox (2005 original)- Left
- Left
- Left
- Left
- Black
- Right
- Right
- Right
- Right
- White
PlayStation- Left
- Left
- Left
- Left
- L1
- Right
- Right
- Right
- Right
- R1
God mode (Xbox 360 only)
Xbox 360- LB
- Up
- RB
- Up
- LB
- LB
- Up
- RB
- RB
- Up
Covers the most-searched commands. Other cvars exist: type find <word> in the console to search them. Episode map names are not listed.
FAQ
How do you open the console in Half-Life 2?
Go to Options, Keyboard, Advanced and tick Enable developer console, or add -console to the Steam launch options. Press the tilde key to open it, then type sv_cheats 1 before cheat commands.
Do cheats disable achievements in Half-Life 2?
Yes. Turning on sv_cheats disables Steam achievements for that session. Guides say to set sv_cheats 0 and restart the game to earn them again. Since the 2024 update, Episode One and Two achievements are part of Half-Life 2 too.
How do you get all weapons in Half-Life 2?
Type sv_cheats 1, then impulse 101 for the HEV suit, the standard weapons and ammo. For single items use give with the exact name, such as give weapon_rpg or give weapon_physcannon.
Does Half-Life 2 have cheats on Xbox 360 or PS3?
There is no built-in console, but The Orange Box accepts button codes during play: 25 health, an ammo refill and unlock all chapters on both, plus god mode on Xbox 360. The 2005 Xbox lists all but god mode.
Checked against
- Valve Source SDK 2013 (GitHub): Half-Life 2 game code for commands, entity names and chapter table
- Steam News: Half-Life 2 20th Anniversary Update patch notes (Valve)
- Steam Community guide: Half-Life 2 cheat codes and console commands (K.Grox, updated April 2025)
- SourceRuns Wiki: Half-Life 2 Maps
- Half-Life Wiki (Fandom): The Orange Box Cheats
- GameRevolution: Half-Life 2: The Orange Box PC Cheats
- GamesRadar: The Orange Box Cheats (Xbox 360, PS3 and PC)
- UHS Hints: Half-Life 2, Giving Yourself Items
Found a code that does not work? Tell us through the contact page and we will recheck it.
More cheats
Strategy, shooters, fighting and retro