Cookie Clicker name cheat

The saysopensesame rule, a checker that runs your bakery name through the game's own code, and every button of the dev tools panel it opens.

By GardenFlouerGame version 2.058Checked

The Cookie Clicker name cheat is a bakery name that ends in saysopensesame, with at least one character in front, such as Cookiesaysopensesame. Rename your bakery to it in the web version and the game opens its hidden dev tools panel. Test any name below: the checker runs it through the game's own name code and tells you exactly what the game will do with it.

Bakery name checker

Worked example

A name that opens the dev tools:...

The checker runs the game's own name code in your browser: nothing you type is sent or kept, and a bakery name never goes in the page address.

Dev tools on the web
...
The game keeps
...
On Steam
...
Anything else
...

The exact rule, from the game's code

Two of the game's functions handle a new name. The first, which runs when you press Confirm, cleans what you typed:

  1. Every character that is not a letter (in any alphabet), a digit, a space, ', - or _ becomes a space.
  2. Spaces at both ends are trimmed, and the name is cut to its first 28 characters.

The second runs on that cleaned name, every time it is set, including every time the game loads your save. It lowercases the name, and in the web version (the code checks !App, and App only exists in the desktop app) it opens the dev tools if saysopensesame sits at the very end with something in front of it, unless the panel is already open. So saysopensesame alone does nothing, Xsaysopensesame works, COOKIESAYSOPENSESAME works, and saysopensesame please does not. With the cut at 28, the part in front can be at most 14 characters.

Every button in the dev tools panel

The panel opens on the left side of the screen. What each button runs, in plain words:

The dev tools panel, button by button
ButtonWhat it does
AscendAscends at once, with no Are you sure prompt.
x10Multiplies your bank and your cookies baked this ascension by 10, both together.
/10Divides both by 10.
x1kMultiplies both by 1,000.
/1kDivides both by 1,000.
Buy 100 of allBuys up to 100 of every building at the normal price, as many of each as your bank pays for.
Sell 100 of allSells up to 100 of every building.
+10 lumpsAdds 10 sugar lumps (and switches sugar lumps on if you had not reached them).
Reset levelsSets every building back to level 0 and closes the minigames. The lumps you spent are not given back.
HC x1kAdds to your cookies forfeited by ascending as many cookies as 1,000 times your heavenly chips are worth (1,000 levels if you have none), so your prestige level and your chips jump at once.
HC /1kSets your cookies forfeited to what a thousandth of your chips is worth (to zero, chips included, under 100 chips).
Reset cookies earnedSets cookies baked this ascension to 0 and keeps your bank, so the bank is now bigger than what you baked.
Ruin The FunEvery upgrade and achievement, about 1 nonillion cookies, dragon and Santa maxed, research finished, every building to level 10 and every seed in the Garden.
WipeWipes the whole save except your bakery name, then marks Cheated cookies taste awful as won on the fresh save.
All debugsGives you every hidden debug upgrade at once.
TimersTurns on (or off) a readout of how long each part of the game takes to run.
No upgradesTakes away every upgrade.
All upgradesGives you every upgrade.
No achievsTakes away every achievement.
All achievsGives you every achievement but the dungeon ones.
Reset specialsPuts Santa and the dragon back to their first level.
Max specialsRaises Santa and the dragon to their last level.
Reset refillsEnds the 15 minute wait on sugar lump refills.
Ascend EditOpens the heavenly upgrade screen in an edit mode, the one the game's maker places the upgrades with.
Debug upgrades CpSSwitches each upgrade you own off and on once and writes on its icon how much it adds to your cookies per second and per click.
Re-seedRolls a new seed for your run. The seed decides your sugar lump types and the outcome of each Grimoire spell, so this changes both.
Max heraldsSets heralds to 100, the most the game counts.

Below those, one button per golden cookie effect spawns a golden cookie with that effect: Frenzy, Lucky, Ruin, Elder frenzy, Clot, Click frenzy, Cursed finger, Cookie chain, Cookie storm, Building special, Dragon Harvest, Dragonflight, Sweet and Blab. A golden cookie you spawn this way gives its effect, but it does not count toward the golden cookie achievements.

What else the name switches on

