heartleo/zlib 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 MIT License 许可证,目前获得 1.5k 个 Star、118 次 Fork。
仓库全名
heartleo/zlib
开源许可证
MIT License
Star 数
1.5k
Fork 数
118
未关闭 Issue
2
README 摘要
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 and choose a download directory\ 📖 Send to Kindle — deliver files to your Kindle address\ 🕒 Profile —…
🔍 Search — filter by year, language, and format; sort results
📚 Browse — favorites, recommendations, popular books, and download history
📥 Download — view book details and choose a download directory
📖 Send to Kindle — deliver files to your Kindle address
🕒 Profile — check your daily download quota
🎨 Themes — switch color themes with /theme
🌐 Network — find working mirrors with zlib doctor, 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
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.
To download, replace id:hash with a book’s complete id from
the results:
zlib download "id:hash"
Run zlib <command> --help for flags. Usage covers filters,
pagination, and download options.
Agent setup
Install the plugin, or register the MCP server (zlib mcp). If zlib is
missing, the plugin installs it on first use. Log in yourself with zlib login
so your password stays out of chat.
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.
评论