# LLM-for-Zotero

> A research agent that lives inside Zotero's PDF reader and your own library

- Category: AI Productivity & Writing / Research & Answer Engines
- Language: TypeScript
- Licence: AGPL-3.0
- Repository: https://github.com/yilewang/llm-for-zotero
- Website: https://yilewang.github.io/llm-for-zotero
- Canonical page: https://ai-tldr.dev/tools/llm-for-zotero/

## In short

LLM-for-Zotero is a plugin for Zotero, the open-source reference manager, that puts a model in a side panel next to the PDF you already have open. It sits in the Research & Answer Engines category of the AI Productivity & Writing tools and is open-source, written in TypeScript and licensed AGPL-3.0.

## Overview

LLM-for-Zotero is a plugin for Zotero, the open-source reference manager, that puts a model in a side panel next to the PDF you already have open. The paper is pre-loaded into context before the first question, so asking for a summary, the key claims, the methodology or the limitations does not require pasting anything; answers carry citations that jump back to the passage they came from in the document.

It goes further than one-paper chat. Screenshots of a figure can be sent for interpretation, other papers can be pulled into the conversation with an `@papers` mention to compare them, and external files (PDF, DOCX, PPTX, Markdown, plain text) can be uploaded alongside. A beta Agent Mode operates on the library rather than a single item: reading, searching, tagging and editing metadata across collections. Tavily can be wired in for general web search, and MinerU — cloud or self-hosted — for high-fidelity extraction of tables, equations and figures from PDFs.

The backend is deliberately open-ended. Standard API providers are supported through four protocol modes (`responses_api`, `openai_chat_compat`, `anthropic_messages`, `gemini_native`), so any OpenAI-compatible endpoint or a local server works; a WebChat mode relays through a browser extension when you have a chat subscription but no API key; and the Codex app server and a community Claude Code bridge can both act as the engine. Notes can be saved back into Zotero or written out as Markdown into an Obsidian or Logseq vault. The plugin is AGPL-3.0 and supports Zotero 7, 8 and 9.

## What it does

- Grounded chat over the open paper, with citations that navigate back to the source passage
- Figure and table interpretation from screenshots, plus uploads of external PDF, DOCX, PPTX, Markdown and text files
- Multi-paper comparison by mentioning other items from the library in the conversation
- Agent Mode (beta) for library-wide read, search, tagging and metadata workflows
- Reusable skills for recurring research tasks, and file-based note output to Zotero, Obsidian, Logseq or a Markdown directory
- Provider-agnostic backends: API keys, local OpenAI-compatible servers, WebChat relay, the Codex app server or a Claude Code bridge

## Getting started

The plugin is distributed as a Zotero `.xpi` add-on. Install it, point it at a provider, and the assistant icon appears in the PDF reader.

1. Install the add-on

   Download the latest `.xpi` from the releases page, then in Zotero go to Tools → Add-ons → the gear icon → Install Add-on From File, select the file and restart Zotero.

2. Configure a provider

   Open Preferences → llm-for-zotero, pick the protocol mode that matches your endpoint, enter the API base URL, key and model name, and press Test Connection. Several providers can be configured and assigned to different tasks.

3. Use it without an API key

   WebChat mode relays requests through a browser extension and an existing chat subscription. Download `extension.zip` from the sync-for-zotero releases, load it unpacked at chrome://extensions, then set Auth Mode to WebChat in preferences.

4. Drive it with Codex instead

   The Codex app server can act as the backend for a ChatGPT Plus account; enable it in Preferences → Agent.

```bash
npm install -g @openai/codex
# or: brew install --cask codex
codex login
```

5. Add high-fidelity PDF parsing

   MinerU improves table, equation and figure extraction. Use the cloud key from mineru.net, or run it locally and point the plugin at it.

```bash
# local mode: run mineru-api, default endpoint
http://127.0.0.1:8000
```

6. Turn on web search

   Get a Tavily API key, paste it into Preferences → Agent → Tavily Web Search and press Test connection; answers then cite web sources alongside library items.

## When to use it

- Working through a reading list without leaving the reader to paste papers into a chat window
- Interrogating a figure or a results table directly, by screenshotting it in place
- Comparing how three papers define or measure the same thing in one conversation
- Tagging, summarising and filing a whole collection with a library-wide agent pass
- Keeping research notes in an existing Obsidian or Logseq vault instead of a second tool
