Zhihu
sigcli/sigcli
Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles.
知乎 CLI (pyzhihu-cli):搜索、热榜、问题/回答/评论、推荐 Feed、用户资料、发想法/提问/文章、删自己的内容、点赞关注、收藏与通知。Agent 代执行 zhihu 命令,Cookie 仅存本地。
$ npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install BAIGUANGMEI/zhihu-cli zhihu-cli --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/BAIGUANGMEI/zhihu-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill .claude/skills/zhihu-cli && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "zhihu-cli" agent skill from https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill into .claude/skills/zhihu-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhihu-cli", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install BAIGUANGMEI/zhihu-cli zhihu-cli --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BAIGUANGMEI/zhihu-cli.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skill .agents/skills/zhihu-cli && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "zhihu-cli" agent skill from https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill into .agents/skills/zhihu-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhihu-cli", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install BAIGUANGMEI/zhihu-cli zhihu-cli --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BAIGUANGMEI/zhihu-cli.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skill .cursor/skills/zhihu-cli && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "zhihu-cli" agent skill from https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill into .cursor/skills/zhihu-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhihu-cli", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/BAIGUANGMEI/zhihu-cli.git --path skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install BAIGUANGMEI/zhihu-cli zhihu-cli --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BAIGUANGMEI/zhihu-cli.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skill .gemini/skills/zhihu-cli && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "zhihu-cli" agent skill from https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill into .gemini/skills/zhihu-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhihu-cli", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install BAIGUANGMEI/zhihu-cli zhihu-cliInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/BAIGUANGMEI/zhihu-cli.git skills-src && mkdir -p .github/skills && cp -r skills-src/skill .github/skills/zhihu-cli && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "zhihu-cli" agent skill from https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill into .github/skills/zhihu-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhihu-cli", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install BAIGUANGMEI/zhihu-cli zhihu-cli --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BAIGUANGMEI/zhihu-cli.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skill .opencode/skills/zhihu-cli && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "zhihu-cli" agent skill from https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill into .opencode/skills/zhihu-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhihu-cli", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
zhihu-cli知乎 CLI (pyzhihu-cli):搜索、热榜、问题/回答/评论、推荐 Feed、用户资料、发想法/提问/文章、删自己的内容、点赞关注、收藏与通知。Agent 代执行 zhihu 命令,Cookie 仅存本地。
Zhihu CLI is an agent skill from BAIGUANGMEI/zhihu-cli. 知乎 CLI (pyzhihu-cli):搜索、热榜、问题/回答/评论、推荐 Feed、用户资料、发想法/提问/文章、删自己的内容、点赞关注、收藏与通知。Agent 代执行 zhihu 命令,Cookie 仅存本地。
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: 知乎命令行工具 — 在终端搜索问题、查看回答、发布文章、提问、想法(支持图文)、浏览热榜,支持二维码登录与Cookie登录. The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 8e32b99. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
uvpipxpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, pipx and pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Zhihu CLI loads about 1.7k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 474 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from BAIGUANGMEI/zhihu-cli at commit 8e32b99, republished under its Apache-2.0 licence (© BAIGUANGMEI). 474 words, ~1,738 tokens.
.claude/skills/zhihu-cli/SKILL.md (or your agent's skills folder).zhihu 在 PATH 中(uv tool install pyzhihu-cli / pipx install pyzhihu-cli / pip install pyzhihu-cli)。~/.zhihu-cli/(如 ~/.zhihu-cli/cookies.json、~/.zhihu-cli/login_qrcode.png);Windows:%USERPROFILE%\.zhihu-cli\(如 %USERPROFILE%\.zhihu-cli\cookies.json、%USERPROFILE%\.zhihu-cli\login_qrcode.png)。cookies.json;不得将 Cookie 上传或写入对话/日志。zhihu login --qrcode、粘贴 Cookie zhihu login --cookie "z_c0=...; _xsrf=...; d_c0=..."。login_qrcode.png。若用 OpenClaw 发给用户,须先复制到 OpenClaw 工作目录的 media 文件夹再 openclaw message send --media <media 路径>。本技能仅限:在用户本机调用已安装的 zhihu 命令,执行搜索、热榜、问题/回答/评论、推荐 Feed、用户资料、发想法/提问/文章、删除自己的内容、点赞关注、收藏与通知等操作;在用户请求扫码登录且已配置 OpenClaw 时,可将二维码图片经 OpenClaw 发送至用户指定渠道。不包含:代用户将 Cookie 上传至任何第三方、访问非知乎域名、或超出上述命令范围的操作。
~/.zhihu-cli/cookies.json;Windows:%USERPROFILE%\.zhihu-cli\cookies.json,权限 0600)。Agent 仅通过执行 zhihu 命令间接使用,不得将 Cookie 内容上传、转发或写入对话/日志。openclaw message send 发送二维码,需用户自行配置 OpenClaw 及渠道凭证;本技能不声明、不持有该部分凭证。uv tool install pyzhihu-clipipx install pyzhihu-clipip install pyzhihu-cliuv tool upgrade pyzhihu-cli、pipx upgrade pyzhihu-cli 或 pip install -U pyzhihu-cli。用户问「升级/更新 zhihu」时提示其执行对应命令;不确定安装方式时可三种都给出。zhihu --version 查看当前版本。search、hot、question、answers、answer、user、user-answers、user-articles、followers、following、feed、topic、collections、notifications、whoami 等),必须带 --json,以获取 API 返回的完整数据,便于解析、汇总或向用户展示;不得仅依赖终端表格等非结构化输出。例外:feeds 当前不支持 --json;需要展示回答评论时使用 answer --comments(--json 只输出回答详情,不输出评论)。zhihu status;未登录则 zhihu login --qrcode 或引导用户 zhihu login --cookie "..."。zhihu login --qrcode 后,若本轮未发过二维码且用户已配置 OpenClaw → 先将二维码复制到 OpenClaw 工作目录的 media 文件夹,再 openclaw message send --channel <渠道> --target <目标> --media <media 路径>/login_qrcode.png --message "请用知乎 App 扫码并确认登录";保持登录进程不中断直到成功/失败/超时;用户说「重新登录/换号」则中断当前进程再重新执行登录。复制步骤:Linux/macOS:mkdir -p ~/.openclaw/workspace/media && cp ~/.zhihu-cli/login_qrcode.png ~/.openclaw/workspace/media/;Windows:mkdir "%USERPROFILE%\.openclaw\workspace\media" 2>nul & copy "%USERPROFILE%\.zhihu-cli\login_qrcode.png" "%USERPROFILE%\.openclaw\workspace\media\login_qrcode.png"(若 OpenClaw 工作目录不同则替换为实际路径)。zhihu logout 清空。uv tool upgrade pyzhihu-cli / pipx upgrade pyzhihu-cli / pip install -U pyzhihu-cli。| 诉求 | 命令 |
|---|---|
| 登录 / 扫码登录 | zhihu login --qrcode |
| Cookie 登录 | zhihu login --cookie "z_c0=...; _xsrf=...; d_c0=..." |
| 重新登录 / 换号 | 中断当前进程 → zhihu login --qrcode |
| 检查登录 | zhihu status;看资料 zhihu whoami [--json] |
| 搜索 | zhihu search "关键词" [--type general/people/topic] [--limit N] [--answers N] [--json] |
| 热榜 | zhihu hot [--limit N] [--answers N] [--json] |
| 问题 | zhihu question <id> [--json];回答列表 zhihu answers <id> [--limit N] [--sort default/created] [--json] |
| 回答详情 | zhihu answer <id> [--comments] [--limit N] [--json](评论默认全部,--limit 0 为全部) |
| 用户 | zhihu user <url_token> [--json];user-answers / user-articles / followers / following 均支持 --limit N --json |
| 推荐 / 话题 | zhihu feed [--limit N] [--json];zhihu feeds [--limit N] [--comment-limit N];zhihu topic <id> [--json] |
| 赞同 | zhihu vote <answer_id>;取消 zhihu vote <answer_id> --neutral |
| 关注问题 | zhihu follow-question <id>;取消 zhihu follow-question <id> --unfollow |
| 发提问 | zhihu ask "标题" [-d "描述"] [-t 话题id ...] [-i 图 ...] |
| 发想法 | zhihu pin "标题" [-c "正文"] [-i 图 ...] |
| 发文章 | zhihu article "标题" "正文" [-t 话题id ...] [-i 图 ...] |
| 删提问/想法/文章 | zhihu delete-question <id> / delete-pin <id> / delete-article <id> [-y] |
| 收藏 / 通知 | zhihu collections [--limit N] [--json];zhihu notifications [--limit N] [--offset M] [--json] |
| 退出 | zhihu logout |
| 版本 / 升级 | zhihu --version;升级见上规则 6 |
用户诉求
→ 若「重新登录/换号」:中断当前 → zhihu login --qrcode → [发二维码] → 等完成
→ 否则:查上表得命令
→ 若该命令需登录:zhihu status → 未登录则 zhihu login --qrcode 或 --cookie
→ 若扫码且未发过图:复制到 media → openclaw message send --media ... → 保持进程
→ 执行 zhihu <子命令>(数据查询类必须带 --json;feeds 和 answer --comments 除外)
→ 整理结果或报错提示| 方式 | 命令 |
|---|---|
| 扫码 | zhihu login --qrcode:终端显示二维码并保存到本地(Linux/macOS:~/.zhihu-cli/login_qrcode.png;Windows:%USERPROFILE%\.zhihu-cli\login_qrcode.png);可经 OpenClaw 发图给用户。 |
| 手动 Cookie | zhihu login --cookie "z_c0=...; _xsrf=...; d_c0=..."(浏览器 F12 → Network → 请求头 Cookie 复制)。 |
zhihu login --qrcode
zhihu status
zhihu search "Python" --json
zhihu hot --limit 10 --json
zhihu question 12345678 --json
zhihu answers 12345678 --limit 5 --json
zhihu answer 87654321 --comments --limit 5
zhihu user someone --json
zhihu feed --limit 5 --json
zhihu feeds --limit 3 --comment-limit 5
zhihu vote 87654321
zhihu pin "标题" -c "<p>正文</p>"
zhihu delete-pin 98765432 -y
zhihu notifications -l 10 --json
zhihu logout正文支持 HTML 富文本(ask 的 -d、pin 的 -c、article 的正文)。
~/.zhihu-cli/login_qrcode.png;Windows:%USERPROFILE%\.zhihu-cli\login_qrcode.png)。media 文件夹:mkdir -p ~/.openclaw/workspace/media && cp ~/.zhihu-cli/login_qrcode.png ~/.openclaw/workspace/media/mkdir "%USERPROFILE%\.openclaw\workspace\media" 2>nul & copy "%USERPROFILE%\.zhihu-cli\login_qrcode.png" "%USERPROFILE%\.openclaw\workspace\media\login_qrcode.png"New-Item -ItemType Directory -Force "$env:USERPROFILE\.openclaw\workspace\media" | Out-Null; Copy-Item "$env:USERPROFILE\.zhihu-cli\login_qrcode.png" "$env:USERPROFILE\.openclaw\workspace\media\login_qrcode.png"
(若 OpenClaw 工作目录不是默认的 ~/.openclaw/workspace 或 %USERPROFILE%\.openclaw\workspace,则替换为实际路径。)openclaw message send --channel <渠道> --target <目标> --media <工作目录>/media/login_qrcode.png --message "请用知乎 App 扫码并确认登录"(Linux/macOS 用 ~/.openclaw/workspace/media/login_qrcode.png,Windows 用 %USERPROFILE%\.openclaw\workspace\media\login_qrcode.png 或 PowerShell 中 $env:USERPROFILE\.openclaw\workspace\media\login_qrcode.png)。zhihu login --qrcode 进程,等待用户完成。zhihu login --qrcode 或 --cookie),再执行原命令。© BAIGUANGMEI, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skill of BAIGUANGMEI/zhihu-cli.
Open the folder on GitHubat commit 8e32b99
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in BAIGUANGMEI/zhihu-cli, which our catalogue first saw on October 7, 2026.
Zhihu CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Zhihu CLI this skillBAIGUANGMEI/zhihu-cli | 107 | 1 repos | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Zhihusigcli/sigcli | 293 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Zhihu Searchitwanger/toBeBetterJavaer | 18k | — | ~1.5k | Automated safety check: Pass | None | |
| Zhihu Reproducezly2006/zhihu-plus-plus | 4.2k | — | ~1.3k | Automated safety check: Pass | AGPL-3.0 | |
| Zhihu Performance Regression Reviewzly2006/zhihu-plus-plus | 4.2k | — | ~868 | Automated safety check: Pass | AGPL-3.0 | |
| Zhihu Instrument Test Governancezly2006/zhihu-plus-plus | 4.2k | — | ~2.4k | Automated safety check: Pass | AGPL-3.0 |
sigcli/sigcli
Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles.
itwanger/toBeBetterJavaer
Search Zhihu for content using the searchv3 API. An agent skill from itwanger/toBeBetterJavaer.
zly2006/zhihu-plus-plus
复刻或验证知乎的产品功能、交互、接口、字段、分页、创作流程和视觉行为,并落地到 Zhihu++。当需求包含“知乎有什么我全要”、官方行为对齐、API 字段/include 判断、Web 与 Android 差异、真实请求取证或协议稳定性时使用。
zly2006/zhihu-plus-plus
Review and fix Zhihu++ functional regressions caused by performance optimizations.
zly2006/zhihu-plus-plus
Audit, add, migrate, or remove Zhihu++ Android instrument tests under app/src/androidTest.
zly2006/zhihu-plus-plus
Coordinate Zhihu++ issue implementation and pull requests when the user explicitly asks for subagents or when multiple independent issues or scopes have real parallel value.
知乎 CLI (pyzhihu-cli):搜索、热榜、问题/回答/评论、推荐 Feed、用户资料、发想法/提问/文章、删自己的内容、点赞关注、收藏与通知。Agent 代执行 zhihu 命令,Cookie 仅存本地。. Zhihu CLI is an agent skill from BAIGUANGMEI/zhihu-cli.
Run `npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a claude-code`. Or copy the skill folder (skill in BAIGUANGMEI/zhihu-cli) into .claude/skills/zhihu-cli in your project. Claude Code loads it when a task matches its description.
Run `npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a codex`. Or copy the skill folder (skill in BAIGUANGMEI/zhihu-cli) into .agents/skills/zhihu-cli in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BAIGUANGMEI/zhihu-cli --skill zhihu-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zhihu-cli, .gemini/skills/zhihu-cli, .github/skills/zhihu-cli and .opencode/skills/zhihu-cli in your project.
Going by SKILL.md and its folder, Zhihu CLI needs the command-line tools its instructions call (uv, pipx and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use uv and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Zhihu CLI is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Zhihu CLI: Zhihu (sigcli/sigcli, 293 stars), Zhihu Search (itwanger/toBeBetterJavaer, 18k stars), Zhihu Reproduce (zly2006/zhihu-plus-plus, 4.2k stars) and Zhihu Performance Regression Review (zly2006/zhihu-plus-plus, 4.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
BAIGUANGMEI (a GitHub user) maintains it in BAIGUANGMEI/zhihu-cli, which has 107 GitHub stars. The repository was last updated on May 4, 2026.
Source: BAIGUANGMEI/zhihu-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.