A glowing glossy chocolate chip cookie on a dark background

Cookie Clicker Cheat Codes: Open Sesame and Console

By Marcus Reid

Cookie Clicker does not have redeemable promo codes. There are two actual cheat methods: the Open Sesame dev panel, which you unlock by renaming your bakery so the name ends with saysopensesame, and browser console commands, which let you run JavaScript directly to set cookies, unlock upgrades, or max out the game in seconds. Both methods work on the free browser version at orteil.dashnet.org, built by developer Orteil. Both also flag your save permanently with the shadow achievement Cheated cookies taste awful, which cannot be removed. Go in knowing that.

How to Use the Open Sesame Cheat in Cookie Clicker

The Open Sesame panel is a hidden developer menu built into the game by Orteil. You do not need the console to access it. You access it by changing your bakery name to one that ends with the word saysopensesame. The game reads that suffix and unlocks the panel automatically.

Here are the exact steps:

  1. Start Cookie Clicker in your browser and load your save.
  2. Click your bakery name at the top of the screen. It typically defaults to something like “Your Name’s bakery” or whatever you set previously.
  3. Type a new name. It can be anything, but it must end with saysopensesame with no space before it. For example: Bob saysopensesame or Cookieland saysopensesame.
  4. Press Enter to confirm the rename.
  5. Look for a new menu option at the top of the screen labeled Options or a small panel that appears near your stats. The dev tools section will now be visible.

Once the panel is open, you get buttons and sliders that normally exist only for the developer during testing. You can add a set number of cookies instantly, force-unlock specific upgrades, trigger ascension, and toggle achievements on or off. It is a much more visual way to cheat than typing console commands, and it works well for players who are not comfortable opening browser dev tools.

The rename trick works on both the browser version and the Cookie Clicker Steam release, though the Steam version has some panel features disabled. For a broader look at browser-based games that use similar built-in cheat systems, the 3Zebras games section covers several titles with comparable mechanics.

Cookie Clicker Console Commands (Cheat Codes)

Console commands give you precise control over every numeric value in the game. Each command is a line of JavaScript that you type or paste into your browser’s developer console, then run by pressing Enter. The changes apply immediately to your current session.

These are the verified commands that work on the current browser version of Cookie Clicker:

  • Game.Earn(1000000): adds the specified number of cookies to your total. Replace 1000000 with any number you want.
  • Game.cookies = 999999999: sets your current cookie count to that exact number, overwriting whatever you had.
  • Game.cookiesPs = 100000: sets your cookies-per-second rate. This change is cosmetic or temporary depending on game version and will not persist after your next building purchase adjusts the CPS calculation.
  • Game.lumps = 100: sets your sugar lump count to the specified number. Sugar lumps are used to level up buildings, so this is useful for players who want to push building levels without waiting for lumps to grow.
  • Game.RuinTheFun(): the nuclear option. This single command unlocks and maxes out nearly every building, upgrade, and achievement in the game at once. It is the fastest possible way to see end-game content, but it leaves nothing to discover.
  • Game.Ascend(1): triggers an ascension immediately, letting you skip to the prestige layer without reaching the normal cookie threshold. Use this if you want to test heavenly upgrades without a full run.

You can combine commands in a single session. Running Game.Earn(1000000000) to get cookies and then purchasing every building normally is a common middle-ground approach that still leaves some manual play in the loop.

How to Open the Browser Console in Cookie Clicker

The developer console is built into every major desktop browser. You are not installing anything or modifying any files. You are just opening a tool that is already there.

Here is how to open it depending on your browser and operating system:

  • On Chrome or Edge on Windows: press F12, or press Ctrl + Shift + J to jump directly to the Console tab.
  • On Chrome or Edge on Mac: press Cmd + Option + J.
  • On Firefox: press F12, then click the Console tab at the top of the panel that opens.
  • On Safari: you need to enable the developer menu first. Go to Safari Preferences, click Advanced, and check “Show Develop menu in menu bar.” Then use Cmd + Option + C to open the console.

Once the console is open, click inside the input field at the bottom (the line that shows a cursor or a right-facing arrow). Type or paste your command there and press Enter. The result appears immediately below the input, and the game updates in real time. You do not need to reload the page.

One thing to watch: some browsers show a warning the first time you open the console that says pasting code can allow attackers to take control of your browser. That warning exists because of social engineering attacks, not because console use itself is dangerous. For game commands on a page you trust, you can safely proceed. For broader browser tips and troubleshooting beyond gaming, the 3Zebras tech section has relevant guides on dev tools and browser settings.

