Reel CLI vs VHS
Why to run your VHS tapes with reel, what reel adds, and how to switch.
If you make terminal demos with VHS, you already have what reel needs. reel run reads VHS tapes, so nearly all the ones you have run as they are. Everything on this page is then one Set, one tape command, or one flag away.
$ reel run demo.tape
demo.tape: wrote demo.gif
At a glance
| VHS | reel | |
|---|---|---|
Runs .tape files | Yes | Yes, nearly all of them unchanged |
| Needs installed | ffmpeg, ttyd, and a headless Chromium | Nothing, apart from ffmpeg for MP4 and WebM |
| A 41-second tape to GIF | 55s, 31s of CPU, and 3.1 GiB of memory | 41s, 1.1s of CPU, and 100 MiB |
| Fonts | The ones installed where it runs | JetBrains Mono, Nerd Font icons, and color emoji, built in |
| Waits | A regular expression | A regular expression or plain text, and mouse commands wait for their target |
| Mouse | No | Click, hover, drag, and wheel, drawn in the recording |
| Keys pressed, notifications | No | A key overlay and toasts |
| Zoom, highlight, redaction | No | Yes, at a moment or between two marks |
| Captions and callouts | No | Yes, with pauses for reading |
| Title cards, pauses at a mark | No | Yes |
| Progress bars, program status, scrollbars, failed commands | No | Drawn from what the program sends, some on request |
| Render again without running again | No | From a .cast, on any machine |
| Tests | Writes text output for you to compare | reel test, with waits, snapshots, and exit codes, and nothing rendered |
| Drive a program from a script or an AI agent | No | reel session |
One binary, no browser
VHS runs your shell in ttyd, takes screenshots of it in a headless Chromium, and hands those to ffmpeg. That's three programs to have on every laptop and CI runner that makes demos, and a browser to start for every tape.
reel has its own terminal emulator, a build of libghostty-vt, and its own renderer, compiled into one binary. It encodes GIF, WebP, PNG, and asciicast itself, so those need nothing else. Only MP4 and WebM need ffmpeg. There's no browser to download, start, or wait for, and no web page between your program and the recording.
See installation, and how a recording becomes files.
Speed
Both run a tape in real time, so neither can finish before the tape does. What differs is the time after it, and what it takes to get there. reel encodes each frame as it records, so its files are written by the time the tape ends. VHS captures frames from the browser as it records, and encodes them with ffmpeg once the tape is over, which for a GIF takes longer the longer the tape is.
The numbers below come from three tapes, each run five times with both tools, after a warmup. They use only VHS's own commands and set Framerate 50, VHS's default, so both capture at the same rate.
The long tape, 41.1s long, as GIF:
Time to finish
Both play the tape in real time. The colored end of each bar is the time after it.
CPU time
Peak memory
File size
The numbers, as a table
| Tape | Output | Tool | Time | After the tape | CPU | Memory | Size |
|---|---|---|---|---|---|---|---|
| Short, 3.5s | GIF | reel | 3.5s ± <0.01s | +0.06s | 0.14s | 83 MiB, 2 processes | 10 KiB |
| Short, 3.5s | GIF | VHS | 5.0s ± 0.02s | +1.6s | 2.9s | 430 MiB, 12 processes | 18 KiB |
| Medium, 19.4s | GIF | reel | 19.5s ± <0.01s | +0.08s | 0.60s | 92 MiB, 3 processes | 167 KiB |
| Medium, 19.4s | GIF | VHS | 26.5s ± 0.02s | +7.1s | 15.4s | 1.6 GiB, 13 processes | 333 KiB |
| Long, 41.1s | GIF | reel | 41.2s ± <0.01s | +0.09s | 1.1s | 100 MiB, 3 processes | 370 KiB |
| Long, 41.1s | GIF | VHS | 55.3s ± 0.05s | +14.2s | 31.5s | 3.1 GiB, 13 processes | 758 KiB |
CPU is user and system time, of the command and the processes it waited for. Memory is from one more run of each, as the peak of the PSS summed over the whole process tree: up to 13 processes for VHS, and up to 4 for reel. MP4 memory is mostly ffmpeg's, for both.
These ran on Linux 7.0, on an AMD Ryzen AI Max+ 395 with 32 threads, with VHS 0.12.1, ttyd 1.7.7, Chromium 158, reel v0.0.0-alpha.19, ffmpeg 9.0.2, and hyperfine 2.0.0, in December 2026. To run them on your machine, on Linux, with vhs, ttyd, reel, ffmpeg, hyperfine, and Python 3 installed, from a clone of the repository:
task docs:benchThe script prints each of these numbers, in one table.
Fonts and icons with nothing to install
A browser draws with the fonts installed on the machine, so a VHS recording changes with whoever runs it, and an icon from a Nerd Font is a box unless that machine has a patched font installed.
reel embeds JetBrains Mono, the Nerd Font symbols, and a color emoji set. Icons from a prompt like Starship, or from a file manager like yazi, draw with the default font, and a recording looks the same on your laptop and in CI. --font uses any font you have installed, and reel fonts lists them. See Fonts.
More you can say in a tape
reel adds commands and settings to the tape language. VHS can't read them, but reel still reads the VHS ones.
Wait for what you mean
Wait "Saved" waits for that text, with no regular expression to escape, and Wait+Screen "Saved" looks for it anywhere on the screen. Mouse commands wait for the text they point at, so they don't need a Wait of their own. See Waiting.
Type "teashop" Enter
Wait+Screen "Sencha"
Down Enter
Wait+Screen@30s "is ready"Use the mouse
Click, Hover, Drag, and Wheel point at a cell or at text on the screen, and Set MouseOverlay true draws the pointer and its clicks, so it doesn't look like the program changes by itself. See Mouse.

