# CLI Anything Zotero

CLI harness for Zotero.

- Repository: https://github.com/yb2460/harness-anything (2787 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-09
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add yb2460/harness-anything --skill cli-anything-zotero -g -a claude-code -y`
Codex: `npx skills add yb2460/harness-anything --skill cli-anything-zotero -g -a codex -y`
Cursor: `npx skills add yb2460/harness-anything --skill cli-anything-zotero -g -a cursor -y`
Gemini CLI: `npx skills add yb2460/harness-anything --skill cli-anything-zotero -g -a gemini-cli -y`

## Description

CLI harness for Zotero.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# cli-anything-zotero

`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

```bash
pip install -e .
```

## Entry Points

```bash
cli-anything-zotero
python -m cli_anything.zotero
```

## Important Constraints

- `search items`, `item export`, `item citation`, and `item bibliography` require Zotero's Local API to be enabled.
- `note add` 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 `session use-library <id>` before follow-up commands.

## Command Groups

### App

Application and runtime inspection commands.

| Command | Description |
|---------|-------------|
| `status` | Execute `status`. |
| `version` | Execute `version`. |
| `launch` | Execute `launch`. |
| `enable-local-api` | Execute `enable-local-api`. |
| `ping` | Execute `ping`. |

### Collection

Collection inspection and selection commands.

| Command | Description |
|---------|-------------|
| `list` | Execute `list`. |
| `find` | Execute `find`. |
| `tree` | Execute `tree`. |
| `get` | Execute `get`. |
| `items` | Execute `items`. |
| `use-selected` | Execute `use-selected`. |
| `create` | Execute `create`. |

### Item

Item inspection and rendering commands.

The rest: https://github.com/yb2460/harness-anything/blob/HEAD/cli_anything/zotero/skills/SKILL.md
