Clicking one giant cookie until your wrist begs for mercy gets old fast, which is exactly why so many players go hunting for Cookie Clicker cheats. The best part is that you don’t need sketchy downloads or special software. Orteil hid a full debug menu inside the game, and your browser’s console can rewrite almost anything, from your cookie bank to how often golden cookies drop. All working Cookie Clicker cheats, commands, and hacks have been curated by us so that you don’t have to go anywhere else. See them below to get every achievement unlocked!

All Working Cookie Clicker Cheats
These are the cheats most players come looking for. Each one goes into your browser console, and we explain how to open it a little further down.
| What You Want | Command |
| Add cookies to your bank | Game.Earn(1000000); |
| Set your exact cookie count | Game.cookies = 1000000; |
| Open the Open Sesame cheat menu | Game.OpenSesame(); |
| Spawn a golden cookie | new Game.shimmer(‘golden’); |
| Auto click the big cookie | var autoClicker = setInterval(function(){Game.ClickCookie();}, 10); |
| Stop the auto clicker | clearInterval(autoClicker); |
| Add sugar lumps | Game.gainLumps(10); |
| Unlock every upgrade and achievement | Game.RuinTheFun(); |
Prefer not to touch code at all? The bakery name trick covered below opens the same cheat menu without typing a single command.
How Do Cheats Work in Cookie Clicker?
Cookie Clicker has no cheat toggle in the settings and nothing to redeem. All Cookie Clicker cheats run through one of two tools that already come with the game:
- The Open Sesame panel: A hidden debug menu you unlock by renaming your bakery. No code needed.
- The browser console: A developer tool inside Chrome, Edge, Firefox and Safari where you paste short commands that change the game directly.

Cookie Clicker is a single player game, so there’s no ban system or competitive mode to worry about. The only things at stake are your save file and the bragging rights of doing everything the slow way.
Which Versions of Cookie Clicker Support Cheats?
Where you play decides which cheats in Cookie Clicker you can actually use.
| Version | Console Commands | Open Sesame Name Trick |
| Browser on PC or Mac | Yes | Yes |
| Browser on a phone or tablet | No console in most mobile browsers | Yes |
| Steam | Yes, after a small file edit | No |
| Android app | No known method | No known method |
| PlayStation, Xbox and Nintendo Switch | No known method | No known method |
If you’re on mobile, the easiest route is opening the browser version of Cookie Clicker and using the name trick.

Are There Any Cookie Clicker Cheat Codes to Redeem?
No. When people search for Cookie Clicker cheats codes, they really mean console commands. The original game has never handed out promo codes the way Roblox games do. If you’re used to grabbing freebies from lists like our Race Clicker codes guide, that system simply doesn’t exist here. Any page promising redeemable Cookie Clicker codes is usually talking about a different game that borrows the name.
How to Get Cheats in Cookie Clicker With the Open Sesame Name
This is the easiest way in. It needs no console and no code, which makes it the best option on phones and on laptops where developer tools are locked.

