- Browser version (
npm start): runs athttp://localhost:3000. Works on Windows, macOS and Linux. Projects and API key are saved in your browser. - Desktop app (
npm run desktop): opens in its own window. Projects are saved as folders and your key goes in the keychain. Tested on Windows and Linux, not on macOS.
Before you start
You need Node.js 22.12 or newer. Install the LTS version from nodejs.org. Git is optional but makes updating easier. Open a terminal (PowerShell on Windows, Terminal on a Mac) and check Node.js:v22.12.0 or higher.
Get the code
- With Git
- Without Git
Run it in your browser
1
Start AI Code Zero
AI Code Zero is running. Open http://localhost:3000 in your browser.2
Open it
Go to http://localhost:3000.
3
Set it up
Accept the terms, enter your name and pick an avatar. Then choose a provider, paste your API key and pick a model. Need a key? See Choose an AI provider.
4
Build something
Describe what you want and press Enter — Smart studio picks App, Website or Game for you, or you can pick one with the icons at the bottom of the prompt box.
Ctrl+C in the terminal. To start it again, run npm start in the same folder.
If port 3000 is busy, pick another. On macOS or Linux, run PORT=3001 npm start. In PowerShell, run $env:PORT=3001; npm start.
Good to know:
- Projects live in your browser, tied to the exact address you opened. A different browser or port starts empty. Back up with Settings → Data → Export.
- Your API key is in your browser too. Your browser sends it straight to your AI provider, not through the local server.
- Only your computer can open it. Read Security before changing that.
- You can add a photo library. Put an Unsplash key in a
.envfile and the AI uses real photos. See the Configuration reference.
Run the desktop app from source
Linux: the window doesn't open and the terminal mentions chrome-sandbox
Linux: the window doesn't open and the terminal mentions chrome-sandbox
Some systems, such as Ubuntu 24.04, need Electron’s sandbox helper to be owned by root. Run these once in the AI Code Zero folder, then try again:Run them again after
npm install updates Electron. Avoid --no-sandbox: the sandbox protects your files from the apps you build.npm run desktop:dist. The AppImage, .deb and snap files appear in dist-desktop. On Windows, AI Code Zero comes only from the Microsoft Store.
Update
- Stop AI Code Zero (
Ctrl+C, or close the window). - Get the new code: run
git pull, or download the ZIP again and unzip it over the old folder. - Run
npm install, thennpm start(ornpm run desktop).

