espressostreamdocs
On this page

espressostream

espressostream records what happens in a terminal and plays it back as text, not video. A recording is a small .cast file: you can replay it in your terminal, cut or redact it, and share it through your own server, where it plays in the browser. You can select and copy text from it, search it, and jump between its chapters.

It has three parts:

  • espresso, the command-line tool. It records a shell or a single command, plays recordings back, edits them, uploads them, and streams a session live.
  • espresso-server, a self-hosted server. It stores recordings, shows them on web pages, embeds them in other sites, and relays live streams. It runs as one binary with an SQLite database and a data directory.
  • <espresso-player>, the web player that the server's pages use. It plays recordings in an xterm.js terminal.

Recordings use the asciicast format (versions 2 and 3), so files made with other asciicast-compatible tools play here, and the other way round. See File format.

A first recording

espresso rec demo.cast          # starts your shell; type `exit` (or Ctrl-D) to stop
espresso play demo.cast         # replay it in the terminal
espresso cat demo.cast          # print everything it wrote, no timing

While recording, Ctrl-] then m adds a marker (a chapter), and Ctrl-] then p pauses. Paused time is left out of the recording.

Sharing it

Ask the admin of an espresso server for an API token (or create one on the server's Settings page), then:

espresso auth login --server https://casts.example.org
espresso upload demo.cast                 # unlisted: only people with the link can see it
espresso upload demo.cast --visibility public

Before uploading, upload scans the recording for things that look like secrets and asks you to confirm. Use espresso edit --redact-default to mask them first. See the CLI guide.

Where to go next

You want to… Read
install the tools Install
learn every command CLI guide
record AI agents or CI jobs Agent recordings
run your own server Self-hosting, Configuration
understand what the server protects Security
put a recording on your site Embedding and oEmbed
script against the server HTTP API
read or write .cast files yourself File format
fix something FAQ and troubleshooting

Platform status

Linux macOS Windows
espresso rec, stream yes (tested on Alpine arm64) builds; not yet tested on a Mac not yet: recording needs ConPTY support, which is still to be written
play, cat, convert, edit, scan, upload, auth yes builds; not yet tested builds; not yet tested
--trace-exec (exec trace) yes no no
espresso-server yes (binary; the Docker image is described but has not been built yet) builds builds

espressostream is licensed under the Apache License 2.0.