Cheats & codes
Portal 2 Cheat Codes
Grouped by type and platform, each one labelled reported working or tested.
There are 42 cheat codes for Portal 2 across PC (Microsoft Windows). Each code below lists the exact button combination or console command, what it does, and whether using it disables achievements.
Console commands
42Attach Potato GLaDOS
Attaches GLaDOS-as-a-potato to your portal gun (the late-campaign look)
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Buddha Mode
You take damage but cannot die, health never drops below 1
Enable cheats with sv_cheats 1 first, then type buddha, press Enter
Cheats disable achievements until you restart the game. Save first.
Change gravity
Changes gravity; 600 is default
Open console, requires sv_cheats 1
Very low values can fling you through walls
Change portal linkage ID (co-op)
Changes which portal pair your gun controls (0-3)
Open console, requires sv_cheats 1; mainly used in co-op
Can disconnect you from your own portals
Delete Aimed Object
Deletes the object you're currently aiming at
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Delete Looked-At Entity
Deletes whatever entity you're looking at
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Disable Cheat Mode
Turns cheat mode back off
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Enable cheats first
Required before any other cheat command is accepted.
Enable the developer console in Options → Keyboard → Advanced, then press `.
Disables achievements in the current session.
Enemies Ignore Player
Turrets and other hostiles stop noticing or shooting at you
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Fire Energy Pellet
Launches the high-energy pellet in front of you
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Fire Gel Burst
Fires out a burst of gel in front of you: speed (orange propulsion), jump (blue repulsion), portal (white conversion), or water that erases gel
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Fire Rocket Projectile
Fires a rocket projectile from the player
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Flashlight
Gives you a flashlight
Enable cheats with sv_cheats 1 first, then type impulse 100, press Enter
Cheats disable achievements until you restart the game. Save first.
Give Dual Portal Gun
Hands you a dual (blue/orange) portal gun
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Give Portal Gun
Gives you the basic portal gun
Enable cheats with sv_cheats 1 first, then type give_portalgun, press Enter
Upgrade it with upgrade_portalgun. Cheats disable achievements until restart.
Hide Portal Gun Viewmodel
Hides the portal gun's viewmodel (it can still be fired)
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Jump to a chapter
Loads any single-player map by name.
Requires sv_cheats 1 first.
Jump to Chapter 1
Loads the first map of the single-player campaign
Open console; see the Portal Wiki chamber list for all map names
Restarts from that checkpoint, progress unsaved
Jump to Chapter Map
Jumps to another chapter map without resetting the server, e.g. changelevel sp_a1_intro1
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Kill Player
Kills your character (handy if you get stuck)
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Load Map
Loads the named map and restarts the server for it
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Low Gravity
Lowers gravity from the normal 600 to 300
Enable cheats with sv_cheats 1 first, then type sv_gravity 300, press Enter
Normal gravity is 600. Use sv_gravity 600 to return to normal. Save first.
Place portals on any surface
Portals stick to surfaces that would normally reject them.
Requires sv_cheats 1 first.
Scale Game Speed
Scales game speed; 1 is normal, 0.5 is half-speed, 2 is double
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Scale Gravity
Scales gravity; 600 is the default, lower numbers float, higher numbers slam you down
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Show FPS Readout
Displays a frame-rate readout; set to 0 to hide it
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Show Position
Shows your exact position and velocity — useful for lining up precise portal shots
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Slow Motion
Slows the whole game to half speed
Open the console, type sv_cheats 1 first, then type the command and press Enter
Type host_timescale 1 to restore normal speed
Spawn Antique Cube
Spawns the old 1950s-style "antique" cube from The Fall chapter
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Spawn Citizen
Spawns a citizen NPC
Enable the developer console in Options, Keyboard and Mouse. Press the tilde key during gameplay, type sv_cheats 1, then the command and press Enter
Achievements are disabled while sv_cheats is on
Spawn Companion Cube
Creates a Companion Cube in front of you
Open the console, type sv_cheats 1 first, then type the command and press Enter
Requires sv_cheats 1 first and disables achievements while active
Spawn Headcrab
Spawns a live headcrab
Enable the developer console in Options, Keyboard and Mouse. Press the tilde key during gameplay, type sv_cheats 1, then the command and press Enter
Achievements are disabled while sv_cheats is on
Spawn Reflector Cube
Creates a reflector cube for redirecting lasers
Enable the developer console in Options, Keyboard and Mouse. Press the tilde key during gameplay, type sv_cheats 1, then the command and press Enter
Achievements are disabled while sv_cheats is on
Spawn Skull Prop
Spawns a skull prop — a leftover Half-Life 2 debug command
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Spawn Storage Cube
Creates the classic weighted storage cube
Enable the developer console in Options, Keyboard and Mouse. Press the tilde key during gameplay, type sv_cheats 1, then the command and press Enter
Achievements are disabled while sv_cheats is on
Spawn Weighted Sphere
Spawns a Weighted Companion-style sphere ball
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Spawn Zombie
Spawns a zombie
Enable the developer console in Options, Keyboard and Mouse. Press the tilde key during gameplay, type sv_cheats 1, then the command and press Enter
Achievements are disabled while sv_cheats is on
Switch Camera View
Switches the camera to a third-person view; firstperson returns to normal
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Upgrade to Dual Portals
Upgrades your portal gun so it can fire the second (orange) portal
Enable the console in options, press ~
Using cheats disables Steam achievements for that session
Give the portal gun
Places the dual portal device in your hands anywhere in the game.
Requires sv_cheats 1 first.
No clipping
Fly through walls — the fastest way past a puzzle you are stuck on.
Requires sv_cheats 1 first.
God Mode
Makes you completely invincible
Enable cheats with sv_cheats 1 first, then type god, press Enter
Cheats disable achievements until you restart the game. Save first.
Tools for Portal 2 cheats
-
Why is my cheat not working?
Answer a few questions and get the specific reason, from our guides.
-
Search Portal 2 codes by effect
Type "money" or "god mode" and find the code, typos forgiven.
-
Test your controller and button sequences
See every button respond, and check a sequence press by press.
Buy Portal 2 on Amazon
Opens Amazon search results; check the edition and platform before buying. As an Amazon Associate I earn from qualifying purchases.
Quick answers