Opening the panel sets one flag in the game, and the game checks that flag in a few other places too. Every one of them:

  • In Stats, every hidden debug upgrade is listed, owned or not, and clicking one switches it on or off, as the Neuromancy upgrade allows.
  • Upgrade icons can show how much each upgrade multiplies your cookies per second and per click, after the panel's Debug upgrades CpS button.
  • Every upgrade and achievement tooltip shows its internal id, sort order, tier and icon position.
  • Sugar lump refills (the garden, grimoire and pantheon buttons that cost 1 lump) have no 15 minute cooldown.
  • Ctrl-click a wrinkler to turn it shiny (or back) instead of hitting it.
  • A frames per second counter and graph sit in the corner.
  • The panel's Timers button can show how long each part of the game takes to run.
  • In the Garden, seeds the game marks as unplantable (Juicy queenbeet) can be planted.
  • In the Garden, Ctrl+Shift-click the seed counter to fill the plot with random plants of random ages; a plain click on it unlocks every seed (or, if you have them all, locks them again).
  • In the Stock Market, a Toggle speed button switches the market from one tick a minute to ten ticks a second, and back.

What it does to your achievements

Opening the panel marks the shadow achievement Cheated cookies taste awful as won. It does it directly, not through the game's usual way of awarding achievements, so no Achievement unlocked pop-up appears: it is simply in your Stats the next time you look. Shadow achievements give no milk and do not count toward your total, so nothing else changes. Your other achievements stay as they are.

There are three other ways to get it: every 5 seconds the game checks whether your bank is bigger than your cookies baked this ascension (the panel's Reset cookies earned button trips that one), the All achievs button, and the Wipe button, which awards it again to the fresh save. The shadow achievements page has all 17 shadow achievements with the code behind each.

Other names the game reacts to

Names with something of their own
NameWhat happens
Orteil (any capitals)The shadow achievement God complex, and your cookies per second drop 1% while you keep the name. Orteil is the game's maker.
Ortiel (any capitals)No achievement: your cookies per second drop 2%, and the little cookies that fly off when you click all show the God complex picture.
harley (exactly, lowercase)A Horse complex! pop-up over your bakery's name whenever the game sets the name to it from another one. The game's code says it was added as thanks to someone who kept the maker's account safe.
RESTORE BACKUP (exactly)In the Steam version only, restores a backup of your save. On the web it does nothing.
Any name at allNaming your bakery earns the normal achievement What's in a name.

Web or Steam

The saysopensesame check starts with !App, and the game only has an App when it runs as the desktop (Steam) version, so on Steam the name is just a name. The script we read is the web version's, so it cannot tell you how to open a console in the Steam version; we did not check that. On a phone or a school Chromebook without a console, the name is the easiest way into the dev tools, since it needs nothing but the rename box.

How to turn it off

The panel is not saved, but your bakery name is, and the game runs the name check every time it loads your save. So reloading alone opens the panel again. Rename your bakery to a name without saysopensesame at the end, then reload the page. The achievement stays won; to remove it, see the cheats page.

Questions people ask

What is the name cheat in Cookie Clicker?

Name your bakery anything that ends in saysopensesame, with at least one character in front, such as Cookiesaysopensesame. The web version then opens its hidden dev tools panel.

What is the bakery name cheat?

The same thing: the bakery name is the cheat. Click your bakery's name at the top of the game, type a name ending in saysopensesame, and press Confirm.

Why does saysopensesame not work?

Either there is nothing in front of it (saysopensesame alone fails, the game wants it to start after the first character), something comes after it, the name is longer than 28 characters so the end is cut off, or you are playing the Steam version, where the check is switched off.

Does the name cheat work on Steam?

No. The game checks that it is not running as the desktop app before it opens the dev tools.

Does the name cheat ruin your achievements?

It adds one: the shadow achievement Cheated cookies taste awful. It removes nothing, and shadow achievements give no milk. What you press in the panel can change a lot more, so export your save first.

What is the Cookie Clicker name for Orteil?

Naming your bakery Orteil earns the shadow achievement God complex and costs 1% of your cookies per second while you keep the name.

How this was checked

Every rule and button on this page was read in Cookie Clicker's own script, main.js, and the minigame scripts it loads, as published at orteil.dashnet.org/cookieclicker (version 2.058). A program of ours, tools/cookie_clicker_guides.py, holds the page to that code: the name rules, each button's exact code, and every place the dev tools flag appears in the files, so a new use of it in a new version stops the build until it is read. The checker runs the game's own name code, ported line for line. Nothing was taken from another site.

  • The name and the panel Game.bakeryNameSet, Game.bakeryNameRefresh, Game.OpenSesame, Game.SesameReset, Game.Win, Game.FileSave; every Game.sesame in main.js, minigameGarden.js and minigameMarket.js.

Cookie Clicker is made by Orteil and Opti of DashNet. GardenFlouer is a fan site and is not connected to them.