Find the file called "swkotor.ini" in your Knights of the Old Republic game folder. The default location is:
C:\Program Files\LucasArts\SWKotOR\swkotor.ini

Open the file with Notepad and under the line [Game Options] add the following line: EnableCheats=1

International Versions

Find the file called "swkotor.ini" in your Knights of the Old Republic game folder. The default location is:
C:\Program Files\LucasArts\SWKotOR\swkotor.ini

Open the file with Notepad and under the line [Game Options] add the following lines: EnableCheats=1
Enable Console=1

Opening the cheat console:

While playing, press [~] or [`]to bring down the console if the language setting of your keyboard is English (United States). The key combination to open the console varies according to the language seeting of your keyboard. Per example, for French (France) language settings, you have to press Alt Gr + 7 . Normally it corresponds to the keys you need to press to type a tilde ~.

Note that the console is a simple small tiny [>] in the upper left corner of the screen.

.If you are unable to open the cheat console, you can get tk102's Kotor SaveGame Editor (KSE) here. KSE will allow you to do almost everything you can do with cheats and even more, such as taking the appearance of any other npc in the game. The only thing KSE cannot do is warping to another area but you can always install Darth333's Easy Warping Armband and add it to your inventory with KSE.

The cheat codes:

( # means that a number has to be inserted - example: setcomputeruse 20 )

healsetcomputeruse #(change your computer skill) setdemolitions #(change your demolition skill) setstealth # (change your stealth skill)setawareness #(change your awareness)setpersuade # (change your persuasion skill)setrepair #(change your repair skill)setsecurity #(change your ssecurity skill)setstrength #(change your strength)setdexterity #(change your dexterity)setconstitution #(change your constitution)setintelligence #(change your intelligence)setwisdom # (change your wisdom)setcharisma # (change your charisma)addexp #(add experience)turbo(turbo speed)invulnerabilityrestartminigamebright(change the brightness of the game) addlightside #(add light side points)adddarkside #(add dark sidee points)revealmap(reveal the entire map for the current area) givecredits #(add credits)giveitem # (add an item to your inventory, for the item codes as well as a full description of each items can be found here)givemed(add medpacks to your inventory) giverepair(add repair kits to your inventory) givecomspikes(add computer spikes to your inventory)givesitharmor(add the sith armor to your inventory warp(warp to another area - you need to enter the name of the module - a list of the area codes can be downloaded here.) whereami(get the xyz coordinates of your PC)addlevel #(add levels)dancedancemalak(turns Malak into a dancing twilek at the end of the game)

You will also find plenty of mods to spice up your game at Holowan Laboratories, our modding forums.