How to Rename Your Bakery to Unlock Open Sesame
- Open Cookie Clicker in your browser.
- Click your bakery name at the top of the left panel, right above your cookie count.
- Type a short name followed by saysopensesame, for example Mia saysopensesame or Miasaysopensesame.
- Click Confirm.
- A small Open Sesame tab pops up in the top left corner. Hover over it to see every option.
The panel stays on screen until you refresh the page, even if you rename your bakery back to normal.
Why Is the Cookie Clicker Cheat Name Not Working?
If the Cookie Clicker cheats opensesame trick does nothing, one of these is almost always the reason:
- The name is too long – Bakery names cap at 28 characters, and saysopensesame eats up 14 of them. Anything past the limit gets cut off, which breaks the trick. Keep the part before it at 14 characters or fewer, spaces included.
- The phrase isn’t at the very end – Nothing can come after saysopensesame. Put a short name or even a single letter in front of it rather than using the phrase on its own.
- There’s a typo – It’s one word with no spaces inside it. Type it in lowercase to be safe.
- You’re playing on Steam – The name trick is switched off in the Steam version. Skip to the Steam section below instead.
What Can You Do in the Open Sesame Menu?
Open Sesame is the Cookie Clicker debug menu, basically Orteil’s personal testing toolkit, and it’s packed. From the panel, you can:
- Spawn golden cookies and pick exactly which effect they trigger
- Add or remove every upgrade and achievement with one button
- Unlock debug upgrades that bend the rules of the game
- Hold Ctrl and click a wrinkler to switch it between shiny and normal
The debug upgrades are the real highlight. Each one costs just 7 cookies, and you can switch them on or off anytime from the Stats menu.
| Debug Upgrade | What It Does |
| Ultrascience | Research finishes in only 5 seconds |
| Gold hoard | Golden cookies appear constantly |
| Neuromancy | Lets you toggle any upgrade on or off from the Stats menu |
| Perfect idling | Keeps producing cookies while the game is closed |
| Wrinkler doormat | Wrinklers spawn far more often |
| Reindeer season | Reindeer appear far more often |
| Eternal seasons | Seasonal events never run out |
| Magic shenanigans | Multiplies cookie production by 1,000 |
| Occult obstruction | Drops cookie production to zero |
| Glucose-charged air | Sugar lumps grow much faster |
| Turbo-charged soil | Garden plants grow every second, seeds are free, and you can swap soil anytime |
How to Hack Cookie Clicker Using the Browser Console?
Here’s the short answer:
Open your browser’s developer tools on the Cookie Clicker tab, switch to the Console tab, paste a command and press Enter. Most Cookie Clicker cheats live here, and it’s genuinely that simple.

How to Open the Console in Every Browser
| Browser | Windows | Mac |
| Google Chrome | Ctrl + Shift + J | Cmd + Option + J |
| Microsoft Edge | Ctrl + Shift + J or F12 | Cmd + Option + J |
| Mozilla Firefox | Ctrl + Shift + K | Cmd + Option + K |
| Opera and Opera GX | Ctrl + Shift + I, then click Console | Cmd + Option + I, then click Console |
| Safari | Not available on Windows | Cmd + Option + C |
Safari hides its developer tools by default, so turn them on under Settings, then Advanced, before using the shortcut.
How to Run Your First Cookie Clicker Cheat
- Open Cookie Clicker and keep that tab active.
- Open the console with the shortcut for your browser.
- Click inside the console, paste Game.Earn(1000000); and press Enter.
- Enjoy the million cookies that just landed in your bank.
A few things trip up almost every beginner:
- Paste warnings: Chrome and Firefox may block your first paste with a scam warning. Type allow pasting, press Enter, then paste your command again.
- Capital letters matter: Commands are case sensitive. game.earn fails, while Game.Earn works.
- Seeing undefined is fine: That reply just means the command ran and had nothing to report back.

How to Use Cookie Clicker Hacks Without the Console?
If your browser blocks developer tools, a simple bookmark can run commands for you.
- Create a new bookmark in your browser.
- Name it anything you like, such as Open Sesame.
- Paste javascript:Game.OpenSesame();void(0); into the URL field and save it.
- Open Cookie Clicker and click the bookmark.
Swap Game.OpenSesame(); for any other command in this guide to turn it into a one click cheat. Some managed school or work devices block bookmarks like this too, in which case the bakery name trick is your best bet.
How to Use Cookie Clicker Cheats on Steam
Cookie Clicker Steam cheats need one extra step. The Steam version runs as its own app, so there’s no browser console by default and the bakery name trick does nothing. You can still unlock the console by flipping one setting in the game files.
- In your Steam library, right click Cookie Clicker and choose Manage, then Browse local files.
- Open the resources folder, followed by the app folder.
- Open start.js with Notepad or any other text editor.
- Near the top, find let DEV=0; and change it to let DEV=1;
- Save the file and launch the game again.
- Developer tools, including a console, now open alongside the game. Paste Game.OpenSesame(); or any command from this guide.
Keep two things in mind. Steam achievements stop unlocking while developer mode is on, so change the value back to 0 once you’re done. Game updates can also reset the file, so you may need to repeat these steps later.
Don’t fancy editing game files? The Steam Workshop hosts community made cheat mods that add buttons for things like infinite magic and free buildings, no console required.

