Free on npm

Build and edit videos from the command line

One install gives you and your AI coding agent a real video editor in the terminal. Point it at a folder of clips and a JSON recipe, and get back a project you can open, fix by hand, and finish in your browser.

Maintained by the FrameCompose product team · Last reviewed 30 October 2026

FrameCompose multi-track timeline showing scenes, captions, voiceover, and music built via the CLI
Projects assembled from the CLI open as normal multi-track timelines in the browser editor and update live as commands run.

Install in one line: npm install -g framecompose.

Free API key on every plan. Dry runs, edits, and analysis tools cost nothing.

Every build is a real project you can open in the browser and fix by hand.

Structured --json output and fixed exit codes, made for AI coding agents.

1. Install and sign in

Install the CLI from npm on any Mac, Windows, or Linux computer with Node.js 20 or newer. Then create a free API key on the API keys page and run framecompose login. The key is hidden as you paste it and saved only on your computer.

No account yet? framecompose validate checks a recipe and your local files without signing in, so you can try the format before you create one.

Install, sign in, and check the account

Prefer not to install globally? Every command also runs as npx framecompose <command>.

npm install -g framecompose
framecompose login
framecompose whoami

2. Build once from a JSON recipe

Start with a folder of video clips, images, or audio files and a framecompose.recipe/v1 JSON file. The CLI uploads your files once, picks music and sound effects from the commercial-use library, lines up word-by-word captions with your narration, and places every track onto a cloud project.

Run a free dry run first. It uploads your files once, checks every trim, transition name, font, and caption preset, and prints the credit estimate before any narration is generated. It spends nothing, and the real build reuses those uploads.

Dry run, then build live into the open editor

Pass --live to watch each clip, music block, caption lane, and end card appear step by step in your browser.

framecompose build recipe.json --dry-run --json
framecompose build recipe.json --max-credits 15 --live

3. Surgical edits in about a second

You never rebuild a project just to adjust a trim, swap a transition, lower the music, or change your caption font. Edit commands change the saved timeline in place in about a second, cost no credits, and record an undo step for every change.

If the project is open in your browser, the editor follows your terminal edits automatically within about two seconds.

Inspect, tweak scenes and captions, or save a checkpoint

Every write command is one undo step. Named checkpoints let you pin a state before trying a new cut.

framecompose inspect <projectId> --json
framecompose checkpoint save <projectId> before-tweaks
framecompose edit <projectId> --scene 1 --trim-end 4.5 --transition CROSSFADE
framecompose edit <projectId> --captions --font-family Montserrat --animation pop --highlight on
framecompose undo <projectId>

4. Free highlights, silence removal, and beat montages

Find the strongest hooks in a long recording, keep the speaker in frame when you crop to vertical, strip dead air without chopping the music, or cut clips onto the beat of your soundtrack, all from the terminal and all free.

Every analysis command can preview or dry-run first, so you see the proposed cuts before they touch the timeline.

Run analysis and beat-synced editing from the terminal

Each applied tool saves a normal timeline edit that you can undo with framecompose undo.

framecompose highlights <projectId> --apply --top 3 --json
framecompose cut-silence <projectId> --dry-run --json
framecompose auto-reframe <projectId> --json
framecompose analyze-beats <projectId> --json
framecompose montage <projectId> --style punchy --duration 30 --transition CROSSFADE --sfx

5. Hand it to your AI coding agent

Claude Code, Cursor, Codex, and any other agent that runs terminal commands can drive the whole workflow: write the recipe, dry-run it, build, inspect, fix, and render. Every command answers with one JSON document and a fixed exit code, so the agent always knows what happened.

Because the result is a normal project, you stay in charge: open it in the browser editor, change anything by hand, and tell the agent to carry on from there.

A prompt to paste into your agent

The agent runs framecompose --help and each command’s --help to learn the exact flags.

Use the framecompose CLI (run framecompose --help first) to turn the clips in ./footage
into a 30-second vertical video with a British narrator, synced captions and upbeat music.
Dry-run the recipe first and stay under 40 credits. Send me the editor link when it is built.

6. Render the final MP4

Browse the live catalogs whenever you need valid transition ids, shader effects, camera moves, caption presets, AI voices, music tracks, or sound effects.

When the timeline looks right, render on the FrameCompose servers with the same engine the browser app uses and download the finished MP4, or export it free from the browser editor.

Browse catalogs and render the final MP4

Server renders come with Pro and every credit pack. On the free plan, export from the browser editor.

framecompose transitions --json
framecompose caption-styles --json
framecompose sfx search whoosh --limit 5 --json
framecompose render <projectId> --resolution 1080 --wait --out episode.mp4 --json

Frequently asked questions

A few quick answers before you jump in.

What is the FrameCompose CLI?

The FrameCompose CLI (framecompose) is a free command-line tool that lets you and your AI coding agents create, inspect, edit, and render real FrameCompose video projects from a terminal. Every project it builds opens directly in the browser timeline editor.

How do I install the FrameCompose CLI?

Run npm install -g framecompose on any computer with Node.js 20 or newer, or try it once with npx framecompose. Then create an API key on the API keys page (/settings/api-keys) and run framecompose login to paste it in.

Is the FrameCompose CLI free?

Yes. The CLI and API keys are free on every plan, including the free plan. Dry runs, timeline edits, and the analysis tools (highlights, cut-silence, auto-reframe, score, analyze-beats, and montage) cost no credits. AI narration uses credits, and the dry run shows the estimate first. Server renders currently cost no credits with Pro or any credit pack (packs from $5.99 once), and you can always export the same project free from the browser editor.

Do CLI-built videos stay editable in the browser?

Yes. Unlike command-line render scripts that only output a flattened MP4, the FrameCompose CLI builds a real multi-track project with separate scenes, word-timed captions, voiceover, music ducking, transitions, and effects that you can open and refine in the browser editor at any time.

Do I have to rebuild the whole project to tweak one scene?

No. After the first build, commands like inspect, edit, patch, split, reorder, overlay, undo, and checkpoint update the existing project in about a second without re-uploading media or re-running speech recognition. If the project is open in your browser, it updates live within about two seconds.

Which AI coding agents can use it?

Any agent that can run terminal commands, including Claude Code, Cursor, OpenAI Codex, Gemini CLI, and GitHub Copilot agent mode. Every command supports --json, so the agent reads one structured answer with a fixed exit code instead of scraping text.

Is my API key safe?

Your key is typed in hidden, saved only on your own computer in a file only your user account can read, and sent only to the FrameCompose API over HTTPS. Keys reach only the features this CLI uses: they can build, edit, and render your projects, but cannot delete projects, run the AI editor chat, touch billing, manage other keys, or delete your account. The CLI also refuses to upload anything that is not media, such as a private key or a settings file, and you can revoke a key at any time on the API keys page.