OpenBBQ

CLI Reference

Commands and options implemented by the current OpenBBQ CLI.

Global syntax

openbbq [--json] COMMAND [ARGS]...
OptionDescription
--jsonEmit one machine-readable JSON object. Must appear before the command.
--helpShow help for the current command or group.
--install-completionInstall shell completion.
--show-completionPrint shell completion code.

Most workspace commands accept --workspace PATH or -w PATH. When omitted, OpenBBQ searches from the current directory upward.

doctor

openbbq doctor

Runs read-only, idempotent environment checks for Python, FFmpeg, subtitle filters, yt-dlp, ASR backends, cached models, and Agent skill installation.

init

openbbq init [--workspace PATH] [--glossary NAME] SOURCE
InputDescription
SOURCERequired URL or local video/audio path.
--workspace, -wOutput workspace. Without it, a slug directory is created under the current directory. Use . for the current directory.
--glossaryBind an existing global glossary at initialization.

Creates only the workspace and manifest; it does not fetch or process media.

status

openbbq status [--workspace PATH]

Reports source metadata, glossary binding, worksheets, recorded stages, progress, artifacts, failures, and stale running stages.

fetch

openbbq fetch [--workspace PATH] [--auth SITE | --no-auth]
OptionDescription
--auth SITEUse a saved site app session, currently youtube.
--no-authForce anonymous yt-dlp download.

Valid only for URL sources. Supported YouTube URLs automatically use a configured YouTube session unless --no-auth is passed.

extract-audio

openbbq extract-audio [--workspace PATH]

Normalizes the available source media to media/audio.16k.wav as 16 kHz mono WAV.

transcribe

openbbq transcribe [OPTIONS]
OptionDefaultDescription
--model NAME_OR_PATHBest cached modelCached model name or direct ggml .bin path.
--backend NAMEautoASR backend; currently auto or whisper.cpp.
--language CODEauto-detectForce source language, for example en.
--prompt TEXTnoneInitial ASR prompt.
--glossary NAMEmanifest bindingOverride the bound glossary.
--gpu / --cpu--gpuEnable or disable backend GPU acceleration.
--auto-downloadoffDownload a missing named model before transcription.

Requires extract-audio. Writes transcript.json with segments, word timing when available, backend, model, language, and duration.

segment

openbbq segment [OPTIONS]
OptionDescription
--lang CODEOverride transcript source language.
--glossary NAMEOverride manifest glossary for alias correction.
--max-cps FLOATMaximum characters per second.
--max-chars-per-line INTPer-line character budget.
--max-lines INTMaximum lines per cue.
--min-dur FLOATMinimum cue duration in seconds.
--max-dur FLOATMaximum cue duration in seconds.
--min-gap FLOATMinimum gap between cues in seconds.
--pause-threshold FLOATNatural-pause split threshold in seconds.

Built-in profiles use the transcript base language (en, zh, ja, or ko); other languages fall back to the generic Latin profile. Writes cues.json.

translate init

openbbq translate init [--workspace PATH] [--glossary NAME] [--force] LANG

Creates translation.<lang>.json from cues.json. --force discards an existing worksheet and all filled targets.

translate apply

openbbq translate apply [--workspace PATH] LANG TARGETS.json

Merges a JSON object mapping cue ids to translated text. Repeat for multiple batches.

translate check

openbbq translate check [--workspace PATH] [LANG]

Reports completeness, missing ids, target budget violations, glossary warnings, and cue integrity. The language is inferred when only one worksheet exists.

review

openbbq review [--workspace PATH] [--to CODE] [--port PORT] [--no-open]

Starts a loopback-only browser editor for video preview, waveform and cue timeline adjustment, source/target editing, review notes, and review status. --to selects the initial translation worksheet; without it, review starts in source-only mode and a subtitle language can be selected in the editor. The command writes edits atomically to cues.json, every affected translation.<lang>.json, and review.<lang>.json (or review.source.json). Only one review session may hold a workspace lock at a time.

export

openbbq export [OPTIONS]
OptionDefaultDescription
--to CODEnoneTarget worksheet language.
--mode source|target|bilingualsource, or target with --toRender mode.
--format srt|asssrtSubtitle format.
--output PATHout/<lang>.<format>Destination path.
--ass-preset default|fansub|mobiledefaultASS style preset; valid only with ASS.
--allow-missingoffFall back to source text for missing target cues.
--allow-unreviewedoffBypass the review-completion gate for an explicit draft export.

burn

openbbq burn [--workspace PATH] [--subtitle FILE.ass] [--output FILE.mp4] [--ffmpeg PATH]

Uses the last export artifact when --subtitle is omitted. The default output is based on the subtitle filename, for example out/zh-burned.mp4. Requires a video source and ASS input.

models

openbbq models list
openbbq models pull NAME

list reports provider, approximate size, and cache state. pull validates the model name and downloads it to the global cache with resumable transfer.

Common choices:

ModelApproximate sizeUse
base148 MBQuick preview
small488 MBBetter quality at moderate cost
large-v3-turbo-q5_0574 MBQuantized production option
large-v3-turbo1.6 GBRecommended production starting point
large-v33.1 GBHighest-quality large model in the catalog

Run models list for the full current catalog, including English-only and quantized variants.

glossary

openbbq glossary list
openbbq glossary show NAME
openbbq glossary new [--context TEXT] NAME
openbbq glossary use [--workspace PATH] NAME
openbbq glossary suggest [OPTIONS]

suggest options:

OptionDefaultDescription
--glossary NAMEnoneExclude terms already known to this glossary.
--max-prob FLOAT0.6Surface words below this average ASR probability.
--min-count INT1Minimum occurrences.
--max INT30Maximum candidates returned.

auth

openbbq auth browser-login youtube
openbbq auth status youtube
openbbq auth clear youtube

Currently only the youtube site key is implemented.

skill

openbbq skill install [OPTIONS]
openbbq skill show [OPTIONS]

Install options:

OptionDefaultDescription
--agent claude|codex|agents|allagentsInstallation target.
--target PATHtarget-specificCustom directory containing the installed skill folder.
--name openbbq-subtitles|bilibili-cover-safe-areaopenbbq-subtitlesPackaged skill.
--forceoffOverwrite an installed skill.

skill show accepts the same --name choices and --language en\|zh-CN (default en).

On this page