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. You can also install plugins to run local models on your machine.
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-latestOr, install a local model and run it on your machine:
llm install llm-gpt4all
llm models list # shows a list of available models
llm -m orca-mini-3b-gguf2-q4_0 '3 names for a pet cow' # tests the orca model locally (and downloads it first if needed)Get a book from Project Gutenberg and try it out:
uv run reader.py path/to/book.epub