See also  World of Warcraft Classic To Be Launched on August 26th

What Happens When You Cheat in Cookie Clicker

The game knows. Orteil built a detection system directly into Cookie Clicker, and using either the Open Sesame panel or console commands triggers it.

The consequence is a shadow achievement called Cheated cookies taste awful. Shadow achievements are a separate category in the game that track things the player probably did not want recorded. They appear in your achievements list but do not count toward your normal achievement total or your milk percentage. Milk is a visual stat in Cookie Clicker that rises as you collect achievements, and it unlocks certain upgrades through the Kitten series. Because the shadow achievement is excluded from the milk calculation, cheating does not boost that progression path, which means your CPS multiplier from Kitten upgrades is unaffected by the cheat flag. So your stats are visibly marked without being boosted.

More to the point: the flag is permanent on that save file. There is no way to remove it. You cannot earn the achievement and then undo it. If you care about a clean achievement record or want to run a legitimate speedrun or ascension, the standard advice is to keep a separate save for cheating and leave your main save untouched.

The Steam version adds another layer. Steam tracks achievements separately, and because Valve’s anti-cheat environment is more controlled than a browser tab, many console commands that work freely on the web version are blocked or produce no result on Steam. The Open Sesame rename trick still functions on Steam, but the scope of what the panel lets you do is narrowed.

None of this is a moral judgment on cheating in a single-player idle game. The tradeoff is just real: you get the cookies, you lose the clean save. Knowing that going in, you can make the call yourself.

Why Your Cookie Clicker Cheat Is Not Working

Most failed attempts come down to four causes.

Typo in saysopensesame. The word has to be spelled exactly right with no spaces between “says” and “opensesame” and no capital letters. If your bakery name ends with “saysOpenSesame” or “says opensesame,” the game will not recognize it. Retype it manually rather than relying on autocorrect.

The console is blocked. Some browser extensions, particularly content security policy enforcers or parental control tools, disable the developer console or block JavaScript execution on external pages. If you open the console and get no input field, or your command returns a permission error, check whether an extension is interfering. Try an incognito window with extensions disabled.

You are on the Steam version. As noted above, many console commands do not execute on the Steam release. If you are playing through Steam and a command does nothing, that is why. The Open Sesame panel is the more reliable cheat path on Steam.

Syntax error in the command. JavaScript is case-sensitive. Game.earn() is not the same as Game.Earn(). Missing a parenthesis or adding a stray character will cause the command to fail silently or throw an error in the console. Copy commands exactly as written, with correct capitalization and no extra characters. For more troubleshooting guides on browser-based gaming issues, the 3Zebras guides section covers common problems across several titles.

Frequently Asked Questions

What is the Open Sesame cheat in Cookie Clicker?

Open Sesame is a hidden developer panel in Cookie Clicker that you unlock by renaming your bakery to a name ending in saysopensesame, for example “Baker saysopensesame.” Once the name is confirmed, the dev panel appears in the game interface and gives you access to cheat buttons: add cookies instantly, force-unlock upgrades, trigger game events, and more. It works on both the browser version and the Steam release, though Steam disables some panel features. Using it flags your save with the shadow achievement Cheated cookies taste awful.

How do you get unlimited cookies in Cookie Clicker?

Open the browser developer console with F12 or Ctrl + Shift + J on Windows, click the Console tab, and type Game.cookies = 999999999 then press Enter. That sets your cookie count to the number you specify. You can also use Game.Earn() with any number inside the parentheses to add to your current total rather than overwrite it. For the maximum shortcut, Game.RuinTheFun() unlocks and maxes nearly everything at once. All three methods permanently flag your save.

Does cheating in Cookie Clicker ruin your save?

It depends on what you mean by “ruin.” Cheating applies the shadow achievement Cheated cookies taste awful permanently to that save. The achievement cannot be removed. Your cookie counts and unlocks remain intact, so you can still play, but your achievement record is marked. If you want a clean save for legitimate runs, keep a separate browser profile or save file for cheating. Many players maintain one cheat save for experimentation and one untouched save for normal play.

Do Cookie Clicker cheats work on Steam?

The Open Sesame rename trick works on the Steam version of Cookie Clicker, but with reduced functionality compared to the browser version. The dev panel opens but some cheat buttons are disabled or produce no effect. Browser console commands are significantly more restricted on Steam due to how the game client handles JavaScript execution. If you want the full range of cheating options, the free browser version at orteil.dashnet.org gives you unrestricted console access.

Leave a Reply

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