Skip to content
HaD0YunPublic

About

Open source previs software in the browser: block a scene, pose characters, author camera moves and cuts, then take the same shots to an AI video model.

Topics

Resources

Stars

2.0k stars

Watchers

20 watching

Forks

Latest commit

 

History

2,651 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CozyClay

English · 한국어 · 日本語 · 简体中文 · 繁體中文 · Español · Français · Deutsch · Português (BR) · Русский

Make the scene first. Then make it a video.
Open source previs in a browser tab: block the set, move the cast, cut the camera, hand the shot to an AI video model.

License: AGPL-3.0 npm Node 22.19+ Stars Discord

Try it in the browser · Quick start · Guide for AI agents · Docs · Changelog · Discord

gh_stacked_plain.mp4
cozyclay_previs_parkour.mp4
Top: the greybox blocked in CozyClay. Bottom: the AI video made from it. Same idea, a parkour jump: the blocking holds the timing and the camera.

Why

AI video costs money per take, and one miss means paying again. A text prompt cannot hold a whole scene: where everyone stands, how they move, where the camera is, when it cuts.

CozyClay lets you make those decisions first, in 3D, where they are cheap to change. Then the video model gets the shot as a first frame, a greybox reference clip and a prompt that describes the real framing. It follows the blocking instead of guessing.

flowchart LR
  S["Stage<br/>set + cast"] --> M["Motion<br/>written + built"] --> C["Camera<br/>shots + cuts"] --> E["Export<br/>frame · clip · prompt"] --> V["AI video model"]
Loading

Quick start

npx cozyclay

That is the whole install. You need Node.js 22.19 or newer and a Chromium browser. You do not need a GPU, Python or a model download. The studio opens at http://127.0.0.1:5180/app/.

Updating.

  • npx cozyclay fetches the newest release on every run.
  • After npm install -g cozyclay, the studio shows an Update chip in the top bar when a release is out. Update now installs it. Restart now starts the new version in the same terminal.
  • On Windows the chip shows the command to copy instead. One-click update stays off there by design.
  • cclay update does the same from the terminal.
  • Turn the check off for one launch with --no-update-check or COZYCLAY_NO_UPDATE_CHECK=1. Turn it off for good with cclay update --off, and back on with cclay update --on.

Asking an AI agent to set it up? Give it this repository link. Its instructions are in INSTALL_FOR_AGENTS.md.

What you can do

Stage Build the set from primitives and place point, spot and directional lights. Add rig characters, drawn as cube figures, or capsule stand-ins when nobody needs to move a limb. Fly the view like a 3D editor.
Move Describe the action in the Agent panel. A second model, the motion writer, writes a motion spec, and a deterministic engine makes every frame and measures foot slide, contacts, balance and bodies inside props. The writer reads those numbers and contact sheets of the result before the take goes in. A motion can move props too. It needs a model sign-in in the Agent panel.
Shoot Put shots on a timeline, draw dolly rails in the Top-View, look through the lens. Turn a rail camera by hand and pick who it follows. Each shot knows the limits of the video model you target.
Export Keyframe pack (first and last frame, greybox clip, camera, prompt), AI video reference zip (a mosaic-and-blur reference video and a prompt), mp4, depth and normal passes, contact sheet, OTIO cut list.
Look The toon look (flat two-tone shading with black lines) is on by default in the viewport and in every capture and export. Turn it off under Show in the viewport toolbar.
Undo anything Every edit, including each change the agent makes, is one undo step.

Direct it with AI

The same scene can be driven from three places, live, while you watch the viewport.

Surface Start For
Agent panel Cmd/Ctrl+B in the studio Chat in the studio. Sign in with ChatGPT or use your own key (Anthropic, OpenAI, Gemini, MiniMax, OpenRouter, CLIProxyAPI).
MCP server npx -y cozyclay mcp Claude Desktop, Claude Code, Cursor or any MCP client.
Terminal cclay live status --wait Coding agents that drive a running studio, JSON in and out.
{ "mcpServers": { "cozyclay": { "command": "npx", "args": ["-y", "cozyclay", "mcp"] } } }

From source

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

Contribution rules are in AGENTS.md. Open pull requests against main.

Docs

Read For
INSTALL_FOR_AGENTS.md Install, run and connect, written for AI agents
docs/motion3-agent-guide.md The old motion engine (MCP, cclay live, COZYCLAY_MOTION_ENGINE=old): motion specs, compile and QA
docs/agent-cli.md cclay live, model providers, sessions
mcp/README.md MCP tools and the live protocol
docs/studio-ui-ia.md Every control and where it lives
docs/privacy.md Anonymous telemetry and how to turn it off (cclay telemetry off)
AGENTS.md Contribution rules

Guides

Read For
Greybox to AI video Why a grey blockout is the most reliable input for a video model, and the block-then-generate loop
Previs software compared Free, open source and browser-based previs tools side by side
Seedance 2.5 camera control Getting the same camera on every take with a reference clip
Camera control for AI video Why camera prompts drift and what the models actually accept

Found a bug or want a feature? Open an issue.

License

AGPL-3.0-or-later. See LICENSE, LICENSING.md and THIRD_PARTY_NOTICES.md. Made by Doyun at NomaDamas.

About

Open source previs software in the browser: block a scene, pose characters, author camera moves and cuts, then take the same shots to an AI video model.

Topics

Resources

Stars

2.0k stars

Watchers

20 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages