Skip to main content

English | 中文

ContextWeave

Context-aware document translation / 语境感知文档翻译

ContextWeave (语络译) is a fully automatic desktop translation app for long novels, books, PDFs, scanned documents, manga, and subtitles. It aims to preserve source formatting while keeping terminology and translation style consistent across the whole work.

Advanced documentation covers glossary memory, previous-context injection, format preservation, CLI automation, and advanced use cases.

Who ContextWeave Is For

  • Novel, web novel, and light novel translation
  • Long books and documents that need consistent naming and terminology
  • Scanned books, PDFs, and manga that need OCR before translation
  • People who want a desktop workflow instead of managing prompts by hand

Why ContextWeave

  • Builds a glossary from your source material
  • Carries context forward across chapters and pages, with useful summaries injected alongside glossary context
  • Preserves original formatting for text-native files
  • Handles text, EPUB, PDF, scanned pages, manga, and subtitles in one app

Install

Current desktop builds are unsigned, so the first launch may show an OS security warning.

macOS

  • Download the latest .dmg
  • Open it and drag ContextWeave.app into Applications
  • Launch ContextWeave.app from Applications
  • If macOS blocks it because the developer cannot be verified, go to System Settings -> Privacy & Security
  • In the Security section, click Open Anyway for ContextWeave.app, then confirm Open

Windows

  • Download the latest .zip
  • Unzip it anywhere
  • Run ContextWeave.exe
  • If Windows SmartScreen warns that the app is unrecognized, click More info -> Run anyway
Setup

1. Open the projects screen and click Setup Wizard

This is the home screen for projects. Use Setup Wizard for the quickest first-time setup.

Projects overview

2. Choose providers and paste API keys

The wizard collects the providers it needs up front. For most users, OpenAI with GPT-5.6 Luna is the recommended starting point: one cost-efficient model covers every text-generation and image-understanding step.

Setup wizard provider selection

3. Review the workflow profile

The review step shows which connection and model ContextWeave will use for each workflow step.

Workflow profile review

Quality spends more for better reasoning and can get very expensive. Balanced is the safest default. Budget is the cheapest option when you want to minimize cost.

Translation

1. Create a project

Pick a project name, target language, and workflow profile.

New project dialog

2. Open the project work page

Import files in reading order so terminology and context stay consistent across the whole book, then click Translate and Export to start. Double-click a file if you want to inspect each step manually or retouch images.

Project work page

3. Optional: import existing term translations

Open Terms, then use Import Terms if you already have a terminology list you want ContextWeave to reuse. A simple JSON object like {"original": "translated"} is enough.

Terms overview

Demo EPUBs

This sample EPUB was generated with Translate and Export directly from the French Project Gutenberg EPUB for The Count of Monte Cristo, Tome I, using DeepSeek.

Quality can be dramatically better with Gemini or GPT. GPT-5.6 Luna is the recommended OpenAI starting point when cost matters.

CLI

ContextWeave also includes a small CLI for config-driven one-shot translation and basic book management. From a source checkout, use uv run contextweave-cli; from an installed package, use contextweave-cli.

contextweave-cli config path
contextweave-cli config init
contextweave-cli config validate

contextweave-cli run ./book.epub --output ./translated/book.epub
contextweave-cli run ./chapter.txt --output ./translated/chapter.txt --json
contextweave-cli run ./episode.srt --output ./translated/episode.srt --no-polish
contextweave-cli galgame inspect ./extracted-game --json
contextweave-cli galgame skill --output ./contextweave-galgame-translation
contextweave-cli run ./extracted-game --type galgame --output ./translated-patch --preserve-structure --json

contextweave-cli books list
contextweave-cli books show BOOK_ID
contextweave-cli books delete BOOK_ID --yes

The CLI resolves config from --config, then CONTEXTWEAVE_CONFIG, then the nearest contextweave.yaml/.contextweave.yaml walking upward, then the platform default shown by contextweave-cli config path. The config mirrors the setup UI: connections define provider endpoints and workflow_profiles route each translation step. Prefer api_key_env so API keys stay in environment variables instead of config files or task snapshots. Use --no-polish when a one-shot run should skip the polish pass, which can be useful for timing-sensitive subtitle output. Use --preserve-structure for patchable galgame/script exports.

For unsupported game engines, convert extracted script text into a supported intermediate format such as ParaTranz JSON or Translator++ .trans, then import that file or folder as --type galgame. contextweave-cli galgame skill writes a Codex/OpenAI-style skill file with this workflow for external extractor agents.

A commented starting point is available at docs/examples/contextweave-cli.yaml.

What To Know Before Using ContextWeave

  • The recommended OpenAI profile uses GPT-5.6 Luna for every text-generation and image-understanding step. DeepSeek + Gemini is also supported, but I do not recommend going below DeepSeek-class models.
  • Image editing is expensive, and hallucinations are still common. For image reembedding, the recommended OpenAI profile uses the specialized GPT Image 2 model instead of Luna.
  • OCR does not preserve original layout for PDFs and scanned books. It rebuilds from content instead. Manga is the exception.
  • Import in reading order if you want the glossary and context to build correctly.
  • Samples are still limited because testing across formats is expensive. Bug reports are very welcome.

Supported Formats

Type Import Export OCR needed before translation?
Text .txt, .md txt No
PDF .pdf epub, md Yes
Scanned book image files or folders epub, md Yes
Manga .cbz, image folders cbz Yes
EPUB .epub epub, md, docx, html No, but image OCR is supported
Subtitle .srt, .vtt, .ass, .ssa srt, vtt, ass, ssa No
Galgame .rpy, .ks, RPG Maker MV/MZ JSON, MTool JSON, Translator++ .trans, VNText JSON, ParaTranz JSON, TPP/Translator++ .xlsx, Wolf RPG .xlsx txt, preserve-structure folder No

Metadata

Release files for contextweave 2.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contextweave 2.8.4
File Size Uploaded
contextweave-2.8.4.tar.gz 9.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for contextweave 2.8.4
File Interpreter ABI Platform
contextweave-2.8.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 MB

Release files / contextweave-2.8.4.tar.gz

Download URL contextweave-2.8.4.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
e032108ba239b2482948c28c3cd8ad9cd515ab2cf1e6a88457db163e1404abae
BLAKE2b-256 checksum
How to use checksums
64e44f65170ad052d9a4448a91661970dbfe2be3588c5afa8ac3984d9d0a817b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release files / contextweave-2.8.4-py3-none-any.whl

Download URL contextweave-2.8.4-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b13ee374f8588d22bff8417b2ce9b5a17f336f5af61ea2415a8b838a5e863a6e
BLAKE2b-256 checksum
How to use checksums
d9fe9e79766a53e2fba92979d68227c9abf4b9e7affdcb38470be2e02516fc48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.

Transparency log

Release history Release notifications | RSS feed

2.8.5

2 release files

This release

2.8.4 This release

2 release files

2.8.3

2 release files

2.8.2

2 release files

2.8.1

2 release files

2.8.0

2 release files

2.7.0

2 release files

2.6.1

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page