Automation & Integrations

Use the Sequence CLI

Install and use the Sequence CLI to edit projects, run app jobs, transcribe media, and automate workflows from Terminal or structured JSON.

What the CLI is for

The Sequence CLI (sq) transcribes and inspects media, imports files, queries projects and transcripts, edits variants, runs app jobs, and returns structured JSON.

Commands split into two groups:

  • Local commands (sq info, sq hash, sq transcribe) operate on files directly without modifying your Sequence library.
  • App commands (sq app ...) read or modify your Sequence library through the app.

Compatibility

The app and CLI are versioned independently; compatibility is checked over the app connection, so version numbers do not need to match. The CLI requires an Apple Silicon Mac running macOS 15.4 or later.

App-backed workflows require Sequence to be open, signed in, activated, and showing the main workspace, with Settings → Automation → Enable Automation turned on. If App Lock is enabled, unlock Sequence before running protected commands. Standalone commands do not require an open library.

Check your installation and connection with sq --version and sq app doctor. If a command or protocol is unsupported, update both the CLI and Sequence before retrying.

Install the CLI

Install with Homebrew or curl (choose one per machine). Both install the same signed, notarized Apple silicon binary.

Homebrew

brew install rockstarsunlimited/sequence/sequence

Using the fully qualified tap path avoids a separate brew tap step.

curl

curl -fsSL https://sequencetool.com/install.sh | sh

The script downloads the latest cli-v* release, verifies its checksum and code signature, installs under ~/.local/share/sequence-cli/<version>/, and links sq at ~/.local/bin/sq. If ~/.local/bin is not on your PATH, it prints the line to add to your shell profile.

To inspect the script first:

curl -fsSL https://sequencetool.com/install.sh -o install-sq.sh
less install-sq.sh
sh install-sq.sh

Pass installer flags after sh -s -- when piping, or directly after the script path: --prefix DIR links sq in DIR/bin instead of ~/.local/bin, and --version X.Y.Z installs a specific release.

After installing, connect the CLI to Sequence:

sq app connect

In Sequence, Settings → Automation → Command Line Interface shows connection status and offers a Copy button for the install-and-connect command. Wait for Connected before setting up an assistant.

Update later with:

sq upgrade
sq --version
sq app doctor

sq upgrade matches your install method: Homebrew installs run brew update && brew upgrade sequence; curl installs download and verify the new release while keeping the previous version for sq upgrade --rollback.

Get help and shell completions

View command help at any level:

sq --help
sq transcribe --help
sq app --help
sq app projects --help

Generate completions for Zsh, Bash, or Fish. To enable Zsh completions in the current shell:

source <(sq completions zsh)

Save the generated script to your shell's completions directory to keep it enabled.

Read embedded CLI release notes locally with no app, database, or network needed (sq whats-new is an alias):

sq changelog
sq changelog --from 1.2.0 --to 1.3.0 --json
sq whats-new

Inspect media

Probe a media file without importing it:

sq info /path/to/media.mov
sq info /path/to/media.mov --json

Compute Sequence's content-identification hash for a media file:

sq hash /path/to/media.mov
sq hash /path/to/media.mov --json

sq hash always computes Sequence's content hash from file size plus sampled head/tail bytes (not a whole-file SHA-256 checksum). The legacy --quick flag was removed in CLI 1.2.0.

Work with the Sequence library

Library commands live under sq app. Verify the app, authorization, database, broker, and bundled media tools:

sq app doctor
sq app doctor --json

If Sequence prompts you to associate the CLI installation, open Sequence and run:

sq app connect

Check the local app broker directly with sq app broker status --json.

List Catalogs, create a new Catalog (requires Sequence 1.4.5), and filter projects by Catalog ID:

sq app catalogs list
sq app catalogs list --include-system --json
sq app catalogs create "Season 2" --confirm --json
sq app projects list --catalog <catalog-id> --json

List projects with pagination (defaults to offset 0, limit 50):

sq app projects list
sq app projects list --limit 50 --offset 0 --json

Search a transcript or fetch a time range:

