@fhwofjow51260: Z-Library Has Been Turned Into an AI Skill — Search, Download, and Import to WeChat Reading All in One Go! An Open-Source GitHub Project with 2.1K Stars, zlib Brings Z-Library Right Into Your Terminal, Supporting Search by Title, Author, and ISBN, with Filters for Language, …

X AI KOLs Timeline Tools

Summary

The open-source GitHub project zlib (2.1K Stars) turns Z-Library into a command-line tool and AI Skill, supporting search by title, author, and ISBN, filtering by format and language, sending e-books directly to Kindle or importing them to WeChat Reading, and integrating with Claude Code and Codex via MCP and Skills.

Z-Library Has Been Turned Into an AI Skill — Search, Download, and Import to WeChat Reading All in One Go! 🔥 An open-source project on GitHub with 2.1K Stars, zlib brings Z-Library right into your terminal, supporting search by title, author, and ISBN, with filters for language, year, and EPUB/PDF formats. Best of all, downloaded e-books can be sent directly to Kindle or imported into WeChat Reading! It also supports Claude Code and Codex — letting AI help you find books and manage your e-books via MCP and Skills. Supports macOS, Windows, and Linux. A Z-Library account is required. https://github.com/heartleo/zlib
Original Article
View Cached Full Text

Cached at: 11/21/26, 12:21 PM

Z-Library has actually been turned into an AI Skill — find books, download them, and import into WeRead, all in one go! 🔥 An open-source project on GitHub with 2.1K stars, zlib, brings Z-Library straight into the terminal. It supports searching by title, author, and ISBN, with filters for language, year, and EPUB/PDF format. Best of all, downloaded e-books can be sent directly to Kindle or imported into WeRead! It also supports Claude Code and Codex, letting an AI help you find books and manage your e-books via MCP and Skills. Works on macOS, Windows, and Linux, and requires a Z-Library account. https://github.com/heartleo/zlib

heartleo/zlib

Source: https://github.com/heartleo/zlib

A Z-Library CLI for you and your AI agents.

English | 简体中文

Install · Quick start · Terminal interface · Commands · Agent setup · Docs

Features

🔍 Search — filter by year, language, and format; sort results
📚 Browse — favorites, recommendations, popular books, and download history
📥 Download — view book details, choose a download directory
🖼️ Covers — show book covers in the terminal
🏷️ Metadata — look up and edit e-book metadata
📖 Send to Kindle — deliver files to your Kindle address
🌏 Send to WeRead — import books into your WeRead shelf
🕒 Profile — check your daily download quota
🎨 Themes — change the color theme
🌐 Network — check which mirrors work, trust your own mirror, or use a proxy
🤖 AI Agent Integration — integrate with Claude Code and Codex through Agent plugins

Install

macOS / Linux with Homebrew:

brew install heartleo/tap/zlib-cli

The Homebrew formula was renamed from zlib to zlib-cli. Use the command above. The installed command is still zlib.

macOS / Linux with the install script (installs to /usr/local/bin, may ask for sudo):

curl -fsSL https://raw.githubusercontent.com/heartleo/zlib/main/install.sh | sh

Windows with winget:

winget install --id heartleo.zlib --exact

Or download a binary from Releases and put it on your PATH.

See Installation for Go installation, source builds, and upgrades.

Quick start

You need a Z-Library account.

First, find a domain reachable from your network:

zlib doctor

Log in with a domain from the results. Replace the example URL below with one from your results; enter your email and password in the prompt:

zlib login --domain https://z-lib.gd
zlib tui

Press /, choose /search, enter a title, author, or ISBN, and press Ctrl+S. You can also type /search dune and press Enter. Select a book and press Enter to confirm the download. Downloads default to the current directory. You can choose another folder before downloading.

Login is saved locally; subsequent sessions only need zlib tui.

If no domain works or login fails, see Troubleshooting. Existing browser sessions can be imported as cookies.

Terminal interface

zlib tui opens one persistent shell. Every screen lists its keys at the bottom; these cover a first session:

KeyAction
/Open the command list: search, favorites, history, profile, metadata, settings, themes
↑/↓ or j/kSelect a book
←/→Previous or next page of results
EnterDownload the selected book, after a confirmation
Ctrl+FChange the query and filters of the current search
EscGo back
/quitExit

On a terminal with Kitty graphics or Sixel support, at least 100 columns by 20 rows, the selected book’s card shows its cover; other terminals show text only (Book covers).

/meta opens a file picker, then looks the chosen e-book up online and lets you review each field before writing it. It needs no login (E-book metadata).

Settings live under /config (network, downloads, search formats, metadata, Kindle, WeRead).

See Terminal interface for every screen and key.

Commands

