Check the node first.
Read status and the local socket before taking service action.
Source reviewed 3 December 2026: 5eb6a3a63. For your installed release, run lastdb --help and lastdb --version.
Read the local health endpoint.
lastdb status socket="$HOME/.lastdb/folddb.sock" [ -S "$socket" ] || socket="$HOME/.lastdb/data/folddb.sock" curl --fail --silent --show-error --unix-socket "$socket" http://localhost/health
A successful socket request confirms the daemon responds. A timeout or connection error can mean load or a service issue; read status and logs before restarting.
Read the local version state.
lastdb status lastdb --version lastdbd --version lastdb upgrade --status
lastdb status reports daemon and cloud state. lastdb upgrade --status reports the managed current and previous binaries, channel, and last update result. A source review date on this site does not identify your installed release.
Use the manager that owns the service.
Managed macOS installs use a LaunchAgent, usually com.edgevector.lastdbd. The current Homebrew formula has no service block. An older Homebrew job can be adopted with its actual label; homebrew.mxcl.lastdb is an older job label, not the current formula's label. Linux user systemd support remains in source, but no Linux release is published now.
lastdb service adopt --label homebrew.mxcl.lastdb
This example is only for an existing Homebrew job. Do not run it for a fresh home; use lastdb service install. Confirm the label from the service definition before adopting a custom job.
Use the service manager that owns this job.
For a managed LaunchAgent, read lastdb status, lastdb upgrade --status, and the daemon logs first. If the socket read succeeds, do not restart. The current Homebrew formula has no service block, so brew services restart lastdb does not control its managed LaunchAgent. Use launchd with the exact label only when a restart is needed. Startup also refuses to proceed if an existing databases/registry.json is malformed or has an unsupported format; check the daemon error before taking service action.
Choose another task.
Install
Start your database and choose an optional app.
Use LastDB
Use Brain, LastSecrets, and MCP.
Upgrade
Check, update, roll back, or adopt a managed service.
Backup and recovery
Connect cloud backup and restore into a fresh home.