Independent, unofficial CLI to edit CapCut and JianYing (剪映) projects — subtitles, timing, speed, volume, templates, cut long-form to shorts. No API needed, reads draft_content.json and draft_info.json (剪映草稿) directly. Not affiliated with ByteDance.
# Add to your Claude Code skills
git clone https://github.com/renezander030/capcut-cliLast scanned: 11/29/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-29T13:02:25.147Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}capcut-cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by renezander030. Independent, unofficial CLI to edit CapCut and JianYing (剪映) projects — subtitles, timing, speed, volume, templates, cut long-form to shorts. No API needed, reads draft_content.json and draft_info.json (剪映草稿) directly. Not affiliated with ByteDance. It has 1,268 GitHub stars.
Yes. capcut-cli passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/renezander030/capcut-cli" and add it to your Claude Code skills directory (see the Installation section above).
capcut-cli is primarily written in JavaScript. It is open-source under renezander030 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh capcut-cli against similar tools.
No comments yet. Be the first to share your thoughts!
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
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
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.
To build an archive from source, use a complete official Node distribution and run npm run pack:portable -- --out ./portable (or add --node-root <node-distribution>). Build on the target platform and architecture (on Windows the archive is a zip, written without extra tools); macOS builds also require GNU tar (brew install gnu-tar) and otool from the command-line developer tools. The builder uses the local npm payload, downloads nothing, rejects runtimes linked to non-system macOS libraries, and refuses to overwrite existing artifacts. Archive users do not need these build tools.
From Python: pip install capcut wraps the same binary — capcut.run("quickstart", "my-short", video="clip.mp4", ratio="9:16") — see python/README.md.
capcut doctor
capcut quickstart my-first --video clip.mp4 --srt captions.srt
capcut info ./my-first/ -H
Result: a real local project with video and captions on editable tracks — not a flattened export. Open it in CapCut or JianYing to review, adjust, and render. The publish click stays human.
Useful? Star capcut-cli to help other editors and agent builders find it.
For more practical tools for AI agents, from video automation to checks before they ship, follow René on GitHub.
Build from source instead: git clone https://github.com/renezander030/capcut-cli && cd capcut-cli && npm install && npm run build (then npm link to expose capcut). Or run any command without installing: npx capcut-cli <command>.
[!IMPORTANT] Upgrade before using older versions. Fixture bundles made with versions up to 0.17.2 may contain stable device identifiers and must be treated as unsanitised (#59). Versions up to 0.17.0 also contain local command/filter injection paths and unsafe temporary-file or credential-output behaviour. These issues are fixed in 0.18.0 and 0.17.1 respectively. Run
npm install -g capcut-cli@latestand see the changelog for full details.
Disclaimer: This is an independent, community-maintained project. It is not affiliated with, sponsored by, or endorsed by CapCut, JianYing, or ByteDance Ltd. "CapCut" and "JianYing" (剪映) are trademarks of ByteDance Ltd. All product names, logos, and brands are the property of their respective owners and are used here only for identification (nominative) purposes.
An independent CLI for CapCut / JianYing that any LLM agent can drive — zero dependencies, no server, both namespaces in one binary.
JSON in, JSON out: every command reads and writes the local draft store directly, with no MCP server or HTTP daemon. On newer CapCut versions it detects and synchronizes every readable timeline target instead of assuming draft_content.json is the only source of truth. That gives any model (Claude, DeepSeek, GLM, Kimi) a deterministic boundary for inspection, building, subtitles, captions, translation, and long-form cuts.
Use it four ways:
npm install -g capcut-cli, then capcut <command> <project>import { loadDraft, lintDraft, saveDraft } from "capcut-cli" (typed, zero-dep)capcut serve reads JSONL jobs from stdin, for n8n / Make / Cozecapcut-core.wasm for three read-only MCP tools with zero filesystem, network, environment, clock, random, stdio, or process importsOne command installs the capcut-edit skill into Claude Code, Codex, Cursor, OpenCode and the other agents the skills installer supports:
npx skills add renezander030/capcut-cli
Claude Code can also load it as a plugin:
/plugin marketplace add renezander030/capcut-cli
/plugin install capcut-cli@capcut-cli
The skill teaches the agent every command, the progressive-disclosure habit (inspect first, never dump a whole draft), where the draft store lives on macOS and Windows, and the deterministic scripts for fades, Ken Burns and long-to-short cuts. It triggers on English and Chinese requests alike (剪映, 字幕, 草稿).
Using an AI assistant with capcut-cli? Give it a safer “look, don’t touch” mode.
The optional Wasm tool lets an AI:
It can examine only the project information you hand to it. It cannot browse your files, go online, read passwords or API keys, open other apps, or change the project.
Use it when you want an AI to review a draft with the least possible access. Skip it when you are using capcut-cli yourself or want the AI to edit or render—the normal CLI still does those jobs. This feature is experimental, optional, and changes nothing unless you set it up. Technical details and setup →
The experimental [wasm/capcut-core](https://github.com/rene