subbake
subbake is an agent-first subtitle translation CLI.
It translates .srt, .vtt, and line-based .txt subtitles with LLMs, while preserving subtitle structure and keeping long-running translation work recoverable through cache, translation memory, glossary, and resume state.
The main entrypoint is the interactive agent — reference files with @ and use / commands:
sbake
No config file? The agent creates your first profile on startup.
For detailed setup and examples, use the project Wiki.
Why SubBake
- Agent workflow: run
sbake, reference@file/@folder, switch profiles with/modelor sessions with/session, toggle plan mode withShift+Tab. - Subtitle-safe: preserves ids, timing, cue settings, and line counts.
- Series support: translate a whole season with shared glossary and translation memory.
- Runtime repair: malformed model output is logged and repaired automatically.
- Review pass: high-risk batches receive targeted consistency review.
- Persistence: cache, run state, glossary, and translation memory live under
.subbake. - Config profiles:
subbake.tomlsupports multiple provider presets for quick switching.
Agent Boundaries
The agent handles translation, series, profile switching, failure diagnosis, subtitle editing, and project-local file operations (create, append, replace, rename, delete).
It does not expose low-level file tools as direct commands — describe the task naturally and the agent selects the tool. In plan mode (Shift+Tab), mutating actions wait for /approve before execution. The agent is sandboxed to the project root; .git, .venv, .subbake, and __pycache__ are blocked. Destructive operations create backups under .subbake/agent/backups.
Install
pip install subbake
Then configure a provider profile. See the configuration example and the Wiki.
CLI Modes
Interactive agent:
sbake
sbake resume
Classic single-file command:
sbake translate input.srt --profile chatgpt
Series command:
sbake series ./Season01 --profile chatgpt
Credential and cleanup utilities:
sbake check-key --profile chatgpt
sbake clean .
Documentation
The Wiki is the primary user guide:
Command help is also available from the CLI:
sbake --help
sbake translate --help
sbake series --help
sbake check-key --help
sbake clean --help
Metadata
Release files for subbake 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| subbake-0.4.3.tar.gz | 129.7 kB | With provenance | Details for subbake-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subbake-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for subbake-0.4.3-py3-none-any.whl |
Total release size: 252.4 kB
Release files / subbake-0.4.3.tar.gz
| Download URL | subbake-0.4.3.tar.gz |
|---|---|
| Size | 129.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87db9b8102115384c77d9935d375eca2b05056ac96c6ea49adad50d91c0aa770
|
|
BLAKE2b-256 checksum How to use checksums |
2157c200c2b99b8d2fb3109d7c40ed5ab95be0c612da0f39d77184845c068e65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 8, 2026.
Transparency logRelease files / subbake-0.4.3-py3-none-any.whl
| Download URL | subbake-0.4.3-py3-none-any.whl |
|---|---|
| Size | 122.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0a0b60b12a0eb9eb370fb299d07b28253b57456bce97d01bcad0f074a02d963
|
|
BLAKE2b-256 checksum How to use checksums |
e4b069c0308a5e7623002321903dd5cfb2dd25e72ee96b7fb40bfcbc318429b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 8, 2026.
Transparency logSecurity for subbake 0.4.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for subbake-0.4.3.tar.gz
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 Jun 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.