gamehub.
Home Portal 2

GAMEHUB · CODES & GAME HELP

Portal 2 Cheat Codes: PC single-player

Portal 2 has a built-in PC developer console. For chamber exploration, enable it in Keyboard/Mouse options and use sv_cheats 1 followed by noclip. Console experimentation is separate from valid challenge records.

Platform
PC
Version covered
PC single-player
Sources reviewed

Use cheats only in a single-player game or an authorized private session. Keep an untouched save before changing a game state. This is an independent text guide. Portal 2 is not available to play on Gamehub.

Setup and activation

  1. Save before modifying the chamber.
  2. In Options, Keyboard/Mouse, set Allow Developer Console to Enabled.
  3. Open the console using the backtick/tilde key.
  4. Enter sv_cheats 1 and then one command at a time.

Codes and effects

Code or commandEffect and limits
noclipToggle flight through the map.
sv_cheats 0Disable cheat permission.
r_drawviewmodel 0Hide the held device model.
r_drawviewmodel 1Restore the held device model.
gameinstructor_enable 0Hide instructor pop-up hints.
maps *List installed maps rather than guessing map names.

Version notes and help

Use exploration to understand a puzzle

Noclip can show how a laser, gel route or funnel is connected, but it does not constitute an intended solution. Return to a clean save to solve the test normally. Turning cheats off does not retroactively validate a challenge attempt.

Keep experiments local

This guide is for single-player. In cooperative play the host controls cheat permission, and a movement command can disrupt the other player’s puzzle. Use ordinary pings and partner view for a normal cooperative solution instead.

Restore the model

Use r_drawviewmodel 1 when you want the portal device visible again.

Common questions

Will this affect challenge mode?

The Portal Wiki documents that sv_cheats disables achievement earning and challenge-record submission. Keep records in an unmodified session.

Why does the console key do nothing?

Enable Allow Developer Console first. On a non-US keyboard, the physical key or binding may differ from the tilde symbol.

Sources and further reading

Original Gamehub instructions and explanations, researched against the references below. These are source checks, not a claim that every release or command was tested in-game. Game updates and localizations can change behavior.

Browse Gamehub’s playable games

For a quick browser game with no account, choose a menu below. These links open the Gamehub catalogue, not a hosted copy of Portal 2.