sq app transcript search <project-id> "search phrase"
sq app transcript search <project-id> "search phrase" --include-hidden --json
sq app transcript range <project-id> <start-seconds> <end-seconds> --json

Page through stable sentence IDs, including hidden sentences when building an edit plan (default limit 100, range 1 to 500):

sq app transcript sentences list <project-id> --offset 0 --limit 100 --json
sq app transcript sentences list <project-id> --include-hidden --json

List transcript-derived keywords:

sq app keywords list <project-id>
sq app keywords list <project-id> --include-unapproved --json

Pass stable project IDs returned by sq app projects list, not project names.

Add and inspect markers

List, add, update, or delete timeline markers:

sq app markers list <project-id> --json
sq app markers add <project-id> 42.5 --name "Select begins" --confirm --json
sq app markers add <project-id> --sentence <sentence-id> --name "Check pacing" --confirm --json
sq app markers update <project-id> <marker-id> --name "Reviewed" --resolve --confirm --json
sq app markers delete <project-id> <marker-id> --confirm --json
  • sq app markers list reports edited timeline times (editedTimeSeconds), resolved state (isResolved), and surrounding transcript context (nearbySentenceId, nearbySentenceText).
  • sq app markers add accepts either a timestamp in seconds or --sentence <sentence-id>.
  • sq app markers update accepts --name, --at <seconds> or --sentence <id>, and --resolve or --unresolve (requires Sequence 1.4.5).
  • sq app markers delete removes a marker by ID (requires Sequence 1.4.5).

Adding, updating, or deleting a marker modifies the project and requires --confirm. Sequence refreshes visible project state automatically after broker-backed edits.

Create variants and edit plans

An automation agent can inspect an existing variant, create a named sibling variant, cut words or sentences, and reorder full sentences. The new variant saves directly in Sequence like any manual variant.

Example prompt:

Use sq to inspect my "Best Cut" variant, create a new variant named "Agent Pass," remove unnecessary words and sentences, reorder sentences where useful, and leave the original untouched. Preview and validate the plan first, then apply it.

Agents discover IDs, build the plan, preview it, and submit it directly, with no manual JSON import.

Duplicate a project without sentence edits:

sq app variants create <project-id> --name "Agent Cut" --confirm --json

variants create and create-from-plan create standard child variants, not copies of group-owned programs. For program-copy workflows, use the edit-session tools in the MCP guide.

For a sentence-level pass, create-from-plan atomically duplicates the source variant, applies sentence visibility and ordering, and names the new sibling without touching the original.

Plans use stable IDs from sq app transcript sentences list:

{
  "name": "Agent Cut, concise",
  "includedSentenceIds": ["sentence-a", "sentence-c"],
  "sentenceOrder": ["sentence-c", "sentence-a"]
}

Pass the JSON over stdin (or from a file with --plan ./variant-plan.json):

sq app variants preview-plan <best-cut-project-id> --plan - --json
sq app variants create-from-plan <best-cut-project-id> --plan - --confirm --json

includedSentenceIds lists sentences to keep visible; if supplied, sentenceOrder must contain the exact same IDs in the target order. Previewing reports validation, projected visibility and order, exclusions, and copied marker counts without writing. Creation is transactional: if validation or persistence fails, no partial variant is created.

create-from-plan --json returns the new variant's ID in result.id. Sentence-group IDs stay stable, while copied words get new IDs. Inspect the new variant's transcript to get its word IDs before making word-level edits:

sq app transcript words disable <new-variant-id> <word-id>... --confirm --json

When Sequence is running, sq refreshes the Catalog automatically after creating a variant, though Sequence does not necessarily switch to the new tab.

--confirm authorizes commands that require explicit confirmation (such as variant creation and transcript edits). Job starts for import, transcription, remux, audio sync, and model downloads do not take --confirm; Sequence's access checks still apply.

Refine an existing variant in place with the same fields, omitting name:

sq app transcript apply-plan <variant-project-id> --plan ./edit-plan.json --confirm --json

