
Readwise CLI
CLIReadwise 官方命令行,让 agent 搜索你在 Readwise 与 Reader 里保存的文章和高亮笔记,保存网页、打标签、整理阅读列表,可设为只读防止误改,适合备课、写作和整理读书笔记。需安装 Node.js;Readwise 为付费订阅,可免费试用 30 天。
The Official Readwise CLI
A command-line interface for Readwise and Reader. Search your documents & highlights, manage your reading list, tag and organize documents — all from the terminal.
Anything you can do in Readwise/Reader, your agent can now do for you.
Install
npm install -g @readwise/cli
Upgrade
If you installed the CLI globally with npm, upgrade to the latest published version with:
npm install -g @readwise/cli@latest
readwise --version
If the version did not change, confirm which binary your shell is using:
which readwise
npm list -g @readwise/cli --depth=0
If you run the CLI with npx, request the latest package explicitly:
npx @readwise/cli@latest --version
Setup
Interactive login (opens browser)
readwise login
Access token login (for separate hosts like OpenClaw, or scripts)
Get your token from readwise.io/access_token, then:
readwise login-with-token
# prompts for token (hidden input, not stored in shell history)
You can also pipe the token in:
echo "$READWISE_TOKEN" | readwise login-with-token
Credentials are stored in ~/.readwise-cli.json. OAuth tokens refresh automatically.
Commands
Run readwise --help to see all available commands, or readwise <command> --help for details on a specific command.
Search documents
readwise reader-search-documents --query "machine learning"
readwise reader-search-documents --query "react" --category-in article
readwise reader-search-documents --query "notes" --location-in shortlist --limit 5
readwise reader-search-documents --query "physics" --published-date-gt 2024-01-01
Search highlights
readwise readwise-search-highlights --vector-search-term "spaced repetition"
List and inspect documents
readwise reader-list-documents --limit 5
readwise reader-list-documents --category article --location later
readwise reader-list-documents --tag "to-review"
readwise reader-get-document-details --document-id <document-id>
readwise reader-get-document-highlights --document-id <document-id>
Tip: seen vs unseen documents. In the response,
firstOpenedAt: nullmeans the document is unseen (never opened). A non-nullfirstOpenedAtmeans it has been opened/seen. Usereader-bulk-edit-document-metadata --documents '[{"document_id":"<id>","seen":true}]'to mark a document as seen.
Save a document
readwise reader-create-document --url "https://example.com/article"
readwise reader-create-document \
--url "https://example.com" \
--title "My Article" \
--tags "reading-list,research" \
--notes "Found via HN"
Organize
# Tags
readwise reader-list-tags
readwise reader-add-tags-to-document --document-id <id> --tag-names "important,review"
readwise reader-remove-tags-from-document --document-id <id> --tag-names "old-tag"
# Move between locations (new/later/shortlist/archive)
readwise reader-move-documents --document-ids <id> --location archive
# Edit metadata
readwise reader-bulk-edit-document-metadata --documents '[{"document_id":"<id>","title":"Better Title"}]'
readwise reader-bulk-edit-document-metadata --documents '[{"document_id":"<id>","seen":true}]'
readwise reader-bulk-edit-document-metadata --documents '[{"document_id":"<id>","notes":"Updated notes"}]'
Highlight management
readwise reader-add-tags-to-highlight --document-id <id> --highlight-document-id <id> --tag-names "key-insight"
readwise reader-remove-tags-from-highlight --document-id <id> --highlight-document-id <id> --tag-names "old-tag"
readwise reader-set-highlight-notes --document-id <id> --highlight-document-id <id> --notes "This connects to..."
Export
readwise reader-export-documents
readwise reader-export-documents --since-updated "2024-06-01T00:00:00Z"
Options
| Flag | Description |
|---|---|
--json | Output raw JSON (for piping to jq, scripts, etc.) |
--refresh | Force-refresh the command list from the server |
--help | Show all commands or command-specific options |
Configuration
Manage CLI settings with the config command. Settings are stored in ~/.readwise-cli.json under the config key.
readwise config show # show all settings with current values
readwise config get readonly # get a single setting
readwise config set readonly true # set a setting
Readonly mode
When readonly is enabled, only read-only tools (search, list, get) are available — write operations (create, move, tag, edit) are hidden from commands and the TUI. This is useful for agents or scripts that should never modify your library.
readwise config set readonly true
readwise --refresh # re-fetch tool cache with annotations
readwise --help # only read-only commands shown
To restore full access:
readwise config set readonly false
readwise login # re-authentication required
Note: Disabling readonly via the CLI logs you out and requires re-authentication. This prevents an AI agent from silently toggling readonly off and using write tools. The TUI settings screen is not affected — toggling readonly there does not require re-login.
Examples
Pipe results to jq:
readwise reader-list-documents --limit 3 --json | jq '.results[].title'
Skills
Pre-built workflows your AI agent can run. Install them with one command:
readwise skills install claude # or codex, opencode
readwise skills list # see all available skills
Browse and contribute skills at github.com/readwiseio/readwise-skills.
Looking for MCP?
Using Claude Desktop, ChatGPT, or another AI app? Connect Readwise via MCP — no terminal needed. Set up Readwise MCP →
How it works
The CLI connects to the Readwise MCP server internally, auto-discovers available tools, and exposes each one as a CLI command. The tool list is cached locally for 24 hours.
Development
git clone https://github.com/readwise/readwise-cli && cd readwise-cli
npm install
npm run build
# Run without building
npx tsx src/index.ts --help
# Point the CLI at a local MCP server
READWISE_MCP_URL=http://localhost:8103/mcp npx tsx src/index.ts --refresh --help
Releasing
Merging a feature PR does not publish it to users. Users receive CLI changes only after a new npm version is published by the Publish npm package GitHub Action.
To ship a release:
- Bump
package.jsonandpackage-lock.jsonto the next version in a release PR. - Merge the release PR to
master. - Create and publish a GitHub Release whose tag exactly matches the package version with a leading
v, for examplev0.5.8. - Wait for the
Publish npm packageaction to complete. It builds the CLI, checks that the release tag matchespackage.json, verifies the lockfile versions, and publishes to npm through trusted publishing. - Confirm npm shows the new version:
npm view @readwise/cli version
If a version is prepared but never published, skip it and bump to the next version. npm versions do not need to be contiguous.
License
相关资源

