capcut-cli — Automate CapCut/JianYing video editing and subtitles from the terminal or an AI agent.
Analyzed by Sai Pavan Gopularam · Video Editing · AI Automation · View on GitHub
- Stars: 1235
- Forks: 157
- Commits last 30 days: 23
- Health: Active (23 commits this month)
- Language: JavaScript
- License: MIT
What It Is
Imagine CapCut projects as a set of LEGO bricks. `capcut-cli` is like a robotic arm that can re-arrange, add, or remove those bricks by reading and writing the project's internal blueprint (JSON files), without ever opening the CapCut app itself. It works offline, directly manipulating the project files on your computer.
This kills the problem of manual, repetitive video editing tasks, especially for short-form content. It allows AI agents to "understand" and "edit" videos programmatically, turning hours of work into automated scripts, and letting creators scale their video output without needing a CapCut API.
License Verdict
MIT License — Build and Sell Freely — Commercial Use Approved • No Copyleft Restrictions
The MIT License is highly permissive, allowing you to use, modify, and distribute this software for any purpose, including commercial projects. You can integrate it into proprietary software and sell your creations without needing to open-source your own code, provided you include the original license.
How to Use It
Install the CLI globally using npm. Ensure you have Node.js installed. For specific commands like captioning or rendering, you may need additional tools like Whisper or FFmpeg. The CapCut app is needed for final review and export.
Prerequisites:
- Node.js 18+
- CapCut/JianYing desktop app (for final render)
Estimated setup time: 5 minutes.
npm install -g capcut-cli
capcut doctor
capcut quickstart my-first --video clip.mp4 --srt captions.srt
capcut info ./my-first/ -H
What I'd Build With This
Podcast-to-Shorts Automation (micro-saas)
A web service that takes long-form podcast audio/video, uses AI to identify key moments, transcribes them, and generates multiple styled CapCut short-form video drafts. Users upload their content, choose a template, and download a `.capcut` project file ready for final tweaks and export. This targets podcasters and content creators who want to repurpose content quickly.
Effort: 2 Weeks Build Time · Target: Indie Podcasters, YouTube Creators · Pricing: $29/mo for 5 shorts, $99/mo for 20 shorts
AI Video Content Factory (saas)
A platform that allows marketing agencies or large content teams to define video templates, upload raw footage, and automatically generate hundreds of localized, captioned, and styled video variations for different platforms (TikTok, Reels, YouTube Shorts). The system outputs editable CapCut projects, allowing human editors to review and finalize at scale. This solves the high volume, repetitive editing challenge.
Effort: 3 Months Build Time · Target: Marketing Agencies, Large Media Teams · Pricing: $299/mo for 500 videos, custom enterprise pricing
Internal Video Production Pipeline Integration (enterprise)
Offer custom integration services for large enterprises with significant internal video production needs (e.g., training videos, corporate communications, product demos). Integrate `capcut-cli` into their existing content management systems or internal tools to automate the generation of first-draft CapCut projects from raw assets, enforce brand guidelines, and streamline localization. This reduces manual labor and ensures brand consistency across vast video libraries.
Effort: 1 Month per Integration · Target: Large Corporations, E-learning Platforms · Pricing: $5,000 - $25,000 per integration project
Sai Pavan Gopularam's Take
This tool is an absolute game-changer for anyone looking to scale video content production without relying on flaky APIs. The ability to programmatically generate editable CapCut projects means you can build an AI assistant that truly automates video creation. I'd estimate a well-executed SaaS around this could realistically generate $10k/month within a year by targeting busy content creators.
Watch Out For
- No Official API: This tool works by directly manipulating CapCut's internal project files. While powerful, future updates to CapCut's file format could potentially break compatibility, requiring updates to `capcut-cli`.
- Local Execution & Dependencies: The CLI runs locally and requires Node.js, and optionally other tools like Whisper or FFmpeg, to unlock its full feature set. This means server-side deployments need careful environment setup.
I break down trending repos like capcut-cli every week — join the newsletter.