BAIGUANGMEIBAIGUANGMEICommunity·1 Agent Skills Included

zhihu-cli

Search, read, and publish Zhihu content from the terminal

Searches Zhihu questions, answers, and articles, browses trending lists, and reads user profiles directly from the terminal. Publishes questions, pins, and rich-text articles with images, plus voting, following, and notification checks. Eliminates manual browser sessions by giving your agent structured JSON output and secure QR-code login with cookies stored only locally.
npx skills add BAIGUANGMEI/zhihu-cli --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install zhihu-cli?

Run `npx skills add BAIGUANGMEI/zhihu-cli --all -g -y` in your terminal to install this skill globally.

How to log in to Zhihu from the terminal?

Run `zhihu login --qrcode` to show a scannable QR code, or paste cookies with `zhihu login --cookie "z_c0=...; _xsrf=...; d_c0=..."`. Your login state stays in a local file with restricted permissions.

Can I publish Zhihu posts from the command line?

Yes. Use `zhihu ask`, `zhihu pin`, and `zhihu article` to publish questions, pins, and rich-text articles with images, and delete your own content with the delete commands.

Does zhihu-cli work with AI agents?

Yes. The included SKILL.md teaches agents to map your plain-language requests to the right zhihu commands, always using --json output for reliable structured data.

Is my Zhihu cookie safe with zhihu-cli?

Yes. Cookies are stored only on your machine in ~/.zhihu-cli/cookies.json with owner-only permissions, all traffic uses HTTPS to official Zhihu domains, and no credentials are uploaded anywhere.

Related Repositories in Content & Communication

View All in Content & Communication