Zhihu CLI for Openclaw

A comprehensive command-line tool for searching, reading, and managing interactions on the Zhihu platform.

lightislost
v1.0.0
Mar 8, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install zhihu-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install zhihu-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Zhihu CLI?

Zhihu CLI is a developer-centric tool designed to streamline interaction with Zhihu, China's premier Q&A platform. By integrating this tool into the Openclaw Skills ecosystem, users can access trending topics, search for specific technical insights, and read full articles without leaving their terminal environment. It bridges the gap between web-based knowledge bases and local development workflows, providing a distraction-free way to consume and interact with community content.

This skill is particularly valuable for users who need to monitor social trends or gather data-driven insights efficiently. It supports both read-only operations via API and interactive operations through specialized relay mechanisms, making it a versatile addition to any professional toolkit.

Zhihu CLI Use Cases

  • Staying updated on industry trends by monitoring daily hot topics directly from the shell.
  • Conducting deep-dive research into technical tutorials and community-vetted answers during coding sessions.
  • Managing social interactions such as voting on helpful content or following key opinion leaders without opening a browser.
  • Automating the retrieval of user information and profile data for sentiment or influence analysis.

How Zhihu CLI Works

  1. Authentication is established by extracting session cookies automatically from Chrome or via manual configuration.
  2. The CLI sends requests to Zhihu's internal endpoints to retrieve structured data for searches, topics, and user profiles.
  3. Content is rendered in a readable format within the terminal for immediate consumption.
  4. For restricted write operations like voting or following, the tool generates instructions for a Browser Relay to ensure secure and reliable execution.
  5. Session data is persisted locally to allow for continuous interaction without repeated logins.

Zhihu CLI Setup

To get started with this component of Openclaw Skills, install the package via npm:

npm install -g zhihu-cli

Next, authenticate your account using the automatic Chrome extraction tool:

zhihu login

Alternatively, you can manually set your session cookie:

zhihu set-cookie "your_zhihu_cookie_string"

Zhihu CLI Data Schema & Taxonomy

The skill manages local configuration and displays platform data using the following structure:

Data Type Location / Format Description
Authentication ~/.zhihu-cookie Stores the session cookie for API requests
Search Results Terminal Table Lists titles, URLs, and summaries of content
User Profiles JSON/Text Output Contains url_token, bio, and engagement metrics
Content Markdown/Plain Text The body of answers and articles for reading

Zhihu CLI Advanced Features

  • Automated session management via Chrome browser cookie extraction.
  • Integrated Browser Relay support for performing restricted write actions like voting and following.
  • Comprehensive search capabilities covering both general content and specific topic clusters.
  • Local storage of credentials in a dedicated hidden directory for persistent access across terminal sessions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*