slackhive command is your day-to-day control surface - simple verbs for start, stop, status, logs, update, backup, and restore.
slackhive status
Show whether SlackHive is running and where.
- Whether the web UI is up and on which port
- Whether the runner is up and its PID
- The path to
~/.slackhive/(data and logs)
slackhive logs
Tail the runner log live.
--follow by default. Ctrl-C to stop.
The log is JSON per line. To filter to a single agent:
slackhive stop
Gracefully stop SlackHive.
- Sends SIGTERM to the managed runner and the web server
- Sweeps any orphan runner processes (e.g. an accidental
tsx watchfrom a previous dev session) - Unlinks the
~/.slackhive/runner.lockfile
kill.
slackhive start
Start SlackHive.
- Checks
~/.slackhive/runner.lock- if another runner is alive, exits with a clear error - If the lock is stale (the PID isn’t alive), removes it automatically
- Picks free ports for the web and runner (default 3001 / 3002; auto-negotiates if taken)
- Writes the new PID into the lock
- Starts the web and runner
slackhive update
Pull the latest code and rebuild.
~/.slackhive/data.db) is preserved.
- npm install (recommended):
slackhive updatedetects your install type. If you installed via npm, it will tell you to runnpm update -g slackhiveinstead. - git clone install: runs
git pull,npm install, rebuilds the runner and web app, restarts.
git pull fails (e.g. local changes), stash them first: git stash && slackhive update.
slackhive backup
Create a database backup.
~/.slackhive/backups/.
slackhive restore
Restore the database from a backup. Restore is CLI-only and stops SlackHive before replacing the local SQLite database.
SLACKHIVE_RECOVERY_PASSWORD in the environment.
If you have the original .env instead of a recovery-key file:
Where data lives
| Path | What it holds |
|---|---|
~/.slackhive/data.db | SQLite DB - agents, memories, skills, history, settings |
~/.slackhive/backups/ | SQLite backup files and pre-restore safety snapshots |
~/.slackhive/agents/<slug>/ | Per-agent workspace (instructions, sessions, copies of assigned wiki folders) |
~/.slackhive/knowledge/<folderId>/wiki/ | Compiled wikis for the Knowledge Library (source of truth) |
~/.slackhive/logs/runner.log | Full runner log stream |
~/.slackhive/runner.lock | Singleton lock - JSON with pid, startedAt, mode |
~/.slackhive/slackhive.pid | Web-server PID file |
~/.slackhive/ separately if you also want generated workspaces, compiled wiki files, and logs.
Running from any directory
slackhive commands work from anywhere on disk - the CLI finds the install via the apps/runner marker. You don’t need to cd into the repo.