apply-plan runs atomically and collapses orphaned pauses around excluded sentences automatically. includedSentenceIds is required; sentenceOrder is optional.

When running sq app auto-clip, output reports projected edited timeline runtime separately from spoken duration and remaining unspoken gaps.

Edit transcript visibility

Enable or disable words or sentence groups by stable ID (--confirm required):

sq app transcript words disable <project-id> <word-id>... --confirm --json
sq app transcript words enable <project-id> <word-id>... --confirm --json
sq app transcript sentences disable <project-id> <sentence-group-id>... --confirm --json
sq app transcript sentences enable <project-id> <sentence-group-id>... --confirm --json

Analyze likely retakes and long pauses using the app's cleanup policy:

sq app transcript cleanup <project-id> --json
sq app transcript cleanup <project-id> \
  --max-retake-gap 2 \
  --min-tokens 3 \
  --min-similarity 0.8 \
  --min-pause 0.35 \
  --json

Cleanup returns stable sentence IDs, text, confidence, gap duration, and recommended exclusions without modifying the project. Merge accepted recommendations into a variant or transcript edit plan. Defaults: 2 s max retake gap, 3 min tokens, 0.75 min similarity, and 4 s min long pause (separate from silence removal).

Inspect the edited timeline

Inspect the edited timeline used for playback and export. Pass --summary for compact edited runtime, spoken duration, and remaining unspoken gap totals without per-word explanations:

sq app projection inspect <project-id> --summary --json
sq app projection inspect <project-id> --json
sq app projection inspect <project-id> \
  --profanity-mode silence \
  --duration 600 \
  --offset 0 \
  --limit 100 \
  --json

Profanity modes are skip (default), silence, beep, and textOnly. Full output includes edited duration, projection identity, source ranges, audio-treatment counts, and paged segment details (default offset 0, limit 100, max 500). --duration is a fallback source duration when media duration is unavailable, not a target cut length.

Preview frames and contact sheets

Capture downscaled preview frames or tiled storyboards across an edited timeline using Sequence's fast thumbnail generator (requires Sequence 1.4.5):

sq app frame grab <project-id> --at 42.5 --output /path/to/frame.jpg --max-edge 1280 --json
sq app frame grab <project-id> --at <sentence-id> --json
sq app contact-sheet <project-id> --output /path/to/sheet.jpg --columns 4 --rows 3 --tile-edge 320 --json

frame grab accepts either a timestamp in seconds or a sentence ID with --at. Both commands reuse Sequence's fast thumbnail generator for visual inspection without running a full video export.

Inspect live readiness and project media

Read live capability diagnostics, with or without supporting evidence:

sq app diagnostics snapshot --json
sq app diagnostics snapshot --no-evidence --json

Probe normalized project media metadata (use --allow-stale only if cached metadata is acceptable). Passing a variant ID falls back automatically to its root source media:

sq app media probe <project-id> --json
sq app media probe <project-id> --allow-stale --json

For recording packages, inspect inventory, streams, and package health:

sq app media inspect-package <project-id> --json
sq app media list-streams <project-id> --json
sq app media validate-package <project-id> --json

See Import your media for importing media and recording packages in the app.

Import into Sequence

Hand files or folders to Sequence for sandbox-safe import. Pass --catalog <catalog-id> to import directly into a specific Catalog (requires Sequence 1.4.5):

sq app import /path/to/media.mov
sq app import /path/to/folder /path/to/another.mov --catalog <catalog-id> --json
sq app import /path/to/interviews --transcribe

--transcribe queues app-managed transcription after import (unlike standalone sq transcribe).

App-managed jobs

Start the same broker-backed jobs used in the app:

sq app jobs start-transcription <project-id> --json
sq app jobs start-transcription <project-id> --catalog <catalog-id> --force --json

sq app jobs start-remux <project-id> --json
sq app jobs start-remux <project-id> --catalog <catalog-id> --media /path/to/media.mov --json

sq app jobs start-audio-sync <project-id> --audio /path/to/audio.wav --json
sq app jobs start-audio-sync <project-id> --catalog <catalog-id> --force --json

