capcut-cli

English | 中文 | 日本語
Create and edit real CapCut / JianYing projects from the terminal — or any LLM agent.
Open the result in CapCut with every track still editable. capcut-cli works directly on the local draft store: JSON in, JSON out, with no upload, API, MCP server, or HTTP daemon. The one opt-in exception is the experimental caption --cloud, which uploads the audio it transcribes to ByteDance.
Also from the maintainer: 500 Years Frozen in Time: The Inca Children Mystery, a 14:49 documentary from Bronze Age Banter.
raw recording → silence-aware cuts + styled captions → editable CapCut / JianYing draft
▶ Captioned output example (35 seconds)
https://github.com/user-attachments/assets/ba6d4f4c-626b-4d09-bcf2-d32471c427be
Install and open your first editable draft
Prerequisites: Node ≥ 18 (built-ins only — no native modules). Optional tools unlock specific commands: Whisper for caption, FFmpeg for render, ffprobe for automatic media metadata, and ANTHROPIC_API_KEY for translate.
npm install -g capcut-cli
Portable downloads without installing Node or npm
Download capcut-cli-v0.38.0-linux-x64.tar.gz and its .sha256 file from the release assets. Verify and extract them together:
sha256sum -c capcut-cli-v0.38.0-linux-x64.tar.gz.sha256
tar -xzf capcut-cli-v0.38.0-linux-x64.tar.gz
./capcut-cli-v0.38.0-linux-x64/capcut --version
./capcut-cli-v0.38.0-linux-x64/capcut describe --compact
On Linux arm64 (aarch64), choose capcut-cli-v0.38.0-linux-arm64.tar.gz and its matching .sha256 file, then use the same verification and extraction commands with that filename. Use the archive matching the machine architecture; these archives bundle Node, not ffmpeg or the desktop editor.
Keep the whole extracted directory together; it includes the Node runtime and its license. Both capcut and capcut-cli launchers work after moving the directory. Linux archives target x64 or arm64 with glibc (not Alpine/musl); optional FFmpeg/Whisper tools remain separate. This is a portable directory, not a single-file executable.
You can add the extracted directory to PATH or create symbolic links to capcut and capcut-cli in a directory already on PATH. The launchers follow absolute and relative link chains using the system /usr/bin/readlink, and keep relative input and output paths relative to your working directory. Keep the extracted package in place while links point to it.
On macOS, choose darwin-arm64 for Apple Silicon or darwin-x64 for Intel. Download the matching archive and checksum from the same release, then verify and extract them (Apple Silicon example):
shasum -a 256 -c capcut-cli-v0.38.0-darwin-arm64.tar.gz.sha256
tar -xzf capcut-cli-v0.38.0-darwin-arm64.tar.gz
./capcut-cli-v0.38.0-darwin-arm64/capcut --version
On Windows x64 (from release 0.37.1 on), download capcut-cli-v0.38.0-win-x64.zip and its .sha256 file. In PowerShell, compare the hash with the one in the .sha256 file, extract, and run the capcut.cmd launcher:
(Get-FileHash capcut-cli-v0.38.0-win-x64.zip -Algorithm SHA256).Hash.ToLower()
Get-Content capcut-cli-v0.38.0-win-x64.zip.sha256
Expand-Archive capcut-cli-v0.38.0-win-x64.zip -DestinationPath .
.\capcut-cli-v0.38.0-win-x64\capcut.cmd --version
The folder holds the official Node runtime (runtime\node.exe and its license); capcut.cmd and capcut-cli.cmd work from any location, also with spaces in the path, and you can add the folder to PATH. Arguments pass through cmd.exe, so quote values containing &, |, <, > or ^. Every release builds this archive on a Windows runner and runs it there before publishing.