Readwise Skills
SkillReadwise 官方技能合集:让 agent 帮你分拣 Reader 待读文章、速览订阅内容、就刚读完的文章出题测验,并根据高亮起草书评和阅读回顾;需要 Readwise 订阅(有 30 天免费试用),并先装好 Readwise MCP 或 CLI。
readwiseio/readwise-skills328
Obsidian Skills
PluginObsidian CEO Steph Ango(kepano)出品:教 agent 按 Obsidian 语法写 Markdown、Bases 与 Canvas 文件,通过 Obsidian CLI 操作笔记库,另含网页正文提取等技能。也可用 npx skills 装到 Codex 等 agent。
kepano/obsidian-skills51.3k
Obsidian Visual Skills Pack
Plugin面向 Obsidian 的可视化技能包,把文本生成 Excalidraw 手绘图、Mermaid 图表和 Obsidian Canvas 思维导图,支持中文。作者标注为实验性项目;使用 Excalidraw 技能需装对应的 Obsidian 插件。
axtonliu/axton-obsidian-visual-skills3.7k
MCPVault
MCP让 agent 直接读写本地 Obsidian 笔记库:搜索笔记、追加日记、整理标签与属性,按主题汇总读书或研究笔记。不用打开 Obsidian、不装插件,只能访问笔记库目录,可设为只读。需本机装 Node.js 20+。
bitbonsai/mcpvault1.7k
WPS 笔记 Skills
SkillWPS 笔记官方技能集:让 agent 读写和整理 WPS 笔记;学习场景可把课堂逐字稿整理成笔记、提炼复习重点、出自测题并批改、生成复习卡片和讲解提纲,另有公众号排版、文献精读等;需安装 WPS 笔记桌面端并开启 MCP 或 CLI。
wpsnote/wpsnote-skills186
BibiGPT Skill
SkillBibiGPT 官方技能:把 B 站、YouTube、播客或本地音视频交给 agent,生成摘要、带时间戳字幕、分章节要点和思维导图,适合听课复习和整理研究笔记。需要 BibiGPT 账号(免费用户每日次数和时长有限),并安装其桌面端(含 bibi 命令行)或配置 API Key。
JimmyLv/bibigpt-skill140