This file is a deterministic setup runbook for an agent working from a fresh machine or workspace.
Bootstrap local Holaboss OSS desktop development, including provisioning git and Node.js 24/npm when they are missing.
Use this repository URL:
https://github.com/holaboss-ai/holaOS.gitFor a fresh machine bootstrap, the repo ships an installer wrapper that can provision missing prerequisites before cloning and bootstrapping the desktop checkout:
curl -fsSL https://raw.githubusercontent.com/holaboss-ai/holaOS/main/scripts/install.sh | bashBy default, that script:
- installs
gitif it is missing - installs Node.js
24plusnpmif they are missing - clones the repo into
~/holaboss-ai - creates
apps/desktop/.envfromapps/desktop/.env.exampleif needed - runs
npm run desktop:install - runs
npm run desktop:prepare-runtime:local - runs
npm run desktop:typecheck - stops before launching Electron
If you want the installer to continue directly into the desktop dev environment after verification, use:
curl -fsSL https://raw.githubusercontent.com/holaboss-ai/holaOS/main/scripts/install.sh | bash -s -- --launchOptional installer flags:
--dir <path>to choose a different checkout directory--ref <git-ref>or--branch <git-ref>to install from a branch or tag other thanmain--launchto continue intonpm run desktop:dev
If you are already inside a local checkout and want to reuse the same wrapper directly, run:
bash scripts/install.sh --dir "$PWD"Before running the installer, ensure the machine has:
curlbash- macOS, Linux, or WSL
If git is missing:
- on macOS, the installer uses Homebrew to install it
- on Linux, the installer uses the system package manager and may require
sudo
For the manual path, ensure the machine has:
gitnodeversion24or newernpm
Validate prerequisites:
git --version
node --version
npm --versionIf node --version reports a major version lower than 24, stop and upgrade Node.js before continuing.
If the repository is not already present locally, clone it:
git clone https://github.com/holaboss-ai/holaOS.git
cd holaboss-aiIf the repository already exists locally, enter the repository root instead:
cd holaboss-aiAll commands below must be run from the repository root.
Use the root wrapper script so installation stays aligned with the repo:
npm run desktop:installThis installs the dependencies for the Electron desktop app under apps/desktop/.
If apps/desktop/.env does not exist yet, create it from the example file:
cp apps/desktop/.env.example apps/desktop/.envThe public OSS repository already includes default values in apps/desktop/.env.example. Copy it as-is unless a human operator gives you replacement environment values.
Stage the local runtime bundle before verification:
npm run desktop:prepare-runtime:localRun the non-interactive desktop verification step before launching the app:
npm run desktop:typecheckIf it fails, stop and report the failure instead of continuing.
Start the local desktop development environment with:
npm run desktop:devThis launches:
- the Vite renderer dev server
- the Electron main/preload watcher
- the Electron app
You do not need to run a manual prepare step for the normal dev path. npm run desktop:dev runs the desktop predev hook first, and that hook automatically checks for a staged runtime bundle under apps/desktop/out/runtime-<platform>. If the bundle is missing or stale relative to the local runtime sources, it automatically runs npm run desktop:prepare-runtime:local.
If you also need to validate the runtime packages on a fresh clone, prepare them first and then run the runtime test suite:
npm run runtime:state-store:install
npm run runtime:state-store:build
npm run runtime:harness-host:install
npm run runtime:harness-host:build
npm run runtime:api-server:install
npm run runtime:testIf you want to stage the runtime from local source explicitly ahead of time, run:
npm run desktop:prepare-runtime:localThis builds the runtime bundle from your local source checkout and stages it into apps/desktop/out/runtime-<platform>.
If local runtime staging from source is not wanted and the environment should use the latest released runtime bundle for the current host platform instead, run:
npm run desktop:prepare-runtimeThat command stages the latest published runtime bundle for the current platform from GitHub Releases into apps/desktop/out/runtime-<platform>.
Important:
npm run desktop:devis an interactive long-running process.- It may fail in headless or GUI-less environments.
- If the execution environment cannot open Electron windows, stop after the desktop verification step and report that installation succeeded but interactive launch was not attempted.
If you want the one-command installer path, use:
curl -fsSL https://raw.githubusercontent.com/holaboss-ai/holaOS/main/scripts/install.sh | bashFor the equivalent manual fresh setup, the expected command sequence is:
git clone https://github.com/holaboss-ai/holaOS.git
cd holaboss-ai
npm run desktop:install
cp apps/desktop/.env.example apps/desktop/.env
npm run desktop:prepare-runtime:local
npm run desktop:typecheck
npm run desktop:dev