sq app jobs start-model-download <pack-id> --json

Start a Final Cut Pro or DaVinci Resolve timeline export:

sq app jobs start-export <project-id> \
  --output /path/to/export.fcpxmld \
  --destination final-cut-pro \
  --confirm \
  --json

start-export supports final-cut-pro (default) and resolve, plus optional --catalog <catalog-id>, --no-captions, and --no-keywords. It always uses Regular Titles, source resolution and frame rate, MP3-to-M4A conversion, and no silent-channel removal, without inheriting inspector export settings or creating Settings transcript sidecars. Poll the returned job ID to confirm completion; if an export is already active for that project, start-export returns the existing job.

Export video, packages, frames, or an edited transcript

Use sq app jobs start-delivery (or sq app run jobs.startDelivery for full JSON option payloads) for configurable NLE exports and all other delivery destinations. Delivery exports snapshot the final edited timeline and transcript. Pass the exact editing variant or Multi-Cam programme UUID:

sq app jobs start-delivery <variant-id> \
  --destination video \
  --output /path/to/cut.mp4 \
  --confirm --json

sq app run jobs.startDelivery \
  --input-json '{"projectId":"<variant-id>","destination":"srt","outputPath":"/path/to/cut.srt","splitMode":"sentences"}' \
  --confirm --json

sq app run jobs.startDelivery \
  --input-json '{"projectId":"<variant-id>","destination":"frame","outputPath":"/path/to/frame.png","timestampSeconds":10}' \
  --confirm --json

Valid JSON destination values are finalCutPro, resolve, package, video, frame, assets, txt, csv, sbv, srt, ass, and vtt (camelCase, not the hyphenated start-export flags).

Key rules:

  • Output path: Must be absolute, contain no .. segments, point to a new file in an existing writable folder Sequence can access, and use the matching extension (.fcpxmld, .sqbundle, .mp4/.mov, .m4a/.wav, .png/.jpg/.jpeg, or the transcript format). Existing files are never overwritten. assets links the variant into Assets and does not take outputPath.
  • Video and audio: Defaults to video + audio at source resolution and frame rate with automatic codecs. For audio-only delivery, set "includeVideo":false and use .m4a, or .wav with "audioCodec":"pcm".
  • Frames: Requires visual content and a timestampSeconds value that is nonnegative and below the edited timeline duration (delivery time, not source time).
  • Transcripts and subtitles: splitMode defaults to sentences (or words). Cues reflect the visible edited transcript and final timeline timing, including inserted assets. Requires exportable transcript words.
  • Packages: Includes source media by default ("includeSourceMedia":false omits it). Optional encryptionCode encrypts editing data only. Add catalogId to verify the project belongs to a specific Catalog.

Keep Sequence open and unlocked while delivery runs. A successful start returns result.jobId; poll with sq app jobs poll <job-id> --json until completion and check for warnings or errors. Unlike start-export, jobs.startDelivery rejects a second concurrent export for the same project.

Delivery settings and restrictions

Destination Useful optional settings Important limit
finalCutPro, resolve includeCaptions, includeKeywords, captionStyle, resolution, frameRate, removeSilentChannels, convertMP3ToM4A, caption formatting Source-linked FCPXML bundle, not a rendered movie or guaranteed copy of originals. Use regularTitles for Resolve.
video includeVideo, includeAudio, videoCodec, audioCodec, container, audioChannels, resolution, frame rate, bitrates Renders composition and audio; does not burn captions or embed subtitle tracks. ProRes and video with PCM require MOV. H.264 cannot preserve HDR output.
package includeSourceMedia, encryptionCode Portable Sequence editing data. Encryption protects editing data, not source media.
frame Required timestampSeconds Captures the composed edited timeline without relying on the open player. Requires visual content.
assets Optional catalogId Linked reusable variant, not an encoded file.
txt, csv, sbv, srt, ass, vtt splitMode Visible edited transcript only; request separately when a movie or NLE export also needs a sidecar.

Example NLE and audio-only deliveries:

