Cheats & codes
Hogwarts Legacy Cheat Codes
Grouped by type and platform, each one labelled reported working or tested.
There are 20 cheat codes for Hogwarts Legacy 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
10Debug Camera Console Command
Detaches the camera from the player for free camera flight around the area
Install the UE4SS mod, press the tilde key to open the console, type toggledebugcamera and press Enter, then type it again to return to the player camera
Requires the UE4SS mod on PC to open the console. Save first, as the debug camera can leave the player stuck off map. Console use can disable achievements, so back up saves first
Fly Console Command
Lets the player character fly and walk on air at the same height, with collisions still on
Install the UE4SS mod, press the tilde key to open the console, type fly and press Enter
Requires the UE4SS mod on PC to open the console. While flying, normal actions like attacking are blocked. Console use can disable achievements, so back up saves first
Freeze AI Console Command
Freezes AI in place. In Hogwarts Legacy the player character also freezes in current engine builds
Install the UE4SS mod, press the tilde key to open the console, type playersonly and press Enter, then type it again to unfreeze
Requires the UE4SS mod on PC to open the console. Do not use it mid combat, as the player also freezes. Console use can disable achievements, so back up saves first
Ghost Console Command
Lets the player character fly through solid objects with collisions off
Install the UE4SS mod, press the tilde key to open the console, type ghost and press Enter
Requires the UE4SS mod on PC to open the console. While in ghost mode, normal actions like attacking are blocked. Console use can disable achievements, so back up saves first
God Mode Console Command
Sets the standard Unreal god flag on the player character
Install the UE4SS mod, press the tilde key to open the console, type god and press Enter
Requires the UE4SS mod on PC to open the console. FearLess notes god alone has no effect in Hogwarts Legacy because the game does not check the flag. Console use can disable achievements, so back up saves first
Normal Game Speed Console Command
Restores game speed to normal speed
Install the UE4SS mod, press the tilde key to open the console, type slomo 1 and press Enter
Requires the UE4SS mod on PC to open the console. Console use can disable achievements, so back up saves first
Slow Motion Console Command
Slows game speed to half speed
Install the UE4SS mod, press the tilde key to open the console, type slomo 0.5 and press Enter
Requires the UE4SS mod on PC to open the console. Console use can disable achievements, so back up saves first
Summon Moonstone Console Command
Spawns a Moonstone rock actor in front of the player
Install the UE4SS mod, press the tilde key to open the console, type summon BP_Moonstone_M_C and press Enter
The actor must already be loaded in the current map. Requires the UE4SS mod on PC to open the console. Console use can disable achievements, so back up saves first
Teleport Console Command
Teleports the player character to the spot the mouse pointer is aimed at
Aim the mouse pointer at a spot, press the tilde key to open the console, type teleport and press Enter
Requires the UE4SS mod on PC to open the console. Run fly first if the target is high up, so the player does not fall after teleporting. Console use can disable achievements, so back up saves first
Walk Console Command
Returns the player character to normal walking and turns collisions back on
Install the UE4SS mod, press the tilde key to open the console, type walk and press Enter
Requires the UE4SS mod on PC to open the console. Console use can disable achievements, so back up saves first
Unlockables
10Unlock Alohomora the Lockpicking Spell
Alohomora opens level 1 locked doors and chests through a lock turning minigame
Complete the main quest The Caretakers Lunar Lament with Gladwin Moon, then cast Alohomora at a locked door and turn both dials until they spin
Higher level locks need Alohomora level 2 and level 3, earned by returning Demiguise Moons to Gladwin Moon
Unlock Avada Kedavra the Killing Curse
Avada Kedavra instantly defeats most enemies with a single cast
Reach level 28, complete Sebastian Sallow side quest In the Shadow of the Relic, choose Everyone should know about that curse, then choose Yes please
Cannot be used on students or faculty members, and learning it is permanent
Unlock Broom Flight
Flying a broom lets you travel fast across the open world and reach high places
Complete the Flying Class main quest after Jackdaw Rest, then buy any broom at Spintwitches Sporting Needs in Hogsmeade for 600 Galleons
Brooms cannot be used inside Hogwarts castle or in some restricted areas
Unlock Crucio the Torture Curse
Crucio damages and curses a target, and cursed enemies take extra damage from follow up attacks
Complete Sebastian Sallow side quest In the Shadow of the Study and choose the dialogue option to learn the curse, then finish the spell learning minigame
Learning the curse is optional and permanent, it cannot be unlearned later
Unlock Graphorn the Lord of the Shore Mount
The Graphorn is a ground mount with a powerful charge attack that can damage enemies
Complete the San Bakar Trial main quest, fight the Lord of the Shore until prompted, then choose Kneel or Attack to tame it
The Graphorn stays on the ground and cannot fly like a broom or Hippogriff
Unlock Highwing the Hippogriff Mount
Highwing is a flying mount that carries you across the map much faster than walking
Complete the High Keep main quest and rescue Highwing from poachers with Natty, then summon the mount from the mounts menu
Flying mounts cannot be summoned inside Hogwarts castle or in restricted zones
Unlock Imperio the Mind Control Curse
Imperio forces an enemy to fight on your side until the effect ends or you dismiss it
Complete Sebastian Sallow side quest In the Shadow of Time and accept his offer to learn the curse, then finish the spell learning minigame
Learning the curse is optional and permanent, it cannot be unlearned later
Unlock Talent Points
Talent points buy upgrades in five trees: Spells, Dark Arts, Core, Stealth, and Room of Requirement
Complete the Jackdaw Rest main quest to reach the Map Chamber and meet Professor Rackham, then earn one talent point per level from level 5 onward
Talent points are limited while there are 48 talents, so not every talent can be taken at once
Unlock the Room of Requirement
The Room of Requirement gives you potion stations, potting tables, a gear loom and space to customise your own room
Reach level 6, complete Flying Class, then meet Professor Weasley at the Astronomy Tower for the Room of Requirement main quest
The room opens only after the main story reaches this quest, it cannot be accessed earlier
Unlock the Vivarium Beast Sanctuary
The Vivarium is a sanctuary inside the Room of Requirement where rescued beasts live and provide materials
Complete the Deek quest The Elf, The Nab-Sack, and the Loom, then enter the Vivarium from the Room of Requirement
Beasts must be rescued with the Nab-Sack first, and more Vivarium biomes open as you progress
Tools for Hogwarts Legacy cheats
-
Why is my cheat not working?
Answer a few questions and get the specific reason, from our guides.
-
Search Hogwarts Legacy 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 Hogwarts Legacy on Amazon
Opens Amazon search results; check the edition and platform before buying. As an Amazon Associate I earn from qualifying purchases.
Quick answers