Pass a query for table output, or add --json for scripts:

zlib search "dune" --ext epub
zlib search "dune" --ext epub --json --count 10
TaskCommand
Browse favoriteszlib favorites
Browse recommendationszlib recommended
Browse popular bookszlib most-popular
Browse download historyzlib history
Check account and quotazlib profile
Send to Kindlezlib kindle send ./book.epub
Send to WeReadzlib weread import ./book.epub
Show a file’s metadatazlib meta book.epub
Look up a file’s metadatazlib meta book.epub --fetch
Edit a file’s metadatazlib meta book.epub -t "Dune" -a "Frank Herbert" --rename

To download, replace id:hash with a book’s complete id from the results:

zlib download "id:hash"

Run zlib --help for flags. Usage covers filters, pagination, and download options.

Agent setup

Install the plugin, or register the MCP server (zlib mcp). The plugin brings the skills and the MCP server. If zlib is missing, the skills install it on first use; the MCP server needs it on PATH. Log in yourself with zlib login so your password stays out of chat.

Claude Code

/plugin marketplace add heartleo/zlib
/plugin install zlib@zlib-plugin-cc

Codex

codex plugin marketplace add heartleo/zlib
codex plugin add zlib@zlib

Grok

grok plugin marketplace add heartleo/zlib
grok plugin install zlib --trust

MCP server

Register zlib mcp as a local stdio server. zlib must be on PATH and signed in:

# Claude Code
claude mcp add -s user zlib -- zlib mcp

# Codex
codex mcp add zlib -- zlib mcp

# Grok
grok mcp add zlib -- zlib mcp

Add --read-only after mcp to hide download, history deletion, Kindle delivery, WeRead import and metadata editing.

See MCP server for other clients, flags, and tools.

Documentation

GuideCovers
InstallationInstall methods, source builds, zlib update
UsageSearch, downloads, favorites, history
Terminal interfaceCommands and keyboard controls
Book coversSupported terminals, limits and cache
E-book metadataLookup sources, editing, renaming, formats
ConfigurationDomains, proxies, folders, configuration paths
ThemesAvailable palettes and preview controls
KindleSMTP setup and delivery
WeReadQR login and imports into WeRead
MCP serverClient setup, flags, and tools for zlib mcp
TroubleshootingLogin and network problems

Report bugs in Issues with your zlib version, OS, command, and error. Omit passwords, cookies, and session files. Report security vulnerabilities privately as described in SECURITY.md.

Star History

Similar Articles

@yxl44: Holy crap!!! Someone finally turned the world's biggest book site into an AI Skill — letting AI Agents find and download books on their own! 📚 No more repeated searching, paging through, or hunting for download links on the Z-Library website. A single CLI tool handles the entire ebook workflow. Several features are extremely...

X AI KOLs Timeline

Someone open-sourced zlib — a Z-Library CLI tool built in Go that supports ebook search, downloading, Kindle/WeChat Read integration, and connects with AI Agents like Claude Code and Codex via Agent plugins and an MCP Server for end-to-end automated ebook workflows.

@ChantoziQ: Holy crap!!! A GitHub dev just released an open-source Skill that teaches your AI assistant to scrape posts that are actually performing on TikTok, Instagram, YouTube, Reddit, X, and LinkedIn. It can find an account's above-average viral posts, read comments to dig out what people are asking and complaining about...

X AI KOLs Timeline

An open-source Social Media Research Skills suite is now available on GitHub, letting AI assistants scrape viral posts, comments, and competitor ads from TikTok, Instagram, YouTube, Reddit, X, and LinkedIn. One-click install supported for Claude Code, Cursor, Codex, and Gemini CLI.

@huangyun_122: This open-source library Lark CLI perfectly layers knowledge ingestion, assembly, and distribution: 1/ OpenClaw, Codex, CC conversation history enters the Lark knowledge base via SKILL 2/ Lark CLI connects to Agent, further digests the ingested knowledge base documents, and pushes them into the vector database 3/ To…

X AI KOLs Timeline

Lark CLI is an open-source command-line tool designed for human and AI agents, providing 200+ commands and 26 AI Skills across 18 business domains to streamline knowledge ingestion, assembly, and distribution.

@XAMTO_AI: There's a treasure project on GitHub called EBOOK ETC that aggregates resources from WeChat Reading, JD Reading, and Himalaya for centralized management. ① Classic literature, business motivation, career entrepreneurship, technical manuals all available ② Tag classification + search function, finding books is super fast ③ Three formats: epub, mobi, azw3…

X AI KOLs Timeline

This is an open-source project on GitHub that aggregates ebook resources from multiple Chinese reading apps, categorizes them, and supports downloading in multiple formats.