Cookie Clicker Cheats: All Console Commands & Codes
Cookie Clicker is an idle game developed by Orteil. While the core loop revolves around clicking a giant cookie and purchasing buildings, the game also includes a powerful console-based cheat system. Players can manipulate cookies, production rates, achievements, and even enable a hidden debug menu. This guide covers every essential command, explains how to open the console on all platforms, and details the built-in debug upgrades.
How to Open the Console
All Cookie Clicker cheats are entered through the browser developer console or the in-game console on Steam. The method depends on the platform and browser.
Browser Version
| Browser | Windows / Linux | macOS |
|---|---|---|
| Google Chrome | Ctrl + Shift + J or F12 | Cmd + Option + J |
| Mozilla Firefox | Ctrl + Shift + K or F12 | Cmd + Option + K |
| Microsoft Edge | F12 | F12 |
| Safari | — | Cmd + Option + C |
| Opera GX | Ctrl + Shift + C | — |
After opening the developer tools, click the Console tab, type the desired command, and press Enter to execute it.
Steam Version
The Steam release hides the console by default. To enable it, players must edit a local file:
- Right-click Cookie Clicker in the Steam library and select Manage > Browse local files.
- Navigate to Resources > App.
- Open the Start file in a text editor.
- Find line 12 and change 0 to 1 so it reads: let DEV=1;//display menu and js console
- Save the file and relaunch the game.
The console now appears in-game and accepts the same commands as the browser version.
Cookie & Production Cheats
These commands directly modify the cookie count and production rate. Replace <amount> with any number.
| Effect | Command |
|---|---|
| Set exact cookie amount | Game.cookies = <amount>; |
| Add cookies to current total | Game.Earn(<amount>); |
| Infinite cookies | Game.cookies = Infinity; |
| Set cookies per second | Game.cookiesPs = <amount>; |
| Set mouse cookies per click | Game.computedMouseCps = <amount>; |
| Multiply production by 1000 | Game.gainMult = 1000; |
Achievement & Upgrade Cheats
These commands unlock achievements and upgrades instantly. Achievement names must match the in-game name exactly, including spaces.
| Effect | Command |
|---|---|
| Unlock all achievements | Game.SetAllAchievs(1); |
| Unlock specific achievement | Game.Win('Achievement name'); |
| Unlock all upgrades | Game.SetAllUpgrade(1); |
| Unlock specific upgrade | Game.Unlock('Upgrade name'); |
| Buy specific upgrade | Game.Upgrades['Upgrade name'].earn(); |
| Make all upgrades free | Game.UpgradesById.forEach(function(e){e.basePrice=0;}); Game.upgradesToRebuild=1; |
Auto-Clicker & Golden Cookie Cheats
These scripts automate clicking and golden cookie collection. They run continuously until the page is refreshed.
| Effect | Command |
|---|---|
| Auto-click the big cookie every 10 ms | setInterval(function(){Game.ClickCookie()}, 10); |
| Auto-click golden cookies | setInterval(function(){Game.shimmers.forEach(function(shimmer){if(shimmer.type=="golden"){shimmer.pop()}})}, 500); |
| Spawn a golden cookie | new Game.shimmer('golden'); |
| Force Frenzy buff | Game.gainBuff('frenzy', 77, 7); |
| Force Click Frenzy buff | Game.gainBuff('click frenzy', 77, 777); |
| Remove all buffs | for(let i in Game.buffs) Game.buffs[i].time=1; |
Debug Mode & Special Commands
Cookie Clicker includes a hidden debug mode and a command that unlocks everything at once.
| Effect | Command |
|---|---|
| Open debug menu (Sesame) | Game.OpenSesame(); |
| Unlock everything instantly | Game.RuinTheFun(); |
| Enable all debug upgrades | Game.GetAllDebugs(); |
| Ascend immediately | Game.Ascend(); |
| Hard reset game | Game.HardReset(2); |
| Save game manually | Game.WriteSave(); |
| Load save | Game.LoadSave(); |
Debug Upgrades Explained
When debug mode is active, ten special upgrades become available. They can be toggled on and off in the Stats menu.
| Upgrade | Effect |
|---|---|
| Ultrascience | All research completes in 5 seconds. |
| Gold hoard | Golden cookies spawn every 0.6 seconds. |
| Neuromancy | Unlocks every upgrade and allows toggling them in the Stats menu. |
| Perfect idling | Keeps producing cookies while the game is closed. |
| Wrinkler doormat | Wrinklers spawn 1000 times faster. |
| Reindeer season | Reindeer spawn approximately every two minutes. |
| Eternal seasons | Seasons never expire; no countdown timer. |
| Magic shenanigans | Cookie production multiplied by 1000. |
| Occult obstruction | Cookie production reduced to zero. |
| Glucose-charged air | Sugar lumps mature much faster. |
| Turbo-charged soil | Garden plants grow every second; seeds are free. |
Sugar Lump Cheats
These commands manipulate sugar lumps, which are used to upgrade buildings and unlock minigames.
| Effect | Command |
|---|---|
| Set sugar lump amount | Game.lumps = <amount>; |
| Instantly mature lumps | Game.lumpMatureAge = 0; Game.lumpRipeAge = 0; |
| Remove lump cooldown | Game.canRefillLump = function(){return true;}; |
| Set lump type (0=normal, 1=bifurcated, 2=golden, 3=meaty, 4=caramelized) | Game.lumpCurrentType = <type>; |
The "Cheated Cookies Taste Awful" Achievement
Using certain cheats triggers the hidden achievement Cheated cookies taste awful. This happens in two specific cases:
- Setting the cookie bank to a value greater than cookies baked all time: Game.cookies = Game.cookiesEarned + <amount>;
- Using the Game.RuinTheFun(); command.
Players who wish to avoid this achievement can use the following workaround to duplicate cookies without triggering it:
Game.cookiesEarned += Game.cookies; Game.cookies *= 2;
If the achievement has already been earned, it can be removed with:
Game.Achievements["Cheated cookies taste awful"].won = 0;
Frequently Asked Questions
Are cheats case-sensitive?
Yes. Commands such as Game.Win and Game.RuinTheFun must be typed with exact capitalization. However, strings inside quotes for achievement or upgrade names are also case-sensitive and must match the in-game text exactly.
Do cheats work after refreshing the page?
Most console commands take effect immediately but are not saved unless the game is manually saved afterward. If the page is refreshed before saving, the changes may be lost. It is recommended to run Game.WriteSave(); after applying major cheats.
Can cheats break the save file?
Setting extreme values such as Infinity or NaN can cause display issues or make buildings cost infinite cookies. If this happens, resetting the cookie count with Game.cookies = 0; usually fixes the display. For severe corruption, a hard reset may be necessary.
Is there a way to cheat without opening the console?
Yes. Players can rename their bakery to include saysopensesame to activate a simplified debug menu. Additionally, browser bookmarklets and TamperMonkey userscripts can inject cheat interfaces automatically.
Final Tips
- Always back up the save string before experimenting with destructive commands.
- Use Game.WriteSave(); after applying cheats to preserve progress.
- Start with small numbers when testing production modifiers to avoid overflow.
- Debug upgrades can be toggled individually in the Stats menu after enabling debug mode.
- Cheating is entirely single-player; it does not affect leaderboards or other players.






