Skip to content
Lovelace

macOS Installation

Lattice works on macOS 13+ (Apple Silicon). Private AI with a local model needs macOS 14 or later on Apple silicon, because LM Studio does.

Quick Install#

bash
curl -fsSL https://d.uselovelace.com/lattice | sh -s -- --setup

This installs the lattice-daemon and lattice-ctl binaries, creates the ~/.lovelace/lattice/ configuration directory, and runs lattice-ctl setup --yes: it installs LM Studio (with the Homebrew cask when Homebrew is installed), downloads the model sized to your Mac's memory, registers the launchd service, and checks that the model answers. Replace --setup with --plan to see the download size first without installing anything.

Step-by-Step Installation#

Step 1: Install#

bash
curl -fsSL https://d.uselovelace.com/lattice | sh

# Verify it installed
which lattice-ctl

Step 2: Set Up Private AI#

bash
lattice-ctl setup

Setup prints its plan and total download size and asks once before changing anything.

Step 3: Check Readiness#

bash
lattice-ctl doctor

Each issue doctor finds comes with the command that fixes it.

Step 4: Try Your First Chat#

bash
# Start an interactive chat session
ada chat

# Type your message at the prompt
# Your: What is lattice?

To also use a cloud model, configure a provider:

bash
ada config provider set anthropic --api-key sk-your-key-here

macOS-Specific Issues#

Gatekeeper Warning#

If macOS reports "cannot be opened because the developer cannot be verified":

bash
# Allow the binary
xattr -d com.apple.quarantine "$(command -v lattice-ctl)"

Or open System Preferences → Security & Privacy → Allow lattice-ctl

Apple Silicon (M1/M2/M3) Compatibility#

If you see "bad CPU type in executable":

  • Check your architecture: uname -m (should show arm64)
  • Re-run the installer, which selects the build for your architecture

"Permission denied" errors#

If you get permission errors when starting:

bash
# Fix directory permissions
chmod 755 ~/.lovelace/lattice/
chmod 644 ~/.lovelace/lattice/config.toml

Daemon won't stay running#

If the daemon keeps stopping:

bash
# Check the service log
cat ~/.lovelace/lattice/daemon.log

# Run the daemon in the foreground to see errors
lattice-ctl daemon start --foreground

Service Management#

bash
# Check if daemon is running
lattice-ctl ping

# Check daemon status details
lattice-ctl daemon status

# Start daemon
lattice-ctl daemon start

# Stop daemon
lattice-ctl daemon stop

# Check the launchd service
lattice-ctl service status

# Disable auto-start (keep installed but don't run on boot)
lattice-ctl service disable

# Re-enable auto-start
lattice-ctl service enable

Uninstalling#

To completely remove Lattice from macOS:

bash
# Stop the daemon and remove the launchd service
lattice-ctl service stop
lattice-ctl service uninstall

# Remove the binaries and Lattice data
rm "$(command -v lattice-ctl)" "$(command -v lattice-daemon)"
rm -rf ~/.lovelace/lattice/

Updating#

To update to the latest version:

bash
# Re-run the installer to get the latest version
curl -fsSL https://d.uselovelace.com/lattice | sh

Troubleshooting#

"Connection refused" when using lattice commands#

bash
# Check if daemon is running
lattice-ctl daemon status

# If not running, start it
lattice-ctl daemon start

# Verify daemon is responsive
lattice-ctl ping

"Command not found: lattice-ctl"#

bash
# Check if it's in PATH
which lattice-ctl

# Reload shell configuration
source ~/.zshrc  # or ~/.bashrc if using bash

# Check your shell
echo $SHELL

"Darwin/macOS version too old"#

Lattice requires macOS 13+. Check your version:

bash
sw_vers

# Or
system_profiler SPSoftwareDataType

If you're on macOS 12 or earlier, you'll need to upgrade your OS.

Socket permission errors#

bash
# Check socket location
ls -la ~/.lovelace/lattice/daemon.sock

# Fix permissions
chmod 700 ~/.lovelace/lattice

Getting Help#