Cheats & Console Commands Guide: Full Cheat List
Cookies Clicker exposes a broad, powerful JavaScript interface you can use from your browser console, bookmarklets or user scripts to modify nearly every aspect of your save and gameplay. This page collects the most useful, safe-to-use cheats and tools, organized so you can quickly find commands for cookies, buildings, upgrades, achievements, golden cookies, sugar lumps, debug features, cosmetic tweaks and save editing.
Getting started: opening the console and how to run cheats
- Open the developer console in your browser, then paste/execute commands there.
- Chrome: Ctrl+Shift+I (Windows) or ⌘+Alt+J (Mac) and choose the Console tab.
- Firefox: F12 or Ctrl+Shift+K (Windows), ⌘+Option+K (Mac).
- Opera/Opera GX: Ctrl+Shift+C (developer tools).
- Alternatives to pasting into the console:
- Bookmarklet: create a bookmark with URL javascript:(function(){var script=document.createElement('script');script.src='<script URL>';document.body.appendChild(script);}());
- Tampermonkey/Greasemonkey user script: include Game.LoadMod or inject your script.
- Convenience: define short functions in the console for commands you use often.
Cookies and currency
- Set exact cookie bank:
- Game.cookies =
- Game.cookies =
- Add cookies to current bank:
- Game.Earn(
)
- Game.Earn(
- Subtract cookies:
- Game.cookies -=
- Game.cookies -=
- Displayed cookie anomalies:
- To show Infinity in-game: Game.cookies = Infinity
- To set NaN display (looks like infinity but not numerically useful): Game.cookies = NaN
- To reset displayed number if it becomes stuck: Game.cookies = 0
- To set negative/infinite clearing: Game.cookies = -Infinity
Warning: Some changes can trigger the "Cheated cookies taste awful" shadow achievement (see its section below).
Golden / Wrath cookies and shimmers
- Spawn a golden cookie:
- var newShimmer = new Game.shimmer('golden');
- Force a cookie chain stage (start chain at 6/66/666... pattern):
- Game.shimmer.chain =
(use 1 for 6, 2 for 66, 3 for 666, etc.)
- Game.shimmer.chain =
- Spawn golden/wrath cookies continuously (no delay):
- setInterval(function(){ Game.shimmer.wrath = 0; Game.shimmer.delay = 0; }, 1);
- Grant a golden-cookie-like buff without clicking a cookie:
- var effectDurMod = 1; Game.gainBuff('
', Math.ceil( *effectDurMod), );
- var effectDurMod = 1; Game.gainBuff('
- Remove buffs/debuffs: you can remove active buffs via Game.buffs and relevant API (use console exploration) or set durations to 0.
Note: Wrath cookies are coded as golden cookies for many scripts. Scripts that affect golden cookies typically affect wrath cookies as well.
Buildings and buyables
- Set number owned (example):
- Cursors = 100; Grandmas = 30;
- For any buyable use internal name: Game.Objects['
Cursor'].amount =
or Buyables["Cursor"] related calls in Classic versions.
- Refresh store display after changes:
- StoreToRebuild = 1; or Game.storeToRebuild = 1
- Make all buildings free:
- Game.ObjectsById.forEach(function(e){ e.basePrice = 0; e.refresh(); }); Game.storeToRebuild = 1;
- Keep prices at base price (disable price inflation):
- Game.priceIncrease = 1;
- Set bulk buy amount:
- Game.buyBulk =
- Game.buyBulk =
- Building-specific minigame tweaks:
Wizard tower (grimoire) magic refill: Game.Objects['Wizard tower'].minigame.magic = Infinity (or -1 for infinite indicator)
Temple worship swaps: Game.Objects['Temple'].minigame.swaps = 3 (or Infinity)
Farm: unlock seeds as if "Ruin the Fun": Game.Objects['Farm'].minigame.onRuinTheFun();
- Upgrade building levels (sugar lump levels):
- Game.ObjectsById[
].level = ; Game.recalculateGains = 1;
- Game.ObjectsById[
Upgrades and debug upgrades
- Unlock a single upgrade:
- Game.Unlock(Game.UpgradesById[
].name) or Game.Unlock(' ');
- Game.Unlock(Game.UpgradesById[
- Unlock and buy:
- Game.UpgradesById[
].earn() or Game.Upgrades[' '].earn()
- Game.UpgradesById[
- Unlock/earn all upgrades:
- Game.UpgradesById.forEach(function(e){ if(e.bought===0) e.earn(); });
- Or enable all upgrades: Game.SetAllUpgrades(1);
- Make all upgrades free:
- Game.UpgradesById.forEach(function(e){ e.basePrice = 0; }); Game.upgradesToRebuild = 1;
- Debug upgrades (Open Sesame / debug menu) exist only when debug mode is enabled (see Open Sesame). They include powerful effects such as ultrascience, gold hoard, neuromancy, perfect idling, etc.
Achievements
- Award a specific achievement:
- Game.Win('
') or Game.Win(Game.AchievementsById[ ].name)
- Game.Win('
- Award all achievements:
- Object.entries(Game.AchievementsById).forEach(function(e){ Game.Win(e[1].name); });
- Remove an achievement:
- Game.Achievements['
'].won = 0 or Game.AchievementsById[ ].won = 0
- Game.Achievements['
- Note: Removing achievements does not reduce milk percentage.
Wrinklers, Grandmapocalypse and related
- Collect / pop all wrinklers now:
- Game.CollectWrinklers()
- Instantly kill wrinklers as they spawn (useful for achievements):
- Game.registerHook('logic', () => { Game.wrinklers.forEach(w => w.hp -= Number.MAX_VALUE) });
- Or set wrinkler HP to 0 for older versions: Game.wrinklerHP = 0
- Change wrinkler limit:
- Game.wrinklerLimit =
(cannot increase beyond your max)
- Game.wrinklerLimit =
- Prevent wrinklers spawning:
- Game.spawnWrinkler = () => { return; }
- Change Elder Pledge time left:
- Game.pledgeT =
* 60 * Game.fps
- Game.pledgeT =
- Auto-buy Elder Pledge when available:
- setInterval(function(){ if(Game.UpgradesInStore.indexOf(Game.Upgrades['Elder Pledge']) != -1) Game.Upgrades['Elder Pledge'].buy(); }, 500);
Sugar lumps
- Set number of lumps:
- Game.lumps =
- Game.lumps =
- Change current lump type:
- Game.lumpCurrentType =
where 0=normal, 1=bifurcated, 2=golden, 3=meaty, 4=caramelized
- Game.lumpCurrentType =
- Remove lump cooldown for refill uses:
- Game.canRefillLump = function(){ return true; }
Heavenly chips / prestige
- Temporarily set heavenly chips:
- Game.prestige = []; Game.prestige['Heavenly chips'] =
;
- Game.prestige = []; Game.prestige['Heavenly chips'] =
- Permanently set prestige to a desired number of HC:
- var nhc =
; Game.cookiesReset = nhc * (nhc + 1) * 1e12 / 2; Game.CalculatePrestige();
- var nhc =
- Grant maximum or infinite HC:
- Game.cookiesReset = Number.MAX_VALUE; Game.CalculatePrestige();
- For infinity: Game.prestige = []; Game.prestige['Heavenly chips'] = Infinity; Game.prestige.ready = 1; Game.recalculateGains = 1;
- Fix visible heavenly chip counters if needed:
- Game.heavenlyChips = Game.prestige - Game.heavenlyChipsSpent
Dungeons, Stock Market, and minigames
- Dungeon level:
- Game.Objects.
Factory.dungeon.level =
- Game.Objects.
- Speed up dungeon traversal:
- setInterval(function(){ Game.Objects['Factory'].dungeon.timer = 0; },
)
- setInterval(function(){ Game.Objects['Factory'].dungeon.timer = 0; },
- Stock Market (unused features & debug tooltips): some tooltips and unused "opportunities" code can be exposed by assigning onmouseover handlers in console; minigame internals are accessible for profit/properties via Game.Objects['
Bank'].minigame.
Save editing and import/export
- Export your save from the game, decode base64, edit numeric fields, re-encode and import.
- Manual method: remove "%21END%21", replace "%3D" with "=", base64-decode UTF-8, edit, re-encode, replace "=" with "%3D", append "%21END%21", import.
- You can also use save editor web tools or community editors.
- Hacking the save will persist changes; be aware of version/format expectations.
Cosmetic tweaks and UI
- Party mode (flashy visuals, seizure warning):
- Game.PARTY = true
- Big cookie face (grandma face / elder):
- Game.addClass('elderWrath') to enable; Game.removeClass('elderWrath') to remove
- Custom news tickers:
- var customTickers = ['text1','text2']; customTickersFunction = function(){ return customTickers; }; Game.customTickers.push(customTickersFunction);
- Change displayed FPS (frame count used by many timers):
- Game.fps =
(affects timers that count frames; not strictly wall-clock speed of all animations)
- Game.fps =
Caution: many timers (research, dungeon, frame-based minigame timers) use Game.fps in their calculations; altering fps will change perceived durations.
Debug/Open Sesame, Ruin The Fun and debug menu
- Open Sesame (enables debug panel on web version):
- Use Game.OpenSesame(); or add "saysopensesame" to the end of your bakery name (web only) to unlock debug menu.
- Debug panel grants access to debug upgrades and functions (spawn golden cookies, set cookies, manipulate lumps, enable/disable debug upgrades).
- Ruin The Fun:
- Game.RuinTheFun(1); instantly grants all upgrades, achievements and cookies (and some debug upgrades); this is a complete "god mode."
- Neuromancy debug upgrade toggles debug upgrades in Stats menu; enabling debug mode will award the "Cheated cookies taste awful" shadow achievement.
Mods, cheat interfaces and automation tools
- Load popular helper mods from console:
- Cookie Monster: Game.LoadMod("https://cookiemonsterteam.github.io/CookieMonster/dist/CookieMonster.js");
- Choose Your Own Lump (requires CCSE): Game.LoadMod('https://staticvariablejames.github.io/ChooseYourOwnLump/ChooseYourOwnLump.js');
- Crustulum and Cookie Clicker Helper are full cheat/automation user scripts that offer many toggles (autoclicking, infinite resources, minigame automation).
- You can run automation directly in console: setInterval(function(){ Game.ClickCookie(); }, 10) auto-clicks the big cookie (browsers may cap minimum interval).
Save-scumming and drop farming tips
- To try repeatedly for a random drop (eggs, wrinkler drops): pop a wrinkler or click a golden cookie, then reload page without saving to revert and try again.
- Egg unlock base fail rates and modifiers exist; using the console to trigger/detect drops plus reload can speed farming.
Cosmetic & functional replacements
- Replace or inject custom images/icons:
- Game.Loader.Replace('filename.png', '
'); - Or set element styles directly for updating elements: l("id").style =
background: url('${""}');
- Game.Loader.Replace('filename.png', '
Creating convenience shortcuts
- Define small functions to reuse multi-line cheats:
- Example click frenzy helper: function gimmeClickFrenzy(time){ Game.clickFrenzy = Game.fps * time; Game.recalculateGains = 1; Game.Popup('Click frenzy for ' + time + 's'); }
Safety, warnings and etiquette
- Many cheats modify your save permanently. Export your save before making big changes.
- Using cheats or mods may disable or award the "Cheated cookies taste awful" shadow achievement. The two events that trigger it are:
- Setting Game.cookies to a value greater than Game.cookiesEarned (i.e., bank > lifetime baked).
- Enabling Open Sesame (debug mode).
- You can remove that achievement with Game.Achievements["Cheated cookies taste awful"].won = 0 or via Neuromancy in debug mode.
- Altering frame rate (Game.fps) affects frame-based timers (research, dungeons, some minigame timings).
- Leaderboards and competitions may restrict use of mods/autoclickers — check rules if you participate.
- Some community scripts offer powerful automation — using them is effectively cheating and may reduce the intended challenge.
This collection covers the most commonly used cheat commands and mod loading patterns. Use them carefully: always export your save before experimenting, and remember that many changes (especially debug modes and Ruin The Fun) permanently alter progression and may award the cheated shadow achievement.
Pages featured in this guide
- achievementThe Abakening
- achievementCookie Clicker
- achievementHardcore baking
- achievementCheated cookies taste awful
- upgradeAngels
- achievementAnd beyond
- achievementAugmenter
- achievementFast
- achievementModern times
- achievementAcquire currency
- upgradeAmbidextrous
- upgradeAncient grimoires
- upgradeCarpal tunnel prevention cream
- upgradeChocolate macarons
- upgradeCookie egg
- upgradeCrackers