Skip to content

Advanced Settings Reference (zocrates_config.json)

Every configurable Zocrates parameter is materialized in a single JSON file — the single source of truth for backend behavior. Nothing is hidden in implicit code branches: options exposed in the Zotero Preferences UI, options only reachable by editing this file, and their defaults all live here.

  • File location: <Zotero data directory>/zocrates-data/zocrates_config.json
  • Created: automatically on first backend startup, seeded with all defaults listed below
  • Backfill: when a new Zocrates version introduces a setting, it is automatically appended to existing files on load (under a file lock) — you never need to add missing keys manually
  • Reload: most settings are read live from a memory cache; a handful of boot-time settings (e.g. backend_port) only take effect on backend restart
  • Editing: the Zotero Preferences UI covers the common options; this page documents everything, including power-user-only keys. Edit the JSON with Zocrates stopped (or expect the backend to reload it) — invalid values fall back to documented defaults rather than crashing

The file is a flat JSON object. Nested dictionaries (search_harness, graph_relations, override_agent_models, llm_extra_options) are merged key-by-key with their built-in defaults, so you only need to specify the keys you want to override.


Language Model

llm_provider

  • Type: string
  • Default: "openrouter_llm"
  • Values: "openrouter_llm" · "ollama" · "vllm" · "openai_compatible"

The reasoning-engine provider for all agents. "openrouter_llm" routes through OpenRouter (requires an OpenRouter API key); "ollama" and "vllm" target local engines; "openai_compatible" targets any OpenAI-compatible HTTP endpoint. Local providers get ollama_chat/ wire routing, URL normalization, and drop_params=True handling automatically. Changing this requires a backend restart.

llm_model

  • Type: string
  • Default: "openrouter/~z-ai/glm-flash-latest"

The main chat/synthesis model identifier. With OpenRouter, use the openrouter/<vendor>/<model> slug form; local providers accept their native model names (e.g. gemma4:12b for Ollama). Each provider has a fallback default (PROVIDER_DEFAULT_MODELS) applied if this is empty.

llm_base_url

  • Type: string
  • Default: "" (empty = provider built-in default)

Optional server base URL override for local providers. Ollama defaults to http://localhost:11434, vLLM / OpenAI-compatible endpoints to http://localhost:8000/v1. Schemes and missing /v1 suffixes are normalized automatically.

llm_temperature

  • Type: float | null
  • Default: null

Sampling temperature passed to the LLM. null means "provider/agent default" (nothing is sent).

llm_max_tokens

  • Type: int
  • Default: 16384

Maximum output tokens requested per completion. vLLM requests are clamped to the model context automatically.

llm_num_retries

  • Type: int
  • Default: 4

Retry count for transient LLM API failures.

llm_extra_options

  • Type: object
  • Default: {}

Free-form extra options merged into local provider requests. For Ollama, all keys except num_ctx are forwarded as native options (e.g. {"top_k": 40}). The special key num_ctx overrides ollama_num_ctx for the context window.

ollama_num_ctx

  • Type: int
  • Default: 16384

Ollama context window size. Zocrates sets this at the top level (not inside extra_body) so it cannot be clobbered by framework defaults — see Models & Provider Hybridization.

override_agent_models

  • Type: object
  • Default: see below

Per-agent model and thinking-level overrides for the five agent roles. Setting "model": null means "inherit llm_model" — this prevents 401 errors on cloud endpoints when only some roles should use a specialized model.

{
  "coordinator":         { "model": null, "thinking_level": "medium" },
  "library_search":      { "model": null, "thinking_level": "low" },
  "library_synthesizer": { "model": null, "thinking_level": "high" },
  "online_search":       { "model": null, "thinking_level": "low" },
  "online_synthesizer":  { "model": null, "thinking_level": "high" }
}

Valid thinking_level values: "none", "minimal", "low", "medium", "high" (per-role defaults as shown). "minimal" is mapped to "low" for OpenAI/vLLM-style schemas. Disabling thinking also accepts "off", "false", "disabled", or an empty string, and the keyword is disabled/ignored for models that do not support thinking.

sentence_attribution_model

  • Type: string
  • Default: "" (empty = inherit the coordinator model)

Model override for the opt-in sentence-level micro-attribution engine (Citations & Verification). A lightweight/cheap model is a good choice since attribution runs per sentence span.

summary_model

  • Type: string
  • Default: "openrouter/nvidia/nemotron-3.5-lightning:free"

