All docs

    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

    terminal
    npm install -g batchedits
    
    # or run it without installing:
    npx batchedits --help

    Needs Node.js 18.17 or newer. Processing uses the credits on your plan or free trial.

    Quick start

    1. 1.Opens your browser to approve the CLI. The token is stored locally and never printed.

      terminal
      batchedits login
    2. 2.One reusable style: vertical crop, silence removed, captions, zoom on key moments.

      terminal
      batchedits style create "Shorts" --crop 9:16 --silence --captions --zoom
    3. 3.Uploads up to 50 videos, edits them, waits and downloads the results.

      terminal
      batchedits run ./raw --style "Shorts" --out ./edited

    Commands

    CommandWhat it doesExample
    loginSign in through your browser (OAuth). Stored in ~/.config/batchedits.batchedits login
    logoutRemove the stored login.batchedits logout
    whoamiCheck that you're signed in and connected.batchedits whoami
    stylesList your saved and built-in styles.batchedits styles
    actionsList editing actions and their settings.batchedits actions
    style createCreate 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 editChange 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 copyCreate 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"
    hooksFind 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
    uploadUpload 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
    processEdit 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
    statusShow video status; --watch waits until they (and their AI clips) are done.batchedits status <id> --watch
    downloadDownload finished videos (and their AI clips) to --out.batchedits download <id> --out ./edited
    runUpload (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
    • --json Machine-readable output on stdout (progress goes to stderr).
    • --yes Confirm 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, --help Help 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:

    SKILL.md
    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

    • 0 Done
    • 1 Error (the message says what happened)
    • 2 Wrong usage (unknown flag, missing file)
    • 3 Sign in needed: run batchedits login or set BATCHEDITS_API_KEY
    • 4 Some videos failed or weren't ready
    • 5 Needs confirmation: re-run with --yes