SuperAPI AI Directory

zotio

Zotero integration with preview-first, journaled writes: reads via the local Zotero desktop API without a key, writes via the Web API.

Open website

About this tool

zotio is a trust and automation layer built for Zotero, designed to solve the problem that the Zotero graphical interface falls short when library operations need to be performed at scale—for example, finding all items missing PDFs, catching duplicate \cite{} keys before submission, exporting a week's highlighted notes, keeping an Obsidian vault in sync, or providing trustworthy context for AI agents.

Purpose and Positioning zotio gives humans, scripts, and MCP agents local-first search and audit, preview-first writes, and bounded, provenance-tagged context. Existing command-line tools and pyzotero provide raw API access, but users need to write their own glue code and bear the risk; zotio instead provides glue with the following characteristics: reads are local and free (pointing at a running desktop app, no API key, no cloud round trips, and able to work offline against a synced mirror); writes are preview-first (every change is shown as a plan first, gating limits the scope of impact, irreversible operations require explicit opt-in, and an append-only log supports undoing reversible operations); context is bounded and provenance-tagged (each result indicates its source and freshness, zotio never calls an LLM, and only assembles and budgets context to hand to the model).

Main Capabilities Read/write separation strategy: reads stay on the local machine; writes are routed by intent—creating new items (and their attachments/PDFs) preferentially uses the local desktop connector (localhost:23119, no key required, the same channel as the browser's "Save to Zotero" button), while field edits, deletions, enrichment, tag operations, moves, and collection creation/updates go through the Zotero Web API, which requires configured keys. The connector path is the preferred option: --via auto is used only for personal libraries and when the desktop is running, otherwise it falls back to the Web API (group libraries always go through the cloud). For adding attachments to existing items, --via connector is the explicit desktop path, but it still requires a Web API key to move the file to the target location. Writes are preview-first; item updates read the version from the Web write target when applied. Supported applied changes update the existing local mirror so that subsequent reads can see the changes without syncing again. Run zotio doctor at any time to view connectivity, cache freshness, and write availability.

Flagship Feature: Library Health Check library health combines existing checks (citekey conflicts, duplicates, missing metadata, tag drift, broken attachments) into a prioritized, finding-basedtype report. Select the definition of "ready" via --for. Three features make it suitable as a gate: gateable CI (--fail-on critical|high|info|none exits with code 11 when the threshold is not met; --require-fresh 24h exits with code 12 when the local mirror is too old); reports what it cannot check (checks that require a desktop app are explicitly skipped with a remediation measure, and if a skip is relevant to the gate, the run exits with code 9); points to real fixers (findings carry a recommended_action pointing to the exact existing command).

CI and Badges --badge can render any healthy run as a shields.io endpoint JSON artifact—green for healthy, yellow for findings, red for gate failure, orange for setup required. Extend the gate with --check-retractions to check retracted papers (Crossref's Retraction Watch data), and gate the manuscript itself with zotio items bibcheck paper.tex --fail-on-unknown. The zotio-action package can install, sync, gate, and compare against a baseline, failing only on new issues.

Safe Defaults: Write Engine Change envelope writes (items enrich, tags audit fix, items duplicates resolve, items preprint-check fix, items create/update/move/delete, and import apply) share the same plan and result format. Preview is the default behavior; --yes applies; --dry-run always takes precedence. --agent does not auto-apply. Gating limits the scope of impact: --max-changes defaults to 500 (50 under --agent); irreversible operations (merge, permanent delete, empty trash) require --allow-destructive. Read-your-writes is supported. Logged and reversible: each applied change envelope run appends an append-only record (journal list / journal show), journal undo <run-id> can undo reversible operations (tag rename, collection membership, DOI/abstract/citation field/tag writes for items enrich—also removing the source row from Extra—and create operations, undone by putting the created entry into the trash), and explicitly refuses the rest (merge, delete, other field overwrites).

Bulk Import and Repository Sync import apply writes after reviewing and optionally editing the manifest. Scan extracts DOIs from filenames or PDF bytes, classifies against the existing library, and avoids duplicate imports. Resolve turns discoveries into an editable JSON manifest, enriching from CrossRef to create entries. Apply creates schema-valid entries, preview-first, with a --attach-mode none|linked-file|stored contract. One-off importers are also provided: import doi|pmid|arxiv|isbn|url|file|pdf.

Repository round-trip sync supports Obsidian or Logseq, with a managed region per note (frontmatter + fenced comment block, refreshed on every sync) and a user region (## Notes, prose preserved as-is). Write-back is fast-forward only: if both sides have changed, zotio does not blindly merge but instead writes a reviewable conflict artifact under _vault-zotero-conflicts/ and reports it, deliberately resolving it via vault resolve --keep-vault | --keep-remote | --recreate. Run vault audit for a read-only preflight check.

Other Capabilities Library hygiene, integrity, and analytics: items retract-check (checks every DOI against Crossref retraction data, including retractions, expressions of concern, and corrections); collections gaps (citation graph gap analysis, based on OpenCitations and Semantic Scholar); items bibcheck (parses citations in .tex or pandoc Markdown, or reads Zotero citation fields in .docx/.odt, resolves every key, and flags unknown and ambiguous keys); tags audit (groups tags that differ only by case or variant); library stats (dashboard: entries by type and year, top venues, PDF coverage); items audit (lists entries missing PDFs, abstracts, DOIs, tags, or core citation fields); items duplicates (Detect possible duplicates by DOI or title, then merge safely); items citekey-conflicts (find missing or duplicate Better BibTeX keys); items find (resolve DOI, ISBN, PMID, arXiv ID, citation key, URL, OpenAlex work ID, or exact title, with title matching ignoring case, whitespace, quotes, and dash styles, and listing the closest titles or keys with scores as suggestions when unmatched).

Reading and synthesis: items summarize (assemble bounded, synthesizable packages for items or collections—citations + abstracts + annotations + capped full-text excerpts + known metadata gaps + synthesis prompts—to hand to any LLM; --focus can carry ranked PDF text passages and annotations); annotations export/timeline/search (export or search highlights and notes); reading-list (to-read tag queue); items note-template (generate a pre-filled Obsidian/Logseq reading note); items open (print or launch a zotero:// deep link); library wrapped (year in review, with shareable SVG cards, four layouts).

Enrichment (reads external APIs, writes to Zotero): items enrich (populate missing DOIs and abstracts from CrossRef → OpenAlex → Semantic Scholar; populate missing citation fields from CrossRef; attach open-access PDFs from Unpaywall; record the source in the Extra field); --missing-mesh (propose PubMed MeSH descriptors as automatic tags); --validate (report title, year, and rendered-field discrepancies against CrossRef, as well as DOI registration failures); items preprint-check (find arXiv preprints that already have CrossRef records and upgrade them with the journal DOI).

Export and reproducibility: items bibliography (render a shared scope in a CSL style, or export to CSL-JSON, BibTeX, BibLaTeX, or RIS; --manuscript exports only cited items, infirst-citation order); collections export (export an entire collection and its subcollections as one file); export snapshot (reproducible, resumable, fully paginated JSONL export).

Usage First install zotio (the installation command is not provided in the materials). Use zotio demo to quickly verify on a bundled library (this library captures the retracted Wakefield 1998 MMR paper, requires no Zotero installation and no API key, and checks live queries against Crossref). zotio demo --reset deletes and re-seeds the demo library. To operate on a real library, configure ~/.config/zotio/config.toml (the repository config example is not provided), run zotio doctor to view status, then use the various commands.

Use cases Suitable for researchers, writers, and automated workflows that need to operate on Zotero libraries at scale, such as checking citation key conflicts before submission, periodic health checks and gated CI, bulk importing references, keeping a notes repository in sync, and providing trusted context for AI agents.

Limitations zotio itself does not call large language models; it only assembles context; field editing, deletion, enrichment, tag operations, moving, and collection creation/updating in write operations require a Zotero Web API key; some checks require the desktop application to be running; irreversible operations require explicit permission; network-related checks (such as retraction checks and citation gap analysis) require an internet connection.