asciinema is a command-line recorder for terminal sessions: instead of capturing a screen to a video file, it records the terminal output itself into a compact .cast file that can be replayed inside a terminal, embedded in a web page, or streamed live to other people. Recordings use the open asciicast format — timed terminal output stored as plain text — which the project says compresses to roughly 8% of the original size on average and stays sharp at any window size, because nothing is ever rasterised into pixels.
asciinema rec demo.cast records a shell session to an asciicast file, with optional keyboard-input capture and configurable environment-variable capturesession mode that records to a file while streaming locally and remotely at the same timeconvert from v1/v2/v3 to v2/v3, to raw terminal output or to plain textconcat merges several recordings into one file, adjusting timing automaticallyThe everyday workflow is three commands: asciinema rec demo.cast records until you type exit or press Ctrl-D, asciinema play demo.cast replays the recording in your own terminal, and asciinema upload demo.cast sends it to an asciinema server and prints a URL that renders it in the browser player. For live sharing, asciinema stream -l serves the session over a local HTTP server and asciinema stream -r relays it through a server for remote viewers. Uploads and relays need an account on an instance — asciinema.org works, and the server itself is a separate open source application you can self-host in Docker.
The current 3.x line is written in Rust and is packaged by several distributions, Debian and Ubuntu among them, where the package is simply asciinema. It also builds from source with cargo install --locked --git https://github.com/asciinema/asciinema using Rust 1.82 or later, and there are prebuilt release binaries. GNU/Linux, macOS and FreeBSD are supported; Windows is not, and the project points Windows users at PowerSession instead. The older 2.x generation was written in Python and is still available from the python branch.
Anyone who has to explain a command-line workflow: people writing tutorials and documentation, maintainers recording a demo for a README, support staff asking a user to show what their terminal actually printed, and CI pipelines that want a reviewable log of an interactive step. A text recording is small, searchable and copy-pasteable, which is usually more useful than a screencast of the same session.
Browse more free and open source tools in the directory, or submit a tool we have missed.