.env file: a plain text file with one NAME=value setting per line. This works when you run from source or with Docker.
Every setting is optional. The AI provider, key and model are always chosen in Settings → AI, never in .env. Each person’s key stays in their own browser. The desktop app doesn’t read .env at all.
Settings that start with AICODEZERO_ were called APPBLIPS_ before the app was renamed. The old names still work, so an existing .env needs no changes.
Create the file
- Copy
.env.exampleto.envin the AI Code Zero folder. - Fill in only the lines you need.
- Restart AI Code Zero. From source, stop it with
Ctrl+Cand runnpm startagain. With Docker, rundocker compose up -d.
Photo library
The Access Key of an Unsplash app you register at unsplash.com/developers. With it, the AI uses real, credited Unsplash photos in websites and apps, and you can add or replace pictures with Unsplash photos from the right-click menu. Nobody needs an Unsplash account, and games don’t use it. Everyone on your server shares the key’s hourly limit: 50 requests for a new app, 1,000 once Unsplash approves it for production. To make that go further, each search is cached for an hour and each visitor can make 50 searches an hour. You don’t need the Secret Key.
For the desktop app, which holds no Unsplash key: the AI Code Zero server their photo searches go to. Set it to
off to turn the photo library off.Server
npm start only. The network address the server listens on. The default lets only your own computer connect. Change it only if you put your own sign-in in front. See Security.AI Code Zero only answers when opened as
localhost, 127.0.0.1 or [::1]. To use another name, such as a reverse proxy’s domain, list it here. Separate names with commas, without http:// or a port. Example: aicodezero.home.example.AI Code Zero refuses AI requests that come from any page but its own. If a reverse proxy changes the address the server sees, builds can fail with
Requests from other sites are not allowed. List the exact address you open AI Code Zero at, separated by commas. Example: https://aicodezero.home.example.
