
asciinema
Command-line tool for recording and live streaming terminal sessions to lightweight asciicast files
asciinema is a terminal session recorder that captures command-line activity into lightweight .cast files using the asciicast format. Unlike traditional screen recording software that produces heavyweight video files, asciinema runs inside the terminal and records text-based output that compresses to roughly 8% of the original size.
The tool supports both recording to files and real-time streaming of terminal sessions. Recordings can be replayed directly in a terminal with adjustable playback speed, looping, and step-by-step navigation. Live streaming works through a built-in HTTP server for local viewing or via remote relay servers like asciinema.org for broader sharing. Sessions can be simultaneously recorded and streamed.
Key capabilities include keyboard input capture, environment variable logging, session concatenation, and mid-session controls through customizable key bindings. The tool supports conversion between asciicast versions and export to raw terminal output or plain text. Recordings capture metadata including terminal size, theme, and command details, while headless mode enables scripted usage in CI environments.
Written in Rust, asciinema targets developers, DevOps engineers, and technical educators who need to document terminal workflows, create tutorials, or share debugging sessions. It runs on GNU/Linux, macOS, and FreeBSD, with recordings playable in terminals or embeddable in web pages through the asciinema player.
Installation
# via Cargo
cargo install --locked --git https://github.com/asciinema/asciinema
Alternatives & related tools
Hurl
Command line tool that runs and tests HTTP requests defined in plain text files, with request chaining, captures, asserts, and CI reports.
tokei
Fast code statistics tool that counts lines of code, comments, and blanks across 150+ programming languages
hexyl
Terminal hex viewer that colors bytes by category: NULL, printable ASCII, whitespace, other ASCII, and non-ASCII.
difftastic
Structural diff tool that compares files based on their syntax rather than lines
fnm
Fast Node.js version manager built in Rust with support for .node-version and .nvmrc files
add a badge to your README
Maintain asciinema? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/asciinema?utm_source=badge)<a href="https://www.trmn.sh/tools/asciinema?utm_source=badge"><img src="https://www.trmn.sh/badge/asciinema.svg" alt="Featured on trmn" height="20"></a>