All Cookie Clicker Cheat Codes and Console Commands
These are the most useful cheats for Cookie Clicker, grouped by what they change. Swap the numbers for whatever amount you want, and copy everything else exactly, including capital letters, brackets and punctuation.
Cookie Cheats
Want infinite cookies or just a healthy boost? Start here.
| Command | What It Does |
| Game.Earn(1000000); | Adds cookies to your bank and your all time total |
| Game.cookies = 1000000; | Sets your bank to an exact number |
| Game.cookies -= 1000000; | Removes cookies from your bank |
| Game.cookies = Infinity; | Gives you infinite cookies |
| Game.cookies = 0; | Empties your bank, handy for undoing the infinity cheat |
| Game.cookiesPs = 1000000; | Sets your cookies per second until you buy something new |
Driffle tip: Game.Earn is the cleaner choice. Setting Game.cookies higher than your all time cookies baked instantly earns the hidden cheater achievement, while Game.Earn raises both numbers together. Keep in mind that cookies added this way also count toward heavenly chips the next time you ascend.
Cookie Clicker Auto Clicker Cheats
Want infinite cookies or just a healthy boost? Start here.
Start an auto clicker that taps the big cookie up to 100 times a second:
var autoClicker = setInterval(function(){Game.ClickCookie();}, 10);
Stop it with:
clearInterval(autoClicker);
Raise the 10 to slow it down. A value of 100 means one click every 100 milliseconds, which is much gentler on older computers.
Want an auto clicker that only kicks in during Click Frenzy, when every click is worth 777 times more?
var frenzyClicker = setInterval(function(){ if (Game.hasBuff('Click frenzy')) Game.ClickCookie(); }, 10);
Stop it anytime with clearInterval(frenzyClicker);
Golden Cookie Cheats
| Command | What It Does |
| new Game.shimmer(‘golden’); | Spawns a golden cookie instantly |
| Game.shimmerTypes.golden.time = Game.shimmerTypes.golden.maxTime; | Makes the next golden cookie spawn right away through the game’s normal timer |
| Game.gainBuff(‘frenzy’, 77, 7); | Gives you a Frenzy (7 times production for 77 seconds) without clicking anything |
| Game.gainBuff(‘click frenzy’, 13, 777); | Gives you a Click Frenzy (777 times click power for 13 seconds) |
To pop golden cookies automatically while skipping the risky wrath cookies, use:
var goldenClicker = setInterval(function(){ Game.shimmers.forEach(function(s){ if (s.type == 'golden' && s.wrath == 0) s.pop(); }); }, 500);
Turn it off with clearInterval(goldenClicker);
Building and Upgrade Cheats
| Command | What It Does |
| Game.priceIncrease = 1; | Stops building prices from rising as you buy more |
| Game.SetAllUpgrade(1); | Unlocks every upgrade |
| Game.Upgrades[‘Lucky day’].earn(); | Gives you one specific upgrade (swap in any upgrade name) |
Make every building free:
Game.ObjectsById.forEach(function(e){ e.basePrice = 0; e.refresh(); }); Game.storeToRebuild = 1;
Make every upgrade free:
Game.UpgradesById.forEach(function(e){ e.basePrice = 0; }); Game.upgradesToRebuild = 1;
Upgrade names must match the game exactly, capital letters and all.
Sugar Lump, Heavenly Chip and Minigame Cheats
| Command | What It Does |
| Game.gainLumps(10); | Adds 10 sugar lumps |
| Game.lumpCurrentType = 2; | Turns your growing sugar lump golden (0 normal, 1 bifurcated, 2 golden, 3 meaty, 4 caramelized) |
| Game.heavenlyChips = 1000; | Sets your spendable heavenly chips |
| Game.Objects[‘Wizard tower’].minigame.magic = Game.Objects[‘Wizard tower’].minigame.magicM; | Refills your Grimoire magic once the minigame is unlocked |
Grandmapocalypse and Wrinkler Cheats
| Command | What It Does |
| Game.CollectWrinklers(); | Pops every wrinkler on screen at once |
| Game.pledgeT = 60 * 60 * Game.fps; | Sets the time left on an active Elder Pledge to 60 minutes |
Spawn every wrinkler at once:
for (var i = 0; i < Game.wrinklers.length; i++) { Game.wrinklers[i].phase = 1; }
Make all current wrinklers shiny:
for (var i = 0; i < Game.wrinklers.length; i++) { Game.wrinklers[i].type = 1; }
Achievement Cheats
| Command | What It Does |
| Game.Win(‘Achievement name’); | Unlocks one achievement (use its exact in game name) |
| Game.SetAllAchievs(1); | Unlocks every achievement |
| Game.Achievements[‘Achievement name’].won = 0; | Removes an achievement |
Ruin the Fun: The Cookie Clicker Hack That Unlocks Everything
Game.RuinTheFun(); is the nuclear option. It hands you every upgrade (debug upgrades included), every achievement and a nonillion cookies, which is a 1 followed by 30 zeros, all in one go. Expect a few seconds of lag while the game catches up on all those notifications. There’s no undo button, so export your save first if you ever want your old bakery back.
Does Cheating in Cookie Clicker Affect Achievements?
Only a little, and only if you care. Cookie Clicker tracks cheating with a hidden shadow achievement called Cheated cookies taste awful. You earn it the moment you open the Open Sesame panel, even if you never use it, or when your cookie bank ends up bigger than your all time cookies baked.
Shadow achievements don’t add milk or boost production, so this one won’t change how your bakery performs. It just sits there quietly judging you. Want it gone? Paste this into the console:
Game.Achievements['Cheated cookies taste awful'].won = 0;
Steam players should note that developer mode blocks Steam achievements until you switch it off. Workshop cheat mods work differently, and some of them push unlocked achievements straight to your Steam profile.
How to Back Up Your Save Before Using Cookie Clicker Cheats
Before you try anything big, back up your bakery. It takes about 30 seconds.
- Open the Options menu.
- Click Export save and copy the long text that appears.
- Paste it into a notes app or text file and keep it somewhere safe.
To roll back, open Options, click Import save and paste that text in. Steam players should be extra careful, since cloud saving syncs your progress automatically and a cheated save can replace your clean one across devices.
Are Cookie Clicker Hack Downloads Safe?
You never need to download anything to cheat in Cookie Clicker. Everything in this guide already lives inside the game or your browser. Sites pushing a Cookie Clicker hack app, APK, extension or cookie generator are a gamble at best and malware at worst. If you’ve already clicked on one, run a scan and check out our guide to the best antivirus for gamers, then stick to the built in methods above.
FAQs (Frequently Asked Questions)
Q1. How to get cheats in Cookie Clicker?
Ans: Rename your bakery so it ends with saysopensesame, or open your browser console and run Game.OpenSesame();. Both methods unlock the same hidden debug panel and are already built into the game.
Q2. How to get Cookie Clicker cheats for free?
Ans: Every Cookie Clicker cheat is free. They come from the Open Sesame panel or your browser’s console, so there’s nothing to buy, download or install.
Q3. How to get cheats on Cookie Clicker for Steam?
Ans: Open the game folder through Steam, edit start.js and change let DEV=0; to let DEV=1;. Relaunch the game and type commands into the console that opens. Switch it back to 0 afterward so Steam achievements unlock again.
Q4. How to use cheats in Cookie Clicker?
Ans: Open the console with Ctrl + Shift + J in Chrome or your browser’s own shortcut, paste a command such as Game.Earn(1000000); and press Enter. The change happens instantly.
Q5. What name in Cookie Clicker gives cheats?
Ans: Any short bakery name ending in saysopensesame, such as Mia saysopensesame. Keep the full name within 28 characters or the trick won’t trigger.
Q6. Can you get banned for using Cookie Clicker hacks?
Ans: No. Cookie Clicker is single player with no competitive mode, so there’s nothing to get banned from. The worst outcome is a messed up save, which is why exporting first matters.
Q7. Do Cookie Clicker cheats work on mobile or consoles?
Ans: The bakery name trick works in mobile browsers running the web version. There’s no known way to cheat in the Android app or the PlayStation, Xbox and Switch versions.
Q8. How do I close the Open Sesame menu?
Ans: Rename your bakery to remove saysopensesame, then refresh the page. Renaming alone keeps the panel open until the page reloads.
Q9. How do I stop a Cookie Clicker auto clicker?
Ans: Run clearInterval(autoClicker); in the console, using whatever name you gave the auto clicker when you started it. Refreshing the page also stops every running script.
Q10. Will Cookie Clicker cheats ruin my save?
Ans: They can if you go overboard. Commands like Game.RuinTheFun(); can’t be undone, so export your save before experimenting and import it again if things go wrong.



