cli-anything-zotero: Let AI agents manage your Zotero library (40+ CLI commands for Zotero 7/8)
Hi everyone,
I'd like to share a CLI tool I built for Zotero 7/8: **[cli-anything-zotero](https://github.com/PiaoyangGuohai1/cli-anything-zotero)**
**What it does:** Provides 40+ commands that let AI coding assistants (Claude Code, Cursor, Codex, etc.) manage your Zotero library through natural language. You install it once, then just talk to your AI assistant:
- *"Search my Zotero for papers about CRISPR"*
- *"Import this DOI into my thesis collection"*
- *"Export all items as BibTeX"*
- *"Find missing PDFs and download them"*
**How it works:** The CLI communicates with Zotero through multiple backends:
- **SQLite** — direct read access for fast searches
- **Connector API / Local API** — for standard operations
- **JS Bridge** — a lightweight plugin (.xpi) that exposes a privileged JavaScript endpoint for operations Zotero's built-in HTTP server doesn't support (attaching PDFs, triggering sync, full-text search, reading annotations)
The JS Bridge runs entirely locally — zero UI popups, millisecond response, no data sent anywhere.
**Key features:**
- Search: keyword, full-text (inside PDFs), semantic (with local embeddings)
- Import: DOI, PMID, RIS/BibTeX files
- Export: BibTeX, CSL JSON, formatted citations
- Manage: tags, collections, notes, PDF attachments
- Read: annotations, highlights, metadata
- Advanced: JS Bridge for custom Zotero JavaScript execution
**Install:**
```
pip install git+https://github.com/PiaoyangGuohai1/cli-anything-zotero.git
cli-anything-zotero app install-plugin # install the JS Bridge plugin
```
Built on the [CLI-Anything](https://github.com/HKUDS/CLI-Anything) framework. Apache 2.0 license. Feedback and contributions welcome!
GitHub: https://github.com/PiaoyangGuohai1/cli-anything-zotero
I'd like to share a CLI tool I built for Zotero 7/8: **[cli-anything-zotero](https://github.com/PiaoyangGuohai1/cli-anything-zotero)**
**What it does:** Provides 40+ commands that let AI coding assistants (Claude Code, Cursor, Codex, etc.) manage your Zotero library through natural language. You install it once, then just talk to your AI assistant:
- *"Search my Zotero for papers about CRISPR"*
- *"Import this DOI into my thesis collection"*
- *"Export all items as BibTeX"*
- *"Find missing PDFs and download them"*
**How it works:** The CLI communicates with Zotero through multiple backends:
- **SQLite** — direct read access for fast searches
- **Connector API / Local API** — for standard operations
- **JS Bridge** — a lightweight plugin (.xpi) that exposes a privileged JavaScript endpoint for operations Zotero's built-in HTTP server doesn't support (attaching PDFs, triggering sync, full-text search, reading annotations)
The JS Bridge runs entirely locally — zero UI popups, millisecond response, no data sent anywhere.
**Key features:**
- Search: keyword, full-text (inside PDFs), semantic (with local embeddings)
- Import: DOI, PMID, RIS/BibTeX files
- Export: BibTeX, CSL JSON, formatted citations
- Manage: tags, collections, notes, PDF attachments
- Read: annotations, highlights, metadata
- Advanced: JS Bridge for custom Zotero JavaScript execution
**Install:**
```
pip install git+https://github.com/PiaoyangGuohai1/cli-anything-zotero.git
cli-anything-zotero app install-plugin # install the JS Bridge plugin
```
Built on the [CLI-Anything](https://github.com/HKUDS/CLI-Anything) framework. Apache 2.0 license. Feedback and contributions welcome!
GitHub: https://github.com/PiaoyangGuohai1/cli-anything-zotero
Upgrade Storage