Command line
AI video from your terminal.
The official VideoDraft CLI generates video, images, voice, music, and 3D assets from the command line. Built for humans and for coding agents: JSON output everywhere, stable exit codes, and async jobs as a first-class idea.
- Install
- npm, or npx with no install at all
- Requires
- Node 20.18.1 or newer
- License
- MIT, source on GitHub
- Credits
- One balance, shared with Studio and the Mac app
Install and sign in.
Install globally to put videodraft on your PATH, or skip the install and let npx fetch the current version each time. Then sign in once in your browser.
Headless and CI
Set VIDEODRAFT_API_KEY to a token from the keys page and skip the login step entirely. Credentials otherwise live in ~/.config/videodraft/config.json, and videodraft logout revokes and clears them.
export VIDEODRAFT_API_KEY=vd_mcp_…
videodraft whoamiGenerate anything, download it, move on.
A standalone image, clip, voiceover, track, or 3D model is a complete deliverable and does not need a project. Add --estimate to price a job before you spend.
videodraft generate image "a red fox in snow, cinematic" --download ./out/
videodraft generate video "slow dolly over a misty lake" --duration 6 --estimate
videodraft create "30s launch video for our espresso machine" --ar 9:16Built for scripts
Every command takes --json, exit codes are stable enough to branch on, and async jobs are submit-then-poll rather than a blocking wait.
Or a whole production
videodraft create runs idea to script to storyboard to timeline to an exported MP4, checking cost with you along the way.
Teach your coding agent to use it.
The CLI ships an agent skill covering model choice, references, async polling, and costs. Install it and Claude Code, Codex, and Cursor know how to produce video without being told each time.
videodraft skills installOne command, three agents
The CLI detects which agents you actually have and writes the skill only where it belongs. Inside VideoDraft ADE this is already done for you: the app bundles its own copy and hands every chat the exact path to it.
Same tools, two front doors.
The CLI and the MCP connector share auth, tools, and one credit balance. Pick the one that fits how you want to work.
Use the CLI for scripts
Batches, pipelines, CI, and anything you want to run the same way twice, with output you can parse.
Read the CLI docsUse the connector to talk
Same tools, same credits, but conversational. Connect Claude, ChatGPT, Codex, or Cursor and ask for what you want in plain language.
Connect your agentCLI questions
The full reference
Install and sign-in options, the generate commands, cost estimates, async jobs, and the agent skill.
npm install -g videodraft
Free and MIT licensed. Published on npm as videodraft.