# asciinema

> Terminal session recorder, streamer and player

- Type: agent or tool
- Field: System & Self-hosted
- Repository: https://github.com/asciinema/asciinema
- GitHub stars: 17986
- Licence: GPL-3.0
- Language: Rust
- Last push: 2026-11-17
- Page: https://imutechz.in/agents/asciinema

## What it is
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.

## 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

## Install
```
cargo install --locked --git https://github.com/asciinema/asciinema
```

## Usage
```
asciinema rec demo.cast
```

Tags: terminal, recording, asciicast, streaming, cli, screen-capture, rust, developer-tools
