How to activate cheat codes in Baldur’s Gate Enhanced Edition on Steam

Voivod the Fighter and Imoen the Thief standing in the middle of nowhere, somewhere near Candlekeep
Voivod the Fighter and Imoen the Thief standing in the middle of nowhere, somewhere near Candlekeep

For the last few years in Baldur’s Gate (in the few moments that I’ve had a chance to play it) I have activated the cheats (or debug mode). This gives me access to the entire game inventory to equip my character accordingly and a better chance to survive the adventure—I have never yet completed Baldur’s Gate, despite owning it since about 1999 (I still own my original copy on five CD-ROMs).

Having just reinstalled my PC, I was disappointed to discover that the old way of activating cheat mode (by editing baldur.ini) had changed. This is how I managed it today (on Windows 10 Pro 64-bit, with OneDrive installed).

Activate cheat / debug mode

  1. Locate the folder at Documents > Baldur's Gate - Enhanced Edition. On my desktop PC this was in the default Windows 10 Documents folder within OneDrive; on my laptop it is in C:\users\<username>\Documents. It will depend on how your computer was set up.
  2. In a text editor open the file Baldur.lua.
  3. Add the line SetPrivateProfileString('Program Options','Debug Mode','1').
  4. Save and close the file.

Now when you run the game, you can enter the game console by pressing Ctrl + Spacebar. It looks like this, at the bottom of the screen:

Enter your code then press Enter
Enter your code then press Enter

This allows you to enter codes that generate items, amongst other things. For instance this code allows generates a set of Ankheg Plate Mail armour for your current character:

C:CreateItem("PLAT06")

The older versions of Baldur’s Gate used the code CLUAConsole: but this has now been shortened to a single, uppercase C: followed by a colon.

Thanks to a tip from Craig in the comments. If you want to create multiple instances of the same item, add a comma and a number, e.g.

C:CreateItem("AROW01",200)

will create 200 arrows.

Voivod the fighter

Here’s how my intrepid fighter character started his adventure in Candlekeep:

Armed to the hilt, this fighter can even take on the Ogre Mage on the way to the Friendly Arm Inn,
Armed to the hilt, this fighter can even take on the Ogre Mage on the way to the Friendly Arm Inn,

Download the cheat codes

Feel free to download my full list of cheat codes, arranged by type (clothing, jewellery, weapons, magic, and miscellaneous).

You can look up what each item is on the Baldur’s Gate Wiki.

Updated

2020-07-08 Updated article to remove introduction and get straight to the how-to section. Added tip from Craig in the comments about adding multiple items at once.

2020-03-17 Updated cheat codes document to include instructions on how to activate cheats.

2017-04-17 Updated the location of Baldur.lua as it was in two different locations on two PCs running Windows 10. It depends, I guess, on whether Windows 10 is told to use OneDrive as the default save location.

Published by

Gareth Saunders

I’m Gareth J M Saunders, 48 years old, 6′ 4″, father of 3 boys (including twins). Enneagram type FOUR and introvert, I am a non-stipendiary priest in the Scottish Episcopal Church, I sing with the NYCGB alumni choir, play guitar, write, draw and laugh… a lot. Scrum master at Vision Ltd, Dundee. Latterly, web architect and agile project manager at the University of St Andrews and former warden at Agnes Blackadder Hall.

22 thoughts on “How to activate cheat codes in Baldur’s Gate Enhanced Edition on Steam”

    1. If you’re using a text editor that doesn’t recognize programming languages, it will try to save it as a “normal” text file instead of a .lua file. If you use a program like Notepad++ (which is free), it will properly format the file as a .lua file and save it as .lua

      1. I should also mention that there is a difference between a “text editor” and a “source code editor” (as I like to call them). Most text editors will not format a .lua file correctly as it doesn’t always have the capability of recognizing a programming language. This can also cause issues when saving your changes.

  1. The link to the list of items for the cheat codes isn’t quite complete. For example, it doesn’t have all the pantaloons as there are 2 more you can get. If you collect all 3 and then go to the right armor forger they can make into an suit of armor that essentially turns you into the D&D version of iron man. 🙂

  2. Thanks for this, I also just like to play and it gets really boring when you get stuck on one baddie. (I try not to use the cheats but sometimes you just need a little help).
    I also still have my original disks from a long time ago and I love being able to play again as I don’t have a machine to run them on anymore.
    I hear rumors of a BG 3 so really looking forward to that.

    Thanks again and happy gaming!

  3. Ok so I downloaded BGEE from GOG.com…
    I found the Lua file added the cheat debug code and…… nada. Won’t bring up the bar at the bottom to type in cheat items code. Aaargh. What am I doing wrong??? Help!

    1. Hi Brad, I wonder if the gog.com version is the same as the original CD version which has a different hack to initiate cheat codes. Try this:

      1. Make sure the game is not running. Using a text editor like Notepad, open the Baldur.ini file in your Baldur’s Gate directory.
      2. Add the line Cheats=1 under the [Game Options] entry.
      3. Save the file and run the game.
      4. Once in the game, press Ctrl+Tab to toggle the console.
      5. Test it using the code Cheats:Midas() which gives you 500 gold.

      I hope that works for you. Please let me know.

      1. for latest version it is baldur.lua
        line also different
        it is SetPrivateProfileString(‘Program Options’,’Debug Mode’,’1′)
        and you you don’t need to write CLUAConsole: in console
        just C:

      2. HI Gareth,
        I have a Windows 10 machine and the 5 BG2 CDs . I have tried a lot of ways in the .ini modifications and still unable to get this to work. Plus when I did install the game it still asks me for disc 2 so thinking I got twisted up somehow.
        Love this game as a relaxing time, but like others sometimes need a little help to “enjoy” it.

        Any thoughts out there? thanks all!

    1. I haven’t tested these but I found the following on the Beamdog forums (for the Enhanced Edition, replace CLUAConsole: with a simple C:).

      • CLUAConsole:CreateItem(“bag02”) | Gem Bag – Neera has it. She is in Beregost.

      • CLUAConsole:CreateItem(“bag03”) | Scroll Case – Quest reward from Firebead Elvenhair in Beregost (added in patch 1.0.2011 )

      • CLUAConsole:CreateItem(“bag05”) | Ammo Belt – NOT IN THE GAME

      • CLUAConsole:CreateItem(“bag06”) | Potion Case – Thalantyr in High Hedge sells it for circa 200 gold

      • CLUAConsole:CreateItem(“bag31”) | Bag of Holding – NOT IN THE GAME

  4. Thanks for writing this all up! One thing I noticed just now, if you fire up the console after launching from GOG, there is a “GODBOW” button when you press it you get a shortbow giving you -20 AC and a bow that does 99 damage per hit. Can’t wait to use this on Sarevok who I could not defeat even on easy mode.

  5. I cant get the commands to work……the window pops up and I can add gold, xp, and the godbow. and apparently travel anywhere.

    But typing in the commands doesn’t do squat…
    [string “c:createitem(“book04″)”]:1 : attempt to call method ‘createitem’ (a nil value)

    any thoughts?

  6. I am playing/bought baldurs gate we from steam, and have added the cheat codes to the .lua file, and it still won’t bring up the bar at the bottom of the game when running it. I’ve triple checked that I’m entering the right script, it’s in “notepad” and I’m hitting ctl + space bar. All that happens is I pause the game. Any help would be awesome

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.