Model used for auxiliary summarization tasks (e.g. ToC abstract generation, bundle note summaries). Any fail-open auxiliary system silently falls back if this model is unreachable.


Embeddings & Retrieval

embedding_provider

  • Type: string
  • Default: "local"
  • Values: "local" · "cloud"

"local" uses Jina v5 embeddings running on-device (CPU or GPU per force_cpu); "cloud" routes embeddings through OpenRouter (uses your OpenRouter key, sends chunk text externally).

embedding_model

  • Type: string
  • Default: "jinaai/jina-embeddings-v5-text-nano"

Embedding model identifier. Cloud mode accepts openrouter/... / openai/... slugs (a prefix is added automatically if missing). Local mode uses the configured local model.

embedding_dimension

  • Type: int
  • Default: 768

Vector dimension of the active embedding model. Persisted by the /rag/model endpoint and used to validate the Chroma collection binding; change it only together with a matching model.

semantic_similarity_threshold

  • Type: float
  • Default: 0.50
  • Range: clamped to 0.0–1.0

Minimum cosine similarity for semantic vector retrieval hits.

reranker_model

  • Type: string
  • Default: "qwen/qwen3-reranker-8b"

Cross-encoder reranker model used by rerank_evidence to order retrieved chunks. The reranker fails open (unranked evidence is still used) if the model cannot load or connect.

force_cpu

  • Type: bool
  • Default: false

Force CPU-only execution for local embeddings (overrides GPU detection). The FORCE_CPU environment variable takes precedence when set.


Document Conversion

document_converter_mode

  • Type: string
  • Default: "local"
  • Values: "local" · "cloud"

Selects the converter tier: "local" (MarkItDown / Docling) or "cloud" (Datalab, requires a Datalab API key).

document_converter_id

  • Type: string
  • Default: "markitdown"
  • Values: "markitdown" · "docling_local" · "datalab"

The active converter. markitdown is the fast pure-Python default; docling_local adds layout-aware local conversion (OCR, tables); datalab is the cloud converter.

conversion_timeout_seconds

  • Type: int
  • Default: 360
  • Range: minimum 30

Per-document conversion timeout (seconds). The generous default accommodates CPU-based layout inference in Docling. The CONVERSION_TIMEOUT_SECONDS environment variable takes precedence.

docling_mode

  • Type: string
  • Default: "auto"
  • Values: "auto" · "fast" · "full"

Docling pipeline detail level (auto balances speed and quality). The DOCUMENT_CONVERTER_DOCLING_MODE / DOCLING_MODE environment variables take precedence.

datalab_processing_mode

  • Type: string
  • Default: "balanced"
  • Values: "fast" · "balanced" · "accurate"

Default Datalab processing mode. lite is deliberately unsupported (it rejects the extras, save_checkpoint, and merge_cross_page options Zocrates sends). Per-conversion overrides chosen in the right-click mode modal are recorded on the conversion itself; invalid stored values fall back to balanced with a warning.

datalab_merge_cross_page

  • Type: bool
  • Default: false

Enable Datalab cross-page table/paragraph stitching (requires datalab-python-sdk>=0.10.0).

datalab_non_pdf_fallback

  • Type: string
  • Default: "markitdown"
  • Values: "markitdown" · "docling_local"

Converter used for non-PDF items (HTML, snapshots) when Datalab is the active converter, since Datalab is PDF-only.

enable_vlm_captioning

  • Type: bool
  • Default: true

Enrich uncaptioned figures/charts/diagrams with Vision-Language-Model descriptions during conversion (see Document Conversion).

vlm_captioning_provider

  • Type: string
  • Default: "openrouter"

Provider for VLM captioning (openrouter or a local Ollama endpoint).

vlm_captioning_model

  • Type: string
  • Default: "openrouter/deepseek/deepseek-v4.1-flash"

Primary vision model used for figure captioning.

vlm_captioning_backup_model

  • Type: string
  • Default: "openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free"

Fallback vision model when the primary captioning model fails.

vlm_captioning_local_model

  • Type: string
  • Default: "" (empty = use provider default)

Local Ollama vision model name when captioning runs locally.

vlm_max_images_per_doc

  • Type: int
  • Default: 100

Cap on the number of images captioned per document (cost bound for cloud vision calls).

vlm_timeout_seconds

  • Type: int
  • Default: 30

