Back to services

asciinema

Web app for hosting asciicasts.

View alternatives to asciinema
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

asciinema (pronounced as-kee-nuh-muh) is a free, open source solution for recording and sharing terminal sessions. Instead of using screen recording software or producing video files, it records everything the terminal outputs as text in chronological order and saves it in the asciicast format (.cast files). As a result, recordings are very small and always play back crisp and clear. Viewers can also pause the player and select and copy text straight from the terminal.

Components

  • asciinema CLI: the command-line recording tool, which handles recording, local playback, uploading and live streaming.
  • asciinema player: a web player built specifically for terminal sessions, which can be embedded in any website.
  • asciinema server: the server that hosts recordings, and which you can self-host. The official asciinema.org is a public instance that hosts terminal recordings for free.
  • agg: a tool that converts recordings into animated GIFs.

Key Features

  • Record right in the terminal: run asciinema rec demo.cast to start recording, and press ctrl+d or type exit to stop.
  • Local playback: run asciinema play demo.cast, and press the space bar to pause or resume.
  • Upload and share: run asciinema upload demo.cast to upload to asciinema.org, and you'll get a private link. Run asciinema auth to link your uploads to your account, after which you can set titles and change the terminal color theme. Recordings not linked to an account are automatically deleted after 7 days.
  • Terminal live streaming (requires CLI 3.0 or later):
    • asciinema stream -r: remote streaming, relayed through asciinema.org or a self-hosted server.
    • asciinema stream -l: local streaming, which starts a web server on your machine that is accessible only from that machine or your local network, so no data is sent anywhere else.
  • Embed in web pages: a single <script> snippet is enough to embed the player in a blog, project documentation or conference slides. You can also deploy the player on its own, without relying on asciinema.org.
  • Copy text: during playback you can pause and copy terminal content, because what is recorded is text to begin with.
  • Generate GIFs: on sites that don't allow <script>, you can use agg to convert a recording to a GIF and embed that instead.
  • Community content: on asciinema.org you can browse featured recordings, popular recordings and live streams currently in progress.

Who It's For

  • Open source maintainers who need to demonstrate command-line usage in a README or documentation
  • Authors who write technical blogs or tutorials
  • Speakers who demonstrate terminal work live in conference talks
  • Users who want to live stream their coding, or visually show server monitoring with tools like htop

Installation

The CLI can be installed in the following ways:

  • Download a prebuilt static binary from the GitHub Releases page
  • Debian/Ubuntu: sudo apt install asciinema
  • Arch/Manjaro: sudo pacman -S asciinema
  • macOS: brew install asciinema
  • pipx: pipx install asciinema (installs version 2.4 only)

Self-Hosted Server

asciinema server is distributed as an OCI container image at ghcr.io/asciinema/asciinema-server, and requires a PostgreSQL database. You can deploy it with Docker Compose, and it listens on port 4000 by default. Once deployed, set the ASCIINEMA_API_URL environment variable to point the CLI at your own server, and you can upload to it. There are also official NixOS deployment instructions, plus documentation on configuration, upgrading, administration and customization. Note: the minimal example configuration provided officially is only suitable for local testing; for production deployments, refer to the full self-hosting guide.

Core Strengths

  • Text format, so files are tiny and display crisply at any resolution
  • Content can be copied, which is ideal for tutorials and documentation
  • One toolset covers recording, sharing, embedding, live streaming and GIF conversion
  • Fully open source and self-hostable, so you stay in control of your recording data
  • Hosting on asciinema.org is optional, and not using it doesn't affect usability