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
Each of these is one YAML file, presented by showrun and saved with showrun render. Use the player's step markers to jump around.
The same YAML is your script, your rehearsal, your presentation and your published how-to.
List the steps in YAML, or do the demo once and let showrun capture it.
showrun record demo.yaml
Run every step unattended. Exit code 1 on failure, so it fits in CI.
showrun check demo.yaml
Hit Enter to advance. Skip, go back, jump, or drop into a live shell.
showrun play demo.yaml
A replay for your docs and a Markdown runbook, from the same file.
showrun render demo.yaml \ -o demo.cast
If you teach people a command line tool, showrun keeps the boring parts off screen and the important parts in focus.
say: explains the why, highlight: points at the line that matters.expect_output: catches a tool upgrade that changes behaviour, before your readers do.--offline for bad wifi, --fallback when the cluster misbehaves.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
No asciinema install, no tmux, no screen-recording software. One pip install.
cd, export and functions carry over between steps. Pagers are disabled so nothing hangs.
Natural speed and jitter, plus the occasional typo that gets corrected on screen. Any key finishes typing instantly.
Start a server, wait_for it to be healthy, and the process tree is cleaned up at the end.
showrun notes in a second terminal shows the current step, talking points, what's next and a timer.
Do the demo once; directives like #say, #hide and #bg shape it as you go.
asciinema v2 casts with step markers, plus Markdown and bash exports.
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."
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.
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.