Per-image VLM captioning timeout.


Chat & Search Behavior

citations_enabled

  • Type: bool
  • Default: true

Master switch for in-text bracket citations and the interactive evidence-peek pipeline.

references_section_enabled

  • Type: bool
  • Default: true

Append the # Cited Sources / ## Other Considered Sources two-tier bibliography to grounded answers.

considered_sources_disclosure

  • Type: bool
  • Default: true

Include the collapsible "Other Considered Sources" section (Tier 2) under the cited sources.

search_harness

  • Type: object
  • Default: see below

Budgets and ceilings for the autonomous library-search ReAct loop and the Human-In-The-Loop deep-research extension (see Dialogue Agent and HITL Deep Research). Keys are merged with defaults.

{
  "max_retrieval_tools": 10,
  "budget_extension_increment": 5,
  "max_absolute_retrieval_limit": 20,
  "max_extension_count": 2,
  "hard_word_ceiling": 7500,
  "word_ceiling_extension_increment": 3750,
  "max_absolute_word_ceiling": 15000,
  "word_ceiling_hitl_trigger_percent": 80,
  "max_rerank_chunks": 15,
  "rerank_chunks_extension_increment": 5,
  "max_absolute_rerank_chunks": 25,
  "hitl_enabled": true,
  "max_injected_toc_items": 3,
  "max_unique_cached_tocs": 10,
  "online_initial_retrieval_tools": 8,
  "max_online_extensions": 2,
  "online_budget_increment": 5,
  "max_absolute_online_tools": 18
}
Key Meaning
max_retrieval_tools Tool-call budget per library-search run
budget_extension_increment Tool calls added per HITL extension
max_absolute_retrieval_limit Hard cap on tool calls (with extensions)
max_extension_count Maximum HITL extensions per turn
hard_word_ceiling Cumulative retrieved-words circuit breaker
word_ceiling_extension_increment Words added per HITL extension
max_absolute_word_ceiling Hard cap on cumulative words
word_ceiling_hitl_trigger_percent % of word ceiling that proactively triggers HITL
max_rerank_chunks Chunks scored by the cross-encoder per run
rerank_chunks_extension_increment Rerank slots added per HITL extension
max_absolute_rerank_chunks Hard cap on reranked chunks
hitl_enabled Master switch for the deep-research extension
max_injected_toc_items Max ToC entries injected per cached document
max_unique_cached_tocs LRU bound of the multi-turn ToC cache
online_initial_retrieval_tools Tool budget for the online discovery loop
max_online_extensions Max extensions for online discovery
online_budget_increment Tool calls added per online extension
max_absolute_online_tools Hard cap on online discovery tool calls

graph_relations

  • Type: object
  • Default: see below

The fully-local graph-theoretic paper-relations engine (Paper Relations Graph). Keys are merged with defaults.

{
  "enabled": true,
  "strategy": "hybrid_corroborated",
  "candidate_pool_size": 50,
  "min_hybrid_score": 0.015,
  "score_tau": 0.10,
  "shared_tags_score": 0.70,
  "include_human_curated": true,
  "include_shared_tags": true,
  "include_automatic_tags_in_shared_tags": true,
  "min_shared_tags": 2,
  "sync_bundle_files": true
}
Key Meaning
enabled Compute and persist relation graphs during ingestion
strategy Relation-discovery strategy (hybrid_corroborated = hybrid retrieval + tags + Zotero ground truth)
candidate_pool_size Candidate neighbors fetched per paper before scoring
min_hybrid_score Minimum fused retrieval score to consider a candidate
score_tau Acceptance threshold for an evidential relation
shared_tags_score Weight contributed by shared Zotero tags
include_human_curated Use manually added Zotero tags/relations as ground truth
include_shared_tags Score tag overlap as relation evidence
include_automatic_tags_in_shared_tags Count automatic (importer-generated) tags, capped at 5% document frequency
min_shared_tags Minimum shared tags for a tag-based relation
sync_bundle_files Serialize neighborhoods into bundle item_relations.md files

auto_render_mermaid_diagrams

  • Type: bool
  • Default: true

Render Mermaid blocks in chat messages as diagrams (with a "Show code" toggle). Single source of truth shared by the sidebar, /status, and /config.


AI Decision Models (Citation Verification & Compaction)

citation_verification_enabled

  • Type: bool
  • Default: false

