VHS turns terminal sessions into GIFs or other outputs from plain tape scripts. It suits CLI demos, integration checks, and keeping terminal visuals in sync with code.
Overview
VHS is a command-line tool that drives a virtual terminal from a tape file: a sequence of instructions such as typing text, pressing keys, waiting, and setting appearance. You author the tape in an editor, run VHS, and it renders output such as animated GIFs or other formats you configure.
Tape commands cover terminal layout, themes, fonts, typing speed, keyboard input including modifiers, sleeps, waits for on-screen patterns, and hiding or showing parts of a session. You can record live terminal use into a tape, edit it, then render again. Multiple outputs can be defined in one tape, and tapes can require certain programs to be present before running.
Installation paths include package managers, prebuilt binaries for common desktop systems, Go-based install, or running via Docker with dependencies bundled. VHS depends on ttyd and ffmpeg being available on the host when not using the container route.
Optional workflows include publishing rendered GIFs to Charm-hosted sharing, piping tapes through CI with a dedicated action, and using text or ASCII output for golden-file style regression checks. An built-in SSH server mode lets you self-host VHS so remote clients use the host’s tools while interacting as if VHS were local.
Key features
- Tape files as terminal automation scripts
- GIF and multi-format output rendering
- Live session recording into tapes
- Virtual terminal theme and sizing controls
- Wait for regex patterns on screen
- Hide and show commands during capture
- Optional GIF publish and SSH server mode
- Docker image with dependencies included
Use cases
- CLI tool demo GIFs in docs
- Integration testing terminal behavior
- Golden files from tape ASCII output
- Remote VHS via self-hosted SSH server