Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

translate-books-with-llms

Skill by hydropix

Translates whole books, documents and subtitle files (EPUB, DOCX, PDF, SRT, TXT) by running the TranslateBooksWithLLMs CLI. Built for users who need an end-to-end file translation rather than a single passage pasted into chat.

  • Score 82
  • 2.6k stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install translate-books-with-llms

Built from the published package, never by AI.

git clone --depth 1 https://github.com/hydropix/TranslateBooksWithLLMs /tmp/TranslateBooksWithLLMs && mkdir -p ~/.claude/skills && cp -r /tmp/TranslateBooksWithLLMs/skills/translate-books-with-llms ~/.claude/skills/translate-books-with-llms

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install translate-books-with-llms in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill runs the official TranslateBooksWithLLMs engine (translate.py) from the hydropix repository to translate a full file into another language. It supports EPUB, DOCX, PDF, SRT and TXT files and aims to keep chapter structure, inline formatting and SRT timecodes intact. The output is saved next to the input unless an output path is given.

The skill guides the assistant through setup, provider choice and the run itself. Users can pick a local Ollama model or a cloud provider such as OpenRouter, OpenAI or Gemini, and can add a glossary, a literary refinement pass, text cleanup or audio output. Interrupted runs resume from checkpoints. It is aimed at users who want a whole book, document or subtitle file translated end to end.

Written from the project's SKILL.md and checked against it.

What it can do

  • Full file translationTranslates an entire EPUB, DOCX, PDF, SRT or TXT file into a target language.
  • Structure preservationKeeps chapter structure, inline formatting and SRT timecodes in the output.
  • Local or cloud providersRuns with Ollama locally or with cloud providers such as OpenRouter, OpenAI or Gemini.
  • Glossary supportApplies a .json or .csv glossary per chunk for consistent term translations.
  • Refinement passOptional second pass that polishes literary style. Not available for PDF.
  • Text cleanupFixes OCR and typographic defects such as broken lines and spacing.
  • Audio outputGenerates text-to-speech audio of the translation via Edge-TTS.
  • Resume on interruptCheckpoints long books so an interrupted run resumes with the same command.

What you need

  • Python 3.8 or later
  • Git
  • Ollama installed and running, for local models
  • A user-supplied API key for a cloud provider, set as an environment variable or in .env

Try asking

  • Translate my EPUB novel into French using a local Ollama model.
  • Translate this SRT subtitle file from English to Spanish with OpenRouter.
  • Translate my DOCX report into German and keep the formatting.

Good to know

  • PDF input must be a text PDF. OCR is not performed.
  • PDF output is a new reflowed PDF, and the original page layout is not kept.
  • The refinement option is not available for PDF.
  • AGPL-3.0 section 13 applies if the tool is run as a network service.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/translate-books-with-llms/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to translate-books-with-llms

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

translate-books-with-llms: common questions

Which file types does it translate?

It translates EPUB, DOCX, PDF, SRT and TXT files. PDF input must be a text PDF with no OCR.

Can it translate without sending data to a cloud service?

Yes. Ollama runs the model on the local machine with no API key, so no data leaves the host. Cloud providers are used only when chosen.

Who maintains TranslateBooksWithLLMs and under what license?

It is authored and maintained by @hydropix and licensed under AGPL-3.0.

How do I install translate-books-with-llms?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is translate-books-with-llms free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is translate-books-with-llms safe to use?

It scores 82 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to translate-books-with-llms?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

translate-books-with-llms Install

Add to stack

Loading.