cli-anything-zotero
Skill by PiaoyangGuohai1
Searches, imports, exports and manages references in a Zotero 7+ desktop library from the command line. Built for AI assistants and researchers who work with Zotero programmatically. Requires Zotero to be running with a JS Bridge plugin.
Install cli-anything-zotero
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PiaoyangGuohai1/cli-anything-zotero /tmp/cli-anything-zotero && mkdir -p ~/.claude/skills && cp -r /tmp/cli-anything-zotero/cli_anything/zotero/skills ~/.claude/skills/cli-anything-zoteroRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PiaoyangGuohai1/cli-anything-zotero /tmp/cli-anything-zotero && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cli-anything-zotero/cli_anything/zotero/skills ~/.gemini/antigravity-cli/skills/cli-anything-zoteroAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cli-anything-zotero in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
cli-anything-zotero is a command line interface for the Zotero 7 and later desktop app. It provides more than 40 commands across four backends. The commands cover keyword and semantic search, import by DOI, PMID, arXiv ID, file or BibTeX, export in BibTeX and other formats, PDF attachment and batch PDF fetching, tags, collections, and duplicate detection. Output can be machine-readable JSON with the --json flag.
The tool works through a JS Bridge plugin, which is installed with zotero-cli app install-plugin, and Zotero desktop must be running. Write operations are appended to a local audit log. DOCX commands can insert Zotero placeholders or static citations into a manuscript. The source is aimed at AI agents and researchers who need to work with a Zotero library programmatically.
Written from the project's SKILL.md and checked against it.
What it can do
- item findKeyword search across fields, tags, notes, annotations and full content.
- item semantic-searchFinds papers matching a natural language query, using a pre-built vector index.
- import doiImports a paper into Zotero by DOI, with optional tags, collection and PDF fetch.
- export bibExports items or a collection to a standalone BibTeX file.
- item fetch-pdfSearches Zotero, Unpaywall, EuropePMC, bioRxiv and arXiv for a PDF.
- item duplicatesFinds likely duplicate items and merges them, with a dry run by default.
- batchRuns many tag, update, note or add writes from a JSONL file after validation.
- collection statsShows item totals, PDF coverage and year or journal distribution for a collection.
- docx citeConverts citations in a DOCX draft to static text or Zotero-linked fields.
- item deleteMoves items to the trash, with restore available and a separate permanent erase flag.
What you need
- Zotero 7 or later desktop app, running
- JS Bridge plugin, installed with zotero-cli app install-plugin
- ZOTERO_EMBED_API, ZOTERO_EMBED_MODEL and ZOTERO_EMBED_KEY for semantic search
- LibreOffice for dynamic DOCX citation fields
- macOS, Windows or Linux
Try asking
- Find papers in my Zotero library about spatial transcriptomics and export BibTeX
- Import the paper with DOI 10.1038/s41586-021-03819-2 and attach its PDF
- Which papers in my collection are missing PDFs?
Good to know
- Zotero desktop must be running. The source does not describe a cloud-only or read-only mode.
- Semantic search needs embedding environment variables and a pre-built vector index.
- Permanent deletion is irreversible and requires both --permanent and --yes-erase.
- Dynamic DOCX citations need LibreOffice. Static mode is the stated fallback.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli_anything/zotero/skills/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to cli-anything-zotero
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
cli-anything-zotero: common questions
Does it work when Zotero is closed?
No. The source says Zotero desktop must be running and that the tool should not be used in cloud-only or degraded modes.
Can it search by meaning instead of exact keywords?
Yes, through the semantic-search and similar commands. They need ZOTERO_EMBED environment variables and a pre-built vector index at ZOTERO_VECTOR_DB.
Are deleted items recoverable?
Normal deletes move items or collections to the trash and they can be restored. Permanent erase needs --permanent and --yes-erase and cannot be undone.
How do I install cli-anything-zotero?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cli-anything-zotero free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cli-anything-zotero safe to use?
It scores 69 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cli-anything-zotero?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
