CLI reference
Everything the oxframe command can do. You will use dev most of the time;
the rest are for creating, checking and exporting.
The everyday loop
oxframe init my-video # once: create a project
cd my-video
oxframe dev # edit code, watch the preview update
oxframe render # when you are happy: out/my-video.mp4 Commands
Every command accepts --json. It then prints one JSON object on stdout (ok, exit, and on failure error, diagnostics and hints) and keeps the log on stderr.
oxframe init <name>
Creates a folder with a ready-to-run project: Cargo.toml (SDK version pinned), src/main.rs with one scene, its meta.json, oxframe.toml, .gitignore and instructions for AI coding agents (see Working with AI agents). --template starts from something else: explainer (a title, a bullet list
and an end card), short (a vertical 9:16 short), chart (a function on
axes with a dot that rides the curve), or node, a library crate with a node of your
own (see Writing your own node). Every project also gets an empty assets/ folder.
--sdk-path <dir> | Use a local oxframe-sdk checkout instead of crates.io (also OXFRAME_SDK_PATH). |
oxframe dev
Builds the project, opens the editor in your browser and rebuilds every time you save. If the code does not compile, the error shows over the preview and the last good build keeps playing.
oxframe dev opens, on the project oxframe init creates.--port <n> | Editor port (default 3000). |
--open / --no-open | Open the browser, or don't (overrides oxframe.toml). |
--release | Optimized build: slower to compile, faster to play heavy scenes. |
--gpu | Draw the preview on the GPU (vello). The CPU is the default; --cpu is still accepted. |
oxframe present
Builds the project like oxframe dev and opens it as a presentation: full screen,
stopping at every slide_break and scene end. N opens the speaker notes. Takes --port, --no-open, --release and --gpu. See Presentations from scenes.
oxframe snapshot --at <seconds>
Renders single frames as PNG without ffmpeg — handy to check a moment in the animation, to put a still in a README, or for an AI agent to look at its own work.
oxframe snapshot --at 1.5 # out/snapshots/<project>-1.50.png
oxframe snapshot --at 0 --at 2 --at 4 # three frames
oxframe snapshot --at 1 --out cover.png # exactly this file
oxframe snapshot --at 0.5 --scene outro # time from the start of a scene Each written file is printed on its own line (path frame=N t=T), so scripts can pick
them up. Default size is 960×540; change it with --size 1920x1080.
oxframe render
Builds in release mode and renders a video. See Rendering video for examples.
--out <path> | Output file or folder (default out/<project>.mp4). |
--format <f> | mp4, webm, prores, png or gif; by default taken from the --out extension. |
--scene <name> | Only this scene. |
--range a..b | Only this time range, in seconds; either side can be left out (2..). |
--size WxH | Output size, e.g. 3840x2160. A GIF is 720 wide at most unless set. |
--fps <n> | Frames per second of a GIF (default 15). See GIF for a README. |
--aspect <shape> | 16:9, 9:16, 1:1, or all. all writes one file per format declared with Project::aspects. |
--gpu | Draw on the GPU (vello). The CPU (tiny-skia) is the default: faster here and byte-for-byte
deterministic. --cpu is still accepted and wins. |
--no-audio | Leave the soundtrack out. |
--jobs <n> | Render two-second segments in this many processes at once (default: the number of cores, at most 8). The file is the same for any number. |
--subtitles <file> | Also write the spoken lines as .srt or .vtt, by the extension. |
--slides <file.pdf> | Instead of a video, a PDF with one page per presentation stop (see Presentations). No ffmpeg needed. |
oxframe publish
Renders the project and uploads the video to oxframe.dev, then prints a link to a page with a player. Pasted into Discord or Slack, the link unfolds as a video; X shows its poster. Use it to show a draft to someone without sending a file.
oxframe publish --title "Launch teaser"
# https://oxframe.dev/s/86sKmiYNNe
oxframe publish out/teaser.mp4 # an MP4 you already rendered
oxframe publish --range 0..30 # the first 30 seconds of a longer video Anyone with the link can watch the video, and it is deleted after 30 days. A video can be up to 30
seconds and 16 MB; a larger render is re-encoded at 720p once. The upload sends the video, a
poster frame and the title, nothing else (see Privacy). It needs ffmpeg
(downloaded if missing, as for render) and curl, which ships with Linux,
macOS and Windows 10 and later. Flags: --title (up to 100 characters, shown on the page and in link previews), --scene, --range and --gpu, as for render.
With --json it prints url, id and seconds.
oxframe check
Compiles the project (cargo check), validates every meta.json, compares
the versions of the CLI, SDK and editor, and then looks at the picture. It writes out/check/storyboard.png (a grid of frames at markers and at equal intervals, with
the time and marker name under each cell) and out/check/report.json.
report.json names the two nodes and the source line.Each issue has a rule, a severity (error or warning), a time range, the
node name, the source file:line and a hint. The most common rules are below; Check rules lists all of them with their fixes:
out_of_frame— a node stays outside the frame (or inside the frame but outside the safe area, which is a warning).text_overlap— two text blocks cover each other.text_overflow— text is wider than itsmax_widthor its layout parent.low_contrast— text against its backdrop is below WCAG 4.5:1.too_fast— a long line flashes too briefly to read (error), or a large move is shorter than 0.15s (warning).dead_time— nothing on screen changes for several seconds and the project has no soundtrack (warning).nondeterministic— painting the same frame twice did not match. Draw from the time andctx.rng(seed), not from a counter saved in the closure.
Errors make the command exit 1; warnings do not. A project that declares Project::aspects is checked in every format; the other storyboards are storyboard-9x16.png and storyboard-1x1.png. --frames also
writes each cell at full size under out/check/frames/. The check renders only the
frames it needs, on the CPU, at a reduced size, so a 30 second scene finishes in a few seconds.
An issue on a node also gets a close-up: out/check/issues/01-out_of_frame.png and so
on, that part of the frame at full resolution with the node outlined in red (up to 24 per check).
In report.json the issue then has bounds, the node's box at the start of
the issue in scene units (as in oxframe inspect), and crop, the path of
the picture relative to out/check/. An agent opens the crop instead of hunting for
the problem on the storyboard. Most issues also carry fix, the change with the
numbers worked out: move by dx/dy, a readable color, how much wider, how
long to hold (the fix in each issue).
The report also lists motion: every node that travels, with its file:line, the stretches of time it visibly moves (moves, in seconds),
where it starts and ends, and the length of its path. Read it to check timing without watching the
video. out/check/trajectories/<scene>.png draws those paths over the scene's
last frame, numbered as in motion. A hard cut between scenes shows on the storyboard
as the last frame of one scene next to the first frame of the next.
To see what an edit changed, keep the frames from before it and compare with oxframe check --against <dir>:
oxframe check --frames --out out/before
# edit the scene
oxframe check --against out/before Each frame that changed is listed with the share of its pixels that moved, and out/check/diff/ holds the frame dimmed with the changed pixels in red. The report
gets a comparison: changed, unchanged, added and removed frames. An edit that changed
frames it should not have shows up at once. The reference frames are read with Image::decode_png.
Name a node with .name("title") so the report is readable. Without a name it is
labeled by the line that called add.
oxframe notes
Lists the open notes written in the editor under oxframe dev (--all adds the closed ones). oxframe notes done 3 --reply "…" closes one with a reply the editor shows, reopen 3 opens it again and delete 3 removes it. oxframe check reports open notes first, as review_note errors.
oxframe notes wait returns as soon as there is an open note nobody has taken and
prints it (--timeout 600 gives up after ten minutes). An agent keeps it running in
the background while you review, so a new note reaches it without a message in the chat. oxframe notes take 3 tells the editor the agent is on it; with --reply "…" it asks you a question, and Send back in the editor hands
the note back.
oxframe inspect --at <seconds>
Prints the scene tree at that time as JSON: kind, name, source location, scene bounds, opacity,
text and draw order. --scene outro measures the time from the start of that scene. --graph adds a passes array: one vector pass, then a composite for each layer
(a group opacity, a blend, a blur, a shadow or a clip). Without the flag the JSON is unchanged.
oxframe add <block>
Copies a ready-made, checked block into src/blocks/ and adds mod blocks; to src/main.rs. Each block is one call that plays itself in
and returns its group: blocks::stat_counter(view, 1280.0, "stars").await. With no
name it lists all twenty-four, each passing oxframe check. The copied file is yours
to edit; --force replaces it.
- Titles and endings:
logo-reveal,kinetic-title,call-to-action,countdown(numbers in a filling ring). - Numbers and data:
stat-counter,progress-bar,bar-chart,comparison(a yes/no table against another product),metric-row(several numbers counting up side by side). - Product and release:
feature-grid(feature cards in a row),release-notes,before-after,timeline,checklist(items ticked off),steps(numbered steps filling in),split-screen(two columns with a divider),social-post(a post whose likes count up). - Developer stories:
terminal,code-change,pull-request(a PR card that gets merged),chat-messages(a conversation in bubbles),quote-card,key-combo(a keyboard shortcut pressed key by key),search-bar(a query typed, results dropping in).
oxframe doctor
Checks what building and rendering need — Rust 1.95 or newer, a C linker, ffmpeg, and inside a project whether it is on the SDK your CLI makes — and prints the fix for each missing piece on your system. Exits 2 when something required is missing.
oxframe ffmpeg
Downloads a static ffmpeg into the oxframe cache and prints its path. oxframe render and oxframe publish do the same by themselves the first
time they need ffmpeg and find none, so you need this only to download ahead of time: in a CI
image, or before going offline. The builds are the ones the ffmpeg-static npm package
uses (Linux and macOS on x64 and arm64, Windows x64), pinned and checked by SHA-256; ffmpeg is
under the GPL. The project, the preview and video clips get the downloaded copy when no other
ffmpeg is on PATH. Set OXFRAME_NO_FFMPEG_DOWNLOAD=1 to never download.
oxframe transcribe
oxframe transcribe vo/intro.wav vo/outro.mp3 --language en Times the words of a recorded voice-over and writes vo/intro.words.json next to each
file, for voice("…").recording("vo/intro.wav"). It
runs whisper.cpp's whisper-cli on your machine, so nothing is uploaded; install it
first (brew install whisper-cpp on macOS and Linux, or build it from source) or pass --whisper <path>. --model is tiny, base (the default) or small, downloaded once into the oxframe cache and
checked by SHA-256, or the path of a ggml model. --language skips detection. Any format
ffmpeg reads works.
oxframe agents
Writes or refreshes AGENTS.md, CLAUDE.md and .claude/skills/oxframe/ — run it after upgrading oxframe. Files you edited yourself
are left alone unless you pass --force. It also adds a Claude Code hook to .claude/settings.json (keeping what is there) that shows the open notes with every prompt.
oxframe upgrade
Moves the project to the SDK version your CLI is made for: updates the oxframe pin in Cargo.toml (keeping your formatting), runs cargo update and refreshes the
agent files. If the project already uses a newer SDK, it tells you to update the CLI instead.
oxframe mcp
An MCP server on stdin and stdout, for Claude Code and other clients. Started in a project, it
serves check, notes, note_take, note_done, storyboard, render_frame, inspect, render_graph, list_components, docs_search and render. render_graph is oxframe inspect --graph without the node tree: the
render passes at one time, with the shader of each effect pass. Messages are newline-delimited
JSON-RPC; a Content-Length frame is accepted too. Nothing but the protocol is written
to stdout. --dir <path> serves that project instead of the current directory.
Setup for each client: MCP server.
Updating
curl -fsSL https://github.com/oxygenframe/oxframe-cli/releases/latest/download/install.sh | sh
# a new CLI: run the installer again
brew upgrade oxframe # or, if Homebrew installed it
cargo install oxframe-cli --force # or, if cargo did
oxframe upgrade # then in each project Projects pin the SDK version, so a release never changes an existing project on its own. Once a
day the CLI checks crates.io in the background and mentions a newer version; set OXFRAME_NO_UPDATE_CHECK=1 to turn that off (it is off in CI, when CI is set).
oxframe.toml
Project settings for the CLI. Every key is optional.
[dev]
port = 3000
open = true # open the browser on "oxframe dev"
profile = "dev" # or "release"
[render]
ffmpeg = "/opt/ffmpeg/bin/ffmpeg" # default: ffmpeg from PATH
[theme]
name = "dark" # dark, light, midnight, paper, vivid
accent = "#68abdf" # one brand color; other colors stay readable
[check]
interval = 1.0 # seconds between storyboard frames
safe_inset = 48 # px; 0 turns the safe-area warning off
min_contrast = 4.5
min_motion = 0.15
max_still = 3.0
chars_per_second = 20
min_chars = 24
cell_width = 320 Exit codes
| 0 | Success. |
| 1 | Your code does not compile, the scene fails, or oxframe check found an error. |
| 2 | Environment: no ffmpeg, port in use, cannot write a file. |
| 3 | Version mismatch between the CLI, SDK and editor. |
Add -v to any command for detailed logs.
Security
The editor server listens on 127.0.0.1 only, checks the Origin of every WebSocket
connection and requires a one-time token. The CLI runs nothing but cargo, ffmpeg and your own
project, and uploads nothing unless you run oxframe publish.