zlib

A command-line tool for Z-Library. Search, download, send to Kindle and WeRead, and integrate with AI agents.

What is zlib?

A command-line tool for Z-Library. Search, download, send to Kindle and WeRead, and integrate with AI agents.

Overview of zlib

What it is

zlib is a command-line tool for Z-Library. It allows users to search, download, send books to Kindle and WeRead, and integrate with AI agents. The tool is open source under the MIT license.

Key features

  • Search books with filters by year, language, and format, and sort results
  • Browse favorites, recommendations, popular books, and download history
  • Download books with details and choose a download directory
  • Display book covers in the terminal (with Kitty graphics or Sixel support)
  • Look up and edit e-book metadata
  • Send files to Kindle and import books into WeRead
  • Integrate with AI agents like Claude Code and Codex through plugins or MCP server

Use cases

Users can search and download books from Z-Library directly from the command line. The tool is useful for managing personal e-book collections, sending books to Kindle or WeRead, and editing metadata. It also supports integration with AI coding agents for automated workflows.

Getting started

Install on macOS/Linux with Homebrew:bashbrew install heartleo/tap/zlib-cliOr with the install script:bashcurl -fsSL https://raw.githubusercontent.com/heartleo/zlib/main/install.sh | shOn Windows with winget:powershellwinget install --id heartleo.zlib --exactAfter installation, find a working domain with zlib doctor, then log in and start the terminal interface:shzlib login --domain https://z-lib.gdzlib tui

License and pricing

The project is licensed under MIT. It is open source and free to use.

這是什麼

zlib 是一個命令列工具,用於存取 Z-Library。使用者可以搜尋、下載書籍,傳送至 Kindle 與 WeRead,並與 AI 代理整合。此工具採用 MIT 授權,為開源軟體。

主要功能

  • 依年份、語言、格式篩選搜尋結果,並可排序
  • 瀏覽收藏、推薦、熱門書籍與下載記錄
  • 檢視書籍詳細資訊並選擇下載目錄
  • 在終端機顯示書籍封面(需 Kitty 圖形或 Sixel 支援)
  • 查詢與編輯電子書中繼資料
  • 傳送檔案至 Kindle 與匯入書籍至 WeRead
  • 透過外掛或 MCP 伺服器與 Claude Code、Codex 等 AI 代理整合

使用情境

使用者可直接從命令列搜尋並下載 Z-Library 的書籍。此工具適用於管理個人電子書收藏、傳送書籍至 Kindle 或 WeRead,以及編輯中繼資料。它也支援與 AI 程式碼代理整合,實現自動化工作流程。

快速開始

在 macOS/Linux 上使用 Homebrew 安裝:bashbrew install heartleo/tap/zlib-cli或使用安裝腳本:bashcurl -fsSL https://raw.githubusercontent.com/heartleo/zlib/main/install.sh | sh在 Windows 上使用 winget:powershellwinget install --id heartleo.zlib --exact安裝後,使用 zlib doctor 尋找可用的網域,然後登入並啟動終端介面:shzlib login --domain https://z-lib.gdzlib tui

授權與價格

此專案採用 MIT 授權,為開源且免費使用。

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/heartleozlib.svg)](https://yunodb.com/tools/heartleozlib?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/heartleozlib?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/heartleozlib.svg" alt="Featured on YunoDB" height="20"></a>