Docs · alpha · macOS on Apple Silicon

Install LastDB

Install the node and the starter apps on your Mac. You need Apple Silicon, Homebrew, and Bun on your PATH.

Last reviewed 16 November 2026 against the installed command line.

01 · The installer script

Read it first: install.sh.

Two runs, with a stop in between.

1. Install LastDB and review the plan
curl -fsSL https://thelastdb.com/install.sh -o install.sh
sh install.sh
2. Consent to the starter apps
sh install.sh --accept-install
brain init

The first run installs LastDB, starts the service, prints the install plan for each starter app, and stops with RESULT: CONSENT NEEDED. That stop is expected. The second run ends with RESULT: PASS when the apps are current and healthy. RESULT: FAIL means a step failed, and the line above it says which one. Running the script again is safe.

On the first LastDB start, save any recovery phrase in a password manager. Do not put it in a chat, a source file, or a log.

What the install changes, and how to remove it →

02 · The same steps by hand

The blocks have no comment lines, so they paste cleanly into zsh.

Homebrew, then the App Registry.

Install the node and ask for the apps
brew install edgevector/lastdb/lastdb
brew services start lastdb
lastdb status
curl --fail --silent --show-error --unix-socket ~/.lastdb/data/folddb.sock http://localhost/health
lastdb app list
lastdb app install brain lastsecrets
Accept the planafter you read it
lastdb app install brain lastsecrets --accept-install
lastdb app status
brain init

The first lastdb app install prints the install plan for each app and stops. Read the plan, then run the same command with --accept-install. The install runs each app’s own package step with Bun and links its commands into ~/.local/bin. Nothing edits your shell profile.

lastdb app list shows the apps proved with your LastDB release. lastdb app install brain installs the proved commit, and lastdb app upgrade brain moves an existing install to the newest proved commit. lastdb app rollback brain returns it to its previous release. If no entry is proved with your release, the install stops. Upgrade LastDB with brew upgrade lastdb, or wait for the next proved set.

03 · Database only

The node without the apps.

brew install edgevector/lastdb/lastdb
brew services start lastdb

The Homebrew package ships lastdbd, the daemon, and lastdb, the command line. It does not install a desktop app. Add apps later with lastdb app install.

lastdb --help lists the commands on your release. lastdb backup connects cloud backup and restores a database. lastdb cloud manages the paid subscription and developer keys. lastdb share and lastdb db are covered in the developer guide.

04 · Confirm it is running

One request and three versions.

Healthexpect JSON with "status":"ok"
curl -s --unix-socket ~/.lastdb/data/folddb.sock \
  http://localhost/health
Versions
lastdb status
lastdb --version
lastdbd --version

The socket is ~/.lastdb/data/folddb.sock. The file name is historical; the product is LastDB. Your data is in ~/.lastdb.

More checks: Node Health →

05 · Related

Other pages.

USE

Daily Loop

Brain for notes and decisions, LastSecrets for credentials, and MCP for agents.

OPERATE

Node Health

The health check, the status command, and when a restart is the right step.

Build an app: the developer guide →