All posts

#privacy #opensource #ai #localfirst

Local-First AI App Builder: What Stays on Your Computer

Raymond Busuttil · Nov 4 · 8 min read

A local-first AI app builder is one that runs on your computer, keeps your projects there, and treats the cloud as something you opt into rather than a place your work has to live. If you want a private AI website builder, the details matter more than the slogan: some things really do stay on your machine, and some things have to leave it for the product to work at all. This article lays out both lists for AI Code Zero, plainly, so you can decide whether it fits how you want to work.

In short

  • In the desktop app, projects are saved as folders on your computer, your AI key is encrypted by your operating system's keychain, and voice input is transcribed on your device.
  • AI Code Zero has no analytics or tracking and needs no AI Code Zero account.
  • Your prompts, your project's code and any images you attach are sent to the AI provider you choose. That is unavoidable, so pick a provider whose data policy you are comfortable with.
  • The browser version works differently: projects and the key live in your browser instead of in folders and the keychain.

What does local-first actually mean?

Local-first software starts from a simple rule: the copy of your data on your own device is the real one. The app works on that copy, you can keep working when a service is slow or gone, and sharing or publishing is something you do deliberately instead of something that happens in the background.

For an AI builder, this is a meaningful contrast with tools where the project exists mainly on a vendor's servers and your browser is a window onto it. Local-first does not mean offline-only. Generating an app needs an AI model, and that model sits at a provider. What it changes is where your files, your keys and your history live, and what you have to hand over to get a result.

What stays on your computer in AI Code Zero?

In the desktop app, the following stay on your machine:

  • Your projects. Each app, website or game is a folder on your computer, one folder per project. You can see where under Settings, then Data, then Projects folder, and change it there.
  • Your version history. Every generation and edit is saved as a snapshot you can undo or restore, kept with the project.
  • Your AI provider key. It is encrypted with your operating system's keychain. After you save it, AI Code Zero cannot show it again, and it is never written into your projects, exports or published sites.
  • Your voice. Voice input is turned into text by Whisper, an open-source model that runs on your own device. Recordings are never uploaded or saved, and transcription works offline once the model is on your computer.
  • Your identity. There is no AI Code Zero account to create, and AI Code Zero has no analytics or tracking.

One Linux detail worth knowing: on a system without a keychain, the protection for your key is weak, and AI Code Zero warns you. Installing GNOME Keyring or KWallet fixes that.

A glowing house-shaped icon containing a key and a stack of files, with faint dotted lines going out to a distant dim cloud
Projects, keys and voice stay at home; only what a feature needs goes out.

What still leaves your computer, and why?

Transparency is the point of this section. These are the connections AI Code Zero makes, grouped by whether they are part of normal use or only happen when you use a specific feature. The full list is in the FAQ, and each service can see your IP address when it is contacted.

As part of normal use

  • Your AI provider. To build anything, AI Code Zero sends your prompts, your project's code and any images you attach to the provider you chose in Settings. This is the biggest thing that leaves your machine, and it is inherent to using a hosted model.
  • Code libraries. Apps and sites you build load libraries such as React, Tailwind CSS or game engines from public sources like esm.sh, jsDelivr and cdn.tailwindcss.com. Exported files load them from there too, which is why some exports need an internet connection to open.
  • Fonts. Google Fonts are used for the fonts AI Code Zero shows.
  • Update checks. The desktop app checks GitHub for new versions at startup and every hour. You can turn this off under Settings, Workspace, Check for updates. The Snap version checks the Snap Store instead.
  • Policy dates. The app checks aicodezero.com for the date of the Privacy Policy and Terms of Service, so it can ask you to agree again if they change.

