Skip to content

Configuration

Jae Gangemi edited this page May 27, 2026 · 5 revisions

Default SQLite path: ~/.local/share/ouroboros/kb.db

Environment variables

Database

Var Description
PROJECT_KB_PATH SQLite database path (primary)
QM_DB_PATH SQLite database path (fallback alias)

Both PROJECT_KB_PATH and QM_DB_PATH are honored on MCP server and CLI paths. PROJECT_KB_PATH takes priority; QM_DB_PATH is checked when PROJECT_KB_PATH is unset.

Backup

Var Description
QM_BACKUP_MODE Backup strategy: none, dedicated, or shared (default none)
QM_GIT_REPO Git repository path for backups
QM_SPARSE_PATH Sparse checkout directory (shared backup mode)

Hook observability (plugin only)

Hook scripts write structured JSON logs to ~/.ouroboros/hooks.log with automatic rotation.

Var Description
OUROBOROS_HOOK_LOG Set to 0, false, or off to disable hook logging (enabled by default)
OUROBOROS_HOOK_LOG_MAX_SIZE Max log file size in bytes before rotation (default 5242880 / 5 MB)
OUROBOROS_HOOK_LOG_MAX_FILES Number of rotated backup files to keep (default 1)

bootstrap.json

~/.config/ouroboros/bootstrap.json is loaded before environment variables on both MCP and CLI paths. Environment variables take priority over bootstrap values.

{
  "db_path": "~/.local/share/ouroboros/kb.db",
  "backup": "none",
  "git_repo": "",
  "sparse_path": ""
}
Field Description
db_path SQLite database path; supports ~/ expansion
backup Backup mode: none, dedicated, or shared
git_repo Git repository path for backups; supports ~/ expansion
sparse_path Sparse checkout directory for shared backup mode

The file is optional. Use ouroboros config set to manage per-project settings stored in the database itself (separate from bootstrap.json).

Clone this wiki locally