Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

zotero-cli

Skill by huang-sh

Reads and writes a Zotero library from the shell using the zotero-cli command. It suits users who ask about their saved papers, references, citations or reading notes.

  • Score 77
  • 247 stars
  • MPL-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install zotero-cli

Built from the published package, never by AI.

git clone --depth 1 https://github.com/huang-sh/PiX /tmp/PiX && mkdir -p ~/.claude/skills && cp -r /tmp/PiX/skills/zotero-cli ~/.claude/skills/zotero-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install zotero-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The zotero-cli skill lets an assistant search, read and edit a Zotero library through the zotero-cli shell command. It can search by keyword or by meaning, read PDF full text and page ranges, get and set metadata, manage collections, tags, notes and annotations, add items by DOI, URL or ISBN, and export bibliographies. The skill says it is preferred over the Zotero MCP server when shell access is available, because the MCP server's tool schemas cost about 14k tokens of context on every request.

Commands accept a --json flag that returns one object with a stable shape. Local mode needs the Zotero desktop app running with its local API enabled. Web mode needs ZOTERO_API_KEY and ZOTERO_LIBRARY_ID. The skill is written for users who ask about their Zotero library, references, citations, saved papers or reading notes.

Written from the project's SKILL.md and checked against it.

What it can do

  • Keyword and semantic searchSearches by title, phrase, topic, tag, field conditions or BibTeX citekey.
  • Full text and page readingReads PDF full text or a page range, and shows the outline to find sections.
  • Metadata get and setGets item metadata and edits fields such as the title and tags.
  • Collections, tags and notesManages collections, tags, notes and annotations in the library.
  • Add items by identifierAdds items by DOI, URL or ISBN, and files existing items without duplicates by default.
  • Bibliography exportExports bibliographies from items in the library.
  • Batch changesApplies changes such as adding tags to many items by item key.

What you need

  • Zotero desktop app with local API enabled (local mode)
  • ZOTERO_API_KEY and ZOTERO_LIBRARY_ID (web mode)
  • Shell access to run the zotero-cli command
  • Search index built for semantic search

Try asking

  • Find my saved papers on attention mechanisms and list their keys.
  • Read pages 3 to 8 of the PDF for item ABCD1234.
  • Add the paper with DOI 10.1038/s41586-021-03819-2 to my Reading List.

Good to know

  • Needs the Zotero desktop app running with local API enabled, or web API credentials.
  • Semantic search needs the search index built first with db update.
  • --all-libraries needs the server running with ZOTERO_SEARCH_BACKEND=sqlite.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/zotero-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • install.md4 KB
  • reference.md11 KB

Alternatives to zotero-cli

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

zotero-cli: common questions

Why use zotero-cli instead of the Zotero MCP server?

The skill says the MCP server's tool schemas cost about 14k tokens of context on every request, while zotero-cli only costs what is actually run.

What happens if I add an item that already exists?

add is idempotent by default and files the existing item into the named collection instead of creating a duplicate. Use --if-exists skip to leave existing items untouched.

Can it delete items by mistake?

The skill asks the assistant to confirm destructive changes such as delete, duplicates merge and large batches first. delete item refuses notes unless --allow-note is passed.

How do I install zotero-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is zotero-cli free?

The code is published under the MPL-2.0 licence. The service it connects to may have its own pricing.

Is zotero-cli safe to use?

It scores 77 of 100. Grades: maintenance A, 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 zotero-cli?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

zotero-cli Install

Add to stack

Loading.