for talks, team demos and CLI how-tos

Terminal demos you drive
with Enter

Write or record a demo once. showrun types each command like a person would, runs it in a real shell and streams the output. Rehearse it in CI, present it live, and publish it as a replay and a runbook.

$pip install showrun-cli

Sample replays

Each of these is one YAML file, presented by showrun and saved with showrun render. Use the player's step markers to jump around.

One file, four jobs

The same YAML is your script, your rehearsal, your presentation and your published how-to.

01

Write or record

List the steps in YAML, or do the demo once and let showrun capture it.

showrun record demo.yaml
02

Rehearse

Run every step unattended. Exit code 1 on failure, so it fits in CI.

showrun check demo.yaml
03

Present

Hit Enter to advance. Skip, go back, jump, or drop into a live shell.

showrun play demo.yaml
04

Publish

A replay for your docs and a Markdown runbook, from the same file.

showrun render demo.yaml \
  -o demo.cast

Built for CLI how-tos

If you teach people a command line tool, showrun keeps the boring parts off screen and the important parts in focus.

  • Hidden setup. Build the sandbox (a temp git repo, sample data, a local server) before step one, silently.
  • Narration and highlights. say: explains the why, highlight: points at the line that matters.
  • Assertions. expect_output: catches a tool upgrade that changes behaviour, before your readers do.
  • Safety nets. Canned output for slow steps, --offline for bad wifi, --fallback when the cluster misbehaves.
  • Three outputs. A live demo, an asciinema replay and a Markdown runbook.
title: "How-to: undo your last git commit"
setup:                      # silent
  - git init -q demo && cd demo && …
steps:
  - title: Undo the last commit
    say: Look at the history first.
    run: git log --oneline
    highlight: ["Oops.*"]
  - say: --soft keeps your changes staged.
    run: git reset --soft HEAD~1
    notes: Contrast with --hard.   # presenter only
  - run: git status --short
    expect_output: secrets.env
  - run: kubectl rollout status deploy/web
    execute: false             # canned output
    output: deployment "web" successfully rolled out

Everything a live demo needs

No asciinema install, no tmux, no screen-recording software. One pip install.

One real shell

cd, export and functions carry over between steps. Pagers are disabled so nothing hangs.

Human typing

Natural speed and jitter, plus the occasional typo that gets corrected on screen. Any key finishes typing instantly.

Background services

Start a server, wait_for it to be healthy, and the process tree is cleaned up at the end.

Presenter notes

showrun notes in a second terminal shows the current step, talking points, what's next and a timer.

Record mode

Do the demo once; directives like #say, #hide and #bg shape it as you go.

Replays and runbooks

asciinema v2 casts with step markers, plus Markdown and bash exports.

Use it from your AI agent

showrun ships a Model Context Protocol server, so Claude, Cursor and other agents can write, rehearse and render demos for you. Try: "Write a showrun demo that teaches jq basics, check it until it passes, then render it."

Local server full: write, check, render

pip install 'showrun-cli[mcp]'
claude mcp add showrun -- showrun mcp

Runs on your machine, so it can rehearse demos and render casts. Those tools run shell commands, so keep your client's approval prompts on.

Hosted server read-only: format, validate, export

claude mcp add --transport http showrun https://…/mcp

Nothing to install. It helps an agent learn the format and check a draft, and never runs commands. The guide is also served as Markdown.

showrun is inspired by demo-magic by Paxton Hare, the bash script that types your commands while you talk. I've used demo-magic for my own talks and demos for more than a decade. showrun is my take on the same idea, with rehearsal, recording, offline playback and presenter notes built in. Thank you, Paxton.

Anand Rao, author of showrun