Terminal Session Recording

asciinema – record, replay and stream terminal sessions

asciinema is a command-line tool for recording, replaying and live streaming terminal sessions. Instead of capturing a sequence of screen images, it records terminal output in the lightweight asciicast format. This keeps recordings compact while preserving the text-based nature of the terminal.

Recordings can be played directly in a terminal, embedded in web pages using the asciinema player, or published to an asciinema server. The software also supports live streaming, including serving a stream locally with a built-in HTTP server or sending it through a remote asciinema server. The current implementation is written in Rust, replacing the earlier Python-based generation covered by our previous article.

This is free and open source software.

Key Features

  • Records terminal sessions to asciicast files with optional keyboard input and environment variable capture.
  • Replays recordings with adjustable speed, looping, idle-time limiting and step-by-step navigation.
  • Supports markers which can be added while recording and used during playback.
  • Pause and resume recording without ending the terminal session.
  • Live stream sessions locally through a built-in HTTP server or via a remote asciinema server.
  • Record to a file while simultaneously streaming the same session.
  • Reads and writes compressed asciicast recordings using zstd compression.
  • Converts between asciicast formats and can export terminal output as raw data or plain text.
  • Concatenates multiple recordings while automatically adjusting their timing.
  • Captures metadata including terminal dimensions, terminal theme, command and recording title.
  • Can play recordings from local files, standard input and HTTP or HTTPS URLs.
  • Headless operation and exit-status propagation make it suitable for scripted and automated workflows.
  • Cross-platform support – runs on Linux, macOS and FreeBSD.

Website: asciinema.org
Support:
Developer: Marcin Kulik and contributors
License: GNU General Public License v3.0

asciinema is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Console Screencasting Tools / Terminal Session Recording
TerminalizerGenerates animated GIF images of your terminal
VHSWwrite terminal GIFs as code for integration testing and demoing
ttydShares your terminal over the web
asciinemaRecord and share terminal sessions
t-recGenerates animated GIF images for the web
aggasciinema gif generator
ffscreencastShell wrapper for ffmpeg that allows fool-proof screen recording
IPBTHigh-tec terminal player
recRecords terminal sessions and turns them into reusable workflows
TermSVGRecord terminal sessions and export them as animated SVG files
termrecSet of tools for recording and replaying tty sessions
screencastInterface to record a X11 desktop
scriptThe granddaddy of terminal recorders

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted