A vim-like terminal reader to chat with your books
https://x.com/dpunjabi/status/1854361314040446995
- Flip between chapters:
h/lor←/→ - Scroll through pages:
j/kor↑/↓ - Jump to start/end:
g/G - See table of contents:
t
a- Chat with your current texts- Generate summaryr- Listen text>- Listen to the compass
Uses LLM to interface with OpenAI, Anthropic, and other providers.
Clone this repo and setup & activate venv using either uv (recommended)
uv venv
source .venv/bin/activateOr, standard Python tools:
python3 -m pip install virtualenv
python3 -m virtualenv .venv
source .venv/bin/activateInstall dependencies with:
uv pip install -r requirements.txt # if using `uv` - faster!
# or
pip install -r requirements.txtBring your keys from OpenAI (default):
llm keys set OPENAI_API_KEYOr use Anthropic's Claude:
llm install llm-claude-3
llm keys set ANTHROPIC_API_KEY
llm models default claude-3-5-sonnet-latestGet a book from Project Gutenberg and try it out:
uv run reader.py path/to/book.epub