BGEE Console Commands: Enable CLUA Console, AddGold, XP, Cheat Keys

November 27, 2026 · Cheat Codes, RPG
Quick answer: BGEE console commands need Debug Mode switched on in Baldur.lua. Add the line, load a game, press Ctrl+Space and type C:AddGold(10000) to give the party gold.

BGEE console commands run through the CLUA console, a hidden debug window in Baldur's Gate: Enhanced Edition and Baldur's Gate II: Enhanced Edition. It is switched on by editing one file, and commands start with the prefix C:.

The syntax below was checked against the IESDP CLUA Console reference and community threads on Steam and the Beamdog forums. Pre-2.0 builds use a different file and prefix, so both are covered.

How to enable the BGEE console

Switch on Debug Mode in the game's settings file, then open the console with Ctrl+Space. The file lives in Documents\Baldur's Gate - Enhanced Edition.

Patch v2.0 and later

  1. Close the game and open Baldur.lua in a text editor.
  2. Add this line: SetPrivateProfileString('Program Options','Debug Mode','1')
  3. Save the file and start the game.
  4. Start a new game or load a save, then press Ctrl+Space.

Before patch v2.0

Open Baldur.ini instead, find the line INSERT INTO options ROWS ( and add 'Program Options', 'Debug Mode', '1' beneath it. Older builds use the prefix CLUAConsole:.

Type commands in the editing area at the bottom of the screen and press Enter. The same steps work for BG2:EE.

How the commands are written

  • Use the prefix C: on current patches. A forum post notes that C is just short for CLUAConsole, so both work.
  • The separator is a colon, not a dot. Typing a dot makes commands fail.
  • Text goes in double quotes, numbers do not.
  • Many commands act on the selected character, so click a portrait first.

BGEE console commands list

Command What it does
C:AddGold(<int>) Gives the party the specified amount of gold.
C:SetCurrentXP("<int>") Sets the XP of the selected characters.
C:CreateItem("<string>",<int>,<int>,<int>) Creates the named item; the integers set amount or charges.
C:AddSpell("<string>") Adds the named spell to the selected character.
C:CreateCreature("<string>") Creates the named creature.
C:ExploreArea() Explores the current area fully.
C:MoveToArea("<string>") Moves the selected characters to the named area.
C:SetWeather(<int>) Sets the current weather.
C:StartStore("<string>") Opens the named store.
C:EnableCheatKeys(<int>) 1 turns the cheat keys on, 0 turns them off.
C:SetGlobal("<string1>","<string2>",<int>) Sets the variable named by string1, of type string2.
C:GetGlobal("<string1>","<string2>") Displays that variable.
C:Eval(<string>,<int>) Runs a script action. The optional integer picks the party member by portrait slot, starting at 0.
C:Exec(<string>) Runs the commands in a named text file.
C:Eval('RegainPaladinHood()') Removes the Fallen Paladin status from the selected character.
C:Eval('RegainRangerHood()') Removes the Fallen Ranger status from the selected character.

IESDP also lists display helpers such as StrrefOn() and StrrefOff(), which show string reference numbers, plus PlayMovie, PlaySound and TestAllDialog().

Worked examples

  • C:AddGold(10000) adds 10,000 gold to the party purse.
  • C:ExploreArea() removes the fog of war on the current map.
  • C:SetCurrentXP("100000") sets the selected character's experience to 100000.
  • C:EnableCheatKeys(1) unlocks the keyboard shortcuts in the next section.

Item, spell and creature names are game resource codes, not display names, so you need the code from a data reference before using CreateItem, AddSpell or CreateCreature. If you play other isometric RPGs, the Pillars of Eternity console commands and Deadfire console commands work differently, while the Pathfinder Kingmaker console commands guide covers a third system.

Cheat keys

After running C:EnableCheatKeys(1), these Ctrl shortcuts become active. They act on the creature under the cursor.

Key What it does
Ctrl+Q Creature under the cursor joins the party.
Ctrl+K Removes the creature under the cursor from the party.
Ctrl+Y Kills the creature under the cursor.
Ctrl+R Heals the character under the cursor.
Ctrl+J Teleports to the cursor.
Ctrl+T Advances game time one hour.
Ctrl+U Highlights doors and ground objects.
Ctrl+8 On the stat distribution screen, sets stats to maximum.

For more RPG consoles see Divinity Original Sin 2 console commands, Wasteland 3 console commands and ATOM RPG console commands, or open all game cheat codes.

Why BGEE console commands are not working

  • Ctrl+Space does nothing: Debug Mode is not on. Re-check the line in Baldur.lua and that the file saved in the right Documents folder.
  • Command does nothing: use a colon, not a dot, after the prefix.
  • Wrong file on a new build: patch 2.0 and later use Baldur.lua, not Baldur.ini.
  • Item or spell not created: the string must be the exact resource code.
  • Cheat keys do not work: run C:EnableCheatKeys(1) first.
  • Effect on the wrong character: select the character before running the command.

BGEE console commands FAQ

How do I open the console in Baldur's Gate Enhanced Edition?

Add the Debug Mode line to Baldur.lua, start a game and press Ctrl+Space. BGEE console commands start with C: and go in the box at the bottom of the screen.

How do I add gold in BGEE?

Open the console and run C:AddGold(10000), replacing the number with the amount you want. The gold is added to the party.

How do I add XP in BGEE?

Select a character and run C:SetCurrentXP with the number in quotes, for example C:SetCurrentXP(“100000”). It sets experience for the selected characters.

What is the difference between C: and CLUAConsole:?

They are the same prefix. CLUAConsole: was used before patch 2.0, and C: is the short form used since. Use a colon, not a dot.

Does the console work in BG2 Enhanced Edition?

Yes. The IESDP reference covers both games and the Baldur.lua steps are the same.

How do I recruit any character with cheats?

Run C:EnableCheatKeys(1), hover over the creature and press Ctrl+Q. The creature under the cursor joins the party.

Sources

  • IESDP – CLUA Console for BG(2):EE
  • Steam Community – Baldur's Gate: Enhanced Edition discussions
  • Beamdog forums – CLUA Console threads
  • GOG forum – CLUAConsole threads

Leave a Reply

Your email address will not be published. Required fields are marked *