Advertisement
Portal 2

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.

Verified
Sponsored

Console commands

42

Attach Potato GLaDOS

Attaches GLaDOS-as-a-potato to your portal gun (the late-campaign look)

Enable the console in options, press ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Cheats disable achievements until you restart the game. Save first.

Change gravity

Changes gravity; 600 is default

Open console, requires sv_cheats 1

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Can disconnect you from your own portals

Delete Aimed Object

Deletes the object you're currently aiming at

Enable the console in options, press ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

Using cheats disables Steam achievements for that session

Disable Cheat Mode

Turns cheat mode back off

Enable the console in options, press ~

PC Reported working
Did this work for you?

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 `.

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

Using cheats disables Steam achievements for that session

Fire Rocket Projectile

Fires a rocket projectile from the player

Enable the console in options, press ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

Using cheats disables Steam achievements for that session

Jump to a chapter

Loads any single-player map by name.

Requires sv_cheats 1 first.

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

Using cheats disables Steam achievements for that session

Kill Player

Kills your character (handy if you get stuck)

Enable the console in options, press ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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.

PC Reported working
Did this work for you?

Scale Game Speed

Scales game speed; 1 is normal, 0.5 is half-speed, 2 is double

Enable the console in options, press ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

Achievements are disabled while sv_cheats is on

Spawn Weighted Sphere

Spawns a Weighted Companion-style sphere ball

Enable the console in options, press ~

PC Reported working
Did this work for you?

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

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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 ~

PC Reported working
Did this work for you?

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.

PC Reported working
Did this work for you?

No clipping

Fly through walls — the fastest way past a puzzle you are stuck on.

Requires sv_cheats 1 first.

PC Reported working
Did this work for you?

God Mode

Makes you completely invincible

Enable cheats with sv_cheats 1 first, then type god, press Enter

PC Reported working
Did this work for you?

Cheats disable achievements until you restart the game. Save first.

A code stopped working after a patch? Tell us and we will retest it. Know one we are missing? Submit it here. What the tested badge means, and which codes carry it.

Tools for Portal 2 cheats

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

About Portal 2 cheats

How many cheats does Portal 2 have?
This page lists 42 for Portal 2, all of them console commands.
How do you enter cheats in Portal 2?
Enable the console in options, press ~. A few codes use a different method, shown beside each one.
Do cheats disable achievements in Portal 2?
33 of the 42 codes here carry a warning about achievements or trophies. The note reads: "Using cheats disables Steam achievements for that session."
Which platforms are these Portal 2 cheats for?
The codes on this page are listed for PC (42 codes). Where the game came out on other systems, the codes may differ there.
Are these Portal 2 cheats still working?
All 42 are marked "Reported working": each comes from a documented source, and none has been run by us yet. A code we test gets a dated "Tested" badge.
Advertisement