Back to blog

Record terminal sessions, replay them, and export an MP4

November 17, 2026 8 min read Kubexer Team
Session RecordingSSHAuditVideo Export

Three situations come up again and again. A command failed an hour ago and the scrollback is gone. A colleague asks exactly what you ran on a production host. Or you want to show a bug in a ticket and a paragraph of pasted output loses everything that made it a bug: the order, the timing, the pause before it hung.

How people do it today

The usual tools each cover part of it. script writes raw output to a file, awkward to read back. asciinema records timing and is excellent, but you have to remember to start it on the machine in question. Server-side session logging in a bastion records centrally, which suits audit but is not something an individual can switch on for themselves. And a screen capture gets you a video at the cost of recording everything else on your screen too.

Recording in Kubexer Terminal

Recording is done by the app, on the client, for the pane you are looking at. Start it with Cmd+Shift+R (Ctrl+Shift+R on Windows and Linux), the Record button in the terminal header, or the right-click menu on the terminal or its tab. The button turns red and reads Recording, and the tab shows a slowly pulsing red dot.

You can also make it automatic: turn on Record sessions in a host's settings so every terminal opened to that host is recorded, or Record local shells in Settings so every new local terminal is. A recording continues across a reconnect, so a dropped and restored session stays one recording.

What is captured

  • Everything the terminal prints, with its timing, plus every resize.
  • Each command you submit, with its exit code, which gives the replay a command list. That needs bash or zsh with Kubexer's shell integration; in a shell without it, or inside a full-screen app, you get the output without a command list.
  • A manual start also captures a snapshot of the screen as it was, so the replay opens on the prompt you began from.

What is not, and the catch

Your keystrokes are not recorded, so a password typed at a prompt with echo off does not appear. But everything printed is recorded: a command that echoes a secret, a cat .env, a token printed by a CLI — all of it is in the recording. This is the part to be deliberate about. Do not record sessions where you print secrets, or delete those recordings afterwards.

Where recordings live

Recordings stay on your computer and are never synced. Each one is compressed and encrypted with its own random key (AES-256-GCM), and that key is protected by your operating system's secure storage. Deleting a recording deletes its key, so even leftover data cannot be read afterwards. The caveat is the flip side: a recording whose key no longer unwraps — a reset keychain, or a profile copied to another machine — is unreadable.

If the app stops mid-recording, say after a crash or a forced quit, the recording is kept and marked Interrupted, and everything saved up to that point plays back.

Retention is set under Settings → Terminal → Session recording: recordings are kept for 30 days by default (1 to 3650), with a 2048 MB total cap by default (64 to 102400 MB). A cleanup pass runs at startup and hourly, deleting expired recordings and then the oldest finished ones until the total fits. Recordings still in progress are never removed by cleanup.

Replay

Session Recordings in the top bar lists each recording with its host or shell, length, size, number of commands and number of failures. You can search by host name or by any command that was run in it, and filter by vault, host and date.

The player is a read-only terminal in your theme, at the size the session was recorded. It has play and pause, a 5-second skip either way, speeds from 0.5x to 8x, and Skip idle, which shortens every pause to at most a second. Above the scrubber each command is a tick, and failed commands are red, so finding the one that broke is a matter of clicking the red mark. A command list sits beside the player; click any entry to jump there. A recording still in progress is marked live, and the player can follow it as new output arrives.

Exporting

Two exports are available from the list or the player:

  • .cast, an asciinema file: tiny and text-based, playable with asciinema play or the web player.
  • Video (MP4): rendered on your computer, faster than real time, with nothing uploaded. You choose resolution (recording size, 720p or 1080p; 1080p by default), 30 or 60 frames per second, speed (1x, 2x or 4x), skip-idle, and a range — the whole recording or part of it, by times or by starting and ending at particular commands.

The format is H.264 MP4 where the computer can encode it, with a fallback to WebM (VP9 or VP8) where it cannot. WebM plays in browsers, VLC and most chat apps, but QuickTime will need a converter. Export depends on WebCodecs support in the app; if no encoder accepts the chosen size and frame rate the dialog says so and a lower resolution or 30 fps usually helps. Keep the window open while it renders, since rendering pauses when it is minimised.

Every exported video carries a Kubexer Terminal watermark in a strip above the terminal area (never over it), and the same note in the file's metadata. The dialog previews it.

Limits worth knowing

  • Recording covers terminal sessions. RDP and VNC tabs cannot be recorded.
  • The command list depends on shell integration, as above.
  • It is a personal, local record, not a central audit log: recordings are not synced and are not collected anywhere.

Session recording is a Pro feature in Kubexer Terminal, available for macOS, Windows, and Linux.