@vosjs/cli
The vos binary. Render vos configs to video and stills, record the real product from a scripted browser flow, plan zooms and pacing from the cursor track, cut as data, deliver a release's video cuts per channel spec, and sync with vos.so. One package, every verb, MIT.

Part of vos, the open programmatic video engine behind vos.so. Designed to be driven by coding agents (Claude Code, Codex, Cursor) as well as by hand: logs on stderr, results on stdout, --json everywhere, and every editing decision in a JSON file.
npm i -D @vosjs/cli # into the repo; npx vos … from there (or npm i -g for a shell)
npx vos setup --plan # what setup would write, and nothing written
npx vos setup # the skills into your agent, a browser, one rules block, then doctor
npx vos render animation.json out.webm
Deterministic: the preview is the render, and every edit is a data patch to doc.json, never a re-record. Rendering is local and free at every resolution up to 4K, no watermark. The workflow skills for agents ship inside this package (product-video records and cuts one video, vos-cut cuts an existing recording, launch-kit ships the media with a release), and vos setup copies them into your agent's directories. A coding agent gets the whole procedure from the package too: npx vos guide prints the steps from a clean machine to a recording open in the studio, and npx vos guide host the steps that put a finished video on vos.so.
Until 0.9 the take pipeline and the vos.so verbs shipped separately as @vosso/vos-plugin, and before that as @vosso/cli; those names are deprecated on npm and forward here.
Contents
- Requirements
- Engine verbs
- The take pipeline
- The take directory
- actions.json
- doc.json
- Overrides on render and frames
- Delivering a release
- The vos.so loop
- CI
- For scripts and agents
- Programmatic use
Requirements
Node 18 or newer and a Chromium-family browser. A system Chrome is used when present; otherwise npx playwright install chromium once, or set VOS_BROWSER_PATH. mp4 output needs Chrome (Chromium ships no AVC encoder). Recording a desktop app (vos record --app) is macOS 14 or later, and needs no browser. Render pages load three and mediabunny from a CDN, so rendering needs network access.
vos setup [--agent claude,cursor,codex,copilot|all] [--global] [--no-skills] [--skills-from-catalog] [--no-rules] [--no-browser] [--url <dev server>]
vos setup --plan [the same flags] # what setup would do, and nothing done
vos setup --remove [--plan] [--agent …] [--global] [--no-skills] [--no-rules] # undo it
vos doctor [--url <dev server>] # what is ready, in words; exit 3 when no browser
vos guide [host] # the steps an agent follows, printed from this package
vos whoami # the account in use, its key's name, and every other account stored; never a key
vos switch [<handle>] # use another stored account (with two stored, the other one)
vos logout [<handle>] [--all] # forget the account in use, a named one, or every stored credential
vos feedback "<what happened>" [--kind problem|idea] [--dry-run] # report a problem; no credential is sent
vos setup detects the agents present by their directories (.claude/, .cursor/, .codex/ or .agents/, .github/copilot; the home forms under --global), installs the skills into them from the copy of the catalog this package ships (skills/, the catalog at the tag this release was cut from; --skills-from-catalog fetches that same tag through skills.sh instead, with the bundled copy as the fallback when it cannot be reached), finds a browser in the recorder's own order or installs Chromium, writes one block between <!-- vos:begin --> and <!-- vos:end --> markers into AGENTS.md (or CLAUDE.md when only that exists), so a second run replaces its own text and never yours, and ends with doctor. A skill that is already there as a symbolic link (the layout npx skills add writes) is left as it is: nothing is copied over it or through it, and the run says so under left as it was: and in skills.kept; the same goes for a file standing where a skill would go, and for a skills directory that is itself reached through a link. The verbs in this block except guide and feedback print NDJSON whenever stdout is not a TTY, and every done event of theirs carries next_step.
vos setup --plan: see it before it happens. The same flags, and nothing done: no file written, no directory made, nothing installed, nothing run, no network. It lists the agents found, each skills directory with the skills that would be copied, which of them are already there (they would be overwritten) and which would be left as they are (a link, or a file in the way, with the reason), the browser it found or the exact command that would install one (npx playwright install chromium), and the rules file with whether the block would be added, replaced or is already current, followed by the block itself. Exit 0 with or without a browser. The done event is { plan: { agents, global, skills: { via, version, command, targets: [{ dir, names, existing, kept: [{ name, reason }] }] }, browser: { kind, path, install }, rules: { file, action, block } }, changed: [] }; rules is null under --no-rules, and action is write, replace or current.
The receipt. vos setup ends by naming every path it created or changed, before the doctor's lines: each skill directory (new or replaced), the rules file, and the browser when it had to install one. The done event carries them as changed (absolute paths, sorted), with undo, the line that takes them back out. A second run over the same files says it changed nothing. It writes no receipt file into your repository: the undo reads what is on disk.
changed:
.claude/skills/product-video (new)
.claude/skills/vos-cut (new)
AGENTS.md (the vos block added)
undo: npx vos setup --remove
vos setup --remove: take it back out. For the same agents the flags select, it removes each skill this package ships from the skills directories, and the marked block from AGENTS.md and CLAUDE.md (both are checked, since an older run may have written either). It removes a skill only when the directory has that skill's name and holds a SKILL.md whose frontmatter names that same skill; anything else under one of those names is kept and listed with the reason. A skill that is a symbolic link is left as it is and listed under kept: setup never writes a link, so the undo never removes one, and a skills directory reached through a link is left alone. A skills directory left empty goes too (one that still holds a link is not empty); the agent's own directory never does. In a rules file only the block goes, with the blank line its insertion added, so the file is byte for byte what it was; a file that held nothing but the block is deleted. It never removes a browser, this package, a credential or a take: it prints the lines only you can run (npx vos logout when a credential is stored, npx vos logout --all when several are, then npm rm @vosjs/cli). --remove --plan shows what would go and removes nothing, and a second --remove finds nothing to do and exits 0. The done event is { removed: [path], kept: [{ path, reason }], manual: [line] }, with plan: { remove: [path] } beside an empty removed under --plan.
vos guide: the procedure, from the package. vos guide prints the steps that take a coding agent from a clean machine to a recording of the product open in the studio; vos guide host prints the steps that put a video someone already made on vos.so. Plain markdown on stdout, no network, exit 0; any other argument is a usage error. An agent that reads its steps here reads them from the package it installed, at the version it installed. Both texts are exported as functions, agentGuide() and hostGuide().
vos feedback "<what happened>": a report, and only what you can read. It posts { "kind": "problem", "message": "<your message>", "surface": "cli" } to <origin>/api/product-feedback and nothing else: no path, no file, no machine name. It sends no credential, even when one is stored or VOS_API_KEY is set. Before it sends, it prints the address and the whole body; --dry-run prints them and sends nothing. --kind idea files an idea instead of a problem. A message holds 8000 characters. When vos.so does not take the report it prints the reason and exits 1; --json ends with { sent, url, body, status }.
Engine verbs
vos render <config.json|url|take> [out] # config → video; the name picks mp4/webm; a program document's sound is mixed in
vos still <config.json|url> [out.webp] # config → frames: --times 0,1.5,50% in one browser; .png/.jpg re-encoded
vos info <config.json|url|take> # inspect a config; a take: its steps and its cut in output seconds
vos check <config.json|url> # migrate → schema → syntax → compile → determinism, dialect and declared-file lints, all local
vos preview <config.json|url> [--port N] # serve a local playback page
vos versions # installed @vosjs/* versions
| Verb |
Flags and defaults |
render |
--width --height (the program's size, else 1920x1080) --fps 30 --duration <config.duration> --format webm\|mp4 (webm); out defaults to <name>.<format> |
still |
--time 0 --width --height (the program's size, else 1280x720); the output is always WebP (a .png name is refused) |
check |
Exits 1 on any error. Runs the same compiler a hosted push runs, so a clean check is a config that compiles anywhere |
A program that declares size: { width, height } renders at that size with no flags, at any shape (1080x1920, 1080x1350, 2560x1080). One of --width/--height keeps its aspect and derives the other edge, rounded even; both set the frame outright, with a note when that changes the declared aspect (a program lays itself out in the frame it gets, so that is a different picture, not a scaled one). vos info prints the size and vos preview letterboxes to it.
Configs can be local files or URLs; a platform { "config": … } envelope is unwrapped. Rendering compiles the config with @vosjs/core, wraps it in the engine's capture template, and encodes frame by frame (WebCodecs) in headless Chromium. Same input, same video: locally, in CI, or on a server. Every engine verb takes a directory too: a take (its doc.json is a recording document) renders through the take pipeline, and a program directory (config.json, composed with the program document beside it when there is one) renders as what the studio plays. A deterministic sniff of the document, never a flag.
An output path may name folders that do not exist yet (vos render take out/cuts/demo.mp4): every verb that writes a file you name makes them, and makes them BEFORE the work, so a folder that cannot be made (a file already at that name, no permission) is said in words before a render starts and nothing is written.
The take pipeline
A take is a directory: the recording of a scripted browser flow, its exact cursor track, and doc.json, the editable cut.
vos create --actions actions.json out.webm --strict # one shot: record, auto-plan, render
vos look https://your-app.example # SEE the page first: look.png + every control with a stable selector
vos record --actions actions.json --out take --dry-run # rehearse the script first: which selectors resolve, their rects, in seconds
vos record --actions actions.json --out take --strict # drive the page, record it with an exact cursor track, plan the cut
vos digest take # SEE the recording before cutting: moments, frames, crops (an agent's eyes)
# … edit take/doc.json (zoom spans, trims, speed, overlays) by hand or by agent …
vos frames take --at-zooms --at-moments # PNG stills: every zoom apex on every media (each checked against its zoom-off twin), every moment
vos render take check.webm --range 4..8 --draft # spot-check an edit in seconds (half res, low bitrate)
vos render take out.webm # the polished render
vos check-video take/out.webm # the file itself: facts, scene changes, loudness, first and last frames
vos frames take --frame 2.5 --size 1280x800 # one frame at an exact size, to check a moment
vos open take # hand the take to the studio; a human drags every span
When the product ships again, re-record the same script and keep the cut:
vos record --actions actions.json --out take --strict --reuse # footage replaced, the cut re-timed onto it; what could not follow is named
Every manual span follows the step it was made on (the gesture whose window held it, or the one just before it), keeping its offset exactly; a span whose step is missing or skipped in the new recording is dropped and named with what it framed, never re-timed to a place with nothing under it. A layer pinned to a step (pin: { step }) plays when that step plays in the new cut; a layer that is not pinned keeps its output second, and when the step under it moved the report names it with the step's new time and the pin to write. A take fetched from vos.so can be recorded again: the script rides the document and vos fetch --media writes it back as actions.json.
Already have a video? A Cursor cloud agent's PR video, a Playwright run's video.webm, a Loom export: vos ingest makes it a take. The file becomes recording.<container> (stream-copied into a seekable container, or copied as it is), meta.json comes from the file's own dimensions and duration, and a trace recorded beside it becomes cursor.json, so the planner has clicks to zoom on.
vos ingest video.webm --cursor trace.zip --out take # a Playwright trace: clicks with points and times, from the page's creation
vos ingest demo.mp4 --cursor steps.jsonl --out take # stamped records: {"ts":…,"command":["click","@e1"],"point":{"x":…,"y":…}} per line
vos ingest demo.mp4 --cursor cursor.csv --out take # t,x,y,type (ms, viewport px; move|down|up|click|scroll)
vos ingest demo.mp4 --out take # no trace: no cursor track, nothing planned, and the done event says so
vos ingest reel.mp4 --out take # a render from HyperFrames or Remotion, a film: opens BARE
vos ingest loom.mp4 --as take --out take # a screen demo with no trace: the card, its ground
A file with no trace is finished footage by default. Nothing but a cursor trace says a file is a screen recording, so without one the take opens bare: no card, no browser bar, no drawn cursor or webcam, exported at the footage's own frame rate. --as take gives a screen demo the card; --as footage says the opposite outright.