Generate AI-powered summaries of Zotero library collections as an Obsidian vault
pip install zotero-summarizer Copy PIP instructions
Generate AI-powered summaries of your Zotero library collections as an Obsidian vault.
What it does — For each paper: extracts PDF text, produces a structured LLM summary (problem, methods, findings, limitations, keywords). For each collection: synthesizes a digest from its paper cards. Publishes everything as an interlinked Obsidian vault. Also detects review/survey papers, fetches citation counts from OpenAlex/Semantic Scholar, and can generate an advisory report on your collection hierarchy.
zsum reads PDF file paths from the BBT JSON export. Two modes:
uv sync cp config.example.yaml config.yaml One-Shot Installer (Recommended) The repo ships an install.sh that installs the CLI and the Obsidian plugin in a single command. Pass it the path to your Obsidian vault:
./install.sh /path/to/your/obsidian/vault The script runs uv tool install -e . to put zsum on your PATH, builds the plugin (npm ci when possible, otherwise npm install, then npm run build inside plugin_dev/), and copies main.js, manifest.json, and styles.css into /.obsidian/plugins/obsidian-zsum/. See ./install.sh --help for flags (--cli-only, --plugin-only, --skip-build).
uv tool install -e . This adds zsum to your PATH (via ~/.local/bin/). The -e (editable) flag means source changes take effect immediately without reinstalling. After this, you can use zsum directly instead of uv run zsum.
# Required: path to your BBT JSON export bbt_json: ~/Zotero/zot.json # Required: path to Zotero's SQLite database zotero_sqlite: ~/Zotero/zotero.sqlite # Required for LLM commands: set your provider and model llm: provider: anthropic anthropic: model: claude-sonnet-4-5-20250514 The anthropic provider shells out to the Claude Code CLI (claude -p), so no API key is required — install Claude Code and authenticate once:
claude auth The binary: field under llm.anthropic lets you point at a non-default claude executable; model: accepts any alias the CLI accepts (e.g. sonnet, opus, or a full version string).
For a zero-hassle local LLM setup, install and start Ollama first, then run zsum setup-model — it checks Ollama, pulls a model, and writes the config for you. If Ollama is missing or not running, it prints the next step and exits without changing your config:
zsum setup-model # pulls a medium-size model (qwen2.5:7b) zsum setup-model --size large # for machines with 16GB+ RAM zsum setup-model --list # show available tiers zsum setup-model --model llama3.2 # use any Ollama model Alternatively, set provider: openai_compat and configure the openai_compat section manually.
llm: routing: cards: openai_compat digests: openai_compat redigest: openai_compat openai_compat: base_url: http://localhost:11434/v1 model: llama3.2 api_key: ollama max_tokens_card: 4096 max_tokens_digest: 8192 If using Codex CLI, set provider: codex_exec and configure the codex_exec section. For digests, zsum uses Codex's --output-schema support to request structured sections and then renders the final markdown itself.
If using Gemini CLI, set provider: gemini_cli and configure the gemini_cli section (model:, binary:, approval_mode:). Gemini has no --system-prompt or --json-schema flags, so system + user prompts are combined and structured-output schemas are inlined into the prompt rather than enforced by the CLI.
If you installed globally (see above), use zsum directly. Otherwise prefix with uv run.
# Phase A: build vault skeleton (no LLM, no cost) zsum skeleton # Check your library index zsum index # Phase B: generate summaries zsum cards # per-paper structured summaries via LLM zsum digests # per-collection synthesis via LLM zsum publish # write Obsidian vault from cache # Or run the full pipeline in one go zsum all # Enrichment commands zsum reviews # list review/survey/meta-analysis papers zsum citations # fetch citation counts (OpenAlex + S2 fallback) zsum citations --top 10 # show top-N most-cited papers zsum restructure # generate advisory report on collection hierarchy zsum restructure --output report.md # write report to file # Setup zsum setup-model # pull an Ollama model + configure zsum # Utilities zsum stats # show cache/progress counts zsum extract # dry-run: show PDF extraction quality + text previews zsum clear-cache --all # clear cached cards and digests Obsidian Plugin An Obsidian plugin (obsidian-zsum) provides a graphical interface for the pipeline inside your vault — browse collections and papers, trigger stages (including Citations and Restructure), sort by citation count, watch live log output, and open generated notes without leaving Obsidian.
See the Plugin Guide for installation and usage.
The vault is written to vault_output (default: ./vault) with this structure:
vault/ ├── Library Index.md # Map of contents with stats ├── Collections/ │ ├── Phase Field.md # Collection note with digest + paper links │ └── Subcollection A.md └── Papers/ ├── smith2017.md # Paper note with structured summary └── zhao2020.md Notes use Obsidian wikilinks ([[...]]) for cross-referencing.
Cards and digests are cached in cache_dir. On subsequent runs:
zotero-summarizer is MIT-licensed, and the default installation stays MIT-clean: PDFs are read with pdfminer.six (MIT) and pypdf (BSD-3). No copyleft dependencies are installed or imported by default.
An optional PyMuPDF backend is available for users who prefer its extraction quality. PyMuPDF is licensed under the AGPL-3.0 (or a commercial license from Artifex) — installing the extra means your combined installation is subject to those terms:
uv tool install --reinstall "zotero-summarizer[pymupdf]" Select the backend in config.yaml:
extraction: backend: pdfminer # default, permissive; or "pymupdf" (requires the extra) or per-invocation with zsum --pdf-backend pymupdf .... Switching backends automatically invalidates cached paper cards (extraction output differs between engines).
Build and serve the full docs locally with uv run mkdocs serve.
All 2 files in this release have provenance metadata.
bibliography literature-review llm obsidian summarization zotero
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




