zhihu-cli

Search Zhihu content and publish posts via terminal CLI with JSON outputs.

67|17|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/BAIGUANGMEI/zhihu-cli --skill zhihu-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zhihu-cli
Source: https://github.com/BAIGUANGMEI/zhihu-cli/tree/main/skill
Command: npx skills add https://github.com/BAIGUANGMEI/zhihu-cli --skill zhihu-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a terminal-based interface to Zhihu, allowing users to search content, view hot lists, read questions and answers, and publish ideas, questions, or articles while keeping authentication data local.

Core Features & Use Cases

  • Search, hot lists, and Q&A: Quickly find questions, answers, and articles.
  • Publish and manage content: Create questions, pins, and articles, and manage your own content with delete and notifications support.
  • Agent-ready workflow: Integrates with AI agents to automate Zhihu commands and workflows using local cookies.
  • JSON outputs: All data queries support --json for structured results.

Quick Start

Install zhihu-cli and run zhihu --help to get started with searching, posting, and account management from the terminal.

Frequently Asked Questions about zhihu-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Zhihu and read answers directly from the terminal?

Yes, you can automate Zhihu workflows by integrating the CLI with AI agents, using locally stored cookies to execute search, publish, and account management commands automatically.

Can I automate Zhihu search and publishing tasks with an AI agent?

You can automate Zhihu workflows by integrating the CLI with AI agents, using locally stored cookies to execute search, publish, and account management commands automatically.

How do I get structured JSON output from Zhihu search queries?

The zhihu CLI keeps authentication data local by storing cookies on your machine, ensuring your login credentials remain private during terminal-based Zhihu operations.

Do I need a web browser to publish articles or questions on Zhihu?

You must install the zhihu-cli tool and run zhihu --help to authenticate with local cookies, enabling terminal-based search, content publishing, and account management commands.

Where does the zhihu CLI store login credentials and cookies?

The zhihu CLI keeps authentication data local by storing cookies on your machine, ensuring your login credentials remain private during terminal-based Zhihu operations.

What Zhihu content management features are available via command line?

The CLI supports creating questions, pins, and articles, plus managing your own content with delete and notifications support, all executable through terminal commands and JSON-formatted outputs.