Enable the asynchronous per-occurrence citation-verification pre-pass (calibrated support probabilities, evidence-peek confidence badges, Claim Verification Inspector).

citation_verification_provider

  • Type: string
  • Default: "openrouter"

Decision-model provider. Valid values: "openrouter" (remote fast decision models) or "local_laya" (the local Laya decision server).

citation_verification_model

  • Type: string
  • Default: "~typesafe/jev-latest"

Remote decision model slug. Use "laya", "local", "local_laya", "local/laya", or a local: / local/ prefix to route to the local Laya decision server instead.

citation_verification_threshold

  • Type: float
  • Default: 0.60

Minimum support probability for a citation occurrence to survive; occurrences below the threshold are pruned from the final answer.

citation_verification_local_url

  • Type: string
  • Default: "http://127.0.0.1:8005/v1/systemone"

Endpoint of the local Laya decision server.

citation_verification_local_port

  • Type: int
  • Default: 8005

Port Zocrates uses when auto-starting the local Laya server.

citation_verification_auto_start_local

  • Type: bool
  • Default: true

Automatically launch the bundled local decision server (CPU/GPU auto-detected) when a local decision model is selected.

citation_verification_timeout_sec

  • Type: float
  • Default: 10.0

Per-batch decision-model timeout. Fail-open: verification problems never block or fail a chat turn.

citation_verification_turn_budget_sec

  • Type: float
  • Default: 20.0

Total per-turn wall-clock budget for the verification pre-pass.

openrouter_decisions_url

  • Type: string
  • Default: "https://openrouter.ai/api/alpha/decisions"

Endpoint override for the OpenRouter decisions API used by the decision-model probes. Internal plumbing — there is rarely a reason to change it.

adaptive_compaction_timeout_sec

  • Type: float
  • Default: 10.0

Timeout applied to the adaptive-compaction decision-model probe.


Adaptive Context Compaction

Post-turn autonomous compaction of session history — see Adaptive Context Compaction.

enable_adaptive_compaction

  • Type: bool
  • Default: true

Master switch. Runs after the assistant response is delivered (zero TTFT impact) and fails open.

adaptive_compaction_retention_turns

  • Type: int
  • Default: 2

Number of most-recent completed turns kept verbatim (K).

adaptive_compaction_min_turns

  • Type: int
  • Default: 4

Minimum completed turns before compaction is even evaluated (envelope gate).

adaptive_compaction_token_floor

  • Type: int
  • Default: 30000

Coordinator prompt-token floor for triggering evaluation.

adaptive_compaction_token_ceiling

  • Type: int
  • Default: 100000

Hard backstop: compaction is always evaluated above this size.

adaptive_compaction_threshold

  • Type: float
  • Default: 0.75

Decision-model probability threshold (τ) for "compact now".

adaptive_compaction_decision_model

  • Type: string
  • Default: "inception/mercury-decide"

Fast probabilistic decision model evaluating topic closure / progression. (Legacy key adaptive_decision_model is auto-migrated on load.)

compaction_summarizer_model

  • Type: string
  • Default: "openrouter/~deepseek/deepseek-flash-latest"

Rolling summarizer model consolidating turns 1…N-K. Runs with reasoning suppressed and fails open.


Predictive Ghost Input

enable_predictive_ghost_input

  • Type: bool
  • Default: true

Predict the next logical research question after literature turns and render it as ghost text in the chat input (see Predictive Next-Prompt Engine).

predictive_prompt_model

  • Type: string
  • Default: "openrouter/~deepseek/deepseek-flash-latest"

Ultra-fast model used for next-prompt prediction (40-token completions, 4s timeout, fail-silent).


Backend, Networking & Lifecycle

backend_port

  • Type: int | null
  • Default: null (deterministic offset)

Explicit port for the local backend. null uses the deterministic offset derived from your zocrates-data path (8765 + hash mod 100) with dynamic collision fallback. The BACKEND_PORT environment variable (set by the Zotero launcher) takes precedence. Requires a backend restart.

bootstrap_handshake_timeout_ms

  • Type: int
  • Default: 300000 (5 minutes)

How long the Zotero launcher polls GET /status before giving up on a still-starting spawned backend. The first boot compiles the entire ML stack and can exceed 120s on slow disks / CPU-only machines.

auto_spawn_backend

  • Type: bool
  • Default: true

Whether the Zotero bootstrap may auto-provision/spawn the managed backend. Developers running the backend from a terminal set this to false so Zotero only ever attaches to a warm backend.