Only when you use the feature

  • Publishing. When you click Publish, your pages and images go to Surge, the free host AI Code Zero uses. Nothing is published until you do this, and you can unpublish later.
  • Voice input, first time. After you agree, AI Code Zero downloads the speech model (about 76 MB) from Hugging Face once. It is kept on your device, and your recordings never leave it.
  • Web search and photos. If you turn on web search, the AI sends search words, never your project's code, to your provider or to Tavily if you connected it. Photo-library searches go through the AI Code Zero server to Unsplash.
  • Extensions. Services such as Web3Forms, Umami, Plausible, tawk.to and Square are only contacted by the sites you build once you enable them, not by AI Code Zero itself. See the extensions page for what each does.

How do you choose an AI provider with privacy in mind?

Because the provider receives your prompts and code, the provider is where your privacy decision really sits. AI Code Zero supports Anthropic, OpenAI, Gemini, xAI, DeepSeek and OpenRouter, so you are not locked to one. Before you commit, read each provider's data-use and retention terms, and consider whether anything you are building contains information you would not want to send to a third party: customer details, private business data, unpublished plans.

A practical habit: keep real personal data out of your prompts and out of your project while you build, and add it only where the final site needs it. We go through key setup and costs in bring your own API key explained, and the AI providers guide covers where to create a key for each.

How does generated code stay contained?

AI-written code is code you did not read line by line, so AI Code Zero runs it in a sandboxed iframe with an opaque origin. In practice, the app you are previewing cannot read the data of the AI Code Zero workspace around it. The sandbox protects the workspace from the project, which is exactly the direction you want when you are trying out code an AI just wrote. The security documentation goes into more depth.

How do you back up and take your work with you?

Local-first only helps if you can actually move your files. Use the download button next to Publish to export a project: apps and games as one HTML file, websites as a ZIP, and App studio apps optionally as a React + Vite project. To back up everything at once, including version history, go to Settings, Data and choose Export all projects. That backup is for restoring into AI Code Zero, either on another computer or in the browser version, and it is separate from the exports you host.

One caution for Windows: the default projects folder lives inside AI Code Zero's data folder, and the Microsoft Store version loses it if you uninstall or reset the app. Export a backup first, or move the projects folder somewhere permanent.

Can you run your own copy?

Yes, and this is the most local setup of all, because the whole thing runs on your machine. AI Code Zero is MIT-licensed and the code is on GitHub. With Docker Compose installed, you can start it with docker compose up -d and open it at localhost on port 3000, or run it from source with Node.js. The Docker guide has the full steps.

How does the browser version differ?

The web app at web.aicodezero.com is the same builder with different storage. Projects are saved in your browser, separately for each address, so clearing browser data for that address deletes them, and exporting a backup now and then is wise. Your key is kept in your browser, unencrypted, and the browser sends it straight to your provider, so it never reaches the AI Code Zero server. Anyone who can use your browser profile on that computer could read it. If that matters to you, the desktop app, with keychain encryption, is the better choice.

Frequently asked questions

Is AI Code Zero completely offline?

No. Building needs a connection to your AI provider, and exported sites may load libraries from public servers. What stays local is your project files, your key and your voice recordings. Once voice input has its model, transcription works offline.

Does AI Code Zero collect my projects or prompts?

No. AI Code Zero has no analytics or tracking, and projects stay on your computer or in your browser unless you publish them or submit them to the Showcase. Your prompts do go to the AI provider you chose, under that provider's terms.

Do I need an account to use AI Code Zero?

No. Neither the desktop app nor the web app needs an AI Code Zero account. Publishing uses a free Surge account, which you can create inside AI Code Zero, and your AI provider needs its own account for the key.

Where are my API keys stored?

In the desktop app, encrypted by your operating system's keychain on your computer. In the browser version, in your browser, where they are not encrypted. In both cases the key is never written into your projects, exports or published sites.

Keep your work on your own machine

If a private, local-first workflow appeals to you, AI Code Zero is free and open source. Install the desktop app from the download page: the Microsoft Store for Windows, a .AppImage or .deb for Linux, or a one-click install through Pinokio for Mac, with steps in the Mac install guide. Prefer to look first? Open web.aicodezero.com in your browser. No AI Code Zero account is needed, and the open-source AI app builder guide explains how to connect your own models and keep full ownership of your code.