sq app run jobs.startDelivery \
  --input-json '{"projectId":"<variant-id>","destination":"finalCutPro","outputPath":"/path/to/cut.fcpxmld","captionStyle":"fcpSubtitles","includeKeywords":true}' \
  --confirm --json

sq app run jobs.startDelivery \
  --input-json '{"projectId":"<variant-id>","destination":"video","outputPath":"/path/to/cut.wav","includeVideo":false,"audioCodec":"pcm"}' \
  --confirm --json

Wait for the first job to finish before starting another delivery for the same variant. Unsupported fields for a destination fail validation rather than being ignored. See the MCP export settings reference for all JSON field names, enums, ranges, and defaults.

See the export format matrix, Final Cut Pro handoff, and Resolve import workflow before choosing a destination.

Poll and cancel jobs

Check or cancel background jobs:

sq app jobs poll
sq app jobs poll <job-id> --json
sq app jobs cancel <job-id> --confirm

Polling returns the current state without waiting; a zero exit status from poll does not mean the job succeeded. Stop polling once the job is completed, failed, or cancelled. sq app jobs poll retains recently finished terminal jobs briefly so fast exports do not report not-found before your script polls them. Cancellation is cooperative for delivery jobs: an in-flight encode or copy may finish its current step before stopping, and staged files are not published.

Database maintenance

Database maintenance commands require explicit confirmation:

sq app diagnostics db --json
sq app db maintenance --confirm
sq app db compact --confirm
sq app db prune --keep-edits 100 --keep-history 100 --keep-stats 100 --dry-run

Always test pruning with --dry-run before passing --confirm.

Standalone transcription

Transcribe any audio or video file using a model installed by Sequence. Omit --model to use the best installed model:

sq models list
sq transcribe /path/to/interview.mov
sq transcribe /path/to/interview.mov --model parakeet-v3 --format words

By default, transcript text writes to stdout. Choose --format text, --format segments, or --format words (legacy --text, --segments, and --words also work) and add --json for structured output.

Save transcript or subtitle files beside the media:

sq transcribe /path/to/interview.mov --txt --srt
sq transcribe /path/to/interview.mov --vtt -o /path/to/interview.vtt
sq transcribe /path/to/interview.mov --csv --split words

Supported formats: --txt, --csv, --sbv, --srt, --ass, and --vtt. Cues group by sentence by default; pass --split words for word-level cues. Existing files are preserved unless you pass --force.

Transcribe a directory recursively by specifying at least one export format:

sq transcribe /path/to/interviews --txt --srt
sq transcribe /path/to/interviews --vtt -o /path/to/existing-output-directory

Batch mode skips hidden files, app/package bundles, and unsupported formats, and mirrors the input folder structure when -o is set.

Interactive terminals show progress automatically. Scripts can pass --progress, --progress-json (JSON Lines on stderr), or --no-progress (pick one). Use --verbose for engine diagnostics, but keep it off when parsing JSON.

Standalone transcription runs in the foreground, creates no project or Action Center job, and writes no files unless you pass export flags or redirect output.

JSON output and automation

Pass --json when scripting. Successful commands return a versioned envelope:

{
  "schemaVersion": 1,
  "result": {}
}

Machine-readable errors write to stdout with schemaVersion, operationId, numeric status, statusName, and error.message. Check both the process exit code and the JSON (status is an action status, not necessarily the shell exit code). Treat extra result fields as forward-compatible and check schemaVersion. Help, version output, completions, and sq actions list are human-readable.

Inspect the shared action catalog with sq actions list [--json], and inspect per-action input/output schemas with sq actions describe <action> [--json]. Use sq run <action-id> --input-json '<json>' for supported local actions, sq app run for app-owned actions, and sq app import for sandbox-safe file handoff. Some catalog actions still require visible UI or active macOS app state.

App access and security

The running app's local broker takes precedence over direct database access. Edits, variant creation, and job starts are broker-backed. Some library reads and maintenance commands can use the authorized local database when direct access is permitted; otherwise, sq launches Sequence in the background to reach the broker. Cold-launching Sequence waits for broker authorization and database readiness before sending a request, uses a 30-second socket timeout, and retries transient unavailable connections with bounded backoff. MCP always requires the running app broker.

