█

AI/TLDR

Buy me a coffee
Buy me a coffee

CozyClay

Browser-based previs studio: block the set, move the cast and cut the camera in 3D, then hand each shot to an AI video model

Video GenerationOpen source
Language
JavaScript
License
AGPL-3.0
$npx cozyclay
IN SHORT

What is CozyClay?

CozyClay is open-source previsualisation software that runs in a browser tab. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in JavaScript and licensed AGPL-3.0. To get started: start the studio.

Overview

The CozyClay studio: a scene outliner on the left, a 3D viewport with a sculpted clay prop and transform gizmo in the centre, a transform panel on the right, and an animation timeline and shot-camera preview along the bottom.
The studio layout — outliner, 3D viewport, properties, and the timeline with a live shot-camera preview underneath.CozyClay docs ↗

CozyClay is open-source previsualisation software that runs in a browser tab. Its premise is that an AI video model is paid per take and a text prompt cannot hold a whole scene — where everyone stands, how they move, where the camera is and when it cuts — so those decisions are made first in 3D, where they are cheap to change. The video model then receives the shot as a first frame, a greybox reference clip and a prompt that describes the real framing, and follows the blocking instead of guessing it.

The studio is organised as Stage, Move, Shoot and Export. You build the set from primitives and add rigged characters or capsule stand-ins; describe an action and an agent writes a motion spec that a deterministic in-browser compiler bakes frame by frame, with QA checks for collisions, foot slide, reach and hand contact; put shots on a timeline with dolly rails and a look-through lens, each aware of the limits of the video model you target; and export a keyframe pack, mp4, depth and normal passes, a contact sheet or an OTIO cut list. A Storyboard project type covers stills-first work with panels, captions and an animatic.

The same scene can be driven from three places while you watch the viewport: an Agent panel inside the studio (sign in with ChatGPT or bring a key for Anthropic, OpenAI, Gemini, MiniMax, OpenRouter or CLIProxyAPI), an MCP server for Claude Desktop, Claude Code, Cursor and other MCP clients, and a `cclay live` terminal interface that speaks JSON for coding agents. Every edit, including each change the agent makes, is one undo step. A sculpt mode lets an agent turn a single reference image into a clay prop described as a recipe of parts — plain data the editor renders, not code it executes. CozyClay is written in JavaScript on three.js and licensed AGPL-3.0-or-later.

What it does

  • Stage, Move, Shoot and Export workflow for blocking a scene before any video is generated
  • Agent-written motion specs compiled deterministically in the browser, with QA for collisions, foot slide, reach and hand contact
  • Shot timeline with dolly rails and look-through camera, each shot checked against the target video model's limits
  • Exports a keyframe pack (first and last frame, greybox clip, camera, prompt), mp4, depth and normal passes, contact sheet and OTIO cut list
  • Drive the scene live from the in-studio Agent panel, an MCP server, or the `cclay live` terminal interface
  • Sculpt mode turns one reference image into a clay prop built from a validated recipe of parts
CozyClay's sculpt-from-image panel showing a reference image, a Measure, Draft, Score and Refine progress row finished at an IoU of 0.771, and the resulting clay model on a turntable in the viewport.
Sculpt mode: the agent drafts a clay prop from one reference image and scores it against the silhouette before you place it in the scene.CozyClay docs ↗

Getting started

CozyClay needs Node.js 22.19 or newer and a Chromium browser. It does not need a GPU, Python or a model download.

Start the studio

One command installs and launches it; the studio opens at http://127.0.0.1:5180/app/.

bashbash
npx cozyclay

Block the shot

Build the set from primitives in Stage, add characters, describe the action so the agent can write and compile the motion, then lay out shots and camera moves on the timeline. Open the Agent panel with Cmd/Ctrl+B to direct the scene in chat.

Connect an MCP client

To drive the studio from Claude Desktop, Claude Code, Cursor or another MCP client, register the bundled MCP server.

jsonjson
{ "mcpServers": { "cozyclay": { "command": "npx", "args": ["-y", "cozyclay", "mcp"] } } }

Or drive it from a terminal

Coding agents can talk to a running studio through the `cclay live` commands, JSON in and out.

bashbash
cclay live status --wait

Run from source

Clone the repository to develop on it or run the test suite.

bashbash
git clone https://github.com/HaD0Yun/CozyClay.git && cd CozyClay
npm install
npm run dev     # http://127.0.0.1:5180/app/
npm test

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Locking staging, timing and camera for an AI video shot before paying for generation takes
  • Handing a video model a first frame, greybox reference clip and framing prompt so repeated takes keep the same camera
  • Letting a coding agent or MCP client build and adjust a 3D scene while you watch the viewport
  • Producing storyboards, animatics and OTIO cut lists for a sequence without a desktop 3D suite

How CozyClay compares

CozyClay alongside other open-source video generation tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
MoneyPrinterTurbo★ 147kA self-hosted WebUI, API and CLI that turns one topic or keyword into a finished short video — script, stock or generated footage, voiceover, subtitles and music.
HyperFrames★ 93.2kHeyGen's HTML-to-video renderer: author a composition in HTML, CSS and JS, preview it in a browser, then render the same input to a deterministic MP4 locally or on AWS Lambda.
OpenMontage★ 84.5kAn agentic video production system that gives a coding assistant 12 pipelines and 100+ tools to research, script, generate and render a video end to end.
Open Generative AI★ 37kMIT-licensed desktop and web studio for AI image, video and lip-sync generation that runs hosted models through the Muapi.ai API, with optional local image models in the desktop app.
Hypit★ 31.9kA markup language and compiler that lets a coding agent rebuild a reference video as an editable workflow — footage, captions, B-roll and effects anchored to words rather than timestamps — and render variants in one command.
Toonflow★ 23.3kInfinite-canvas workbench for AI short-drama production, taking a novel through chapter events, script, storyboards and video nodes.
Lemo-Opuscar★ 23.2kA Claude Code skill and library of 59 film styles that has a coding agent make a narrated short film entirely in code — canvas and WebGL frames, scored music and TTS — with no video model.
CozyClay★ 1.9kBrowser-based previs studio: block the set, move the cast and cut the camera in 3D, then hand each shot to an AI video model