Reference for SlackHive configuration variables and AI backend credentials.
SlackHive stores configuration in a .env file in the install directory. slackhive init generates this file with safe defaults. Most secrets can also be managed in the dashboard under Settings → AI Backend or Settings → Env Vars.
.env contains encryption keys and admin credentials. Never commit it.
SlackHive supports multiple agent runtimes. The active runtime is selected in Settings → AI Backend and persisted in the database, while credentials can come from login files, CLI-detected auth, or API keys.
Do not rotate ENV_SECRET_KEY after initial setup without a migration plan. Stored AI backend credentials, Slack tokens, and MCP env vars become unreadable.
For disaster recovery, export a password-protected recovery key from Settings -> Backups. That file lets you recover encrypted secrets from a database backup without storing the plaintext ENV_SECRET_KEY beside the backup.
Agent workspace, sessions, instructions, skills, assigned wiki copies
~/.slackhive/knowledge/<folderId>/wiki/
Compiled wiki for one Knowledge Library folder
~/.slackhive/logs/runner.log
Runner log stream
~/.slackhive/runner.lock
Singleton runner lock
~/.slackhive/slackhive.pid
Web server PID file
Use Backup & Recovery for database backups and recovery-key export. Snapshot ~/.slackhive/ separately when you also need generated workspaces, compiled wiki files, and logs.