Shared FFmpeg and ffprobe discovery checks installed Sequence app bundles (including Setapp) and the CLI's bundled libexec, and does not fall back silently to system PATH binaries. Set SEQUENCE_USE_SYSTEM_FFMPEG=1 to opt in to system binaries explicitly.

Sequence retains control of database keys, sandbox paths, licensing, and App Lock. Invalid or expired access fails closed and reports what interaction is needed; the CLI never bypasses account or security settings.

Find projects and control a cut

Resolve a project by name (pass --catalog <id> to filter accurately across variants), then inspect its variants, clips, and transcript by stable ID:

sq app projects find "Launch Talk" --json
sq app projects find "Launch Talk" --catalog <catalog-id> --json
sq app projects get <project-id> --json
sq app variants list <project-id> --json
sq app clips list <variant-id> --json
sq app transcript sentences dump <variant-id> --json
sq app open <variant-id> --json

Toggle or combine clips, set the source-time trim range in seconds (nonnegative start, end greater than start; source bounds, not edited-timeline positions), or rename a speaker:

sq app clips disable <variant-id> <clip-id> --confirm --json
sq app clips enable <variant-id> <clip-id> --confirm --json
sq app clips combine <variant-id> <clip-id-1> <clip-id-2> --confirm --json
sq app trim get <variant-id> --json
sq app trim set <variant-id> --start 5 --end 120 --confirm --json
sq app trim clear <variant-id> --confirm --json
sq app speakers list <variant-id> --json
sq app speakers rename <variant-id> <speaker-id> --name "Alex" --confirm --json

sq app clips combine merges enabled, unlocked, source-adjacent clips using Sequence's combine and renumber rules (requires Sequence 1.4.5), alongside clips move, split, trim, and roll.

Apply a transcript cut plan

Dump sentences with sq app transcript sentences dump <variant-id> --json, pick the sentence IDs and order you want, and apply the plan directly to a variant. Orphaned pauses around excluded sentences collapse automatically:

sq app transcript apply-plan <variant-id> --plan - --confirm --json <<'EOF'
{
  "includedSentenceIds": ["<sentence-id-1>", "<sentence-id-2>"],
  "sentenceOrder": ["<sentence-id-1>", "<sentence-id-2>"]
}
EOF

Disable or move individual sentences, shape timeline clips (move, split, combine, trim, roll), check edited duration, and step back using the app's edit history (undo and redo return the affected scope and a readable effectSummary):

sq app transcript sentences disable <variant-id> <sentence-id> --confirm --json
sq app transcript move <variant-id> <sentence-id> --after <target-sentence-id> --confirm --json
sq app projection inspect <variant-id> --summary --json
sq app undo <variant-id> --confirm --json
sq app redo <variant-id> --confirm --json

Remove silence, filler, or profanity

Run cleanup commands against the variant you want to refine (--confirm required):

sq app silence remove <variant-id> --threshold 2 --confirm --json
sq app filler remove <variant-id> --confirm --json
sq app filler restore <variant-id> --confirm --json
sq app profanity remove <variant-id> --confirm --json
  • Silence: Cuts transcript silence gaps without detecting retakes or changing locked clip ranges. --threshold accepts 0.5 to 20 seconds (omitting it uses the variant's setting, or 2 seconds).
  • Filler: remove hides eligible filler words; restore unhides words hidden as filler without affecting other hide reasons. Both persist the variant's filler override.
  • Profanity: Marks eligible words as profanity so the project's profanity mode governs playback and export.

Pass the returned result.projectId to subsequent commands: running removal on an ordinary root project creates a child variant rather than editing the root container, while existing editing variants and group-owned programs update in place. filler restore requires an existing editing variant or program and never creates a copy.

Connect an AI assistant with MCP

See Connect an AI assistant with Sequence MCP for setup, tools, edit sessions, and Agent Mode. MCP requires the running app and the same Automation settings above.