cli-anything-zotero
is an agent-native CLI for Zotero desktop. It does not reimplement Zotero. Instead, it composes Zotero's real local surfaces:
Installation
Entry Points
bash
cli-anything-zotero
python -m cli_anything.zotero
Important Constraints
- , , , and require Zotero's Local API to be enabled.
- depends on the live Zotero GUI context and expects the same library to be selected in the app.
- Import-time PDF attachment support is limited to items created in the same connector session; arbitrary existing-item attachment upload is still out of scope.
- Experimental SQLite write commands are local-only, user-library-only, and should be treated as non-stable power-user operations.
- If a bare key is duplicated across libraries, set before follow-up commands.
Command Groups
App
Application and runtime inspection commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
Collection
Collection inspection and selection commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
Item
Item inspection and rendering commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
Search
Saved-search inspection commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
| Execute . |
Tag
Tag inspection commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
Style
Installed CSL style inspection commands.
| Command | Description |
|---|
| Execute . |
Import
Official Zotero import and write commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
Note
Read and add child notes.
| Command | Description |
|---|
| Execute . |
| Execute . |
Session
Session and REPL context commands.
| Command | Description |
|---|
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
| Execute . |
Examples
Runtime Status
Inspect Zotero paths and backend availability.
bash
cli-anything-zotero app status --json
Read Selected Collection
Persist the collection selected in the Zotero GUI.
bash
cli-anything-zotero collection use-selected --json
Render Citation
Render a citation using Zotero's Local API.
bash
cli-anything-zotero item citation <item-key> --style apa --locale en-US --json
Add Child Note
Create a child note under an existing Zotero item.
bash
cli-anything-zotero note add <item-key> --text "Key takeaway" --json
Build LLM Context
Assemble structured context for downstream model analysis.
bash
cli-anything-zotero item context <item-key> --include-notes --include-links --json
Version
0.1.0