Skip to main content

ZotVault

Local-first paper pipeline orchestrator between Zotero and Obsidian.

Works with just Zotero — add Obsidian and/or Ollama whenever you like and more switches on (see Requirements). ZotVault watches your Zotero library and, for every new paper, automatically: creates an Obsidian note, secures a PDF (open-access first, politely rate-limited), puts the paper on an AI-analysis queue, and keeps your vault's index current. Around that core loop it adds one-shot DOI/arXiv adding, paper search, a local dashboard, arXiv keyword alerts, an in-library citation graph, embedding-based related-paper suggestions, and synthesis-cluster proposals.

Everything runs on your machine. No cloud accounts required, no API keys required for the core loop, zero runtime dependencies (Python ≥ 3.9 standard library only).

[search]                       [collect]                [archive]           [wiki]
arXiv / S2 / Crossref  ──▶  dashboard / CLI / agent ──▶  Zotero (BBT)  ──▶  Obsidian vault
        ▲                        │ you approve             │ sqlite poll        │
        └── arXiv alert inbox ───┘                         ▼                    ▼
                                            daemon: note → PDF (OA→proxy) → queue → index
                                                     + citation graph · related · synthesis

Features

  • One-shot add — zotvault add 10.1103/PhysRevB.1.1 arXiv:2405.01234: metadata via Crossref/DataCite/arXiv → straight into Zotero through the same local channel the browser connector uses. The open-access PDF (arXiv, then Unpaywall) is fetched first and uploaded into the new Zotero item in the same save session, the way the browser connector does it; if none is found, Zotero's own resolver is asked, and the result line says plainly whether a PDF landed. This only works at add time; for papers already in Zotero use Zotero's own "Find Available PDF". --no-pdf skips it. Duplicates are detected before saving, against Zotero's own database; a pipeline cycle runs immediately after the add. Optional translation-server support for arbitrary URL imports.
  • Automatic wiki-fication — new Zotero items become Obsidian notes (template-compatible, atomic writes). Existing notes are never rewritten; your manual sections are structurally safe.
  • Edit-safe highlight sync — Zotero PDF highlights land in ONE marker-delimited block per note (grouped by color, deep links back to the exact annotation), kept in sync incl. deletions. Figure/area annotations are embedded as images (copied from Zotero's cache). Color groups can be renamed to your semantics (label_red = "Core Claims"). Everything outside the block is untouchable; unmarked legacy notes are opt-in ([annotations] adopt_existing). See docs/MIGRATION.md.
  • PDF resolution, politely — Zotero attachment → cache → arXiv → Unpaywall → (opt-in) institutional proxy with browser-session cookies. Sequential, delayed, daily-capped: designed to not get your campus blocked. See docs/PROXY.md.
  • AI-analysis queue — ZotVault doesn't run an LLM; it feeds yours. zotvault queue --json lists unanalyzed papers with readable PDF paths; when your agent (e.g. Claude batch) writes *_analysis.md, completion is auto-detected.
  • Dashboard — zotvault web → http://127.0.0.1:8377 : search → tick → add, queue, alerts inbox, suggestions, audit trail. Localhost only.
  • arXiv alerts — daily keyword digest into a review inbox. Nothing enters Zotero without your click (propose, don't execute).
  • Alert triage (assist) — optionally, a small local Ollama model scores inbox candidates 0–10 for relevance under a strict JSON contract (constrained decoding + validation + one retry); the dashboard sorts by score. Advisory only, off by default.
  • Citation graph — Semantic Scholar citation counts + who-cites-whom within your library, regenerated into Citation_Graph.md.
  • Related papers — local Ollama embeddings over your analysis notes → Related_Suggestions.md link candidates. Free, offline.
  • Synthesis suggestions — clusters analyzed-but-unsynthesized papers into proposed review topics.
  • Reconciliation, on your terms — deletions are detected on both sides but never acted on silently: a vault note you deleted is marked missing (dashboard: Recreate / Ignore), a paper deleted from Zotero shows up as vault-only (Re-add / Dismiss), and dismissed papers live on a reviewable ignore list that also guards add.
  • Auditable — every automatic action lands in a SQLite trace (zotvault trace).

Requirements — tiered

ZotVault works with just Zotero; every further tool you already use unlocks a layer.

you have you get
Zotero + Better BibTeX (required) search across arXiv/S2/Crossref with in-library marks, one-shot add (with the OA PDF attached in Zotero, see Features), arXiv alert inbox (approve → Zotero), proxy PDF fallback, dashboard, audit trace — Zotero-only mode
+ a markdown folder (Obsidian vault or any directory — set [vault] dir) automatic per-paper notes, edit-safe highlight/figure sync, AI-analysis queue, citation graph / related / synthesis notes, index & log upkeep
+ Ollama (optional, local & free) related-paper suggestions (embeddings), alert triage scoring, local analysis engine

Python ≥ 3.9; CLI is cross-platform (double-click app + launchd autostart are macOS today). Also optional: pdftotext (poppler) for full-text analysis, an institutional web proxy for licensed PDFs. Better BibTeX is genuinely required — it is the citekey source; without it items are marked blocked.

Quick start

pip install zotvault                   # or: pipx install zotvault / uv tool install zotvault
# (from source: git clone https://github.com/jbaek-dev/ZotVault && pip install ./ZotVault)
zotvault init                          # interactive setup: paths, email, vault scaffolding + doctor
# (--yes for the non-interactive template; add [alerts] keywords later if you want digests)
zotvault run-once --dry-run
zotvault run-once

Run it continuously. Two options on every platform:

  • System tray (recommended): pip install "zotvault[tray]" then zotvault tray — daemon + tray icon with Open Dashboard / Run now / Pause / Quit. The only third-party packages ZotVault can use, and only if you opt in.
  • OS service: zotvault install-daemon — macOS writes a launchd plist, Linux writes a systemd user unit, Windows prints the Task Scheduler command. Never auto-loads; it tells you the enable command.

macOS extra: double-click ZotVault.app (bash scripts/build_app.sh).

Every command also works without installing, via python3 -m zotvault.cli <cmd>.

Commands

command what it does
init / doctor config file / environment health check
run-once [--dry-run] / daemon one cycle / poll loop (+dashboard thread)
install-daemon autostart: launchd plist (macOS) / systemd unit (Linux) / schtasks cmd (Windows)
tray daemon + system-tray icon (needs pip install "zotvault[tray]")
add <ids…> [--dry-run] resolve DOI/arXiv/URL → save to Zotero
search <query> [--source arxiv|s2|crossref] search with in-library marks
web dashboard server in the foreground
queue [--json] papers awaiting AI analysis
alerts [--fetch|--approve N|--dismiss N] arXiv digest inbox
enrich [--limit N] citation graph + embeddings + suggestion notes
assist [--limit N] score pending alerts with the small local model
related <citekey> / synthesis [--write] similarity / cluster proposals
status / trace [--limit N] state summary / audit trail

Design guarantees

  • Read-only toward Zotero's data. Library reads use a temp snapshot of zotero.sqlite; adds go through Zotero's own connector endpoint (Zotero writes its DB itself). ZotVault never touches storage/; downloaded PDFs live in ~/.zotvault/pdfs/.
  • Vault safety. Existing notes are never rewritten; auto-notes (Citation_Graph.md, Related_Suggestions.md, _Synthesis_Suggestions.md) are clearly marked and ZotVault-owned; index.md is only patched via a strict counter regex; log.md is append-only; --dry-run previews; no delete code path exists.
  • Polite networking. OA-first, sequential fetches, delays, hard daily caps (separate, stricter cap for the proxy), honest User-Agent, backs off on HTTP 429.
  • Nothing personal in code. All user-specific values live in ~/.zotvault/config.toml.

Agent integration

Any agent can drive ZotVault through the localhost API (/api/search, /api/add, /api/queue, /api/status). A ready-made tool module for the Polaris local agent (not yet public) lives in that repo (polaris/tools/zotvault_tools.py): search results show up with in-library marks, and adding requires the user to have explicitly picked papers.

Tests

python3 -m unittest discover -s tests -v   # 101 tests, no network needed

License

MIT — see LICENSE. Changelog in CHANGELOG.md.

Metadata

Release files for zotvault 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zotvault 0.10.0
File Size Uploaded Provenance Actions
zotvault-0.10.0.tar.gz 118.2 kB With provenance Details for zotvault-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zotvault 0.10.0
File Interpreter ABI Platform Actions
zotvault-0.10.0-py3-none-any.whl Python 3 none any Details for zotvault-0.10.0-py3-none-any.whl

Total release size: 218.1 kB

Release files / zotvault-0.10.0.tar.gz

Download URL zotvault-0.10.0.tar.gz
Size 118.2 kB
Tags Source
SHA-256 checksum
How to use checksums
393e6beacec7af120eabc11325810202024f95ba6ac1ef83c99bd4dd9a6e84f6
BLAKE2b-256 checksum
How to use checksums
75940a72bbd463d6f0743e95397c02f9099b4a671591507ee3ee92f37b255366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / zotvault-0.10.0-py3-none-any.whl

Download URL zotvault-0.10.0-py3-none-any.whl
Size 99.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20aa924b9d32ec0771a181d098075c97bf244b673cbaa8807013dca6316c8048
BLAKE2b-256 checksum
How to use checksums
9b0b1e3bb6886ddd6beccb60c4363a16e3131111ec35efdb386c5de7966e6b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for zotvault 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zotvault-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page