Skip to Content
Spiti

Run the Spiti daemon

Build the Spiti CLI on macOS, start the local daemon, and check your installation.

Spiti runs a background service on your Mac. The Core milestone provides the spiti command-line tool and the daemon. Build the binary from the Spiti source repository to try it. The source repository is private during early development, so building from source requires repository access.

To try the Mac window, see Use the Spiti app shell.

Build the CLI

Use macOS, Bun 1.4.4, and Node.js 20.19 or later. From the root of the checkout, run:

bun install --frozen-lockfile
bun run --cwd apps/daemon build

The binary is at apps/daemon/dist/spiti. Copy it to a permanent location before setup. The LaunchAgent starts the binary from that location.

mkdir -p "$HOME/.local/bin"
cp apps/daemon/dist/spiti "$HOME/.local/bin/spiti"

The examples use the full path. If ~/.local/bin is on your PATH, you can type spiti instead.

Set up and check Spiti

Run setup from your signed-in macOS session without sudo.

"$HOME/.local/bin/spiti" setup
"$HOME/.local/bin/spiti" doctor

Setup creates ~/.spiti, stores the CLI key in your macOS Keychain and registers the app.spiti.daemon LaunchAgent. The daemon starts through launchd and listens on 127.0.0.1:7748. The CLI reaches it through a private socket and reads the key automatically.

Doctor checks the home folder, database migrations, Keychain item, LaunchAgent, socket and daemon connection. If the daemon is still starting, rerun doctor after a few seconds. Use doctor --json to read the checks from a script. Doctor exits with a nonzero status when a check fails.

Repair access or collect logs

If doctor reports a missing or invalid CLI key, use setup --repair to replace it.

"$HOME/.local/bin/spiti" setup --repair
"$HOME/.local/bin/spiti" doctor

Daemon logs are kept in ~/.spiti/logs/. Doctor can create a ZIP archive in your current directory. Review the archive before sharing it.

"$HOME/.local/bin/spiti" doctor --bundle-logs

Uninstall Spiti

Uninstall stops the daemon and removes the LaunchAgent, the CLI key and the socket. It keeps your data and logs in ~/.spiti.

"$HOME/.local/bin/spiti" uninstall

To permanently delete your Spiti data and logs too, use uninstall --delete-data. You can remove the CLI binary separately after uninstalling.

On this page