enable_mcp_server

  • Type: bool
  • Default: true

Expose the local MCP server (python -m zocrates.mcp) for external AI clients — see MCP Server Client Setup.


Discovery & Scholarly Metadata

scholar_polite_email

  • Type: string
  • Default: "" (auto-detect from Zotero sync credentials)

Contact email for the OpenAlex/Crossref polite pool. Auto-detected from your Zotero sync username when empty; set explicitly if you don't use Zotero sync. See Online Literature Discovery.

sync_auto_abort_failures

  • Type: int
  • Default: 10

Consecutive-failure threshold at which a full-library sync job auto-aborts (poison-item protection). Values ≤ 0 disable auto-abort.


User Memory

user_research_profile

  • Type: string
  • Default: ""

Persistent research persona (technical depth, formatting guidelines, methodology focus) injected into the coordinator and synthesizer agents. Strictly conditional: empty means zero extra tokens. Configured via the Zotero Preferences UI — see Long-Term Memory & User Directives.

max_research_profile_chars

  • Type: int
  • Default: 1000

Character ceiling enforced on the research profile (UI counter and persistence validation).


Session Lifecycle & Storage

See Session Lifecycle & Space Reclamation.

max_saved_sessions

  • Type: int | null
  • Default: 100

Maximum number of chat sessions retained (null = unlimited). Oldest sessions are pruned by the retention engine (24-hour empty-session immunity and active-stream immunity apply).

session_retention_days

  • Type: int | null
  • Default: 180

Maximum age in days for retained sessions (null = unlimited).

prune_empty_sessions

  • Type: bool
  • Default: true

Automatically delete abandoned empty sessions on startup and on demand.

session_db_auto_vacuum_on_startup

  • Type: bool
  • Default: true

Run the disk-space-guarded VACUUM on sessions.db at startup (freelist ≥ 25% with 1.5× disk pre-check).


Miscellaneous

theme

  • Type: string | null
  • Default: null

Read-side field consulted by status/diagnostic reporting. No code path currently writes this key: the sidebar stores its theme in Zotero preferences / local storage, not in this file, so the value stays null in practice. Editing it here has no effect on the sidebar theme.

embedding_mode

  • Type: string
  • Legacy name: superseded by embedding_provider. The embedder factory reads embedding_provider (plus the EMBEDDING_MODE environment variable) — this config key is not honored by it; only the diagnostics report still reads it as a display fallback. Prefer embedding_provider.

⚠️ Don't confuse the embedding_mode config key with the EMBEDDING_MODE environment variable — the latter (not the former) is a live override for embedding_provider.


Environment Variable Overrides

A few settings honor environment variables which take precedence over the config file. The first group is plumbing injected by the Zotero launcher at backend spawn; the second group is aimed at development and testing workflows. In normal desktop use none of the dev/ops variables are set, so the config file governs behavior. If a stray dev/ops variable exported in the shell that launched Zotero shadows the config with a different value, the backend logs a startup warning of the form ENV OVERRIDE: EMBEDDING_MODE=cloud (config: local); launcher plumbing and API keys are deliberately excluded from that warning scan because they are injected on every spawn.

Launcher-injected plumbing:

Environment variable Overrides
BACKEND_PORT backend_port
ZOTERO_DATA_DIR data directory location (not a config key)
ZOCRATES_AUTH_TOKEN local API auth token (not a config key)

Dev / ops overrides:

Environment variable Overrides
FORCE_CPU force_cpu
EMBEDDING_MODE embedding_provider
DOCUMENT_CONVERTER_MODE document_converter_mode
DOCUMENT_CONVERTER_ID document_converter_id
DOCLING_MODE / DOCUMENT_CONVERTER_DOCLING_MODE docling_mode
CONVERSION_TIMEOUT_SECONDS conversion_timeout_seconds
DATALAB_NON_PDF_FALLBACK datalab_non_pdf_fallback
DATALAB_MERGE_CROSS_PAGE datalab_merge_cross_page
ENABLE_VLM_CAPTIONING enable_vlm_captioning
VLM_CAPTIONING_PROVIDER vlm_captioning_provider
VLM_CAPTIONING_MODEL vlm_captioning_model
VLM_CAPTIONING_BACKUP_MODEL vlm_captioning_backup_model
VLM_CAPTIONING_LOCAL_MODEL vlm_captioning_local_model
VLM_MAX_IMAGES_PER_DOC vlm_max_images_per_doc
VLM_TIMEOUT_SECONDS vlm_timeout_seconds

