KOTOR 2 Console Commands: Enable Cheats and Full List

November 9, 2026 · Cheat Codes, RPG
Quick answer: KOTOR 2 console commands work on PC after you add EnableCheats=1 under [Game Options] in swkotor2.ini. Press the tilde key in game, type a code such as heal and press Enter. The console box is invisible.

KOTOR 2 console commands give you credits, XP, alignment points, items and skill changes, but the console is off until you edit one line in the game’s ini file. Once it is on, you press the backtick key and type blind.

The commands below were checked against StrategyWiki, a SteamAH command guide, a commands.gg guide and Steam and Deadlystream threads. Codes are case sensitive, so type them exactly as shown. This page covers The Sith Lords; the first game has its own list in our KOTOR console commands guide.

How to enable the KOTOR 2 console

  1. Close the game.
  2. Open the KOTOR 2 install folder. On Steam, right-click the game, choose Properties, Local Files, then Browse Local Files.
  3. Open swkotor2.ini in a text editor. Edit the KOTOR 2 file, not the one for the first game.
  4. Under the [Game Options] heading, add the line EnableCheats=1.
  5. Save the file, start the game and press the tilde key (~ or `).
  6. Type a code and press Enter.

The console in The Sith Lords is invisible. Nothing appears when you press the key, but it is open. A quick test is to press the tilde key once. If your character stops moving, the console is on. You can also type heal and watch for the effect.

If Windows refuses to save the ini because the game is in Program Files, run your text editor as administrator and clear the read-only flag on the file. Players on Deadlystream also suggest running the game as administrator. The EnableCheats setting is reported not to work on the Mac App Store version, so use the Steam copy.

Before you use commands: Saves made after using cheats are marked “Cheat Used”. Back up your save first, because some of these commands change your character permanently.

KOTOR 2 console commands list

These are the commands that show up in both the SteamAH and commands.gg lists. Replace ## with a number and do not type the symbols.

General and utility

Command What it does
heal Heals your character.
invulnerability Toggles invulnerability.
infiniteuses Gives unlimited uses of items and abilities.
turbo Speeds up the game.
bright Brightens the screen for dark areas.
revealmap Reveals the current area map.
whereami Shows your current location.
restartminigame Restarts the current mini-game.
dance_dance_revan A joke command listed in the SteamAH guide.

Credits, supplies and items

Command What it does
givecredits ## Gives that many credits.
givemed Gives medical supplies.
giverepair Gives repair parts.
givecomspikes Gives computer spikes.
givesitharmour Gives Sith armour.
giveitem <item code> Gives a specific item by its internal code.

Experience and alignment

Command What it does
addexp ## Adds experience points.
addlevel ## Adds character levels.
addlightside ## Adds light side points.
adddarkside ## Adds dark side points.

None of the guides give a safe maximum for these numbers. Start small and save before you test a big value.

Skill and attribute commands

Each setter takes a number: type the command, a space and the new value. SteamAH lists these: settreatinjury, setcomputeruse, setdemolitions, setstealth, setawareness, setcharisma, setwisdom, setintelligence, setconstitution, setdexterity, setstrength, setsecurity, setrepair and setpersuade.

For example, setpersuade 20 sets Persuade on the active character to 20. No guide documents the valid range, so values that look absurd may do nothing or break the character sheet.

How to spawn items with giveitem

Type giveitem followed by the item’s internal code. The SteamAH guide has seven long code tables, with entries such as a_belt_29. That guide also has typos and duplicate rows, so if a code does nothing, check the spelling and try another source.

Item codes are the easiest place to go wrong. They are lowercase, use underscores and contain no spaces. A code with a stray space or a missing prefix will fail silently, and because the console box is invisible you will not see an error.

Console key not working on your keyboard

On a US keyboard the console key is the one left of the 1 key. On other layouts it can sit somewhere else. The commands.gg guide lists these alternatives: ` (UK), §, ö, @ and ç.

A Deadlystream poster with a German layout fixed it by switching to an English layout with Alt+Shift. Another typed the accent key and then Shift plus the accent key to produce a backtick. A Finnish forum post suggests Shift plus the tilde key if the plain key does not respond.

If you like role-playing games with a hidden console, our Dragon Age Origins console commands and Mass Effect Legendary Edition console commands guides use a similar approach. See also Dragon Age Inquisition console commands and Mass Effect Andromeda console commands, or browse all game cheat codes.

KOTOR 2 console commands not working

  • Nothing happens: confirm EnableCheats=1 sits under [Game Options] in swkotor2.ini and that you actually saved the file. One Deadlystream user thought they had saved it but had not.
  • Wrong ini: the first game uses swkotor.ini. Edit the file in the KOTOR 2 folder.
  • Typed code ignored: check spelling and capitals. The text box is invisible, so a typo gives no feedback.
  • Key does nothing: try the layout alternatives in the section above, and turn Caps Lock off.
  • Cannot save the ini: clear read-only, edit as administrator, or move to a folder outside Program Files.
  • Missing saves after running as administrator: one player reports Windows redirected non-admin saves to another location.

KOTOR 2 console commands FAQ

How do I enable cheats in KOTOR 2?

Open swkotor2.ini in the game folder, add EnableCheats=1 under [Game Options], save, then press the tilde key in game and type a command. The console box is invisible, so type carefully.

What are the KOTOR 2 console commands for credits and XP?

Use givecredits ## for credits, addexp ## for experience points and addlevel ## for levels. Replace ## with a number, and save first because the effect is permanent.

How do I get items with KOTOR 2 console commands?

Type giveitem followed by the internal item code, for example a_belt_29 from the SteamAH tables. Codes must be spelled exactly, and a wrong code gives no visible error.

How do I change my light side or dark side points in KOTOR 2?

Type addlightside ## or adddarkside ## with a number. This shifts your alignment in the chosen direction, so use small amounts and check the result on your character sheet.

Why is the KOTOR 2 console not working?

Usual causes are an unsaved ini edit, the wrong ini file, a keyboard layout that does not produce the tilde key, or a misspelled code. Try administrator rights and an English layout.

Do KOTOR 2 cheats work on Xbox, Switch or mobile?

The console method here is documented for PC through the ini file. Mac App Store copies are reported not to honor EnableCheats. No console method is documented for other platforms.

Do cheats affect my KOTOR 2 save?

Saves made after using cheats are marked Cheat Used. Keep a separate backup save made before you start experimenting.

Sources

  • StrategyWiki – KOTOR II Cheats
  • SteamAH – Star Wars KOTOR II console commands guide
  • commands.gg – KOTOR console help
  • Deadlystream – cheats thread
  • Steam Community – KOTOR II discussions

Leave a Reply

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