AI-Drawn Video from Your Terminal
The northnoir CLI starts with Ruvil 2.1 (Code-drawn), the default .js drawing engine: your AI coding agent writes and reviews a local scene.html. Version 2.3.2 works with NorthCel 0.7.2 (.ncel: editable groups, transform, warp, nudge, mix, morph, frame ranges, opacity) as an optional drawing language. Select Ruvil 7.3 (Hand-drawn frame-by-frame) for images as frames. One MCP authorization covers a local film — northnoir ref upload prepares and uploads the start image with no CLI key — and northnoir auth nn_live_… / NORTHNOIR_API_KEY stays the optional key for the direct REST path.
Install
pipx install northnoir (currently 2.2.0), then northnoir doctor --install. Published on PyPI as northnoir (uv tool install northnoir works too); the CLI itself is Python-only and has no npm package. NorthCel, the optional .ncel drawing language, is its own project with one install name, northcel (PyPI or Homebrew for 0.7.2). The npm package is a launcher with a structural pre-check that prints PARTIAL. Local rendering charges no NorthNoir tokens. The default Ruvil 2.1 uses your own coding agent; the optional Ruvil 7.3 can use BYOK provider keys or one paid NorthNoir API key. Agent subscriptions and direct provider usage may cost you; NorthNoir API calls use your token wallet.
Ruvil 2.1 — Code-drawn, the default
The default .js drawing engine: your AI coding agent writes a JavaScript canvas drawing program in scene.html, inspired by the bundled hand-drawn style kits. In the Studio and API it renders every frame at 30 fps and reviews its own frames across up to 3 rounds. In the local CLI your agent runs the still and motion checks, fixes what is wrong, then renders at the scene's configured frame rate.
northnoir draw --scene scene.html --out my-film uses Ruvil 2.1 when --model is omitted; --model ruvil_2_1 selects it explicitly. For a cloud run on your NorthNoir API key, the MCP whole-project tools also default to Ruvil 2.1.
NorthCel (.ncel) — optional drawing language
CLI 2.2.0 integrates NorthCel 0.7.2 (spec 0.6.0-draft: editable groups, transform, warp, nudge, mix, morph, frame ranges, opacity) as an explicit opt-in alternative to the default .js scene.html workflow; northnoir polish --cels cels --out polish/ turns Ruvil 7.3 cels into one editable NorthCel film, and northnoir polish keys check|normalise|gate gates AI in-between keys. Install it with pip install "northnoir[ncel]", then northnoir init --language ncel, northnoir check scene.ncel and northnoir render scene.ncel; northnoir author --language ncel writes a first draft for your agent to review. Ruvil 7.3 images as frames is unaffected. .ncel films are silent: add sound with MCP generate_sfx or local northnoir sfx, then the local northnoir mix. Simple frontal poses, heads, horizons and props come out reliably; hands, foreshortened limbs and cloth folds are still weak. NorthCel itself is one install name, northcel (PyPI or Homebrew for 0.7.2; the npm package is a launcher with a structural pre-check); for spec 0.3 documents Linux x86_64 runs the native MoonBit + Bend/HVM2 + GLSL runtime; spec 0.4 documents always use the labelled Python reference, as does every other platform. Without a native runtime or Python the npm check is only a structural pre-check that prints PARTIAL, never OK.
Ruvil 7.3 — Hand-drawn frame-by-frame, the selectable second model
In the Studio and cloud API, Ruvil 7.3 is strictly images as frames: every frame is generated as its own 2D illustration image, anchored on your reference art when provided. Cloud updates do not update an installed CLI.
northnoir draw --model latest --ref reference.png --out my-film explicitly selects Ruvil 7.3: latest resolves to ruvil_7_3. Bring your own OpenAI key for the generated frame images and optionally ElevenLabs for sound, or use one NorthNoir API key. Local BYOK needs no NorthNoir account or tokens; providers may bill API usage. The NorthNoir-key path is charged from your token wallet.
One NorthNoir API key
Sign up on a paid NorthNoir plan, create one nn_live_... key at /developer, then run northnoir auth nn_live_... (or set NORTHNOIR_API_KEY). That single key replaces the separate provider keys for Ruvil 7.3: the frame images, the ElevenLabs sound effects, the OpenAI or ElevenLabs voices and the LLM enrichment all go through the NorthNoir API, charged from your token wallet.
The same key drives the MCP tools: whole-project planning and drawing, or per-asset generate_frame_image, generate_sfx, generate_music and generate_narration. Ruvil 2.1 (ruvil_2_1) is the default; Ruvil 7.3 (ruvil_7_3 / latest) provides images as frames and individual drawn frames (frames/f0001.jpg...). The non-recommended REST backend is northnoir api; every command prints JSON. The REST routes are POST /v1/drawn-video (with reference_image), GET /v1/jobs/{id}/frames, POST /v1/images, GET /v1/voices and POST /v1/chat, documented at /api-docs. Local BYOK provider keys stay the free alternative.
The agent loop
Author
The agent writes scene.html — one self-contained page whose JavaScript paints every frame of a 1920×1080 canvas. Frame 0 already shows the finished scene.
Still check
northnoir check --still renders frame 0. The agent views the PNG, fixes composition, scale and contrast, and only then animates.
Motion check
northnoir check renders sampled frames with a contact sheet and quality flags. The agent reviews, fixes and re-checks — up to three improvement rounds.
Render
northnoir render produces the final MP4 with procedural audio, a poster and a contact sheet, verified locally.
Commands
- northnoir draw --scene scene.html --out my-film — Ruvil 2.1 (Code-drawn), the default .js drawing engine: render the scene.html your AI coding agent writes and reviews. Omit --model or pass --model ruvil_2_1. Local rendering uses no NorthNoir tokens; your agent usage may cost you.
- northnoir init ink --language ncel --duration 3 --fps 24 — Optional NorthCel (.ncel) drawing language — install it first with pip install "northnoir[ncel]". Writes scene.ncel instead of scene.html; the .js path stays the default and .ncel is detected by extension. northnoir author --language ncel --brief "..." writes a first draft for your agent to review.
- northnoir check ink/scene.ncel [--still] — Validate a .ncel film with line:column diagnostics, then run the still and motion gates. Same JSON keys as .js plus language, NorthCel version, native dimensions, frame hashes and a determinism fingerprint.
- northnoir render ink/scene.ncel -o ink/video.mp4 — Render every frame locally to an H.264 MP4 with a poster and contact sheet. .ncel output is silent in this release; add sound afterwards with MCP generate_sfx or local northnoir sfx, then the local northnoir mix.
- northnoir polish --cels cels --fps 20 --src-fps 6 [--palette FILE] [--extra-keys FILE] [--audio-from MP4] --out DIR — Fit a folder of Ruvil 7.3 cels with one shared palette and emit ONE editable NorthCel film (keys, holds and transitions). Renders locally, muxes the original audio, writes labelled review sheets and needs_keys.json (only transitions code cannot bridge, such as a new angle or pose, with a ready prompt). The CLI never calls an image model; fulfil needs_keys with MCP generate_frame_image and re-run with --extra-keys.
- northnoir polish inbetween --plan polish/receipt.json --from A --to B --out DIR [--u 0.5] — Scaffold one in-between for your agent to author in NorthCel: a starter copy of key A at that frame, its shape and group list, both neighbour drawings and the verify commands. Keep what does not change, edit only what moves, then check with northcel diff and onion.
- northnoir polish assemble --plan polish/receipt.json --inbetweens DIR --out DIR [--audio-from MP4] — Copy every authored frame block into the polished film, keep the original keys and timing, validate, render and mux the audio. Vector blocks are copied, never re-fitted or rasterised.
- northnoir polish keys check|normalise|gate --plan polish/receipt.json … — Measure each AI in-between against both neighbours (figure box, scale, offset, silhouette IoU, colour, ink), rewrite framing-only differences, and accept a key only when the numeric gate and the vision reviewer both pass. Rejected keys become needs_keys.json entries with a ready prompt; the CLI never calls an image model.
- northnoir ref upload FILE [--fit 2:3-safe|none] [--prepare OUT] [--print-curl] [--upload-url URL] [--ref-id ID] — Prepare the start image locally (2:3 fit, EXIF/metadata strip, 10 MiB ceiling, deterministic bytes) and upload it once. --prepare writes the file and reports content_type, bytes and sha256 with no network and no key; MCP create_reference_upload mints ref_id plus a signed upload_url; --upload-url (or --print-curl and the printed curl) PUTs exactly those bytes with no Authorization header. No CLI key and no keys.json are needed — generate_frame_image auto-confirms the uploaded ref_id. With no mode flag it falls back to the direct REST upload POST /v1/references, which does need a CLI key.
- northnoir quote --seconds N --cel-fps 6 [--music 9 --music-model mureka-9] --json — Offline, deterministic and free estimate (charged:false): tokens and USD, the image count from the hold manifest, and published prices for all 15 music models, so a run that names its image and music models reports complete:true with an empty unknowns list. It never reserves or bills.
- northnoir auth nn_live_... [--status] [--logout] — Optional: save one NorthNoir API key from /developer into ~/.config/northnoir/keys.json (alias: northnoir login; or set NORTHNOIR_API_KEY). It covers MCP frame images, ElevenLabs sound, OpenAI/ElevenLabs voices and the LLM enrichment, but it is needed only for the direct REST upload POST /v1/references and northnoir api — the local MCP film path needs no CLI key. northnoir auth --status checks GET /v1/models and reports no key, malformed, unverified, valid (checked …) or rejected by server, and a command word such as northnoir auth show is refused (exit 2, nothing written).
- northnoir image --prompt "..." -o cel.jpg [--model gpt-image-2.6-sunburst] [--ref IMG] — Local, on your own OpenAI key: generate one frame image (OPENAI_API_KEY). Use one call per frame for a Ruvil 7.3 strip, or MCP generate_frame_image instead.
- northnoir sfx --prompt "..." [--provider auto|elevenlabs|fal|code] [--seconds 4] -o cue.mp3 — Local, on your own key: one sound effect (ELEVENLABS_API_KEY / FAL_KEY), or free procedural foley with --provider code.
- northnoir sfx-track --cue FILE[@SECONDS] … --duration N -o track.wav — Local and free: place every cue at its time, peak-normalise each, sum and fade the end. Feeds draw --sfx-file.
- northnoir models --providers [--json] — Offline matrix of slot × route × provider × flag × env var, so you can see which commands run locally, which use MCP and which are the non-recommended REST backend.
- northnoir api <models|voices|generate|wait|frames|image|sfx|voice|music|jobs> — NOT RECOMMENDED — the North Noir REST API backend for non-MCP clients, on one nn_live_… key. Use the MCP server at mcp.northnoir.com/mcp instead.
- northnoir mix --scene scene.html --sfx-dir sounds --narration narration.wav -o final.mp4 — Place each sound at its declared SCENE.cues time, duck effects beneath narration and normalize the mix to -14 LUFS. Reuses a matching rendered video or renders it locally; H.264 picture is preserved. No provider calls or cloud tokens for mixing.
- northnoir draw --model latest --cels cels --plan plan.json --out my-film — Explicitly select Ruvil 7.3 images as frames: MCP generate_frame_image (or local northnoir image) makes the cels, and this command assembles them locally with optional SFX/music files. It does not generate frames itself.
- northnoir doctor [--install] [--json] — Verify Chromium, ffmpeg and the pinned scene libraries (SHA256). --install runs the guided setup first. It also reports the auth state (no key, malformed, unverified, valid or rejected by server) without failing the run: the MCP path needs no CLI key.
- northnoir init <dir> [--title "..."] [--duration 5] [--fps 24] [--style <id>] — Scaffold a starter scene.html with a working window.SCENE contract.
- northnoir check <scene.html> --still — Gate 1: render frame 0 only, with the full quality report — look at the still before animating.
- northnoir check <scene.html> [--frames 0,12,24,...] — Gate 2: sampled frames, contact sheet, readability/collision/composition flags and audio health.
- northnoir render <scene.html> [-o out.mp4] [--no-audio] — Render every frame at 1920×1080 and mux an H.264 MP4 with procedural stereo audio, a poster and a contact sheet.
- northnoir styles [--json] — List the 31 AnidoodleDraw style ids and the RuvilMarks medium helpers.
- northnoir skill install — Teach your agent the loop: installs the northnoir-draw skill into its skill folders.
Questions
Which models, drawing modes and aspect ratios can I choose?
Omitted model selections use Ruvil 2.1 (Code-drawn), named ruvil_2_1 in the public API — the .js drawing engine workflow (scene.html). Explicit latest resolves to ruvil_7_3 (Ruvil 7.3 hand-drawn frame-by-frame); northnoir r73 and draw-frames also explicitly select 7.3. For local Ruvil 7.3, --draw-mode defaults to image: every frame is generated as its own 2D image (images as frames), anchored on your reference art when provided. Use --aspect 16:9 (Desktop, default), 9:16 (Phone), 1:1 (Square), 4:5 (Portrait feed), 21:9 (Cinematic), or 4:3 (Retro TV).
How do I install the CLI?
pipx install northnoir (or uv tool install northnoir), then northnoir doctor --install. The CLI is published on PyPI as northnoir, currently 2.3.2; it is Python-only and has no npm package. The optional NorthCel (.ncel) drawing language installs with pip install "northnoir[ncel]" and is a separate open-source project with one install name, northcel (PyPI or Homebrew for 0.7.2). The npm package is a launcher with a structural pre-check that prints PARTIAL, never a pass.
What is NorthCel (.ncel), and do I need it?
It is optional — a declarative drawing language (NorthCel 0.7, spec 0.6.0-draft) for compact cel-and-ink scenes with palette colour, deterministic line boil, mix, morph, frame ranges and opacity. Install it with pip install "northnoir[ncel]" (or the one install name northcel from PyPI or Homebrew; the npm package is a launcher with a structural pre-check), then northnoir init --language ncel, northnoir check scene.ncel and northnoir render scene.ncel. The default Ruvil 2.1 workflow is still scene.html in .js, which is richer for procedural scenes, WebAudio cues and the AnidoodleDraw styles. .ncel films are silent in the CLI: add sound with MCP generate_sfx or local northnoir sfx, then northnoir mix. Native .ncel rendering (MoonBit + Bend/HVM2 + GLSL) is Linux x86_64 only today; on macOS and Windows the same install renders through the labelled Python reference. Simple frontal poses, heads, horizons and props come out reliably; hands, foreshortened limbs and cloth folds are still weak.
Do I need a separate CLI key to upload a reference image?
No. One MCP authorization is enough. northnoir ref upload FILE --fit 2:3-safe --prepare start-fit.jpg prepares the bytes locally — 2:3 fit, EXIF/metadata strip, 10 MiB ceiling — with no network and no key; MCP create_reference_upload mints ref_id plus a signed upload_url; and northnoir ref upload FILE --fit 2:3-safe --upload-url "<upload_url>" (or --print-curl, or curl -X PUT -T) sends those exact bytes with no Authorization header. Nothing is written to ~/.config/northnoir/keys.json, and generate_frame_image auto-confirms the uploaded ref_id, so confirm_reference_upload is optional. A CLI key (northnoir auth nn_live_… or NORTHNOIR_API_KEY) is optional and only enables the direct REST upload POST /v1/references and northnoir api: northnoir auth --status reports no key, malformed, unverified, valid (checked …) or rejected by server, and northnoir auth show is refused as a command word without writing anything.
Is the CLI really free?
Local rendering charges no NorthNoir tokens. The default Ruvil 2.1 scene.html workflow uses your own AI coding agent, whose usage or subscription may cost you. Ruvil 7.3 can use your own provider keys, and providers may bill usage. With one NorthNoir API key instead, provider calls and cloud generation are charged from your NorthNoir token wallet.
Can I use one NorthNoir API key instead of separate provider keys?
Yes. Sign up on a paid NorthNoir plan, create one nn_live_… key at /developer, then run northnoir auth nn_live_... (or set NORTHNOIR_API_KEY). The MCP tools start with Ruvil 2.1 (ruvil_2_1), the default code-drawn model; explicitly choose Ruvil 7.3 (ruvil_7_3 / latest) for images as frames and frame downloads. The same key covers MCP frame images, sound effects, voices and LLM enrichment. Platform calls use your token wallet; local BYOK provider keys remain the free-CLI alternative, with provider usage paid directly.
Do I need a North Noir account?
No account is needed for local Ruvil 2.1 work: your coding agent writes scene.html and the CLI renders it without a provider key in the CLI. Local Ruvil 7.3 can use your own OpenAI key and optionally ElevenLabs for sound. Or sign up on a paid plan and use one NorthNoir API key for provider calls and cloud generation of either model.
Which AI agents work with it?
Claude Code, OpenCode, Codex, Gemini CLI and Cursor — anything that can write files, run shell commands and look at images. northnoir skill install teaches the agent the contract and the loop.
What do I need installed?
Python 3.10+ and ffmpeg. northnoir doctor --install sets up Chromium for you; northnoir doctor verifies the whole environment in one command.