asciinema is free, open-source software for recording and sharing terminal sessions as text-based recordings, embeddable anywhere on the web.
Researched and fact-checked by Bartu Cavusoglu · Updated November 30, 2026
asciinema is a free, open-source toolkit for capturing terminal sessions and sharing them with other people. Instead of producing a video file, it records what the terminal actually printed, along with the timing of each change, and stores it in a plain-text format called asciicast (files use the .cast extension). A recording can then be replayed in a terminal or in a web browser, where it looks like a live terminal session rather than a compressed screen capture.
The project is split into three parts that can be used together or separately: a command-line recorder, a browser-based player, and a server that hosts recordings and relays live streams. The public instance at asciinema.org is free to use, and the server software can also be run on your own infrastructure.
• Text-based recording. asciinema rec demo.cast starts a new shell and records everything until you exit. Because the output is stored as text with timestamps, recordings stay small and keep colors and escape sequences intact.
• Terminal and browser playback. asciinema play replays a file in your own terminal, with pause and resume. The web player renders the same file in a browser and lets viewers pause, seek, zoom and select text.
• Copyable output. Viewers can highlight and copy commands straight out of a playing recording, which makes tutorials and bug reports far more practical than with a video.
• One-command sharing. asciinema upload sends a recording to asciinema.org and returns a link. Linking the CLI to an account with asciinema auth lets you keep and manage uploads; recordings not tied to an account are removed after seven days.
• Live streaming. With CLI version 3 or newer, asciinema stream can broadcast a session in real time, either through a server (-r) or from a small local web server for viewers on the same network (-l).
• Embedding. Recordings can be embedded in documentation, blog posts and slide decks, either from asciinema.org or by self-hosting the player together with the .cast file.
• Open file format. The asciicast format is publicly documented (versions 1, 2 and 3), so other tools can read and generate recordings. A companion tool, agg, converts recordings into animated GIFs where a GIF is required.
• Self-hostable server. The server is published as a container image and can run alongside PostgreSQL; the CLI is pointed at it with the ASCIINEMA_API_URL environment variable.
asciinema suits anyone who needs to show work happening in a terminal: open-source maintainers documenting a CLI, developer-relations teams writing tutorials, educators teaching shell or DevOps skills, support engineers reproducing a problem, and engineers sharing an incident walkthrough. It is also handy for README files and documentation sites, where a lightweight embedded player loads faster than a video and keeps the text searchable and copyable.
asciinema is free. The CLI, player and server are separate open-source projects, and hosting on asciinema.org costs nothing. There are no paid plans listed on the site. Organizations that want full control over where recordings live can self-host the server at the cost of their own infrastructure and maintenance time.
General-purpose screen recorders and video tools capture any application but produce large files whose text cannot be selected. GIF-based terminal recorders are easy to drop into a page but lose quality and interactivity. asciinema sits between them: it is limited to the terminal, but within that scope it gives small files, sharp rendering at any zoom level, copyable text and an optional hosting service, all without licensing costs.
• It captures terminal output only. GUI applications, browser windows and desktop activity are out of scope, so a mixed demo still needs a conventional screen recorder.
• Playback depends on the asciinema player or a terminal. Social platforms that only accept video files need a conversion step (for example to GIF with agg).
• Self-hosting requires container and database administration; the minimal example configuration is meant for local testing, and a production deployment needs the full self-hosting guide.
• Anything typed on screen, including tokens or hostnames, ends up in the recording, so sessions should be reviewed before uploading.
Install the CLI from a package manager (Homebrew on macOS, apt on Debian and Ubuntu, pacman on Arch) or download a static binary from the project's GitHub releases. Run asciinema rec demo.cast, perform the steps you want to show, then exit the shell. Replay locally with asciinema play demo.cast, and when it looks right, run asciinema auth followed by asciinema upload demo.cast to get a shareable link or embed code.
Yes. The CLI, web player and server are free and open source, and hosting recordings on asciinema.org does not cost anything. There are no paid tiers listed on the site.
No. It records terminal output and timing as text in the asciicast (.cast) format. The recording is replayed by the asciinema player or a terminal, which keeps files small and lets viewers copy text. A GIF can be generated with the separate agg tool if needed.
Yes. Recordings hosted on asciinema.org can be embedded, or you can host the web player and the .cast file yourself. This is commonly used in documentation, READMEs, blog posts and presentations.
Yes, with CLI version 3 or newer. The stream command can relay a session through a server for remote viewers or run a local web server for viewers on the same network.
Recordings uploaded without linking the CLI to an account are automatically deleted after seven days. Running asciinema auth ties uploads to your account so they are kept and can be managed.
Yes. The server is available as a container image and uses PostgreSQL. You point the CLI at your instance with the ASCIINEMA_API_URL environment variable, and the project's self-hosting guide covers a secure production setup.
Compare productivity tools side by side →
Tool pages we refreshed lately, from across the directory.