API keys (OPENROUTER_API_KEY, DATALAB_API_KEY, OPENALEX_API_KEY) are injected into the backend process environment by the launcher and are additionally storable in Zotero's Login Manager via the Preferences UI (llm_api_key / secure storage) — they are not written to zocrates_config.json in plaintext.


Full Default Config

For reference, the exact JSON Zocrates seeds on first run (non-nested values shown inline):

{
  "llm_provider": "openrouter_llm",
  "llm_model": "openrouter/~z-ai/glm-flash-latest",
  "llm_base_url": "",
  "llm_temperature": null,
  "llm_max_tokens": 16384,
  "llm_num_retries": 4,
  "ollama_num_ctx": 16384,
  "override_agent_models": {
    "coordinator":         { "model": null, "thinking_level": "medium" },
    "library_search":      { "model": null, "thinking_level": "low" },
    "library_synthesizer": { "model": null, "thinking_level": "high" },
    "online_search":       { "model": null, "thinking_level": "low" },
    "online_synthesizer":  { "model": null, "thinking_level": "high" }
  },
  "embedding_provider": "local",
  "embedding_model": "jinaai/jina-embeddings-v5-text-nano",
  "embedding_dimension": 768,
  "document_converter_mode": "local",
  "document_converter_id": "markitdown",
  "docling_mode": "auto",
  "datalab_non_pdf_fallback": "markitdown",
  "datalab_merge_cross_page": false,
  "datalab_processing_mode": "balanced",
  "conversion_timeout_seconds": 360,
  "enable_vlm_captioning": true,
  "vlm_captioning_provider": "openrouter",
  "vlm_captioning_model": "openrouter/deepseek/deepseek-v4.1-flash",
  "vlm_captioning_backup_model": "openrouter/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free",
  "vlm_captioning_local_model": "",
  "vlm_max_images_per_doc": 100,
  "vlm_timeout_seconds": 30,
  "semantic_similarity_threshold": 0.50,
  "reranker_model": "qwen/qwen3-reranker-8b",
  "search_harness": { "…": "see Chat & Search Behavior above" },
  "graph_relations": { "…": "see Chat & Search Behavior above" },
  "citations_enabled": true,
  "references_section_enabled": true,
  "considered_sources_disclosure": true,
  "auto_render_mermaid_diagrams": true,
  "enable_mcp_server": true,
  "auto_spawn_backend": true,
  "enable_predictive_ghost_input": true,
  "predictive_prompt_model": "openrouter/~deepseek/deepseek-flash-latest",
  "sentence_attribution_model": "",
  "scholar_polite_email": "",
  "user_research_profile": "",
  "max_research_profile_chars": 1000,
  "citation_verification_enabled": false,
  "citation_verification_provider": "openrouter",
  "citation_verification_model": "~typesafe/jev-latest",
  "citation_verification_threshold": 0.60,
  "citation_verification_local_url": "http://127.0.0.1:8005/v1/systemone",
  "citation_verification_local_port": 8005,
  "citation_verification_auto_start_local": true,
  "citation_verification_timeout_sec": 10.0,
  "citation_verification_turn_budget_sec": 20.0,
  "enable_adaptive_compaction": true,
  "adaptive_compaction_retention_turns": 2,
  "adaptive_compaction_min_turns": 4,
  "adaptive_compaction_token_floor": 30000,
  "adaptive_compaction_token_ceiling": 100000,
  "adaptive_compaction_threshold": 0.75,
  "adaptive_compaction_decision_model": "inception/mercury-decide",
  "compaction_summarizer_model": "openrouter/~deepseek/deepseek-flash-latest",
  "max_saved_sessions": 100,
  "session_retention_days": 180,
  "session_db_auto_vacuum_on_startup": true,
  "prune_empty_sessions": true,
  "backend_port": null,
  "bootstrap_handshake_timeout_ms": 300000,
  "sync_auto_abort_failures": 10
}

A handful of keys documented above are read by the backend but not seeded in the default file: force_cpu, llm_extra_options, summary_model, openrouter_decisions_url, adaptive_compaction_timeout_sec, and theme. They are consulted on demand (with the defaults listed in their sections) and only materialize in the file if something writes them.