OpenFilm Lets Coding Agents Build and Edit Videos With Plain HTML
OpenFilm turns Claude Code, Codex, and other coding agents into video makers by representing films as HTML pages and a single frame(t) function.
Takeaways
- OpenFilm turns Claude Code, Codex, Cursor and other coding agents into video makers using HTML and CSS.
- A film is a folder with
film.html; each shot is a page exposing aframe(t)function. - Install as a skill with
npx skills add openfilm/openfilm, or grab the Mac/Windows desktop app. - Studio editor runs locally in Chromium; edits are written back as overrides the agent respects.
- Exports MP4 up to 4K, alpha video, GIF, subtitles, and timelines for Final Cut, Premiere, Resolve.
- Free, MIT licensed, 1,250+ GitHub stars; generated media uses your own ElevenLabs/OpenAI/Google/fal keys.
OpenFilm is a new MIT-licensed open-source project that turns a film into a folder of web pages. Coding agents write shots with familiar browser technologies, while OpenFilm supplies the timeline, local editor, verification tools, and renderer. Its GitHub repository has 1.3k stars.
Developers can ask Claude Code, Codex, Cursor, Gemini CLI, or another shell-capable agent to create a video. The agent writes the source files, and a browser-based editor called Studio lets users select any generated element and revise it directly.
A timeline built from browser primitives
Every OpenFilm project contains a film.html file. Each section defines a track, and document order controls its top-to-bottom position on the timeline. Clips can contain web pages, videos, still images, or audio files.
- Media fragments such as
#t=12,18define clip timing. - CSS properties including
left,top,width, andheightcontrol placement. - Manual changes are stored as
overridesthat agents can preserve during later revisions.
Animated web-page shots expose a small JavaScript interface:
window.film = {
frame(t) { /* draw the complete picture at t seconds */ },
duration: 4,
ready: loadFonts(),
width: 480,
height: 320,
};
Each call to frame(t) must draw the same complete image for the same timestamp, regardless of earlier calls. OpenFilm can request frames out of order, render several concurrently, and sample fractional timestamps for motion blur. Time-driven shots that follow this contract produce reproducible exports when the browser, fonts, and assets remain consistent.
Agents already speak the format
Current coding agents can generate HTML, CSS, SVG, Canvas, WebGL, three.js, and GSAP. OpenFilm organizes those existing capabilities around file conventions, rendering, and verification, avoiding a custom animation language or proprietary scene graph. The format also provides a lightweight alternative to React-based video frameworks such as Remotion.
Installing the command-line tools and registering the OpenFilm skill requires one command:
npx skills add openfilm/openfilm
| Requirement | Details |
|---|---|
| Node.js | Version 22.2 or later |
| ffmpeg | Required for command-line rendering |
| Git | Required for Studio’s saved versions |
| Operating system | macOS, Windows, or Linux |
| Chromium | The first run downloads a headless build of about 100 MB |
The desktop app for macOS and Windows bundles ffmpeg and the headless browser. It also places an agent chat panel beside Studio.
Studio keeps manual edits in the source
Studio runs in a Chromium-based browser that matches the final rendering engine, reducing differences between preview and export. Users can select elements on the canvas, edit text and layers, rearrange timeline clips, adjust position and appearance, change volume or playback speed, and revise subtitles.
Studio writes those changes into the film’s source as overrides, allowing a later agent pass to read and retain them. Named snapshots use Git, so developers can compare or restore earlier versions with familiar tooling.
From 4K masters to editing timelines
- MP4 exports support resolutions up to 4K.
- GIF, still-image, subtitle, and audio-stem exports cover common delivery needs.
- Transparent WebM and MOV exports use the
--alphaoption. - Motion-blurred renders use the
--bluroption. - Timeline files support Final Cut Pro, Adobe Premiere Pro, and DaVinci Resolve workflows.
Verification catches unstable shots
Agent-generated animation code can depend accidentally on prior frames, load fonts too late, omit audio, or place text outside the canvas. The openfilm look command checks for those failures by rendering sampled frames twice in different shuffled orders. Changed results identify nondeterministic shots, while the report also flags page errors, unloaded fonts, missing sound files, and clipped text.
Five commands cover the workflow
openfilm opencreates or opens a film in Studio.openfilm lookgenerates a contact sheet, single frame, or frame range for inspection.openfilm renderexports the finished film with options for resolution, motion blur, and transparency.openfilm getretrieves voice-over, music, sound effects, transcripts, images, and video from connected services.openfilm doctorproduces a diagnostic report for troubleshooting.
Free core, metered media services
Creating, editing, and rendering local projects requires neither an OpenFilm account nor a paid license. Generated media remains subject to provider charges. Studio accepts users’ own ElevenLabs, OpenAI, Google, and fal API keys, with each service billing usage directly.
The project gallery emphasizes structured, graphics-heavy work that benefits from precise timing and editable layouts:
- Explainers with synchronized diagrams
- Product videos driven by real product data
- Social ads with exact brand typography
- Music videos cut to a beat
- Animated picture books
- Visual-effects templates such as photo-mosaic reveals
- Talking-head edits with captions and B-roll
Photorealistic scenes and other generated pixels still come from external image and video models. OpenFilm imports that material as footage, then handles composition, timing, editing, validation, and export.
HTML makes failures fixable
Because every shot remains web code, developers can inspect a bad frame, change its text or CSS, rerun automated checks, and commit the repair with ordinary version-control tools. Agents can then revise surrounding shots without discarding approved manual edits.
Flattened prompt-to-video footage often requires regenerating an entire shot to change one word or reposition one element. OpenFilm keeps text, layout, timing, audio, and animation code available for direct revision, giving developers a inspectable artifact instead of an opaque render.