BatchEdits CLI
Edit up to 50 videos at once from your terminal or AI agent. One command uploads a folder, adds captions, removes silences, crops to 9:16 and downloads the results.
Install
npm install -g batchedits
# or run it without installing:
npx batchedits --helpNeeds Node.js 18.17 or newer. Processing uses the credits on your plan or free trial.
Quick start
1.Opens your browser to approve the CLI. The token is stored locally and never printed.
terminalbatchedits login2.One reusable style: vertical crop, silence removed, captions, zoom on key moments.
terminalbatchedits style create "Shorts" --crop 9:16 --silence --captions --zoom3.Uploads up to 50 videos, edits them, waits and downloads the results.
terminalbatchedits run ./raw --style "Shorts" --out ./edited
Commands
| Command | What it does | Example |
|---|---|---|
| login | Sign in through your browser (OAuth). Stored in ~/.config/batchedits. | batchedits login |
| logout | Remove the stored login. | batchedits logout |
| whoami | Check that you're signed in and connected. | batchedits whoami |
| styles | List your saved and built-in styles. | batchedits styles |
| actions | List editing actions and their settings. | batchedits actions |
| style create | Create a style from flags: --captions --emojis --silence --repeats --fillers (also cut um, uh and filler uses of like) --crop <ratio> --zoom --clips [n] --hook --hook-clip <ai|id|words> (ai: a matching clip picked for each video) --broll (cutaways to your named B-roll, stock where none fits) --cta [text] (a call to action in the last seconds) --sfx (whooshes, pops, a riser and a ding on those edits). Fine-tune any setting with --set action.setting=value. | batchedits style create "Podcast clips" --clips 8 --crop 9:16 --captions --set captions.position=center |
| style edit | Change a saved style: the same flags add or update an edit, --set changes a setting, --remove drops an edit, --name renames it. | batchedits style edit "Shorts" --set captions.fontColor=#FFFF00 --remove zoom |
| style copy | Create a style that copies a reference video's look: caption font, colours, word-by-word or letter-by-letter highlight, position, zooms and crop. Give a TikTok, Instagram, X, Vimeo or YouTube link, a direct video link, a local file or one of your video ids. Only the first 90 seconds are read; uses no credits. | batchedits style copy https://www.tiktok.com/@creator/video/123 --name "Like this" |
| hooks | Find intro clips for a video hook; use an id with --hook-clip (or --hook-clip ai to let AI pick per video). | batchedits hooks surprise reaction |
| upload | Upload local videos, a folder or video links (up to 50) and print their ids. Links (YouTube, Dropbox, Google Drive or a direct video link) are downloaded by BatchEdits. | batchedits upload ./raw https://youtu.be/dQw4w9WgXcQ |
| process | Edit videos with a style. Uses 1 credit per video (1 per AI clip); asks first, or pass --yes. --hooks <file> gives each video its own hook, one line per video; --ctas <file> its own call to action. | batchedits process <id> <id> --style "Shorts" --yes |
| status | Show video status; --watch waits until they (and their AI clips) are done. | batchedits status <id> --watch |
| download | Download finished videos (and their AI clips) to --out. | batchedits download <id> --out ./edited |
| run | Upload (files, folders or links), edit, wait and download in one command. --hooks <file> sets one hook per video, in upload order; --ctas <file> one call to action per video. | batchedits run ./raw --style "Shorts" --out ./edited --hooks hooks.txt --yes |
--jsonMachine-readable output on stdout (progress goes to stderr).--yesConfirm credit use without a prompt. Required when there's no terminal (agents, scripts).--set <action.setting=value>Any setting from batchedits actions, e.g. captions.position=top, captions.fontColor=#FFFFFF, silence.silentThreshold=0.06, zoom.zoomPercent=125, clips.maxSeconds=60, hook.position=bottom, hook.duration=3. Repeatable.--host <url>Use another BatchEdits host (default https://batchedits.com).-h, --helpHelp for any command, with an example.
Sign in
batchedits login opens BatchEdits in your browser to approve the CLI, then stores the login in ~/.config/batchedits. The token is never printed, so an agent can run commands without ever seeing it. On servers and CI, set BATCHEDITS_API_KEY with a key from your settings.
Use it from an AI agent
Claude Code, OpenClaw, Hermes and Codex run the CLI directly. Paste this into your agent's instructions or skill file:
Edit videos with the BatchEdits CLI (run `npx batchedits --help` for all commands):
- Sign in once: `npx batchedits login` (or set BATCHEDITS_API_KEY).
- List styles: `npx batchedits styles --json`
- Edit a folder end to end: `npx batchedits run <folder> --style "<style name>" --out <folder> --yes --json`
- Processing uses credits: confirm with the user before passing --yes.
- Exit code 5 means re-run with --yes; 3 means sign in first.For ChatGPT, claude.ai and other remote agents, connect the MCP server instead.
Exit codes
0Done1Error (the message says what happened)2Wrong usage (unknown flag, missing file)3Sign in needed: run batchedits login or set BATCHEDITS_API_KEY4Some videos failed or weren't ready5Needs confirmation: re-run with --yes