asciinema is a command-line tool for recording and live streaming terminal sessions. It runs inside a terminal and captures session output into lightweight asciicast (.cast) files rather than video files. Recordings can be replayed in a terminal, embedded on a web page with the asciinema player, or published to an asciinema server such as asciinema.org. It runs on GNU/Linux, macOS and FreeBSD.
asciinema/asciinema is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
Records terminal sessions to .cast files with optional keyboard input capture
Replays recordings with adjustable speed, looping, idle time limiting and step navigation
Live streams sessions locally via built-in HTTP server or remotely via a relay
Reads and writes zstd-compressed recordings
Converts asciicast v1/v2/v3 to other formats and concatenates recordings
Headless mode with configurable terminal size and exit-status propagation
Best for
Recording terminal demos and tutorials
Sharing reproducible command-line sessions
Live streaming a terminal to viewers
CI-friendly scripted recording and streaming
Pros
Lightweight asciicast format instead of heavy video files
Runs on GNU/Linux, macOS and FreeBSD
Supports local and remote live streaming
Integrates with asciinema server for uploads and hosting
Cons
Windows is currently not supported
Building from source requires the Rust toolchain (1.86 or later) with Cargo
Terminal security for developers and AI agents. Intercepts homograph URLs, pipe-to-shell, ANSI injection, obfuscated payloads, data exfiltration, and malicious AI…