zotio is the trust-and-automation layer for Zotero: local-first search and auditing, preview-first Web API writes for safe change, and bounded, provenance-tagged context for humans, scripts, and MCP agents. Use it to prove a library is ready, fix it safely, ingest material with review, or give agents and vaults trustworthy context.
How it works¶
Reads stay on your machine, except the few that render server-side and need a Web API key: items bibliography and items cite with a custom --style. Writes split by intent: creating a new item (with its attachments/PDFs) prefers the local desktop connector (localhost:23119, no key — the same channel the browser "Save to Zotero" button uses), while field edits, deletes, enrichment, tag ops, moves, and collections create/update route to the Zotero Web API and need a configured key. attachments add --via connector is an opt-in desktop route for an existing item; it still needs a key to re-parent the attachment through the Web API. Writes are preview-first. Item updates read their version precondition from the Web API at apply time, and supported applied changes update an existing local mirror.
| Plane | Backend | Needs a key? |
|---|---|---|
| Read | Local Zotero API (localhost:23119) + synced SQLite mirror |
No (Web API-only reads such as items bibliography need one) |
| Write — new item | Local desktop connector when personal + desktop up; else Web API | No (connector path) |
| Write — everything else | Zotero Web API (api.zotero.org) — edits, deletes, enrich, tags, moves |
Yes — configured once |
| External | CrossRef · OpenAlex · Semantic Scholar · Unpaywall · OpenCitations | No (feeds enrich/import) |
| Local-only | Files, desktop launch, vault file sync, introspection | No |
| Vault push / resolve --keep-vault | Zotero Web API note write-back | Yes — configured once |
| Vault pull / resolve --keep-remote | Local vault file writes; Web API note reads | Yes — configured once |
Run zotio doctor any time to see connectivity, cache freshness, and a writes: line telling you whether write-back is available.
Quickstart¶
zotio doctor # verify Zotero is running and reachable
zotio sync # mirror your library to local SQLite
zotio items retract-check # check every DOI against Crossref's Retraction Watch data
zotio library health --for citation --fail-on high # fit to cite? (exit 11 if not)
zotio items bibcheck paper.tex --fail-on-unknown # every \cite{} resolves? (exit 11 if not)
zotio search 'automation trust' --data-source local --json
No Zotero yet? zotio demo seeds a bundled sample library — 34 classic papers, one genuinely retracted. Local checks (retract-check, library health, bibcheck, search) then run with no desktop app and no API key under ZOTIO_DEMO=1 and --data-source local; doctor and sync still need the real desktop. ZOTIO_DEMO=1 zotio --data-source local items retract-check catches the retracted paper on the spot:

New here? Install the CLI, then authenticate if you need writes.
Missing PDFs?¶
If your library has items without PDFs, papio finds and downloads validated, provenance-tracked PDFs from open access and your own institutional subscriptions through your normal browser, then hands them to zotio for preview-first import.
Where to go next¶
- Install — the CLI, the agent skill, and the MCP server.
- Authentication — keyless reads; when you need a Web API key.
- Obsidian / Logseq vault — conflict-safe, two-way note round-trip.
- Command reference — every command, generated from the binary.
- CI for your bibliography — gate a paper or thesis repo on library health, with a live badge.
- Workflows & triggers — chain steps into one previewed, one-approval, resumable run; fire them automatically on library changes.
- Use in a coding agent — drive the CLI from Claude Code or any agent (or via MCP).
- Highlights — the hero features
zotio whichresolves against. - Capabilities & trust model — read/write classification for every command.
- Zotero API behavior — local vs. Web API, GET-only, schema.
- Safe-by-default writes — how the mutation engine protects your library.