Install and start Home
Run Home from source today, or use the installer for a background service. Stop, restart and uninstall.
Early release
Home is at 0.2.x. You can run it from source, or use the installer script for a background service. The first full install runs on a Mac Studio (2026-10-17).
đ§° What you need
- macOS or Linux on x64 or arm64
- Bun, the JavaScript runtime
- Git
- Internet for the first install
âļī¸ Run from source
- Get the code.
git clone https://github.com/getmaipai/home.git- Go into the folder. Use the full path where you cloned it.
cd /Users/example/Developer/home- Install the packages.
bun install- Start Home.
bun startHome builds, runs in the background and prints its addresses. Open the address Home prints. By default it is http://localhost:3000. The first person to sign in becomes the owner. Running bun start again prints the addresses without starting a second copy.
âšī¸ Stop and restart
Run these in the same folder.
bun stopbun restartThe log is data/local-app/app.log.
đī¸ Install as a service
The installer runs Home in the background so it survives a reboot with nobody signed in. For the short, step by step version for the household, see the install, upgrade, uninstall and fix page.
- Run the installer as root. It installs Home only and prints the address of the setup wizard. SSH works.
sudo bash /Users/example/Developer/home/scripts/install.sh-
Open the address. In the wizard, choose where the AI runs. This computer makes Home install the MaiPai Stack right then, with a progress bar. Another computer installs no Stack here.
-
To see what it would do first, add
--dry-run.--stack-onlyruns only the AI engine step, which is what the wizard starts; run it by hand if the wizard cannot.
| Item | macOS | Linux |
|---|---|---|
| Install folder | /usr/local/maipai-home | /opt/maipai-home |
| Home service | launchd daemon com.maipai.home | systemd unit maipai-home.service |
| Stack service | per-user LaunchAgent com.maipai.stack, started at login | systemd user unit, kept alive by lingering |
| Log trimming | daily launchd daemon com.maipai.logrotate | journald |
| Home logs | data/logs/launchd.out.log, launchd.err.log | journalctl -u maipai-home |
| Stack logs | stack/data/logs/stack.log, stack.error.log | journalctl --user -u maipai-stack |
What it checks first
- Required tools (
curl,tar,rsync,unzip,shasum). On a Mac a miss points atxcode-select --install. Homebrew is never used, and Python is not needed. - Free disk space, sized from one table (
shared/diskPlan.json, built from the pins' byte counts and measured install sizes): the plan's installed size, 20 percent more, the room an install uses while it runs, and 2 GB for Home's records. A fresh install checks the whole plan (--plan, default Recommended, capped by the computer's memory) on each disk that will hold Home, its data folder and the AI. An upgrade checks Home and the AI engine program. Too little room stops before any change, with the figures and the smaller-plan flags; close to the limit warns. - For the Stack step only: a logged-in desktop session on macOS. Home itself needs none.
- The Bun runtime and the install checks, after the build and before any service starts.
The Stack step
install.sh --stack-only fetches, builds and starts the Stack, writes engines.stack.url, and records its progress in data/stack-install.json (state, stage, a plain problem). Home reads that file for the wizard bar. On macOS Home is a root daemon and runs the step itself. On Linux Home is an unprivileged user, so the installer adds a one-shot unit, maipai-stack-install.service, and a sudoers rule that allows exactly systemctl start --no-block maipai-stack-install.service for the Home user. The scripts/ folder is root-owned so that user cannot change what the unit runs. The step is safe to run again.
Ports
Home uses MAIPAI_PORT (default 3000). The Stack uses MAIPAI_STACK_PORT (default 8770). If a port is taken, the installer takes the next free one. Both values are written into Home's service as PORT and MAIPAI_STACK_PORT, so the running app and the installer agree. An upgrade keeps the port the last install used. The installer, the service files, the health checks and the backend all read the names above (backend/src/lib/ports.ts on the app side).
Release, plan and version
The installer installs the latest published release, never the main branch. If no release exists it stops with "could not find a published release ... there is nothing to install". Run from source until one does. --version v0.2.5 installs a named release. To get the installer that was tested with that release, fetch it from the release tag: curl -fsSL https://raw.githubusercontent.com/getmaipai/home/v0.2.5/scripts/install.sh | sudo bash -s -- --version v0.2.5. Choose a setup plan with --plan recommended, --plan moderate or --plan minimal; the wizard reads it later.
Pins, Deno and the browser
- The Stack comes from a pin.
STACK_TAGinscripts/install.sh(andscripts/engine-computer/maipai-engine) is the Stack commit this Home release builds. The installer fetches that commit, nevermain. A Stack fix reaches installs only when a Home release moves the pin, so the Home commit that bumpsSTACK_TAGis the one that ships the fix. - Commons tags are pinned by digest. The installer fetches GitHub's archive for each Commons tag the Stack names and checks its SHA-256. A tag with no pinned digest stops the install. The installer stages Home's own Commons packages before
bun install. - Bun stands in for Node. Some dependencies (such as
ssh2) run an install script that expectsnode. The installer puts a temporarynodeshim that points at Bun on thePATHfor the install and the build, then removes it. Bun is on the servicePATHtoo, for package scripts. No Node is needed on the Mac. - Deno is installed for you. The installer downloads Deno 2.9.7, checks its published SHA-256, and puts it in
<install folder>/.deno/bin, which is on the servicePATH. The built-in data packages (music, news, sports, almanac) need it. If the download fails, those packages stay off and the install still finishes. The Deno cache is filled once at install, and the service reads it. - The browser opens. When Home answers, the installer opens the setup address in the console user's default browser (
openon macOS,xdg-openon Linux) and ends its output with the address. Over SSH there is no desktop, so it only prints the address.
Upgrade, resume and roll back
Running it again upgrades in place. Order: stop Home and the Stack, save data/ to upgrade-backups/<time>-from-<tag>/data.tar (a plain tar, at most 4 GB, with files over 512 MB and the engines, models and cache folders left out and listed in excluded.txt; the last two are kept), replace the program files, rebuild, start, wait for Home (/) and the Stack (/healthz), then write .installed-tag. The Stack's stack/data/ (models and settings) and the Bun runtime are never replaced.
An upgrade of an install that already has a Stack rebuilds the Stack too. A run that stopped part way is finished by running the same command again. It sees no .installed-tag, treats the folder as unfinished and continues. If a run fails after the old Home was stopped but before any file changed, Home is started again on the old version.
sudo bash /usr/local/maipai-home/scripts/install.sh --rollbackRollback installs the tag in .previous-tag, moves the newer data/ to data.rolled-back-<time> and restores the copy taken before that upgrade. The Stack's own data is not rolled back.
After a restart
Home starts at boot. The Stack is a per-user LaunchAgent, so it starts when that user logs in. Turn on automatic login for a Mac that restarts unattended. FileVault blocks automatic login; the installer prints a warning when FileVault is on.
Gatekeeper
The installer clears the quarantine flag on the install folder and checks the signature of Bun and the Stack binary. An unsigned binary gets an ad-hoc signature, which Apple silicon requires. If macOS still blocks one, choose Allow Anyway in System Settings, Privacy and Security.
đī¸ Uninstall
sudo bash /Users/example/Developer/home/scripts/uninstall.shIt stops and removes the Home service, the Stack service and the log trimming job, then asks whether to keep or wipe your data. The default on every prompt is keep, and a wipe needs you to type DELETE MY DATA exactly. A wipe covers data/, backups/, received-backups/, the Stack's data, upgrade-backups/ and any data.rolled-back-* folder. Take a backup first. See Backups and restore.

