Builderoom

September 25, 2026

Install

Edit CapCut and JianYing project drafts in the terminal or via LLM agents—no API required, just read and write local JSON files directly.

MIT
安装命令(说明)bash
npm install -g capcut-cli
最小用法bash
capcut doctor
capcut quickstart my-first --video clip.mp4 --srt captions.srt
capcut info ./my-first/ -H

Product facts

Type
CLI / Terminal
Category
Creativity & Media › Video Editing
Pricing
Open source
License
MIT
Launched
Sep 25, 2026
Listed
Sep 25, 2026
Website
github.com

Overview

GitHubGitHub

capcut-cli is a standalone, unofficial command-line tool for creating and editing CapCut and JianYing projects in the terminal. It operates directly on local draft_content.json and draft_info.json files, requiring no uploads, APIs, MCP servers, or HTTP daemons.

The core workflow converts raw recordings into editable drafts with silence-aware cuts and styled captions. The generated projects open in CapCut or JianYing with all tracks fully editable, rather than as flattened exports.

Usage

  • CLI: Install via npm install -g capcut-cli, then run commands with capcut <command> <project>.
  • Library: Import as a JavaScript library offering typed functions like loadDraft, lintDraft, and saveDraft with zero dependencies.
  • Queue runner: Run capcut serve to read JSONL tasks from stdin, ideal for automation platforms like n8n, Make, and Coze.
  • Agent sandbox: An experimental WebAssembly component providing read-only MCP tools for AI agents, without filesystem or network access.

Key capabilities

Supports caption editing, timeline adjustments, speed control, volume adjustment, template application, and trimming long videos into shorts. For newer CapCut versions, it detects and syncs all readable timeline targets. Triggers work with both Chinese and English requests.

Prerequisites

Requires Node.js 18 or later, using only built-in modules with no native dependencies. Some commands need optional tools: caption requires Whisper, render requires FFmpeg, automatic media metadata needs ffprobe, and translate requires ANTHROPIC_API_KEY.

Python support

Install the Python wrapper via pip install capcut to call the same underlying binaries.

This project is open-sourced under the MIT license and is not affiliated with ByteDance, CapCut, or JianYing.

Key features

  • Local draft I/O: Read and write local draft_content.json and draft_info.json directly—no uploads or APIs needed.
  • Multi-track editable output: Generated projects open in CapCut or JianYing with all tracks remaining fully editable.
  • Caption & timeline editing: Supports adding captions, adjusting timelines, controlling speed, and tuning volume.
  • Long-to-short video: Trim long videos into formats suited for short-video platforms.
  • LLM agent integration: Install as a skill for AI agents like Claude Code, Codex, and Cursor.
  • Queue runner mode: Run capcut serve to read JSONL tasks from stdin, fitting automated workflows.
  • JavaScript library: Import as a zero-dependency JS library with typed draft manipulation functions.
  • Python wrapper: Install via pip to access the same underlying functionality in Python.
  • Wasm sandbox: Experimental WebAssembly component giving AI read-only inspection tools without filesystem access.
  • Multilingual triggers: Trigger features using either Chinese (e.g., JianYing, captions, drafts) or English commands.

Releases

Notify me

Initial · capcut-cli

Q&A

Is capcut-cli an official tool?AI-generated
No. It is a standalone, community-maintained unofficial project, not affiliated with, sponsored by, or endorsed by CapCut, JianYing, or ByteDance Ltd.
Do I need an API key to use capcut-cli?AI-generated
Core features require no API, MCP server, or HTTP daemon—they operate directly on local JSON files. However, the translate command requires ANTHROPIC_API_KEY.
What environment is required to run it?AI-generated
Node.js 18 or later is required, using only built-in modules with no native dependencies. Whisper, FFmpeg, and ffprobe are optional tools for specific commands.
Can the generated projects be published directly?AI-generated
It generates real local project drafts with editable tracks. You need to open them in CapCut or JianYing to review, adjust, and render; publishing still requires manual action.
Are there security issues in older versions?AI-generated
Fixture bundles in v0.17.2 and earlier may contain unsanitized device identifiers; v0.17.0 and earlier had local command injection and insecure temp file handling. These were fixed in v0.18.0 and v0.17.1. Upgrading to the latest version is recommended.
Install
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

The product content on this page was translated by AI from the author's original.