Your coding agent writes the video. You direct it. Free, open source, runs on your machine.
Kurgu is a local video editor built around one plain file, project.json. Claude Code writes the timeline (clips, titles, subtitles, music, effects). You open it in a browser editor with a layer list, a live preview and an inspector, and adjust what Claude got almost right. Claude sees what you changed and what you have selected, so "make this text bigger" and "cut here" just work. render.py turns the result into an mp4.
"Kurgu" is Turkish for "edit / montage".
How it works
Claude Code <------------> project.json <------------> editor (your browser)
(skill + /kurgu) (the timeline) layers, preview, inspector
| | |
| reads changes.md | | writes .kurgu/state.json
| and .kurgu/state.json v | (selection, playhead)
| render.py ----> output.mp4 <---------+
+--------------------------------------------------------------
everything runs on 127.0.0.1, nothing is uploaded
project.json is the single source of truth: canvas size, fps, and a list of layers (video, image, text, color, audio) with times, positions, fades, effects and volume envelopes.
The editor is a small local web app served by server.py. Every manual edit is saved to project.json and logged in changes.md, so Claude can learn what you changed.
Selection and playhead are written to .kurgu/state.json, which is how Claude resolves "this text" and "here".
render.py composes frames in numpy, pipes them to ffmpeg and mixes sound.
Install
One command. It installs uv if needed, a private Python 3.12 (no system Python required), Kurgu, and a static ffmpeg; no admin rights. Run it again any time to upgrade.
OS
Command
macOS / Linux
curl -LsSf https://raw.githubusercontent.com/leodavincs/kurgu/main/install.sh | sh
Then open a new terminal and run kurgu path/to/project. kurgu --help lists every command. kurgu doctor checks the machine (Python, ffmpeg, hardware encoders, free disk space; --json for agents, --fix downloads a missing ffmpeg).
From a checkout (to try a branch or your own changes): KURGU_SOURCE=/path/to/your/kurgu sh install.sh. KURGU_SOURCE can be a folder, a URL or git+https://...; run it again after you change the code.
Chrome (or Chromium) is only needed for the code-video tools, kurgu elements and kurgu rerender; the editor itself runs without it. Set KURGU_CHROME=/path/to/chrome if Kurgu does not find yours.
Install for your user (for a coding agent: Claude Code, Codex, ...)
When the user says "install Kurgu and open my project", follow this verbatim:
Detect the OS (uname -s on macOS/Linux, $env:OS / ver on Windows).
Run the one-liner for that OS (table above). Read its output to the end; it ends with Done. Next step: kurgu <your project folder>.
Check:kurgu doctor --json (use %USERPROFILE%\.local\bin\kurgu.exe or ~/.local/bin/kurgu if the new command is not on PATH yet in your shell). "ok": true means ready.
Open the project: run kurgu "<project folder>" as a background process (it prints the URL and opens the browser; add --no-open if the user has no desktop browser) and tell the user the URL. Quote the path: folders with spaces, Turkish letters (İ ı ş ğ) or emoji are fine.