Skip to main content
The hivemind CLI manages the background daemon that syncs your coding sessions to HiveMind.

Installation

Quick start

Commands

Daemon management

Starting the daemon

hivemind start picks the right service manager for your platform and sets it up for you:
  • macOS: Homebrew services
  • Linux: systemd user service
  • Fallback: plain background process

Checking status

This prints a table with the PID, uptime, tracked sessions, pending events, and log file path. Add --json for machine-readable output.

Viewing logs

Where the log file lives depends on your setup:
  • macOS (Homebrew): $(brew --prefix)/var/log/hivemind.log
  • macOS (other): ~/Library/Logs/hivemind/hivemind.log
  • Linux: ~/.local/state/hivemind/hivemind.log or syslog

Diagnosing issues

This checks for stale lock files, corrupted credentials, and service state mismatches.

Authentication

Sessions

Searching sessions

Importing sessions

If you started using HiveMind after you already had agent sessions on disk, import backfills them:

Configuration

All config lives in ~/.hivemind/config.toml.

Config reference

Example config

API command

You can hit the backend API directly for debugging. The CLI handles auth for you.

Troubleshooting

File locations