zlib is a command-line and TUI client for Z-Library. It searches and downloads books, manages favorites and history, and can send files to Kindle or WeRead.
Overview
zlib connects to Z-Library with your account to search, filter, and download ebooks from the terminal. A TUI mode keeps search, favorites, recommendations, popular lists, history, settings, and delivery options in one interactive shell with keyboard-driven navigation.
Table-oriented subcommands cover search with filters, browsing favorites and recommendations, download by book id, profile and quota checks, metadata display and editing, Kindle SMTP delivery, and WeRead imports. Book covers render on terminals with Kitty or Sixel graphics when the window is large enough; other terminals show text-only cards.
Install options include Homebrew (formula zlib-cli, command name zlib), an install script to /usr/local/bin, Windows winget, release binaries, or building with Go. Users pick a reachable domain via zlib doctor, log in with zlib login, and can add trusted mirrors. Configuration covers proxies, download folders, themes, and network settings.
Agent integration provides plugins and an MCP server for Claude Code, Codex, and Grok, with a read-only MCP mode that hides download and delivery tools. Documentation separates usage, Kindle, WeRead, metadata, and troubleshooting topics.
Key features
- TUI for search and downloads
- CLI commands with JSON output
- Kindle and WeRead delivery
- E-book metadata lookup and edit
- Domain doctor and custom mirrors
- Terminal book cover display
- MCP server and agent plugins
- Favorites and download history
Use cases
- Terminal-based ebook downloads
- Scripted library searches
- Sending books to Kindle or WeRead
- AI agent driven book lookup