Show what was pressed
Set KeyOverlay true shows each key as it's pressed, combinations included, so someone watching can follow along. Set Toasts true shows the notifications your program sends, and its clipboard writes. See Keys and Toasts.

Point at what matters
Highlight dims everything but part of the screen, and Zoom eases in on it. Caption puts a line of text at the top or bottom, and Callout puts a box next to cells of the screen, with a caret pointing at them. Each takes a region: rows, a rectangle, some text, or a regular expression.
Mark "brew:start"
Zoom "cells=1,10,38,14;between=brew:start,brew:done"
Callout "text=Oolong;spotlight;pause=2s" "Press enter to brew it"
Enter
Wait+Screen "is ready"
Mark "brew:done"

Pause on purpose
In VHS, a pause is a Sleep in the tape, decided when you record. reel can also pause the playback when it renders, with a badge, at a mark or at the end. A caption or callout can pause for as long as it takes to read, with pause=auto, and Set CaptionPause auto does that for every caption. Title cards go before and after. See Pauses, Cards, and Captions.
reel run demo.tape --pause-at brew:start --hold-last 2s --intro 1s --intro-line "The Tea Shop"Hide secrets
Redact "env=GITHUB_TOKEN" blurs, blocks, or replaces a token wherever it shows, and --redact-regexp hides anything that matches a pattern. See Secrets.
Draws what your terminal draws
Modern programs tell their terminal more than what to show, and reel draws that too:
- Progress bars, from OSC 9;4, which a Bubble Tea program can send.
- Program status, from OSC 7501, as an icon, title, and message in the title bar.
- A scrollbar, with a tick for each command, and a badge on the row of each command that exited with an error, from OSC 133 and its exit codes.
- Hyperlinks underlined, from OSC 8, and a flash for the bell.
- Kitty graphics.
Progress bars, program status, and Kitty graphics are on by default. The rest are a flag each, --scrollbar, --prompt-marks, --link-underline, and --bell, or Set Scrollbar true and the like in a tape.


See Terminal indicators, and every sequence reel tracks.
Record once, render any time
VHS writes the finished files. To change the window, the frame rate, or the format, you run the tape again, on a machine with your program, its build tools, and whatever it talks to.
reel can keep the recording separate from how it looks. A tape's .cast output is an asciicast file, which asciinema and its player read. reel stores more in it: marks, captions, mouse input, and effects. reel export renders it again later, as anything, with any look or effect:
# Where your program and its tools are:
reel run demo.tape -o demo.cast
# Anywhere, later, such as the job that builds your docs:
reel export demo.cast -o demo.webp -o demo.mp4 --chrome --keys --margin 64 --backdrop "135deg #674eff #ff6b9d" --shadow "0 18 40"A .cast is small, so it can be checked in, and the docs build doesn't need your development tools. It holds everything the program drew, so a tape that uses Hide or Redact writes it in a separate run. You can also cut it between marks, take a still at a mark, play it in your terminal, or step through every event in the inspector.
Tapes as tests
VHS can write the screen as text, to compare with a file you keep, but it still records the whole tape through the browser to do it.
reel test runs tapes and renders nothing, so it's fast. A Wait that times out or an Assert that fails fails the tape, Snapshot NAME compares the screen with a golden file, and --update writes them. The exit code is 3 when a tape fails, so it works in CI as is, and --artifacts writes a .cast and a GIF of each failure, to open in the inspector.
reel test tests/ --artifacts out/The same tape can be a test in CI and a demo in your README.
Beyond tapes
reel recrecords you using a program, into a.castto render later. VHS'srecordwrites a tape of what you typed.reel sessionruns a program in the background and drives it one command at a time, so a shell script or an AI agent can use any TUI, wait for what it expects, and save the recording.reel attachrenders ascript(1)recording.-orepeats, so one run writes a GIF, an MP4, and stills at each mark, with options such as a size limit for the GIF, and up to 240 frames a second for video.- Tapes you didn't write can be run with commands denied, and held to limits on time and size.
- For Go programs, the same recordings, formats, and effects are in the reel library and in steep, a test harness that records failures.
Switching
Run a tape you have:
reel run demo.tapeWhat's not supported lists the few VHS features reel doesn't run, and reel warns about those it treats differently.
Add what VHS couldn't do:
Set KeyOverlay true
Set MouseOverlay true
Output demo.webp
Output demo.castThe quickstart goes further, and Tapes has every command and setting.
Last updated on