npm · cuba-memorys
$npx -y cuba-memorys@0.24.0 DATABASE_URL (required) — PostgreSQL connection URL (e.g. postgresql://user:pass@localhost:5432/brain)
CUBA_PROJECT_FILTER — Set to 'off' to disable v0.8 project scoping filters (admin/debug only).
CUBA_SYNC_DIR — Directory used by cuba_sync export/import (default ./.cuba-memorys/).
CUBA_JUDGE — cuba_juez backend selector: claude_cli | anthropic_api | heuristic | auto (default auto).
CUBA_JUEZ_CLI — Subprocess CLI used by ClaudeCodeJudge (default 'claude').
CUBA_JUEZ_MODEL — Model name passed to the judge backend (default 'claude-haiku-4-5').
ANTHROPIC_API_KEY · secret — API key for AnthropicApiJudge (only used when feature 'anthropic-api' is built in).
CUBA_REM_RELATION_BATCH — Isolated entities the REM cycle scans for relations per run (default 5, 0 disables).
CUBA_RERANKER_PATH — Directory holding the bge-reranker ONNX model; enables cross-encoder reranking (+93% nDCG on GPU).
CUBA_RERANK_FIXED_SHAPE — Pad reranker batches to a constant 512 tokens. Defaults on for GPU builds, off on CPU.