asciinema captures shell output into lightweight asciicast files instead of screen video. Recordings replay in a terminal or web player and can upload to an asciinema server.
Overview
asciinema runs inside a terminal and records session output with timing metadata, optional keyboard input, and configurable environment capture. The asciicast format stays compact compared with conventional screen recordings and supports zstd compression for smaller files.
Local playback can adjust speed, loop, limit idle gaps, step frame by frame, pause on markers, and resize the terminal to match the recording. Convert commands can emit raw terminal output, plain text, or newer asciicast versions, and multiple casts can be concatenated with adjusted timing.
Live mode streams sessions to viewers through a built-in HTTP server for LAN viewing or through an asciinema server relay for remote audiences. Combined mode can write a file while streaming simultaneously. Mid-session key bindings pause capture or drop markers without stopping the shell.
Configuration files set defaults for recording commands, capture options, playback behavior, and notifications. Headless sizing and exit-status propagation help scripted and CI recordings. The tool integrates with public or self-hosted asciinema servers for uploads, visibility settings, and synchronized audio URLs.
Key features
- asciicast terminal recordings
- In-terminal playback controls
- Remote and local live streaming
- zstd-compressed cast files
- Cast format conversion tools
- Mid-session pause and markers
- asciinema server upload integration
- Headless CI-friendly recording
Use cases
- Sharing reproducible terminal demos
- Teaching and documentation walkthroughs
- Live coding or ops streams
- Lightweight session archives