leafhour
Health Pass
- License — License: AGPL-3.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 11 GitHub stars
Code Fail
- exec() — Shell command execution in .cursor/skills/impeccable/scripts/modern-screenshot.umd.js
- network request — Outbound network request in .cursor/skills/impeccable/scripts/modern-screenshot.umd.js
- process.env — Environment variable access in .github/actions/get328-diagnostic/index.cjs
- process.env — Environment variable access in .github/workflows/ci.yml
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Leafhour — your personal reading agent room, with AI by your side. Open source, private by default, and built for staying with a book.
Leafhour
An open-source reading agent for the books you want to finish.
I built Leafhour as an open-source reading agent. When a sentence stops me, I want to ask about it on the page, see which passages the answer draws on, and go back to the book. Bring a book of your own or start with a public-domain classic.
Read Alice on the Web · iPhone & iPad · macOS · Run locally · Promotion kit and screenshots

Download the screen recording · English interface, scripted sample answer. The passage, tool calls and citation navigation are from the running app.
Play the demo inline
From a question back to the book
Why does Alice wish the book had pictures and conversations?
Select the line in Alice’s Adventures in Wonderland and send it with your question. Leafhour shows what the agent consulted. Open Lookups and sources to see the quoted text, then follow the citation. From there, return to the same answer or stay on the page and read on.
Ask in the book conversation to compare passages across chapters. The agent reads the relevant passages as needed, within the current book by default. Conversation scope and sources
On iPhone, you can also ask aloud. With transcription enabled, sent voice messages retain the recording and transcript. Reading on iPhone
The Alice excerpt is open to everyone. Sign in on leafhour.com to ask the agent and save your reading.
Listen from where you left off
Listening is one of my favorite parts of Leafhour. Thanks to the Seed team at ByteDance. The pauses and delivery in the short Chinese and English passages I tried with Seed TTS 3.0 genuinely surprised me. They had much of the natural quality I like in ElevenLabs.
The Volcengine mainland China console showed CNY 1.50 per 10,000 billable characters for Seed TTS 3.0 when I tried it. The Eleven v4 Turbo API lists US$0.40 per 10,000 billable characters. The providers count characters differently, and the cost depends on the text, model and plan. Seed trial notes · ElevenLabs API pricing
- Online narration. Instances configured for Seed TTS 3.0 can offer it for eligible books. Leafhour also integrates online voices from Qwen, MiniMax and ElevenLabs. The available voices depend on the platform and server configuration. Online narration
- On-device narration on Mac. Apple silicon Macs running macOS 15 or later can download Qwen3-TTS 0.6B or 1.7B and synthesize offline. Both sounded good to me. You can also use system voices or connect a speech server running on the same Mac. Mac listening voices
- Follow along. On Mac, start from the current passage and have the page follow the narration. Jump back to the playback position after browsing, or change the voice and keep your place.

Mac reader · iPhone listening · Web parallel reading
Choose a different agent on Mac
Leafhour’s built-in reading agent runs on the official DeepSeek Harness (DSH). The macOS reading conversation can also run Codex CLI, Claude Code, Pi or OpenCode installed on your Mac. Pick the executable in Settings → AI Engines and run Test and Connect. The connected engine then appears in the conversation.
Leafhour supplies the current passage, your question and relevant turns from that engine. The CLI’s configured provider determines the model and usage. Mac AI engine setup · Built-in conversation scope
Connect your own agent
I often use Pile In to talk to my Leafhour library about books. There are two ways to connect your own agent.
- MCP gives an agent book tools. Read the table of contents and chapters, search the original text, and retrieve quotes linked to the passage. Connect to
https://leafhour.com/api/mcpwith OAuth or use the local stdio adapter. Hosted grants are per book, read-only by default, and revocable. OAuth setup · Local stdio · Leafhour reading skill - A2A (Agent-to-Agent) hands Leafhour a reading task. The local gateway can look up chapters, revisit authorized notes, or gather evidence across chapters. The result links back to the book. With separately configured account access, a task can also turn questions and passages into a rereading plan and save it to the library. A2A setup · Rereading plan walkthrough
Try giving the agent a specific task.
MCP tool referenceFind the questions I asked about how rules shape choices in two books I read last month. Compare the original passages, make a 30-minute weekend rereading plan, and save it to Leafhour.
The connection and reading tools include reader_get_connection, reader_get_manifest, reader_get_context, reader_get_chapter and reader_search.
Additional tools depend on the transport and grant. See the stdio and OAuth guides for reader_get_notes, reader_get_reading_activity, reader_get_annotations, reader_add_highlight, reader_add_annotation and reader_add_comment. See reading-agent interoperability for cross-chapter evidence and local A2A.
Keep your books and your own words together
- Compare the original and the translation. Read either one or put them side by side. Literal and interpretive translations are saved separately. Reading languages and display
- Bring your own books and keep your place. Import books, pick up where you stopped, and open downloaded chapters offline. Importing books · Offline reading
- Find what you read and wrote. Highlights, notes and questions link back to the text. Search notes across books and export them to Markdown. The reading calendar shows what you read and how long you spent on a given day. Reading calendar and notes · Library export and restore
Running locally
Use Node.js 22, version 22.13 or newer.
git clone https://github.com/getyak/leafhour.git
cd leafhour
npm ci
npm start
Open the local reading room. You can read the bundled classics and import PDF, EPUB, TXT and Markdown without an AI key. Scanned PDF pages can use configured OCR with permission. EPUB follows the book’s embedded reading order. See book import for file limits and original storage.
For the reading agent and AI translation, create .env from .env.example and set DEEPSEEK_API_KEY. See configuration, local data and backups and self-hosting. Run npm test to check the project.
Project and license
Catalog and source editions · iPhone/iPad source · macOS source · Security
Leafhour’s code is licensed under AGPL-3.0. Each catalog edition has its own source and rights information. Your private books and reading records are stored separately from the source repository.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found