Note: For this, the guide doesn't use the original https://orteil.dashnet.org/cookieclicker/. Instead, it'll use a community version, https://ozh.github.io/cookieclicker/.
Note
This guide is for a Windows laptop. I don't have a mac so i cant tell you what to do if you have a mac... so yeah sorry 'bout that
- Make sure Python is installed on your system - go to https://www.python.org/ to download it.
- Once it is downloaded, press the code button on the side and download as ZIP (if you have git on your system, you can clone it instead)
- Click on run.bat to automatically run the file
For actually cheating, in the folder, open main.py in notepad. Then, remove this line:
script = 'script.js' # REMOVE THIS LINE FOR DA CHEAT
It should be the 7th line from the top. Then, in command prompt, run py main.py again. It will instantly gve you a million billion whatever cookies and 100 of all the buildings..
Here is more info about the project: . It uses a Python controller to manage the browser and a JavaScript engine to execute logic directly within the game's internal frame.
-
main.py: The "Brain." It launches Chrome, reads your chosen script, and handles the terminal display. -
script.js: The "Optimizer." A smart bot that plays the game efficiently using math (15 Cursors -> 10 Grandmas -> Efficiency). This is so that the bot can get started on buildings and then worry about efficiency,iency, -
badscript.js: The "God Mode." A one-time injection that grants infinite cookies, 100 of every building, and every upgrade.
-
Python 3.x
-
Selenium:
pip install seleniumor use the requirements.txt -
Chrome Browser
Run the run.bat file on your laptop.
Warning
This bat file only works on Windows devices.
Designed to play the game like a pro without actually "cheating" it.
-
Phase 1: Clicks the cookie and shimmers (Golden Cookies) at max speed.
-
Phase 2: Hard-focuses on reaching 15 Cursors.
-
Phase 3: Hard-focuses on reaching 10 Grandmas. Phase 2 and 3 exist so that the bot can start off with some buildings early on in the game
-
Phase 4 (Efficiency): Calculates the
ratio for every building and buys the best value.
Bypasses all game mechanics for total control.
-
Cookie Inflation: Runs
Game.Earn()with a massive value 50 times. -
Instant Real Estate: Forces the quantity of every building type to 100.
-
Knowledge Grab: Unlocks and buys every single upgrade in the game database.
-
State Sync: Forces the game to recalculate CPS based on the new "cheated" values.
Caution
This code allows you to cheat in this game, and it removes all of the fun. (you'll get what I mean when you run badscript.js). This code is meant for educational purposes only.