Quick reference.

Everything you need to use screencli, at a glance.

Install

$ npx screencli login
$ npx screencli record https://your-app.com -p "demo"

No install needed. npx downloads and runs screencli automatically, always up to date. Or install globally with npm i -g screencli.

Record

$ npx screencli record <url> -p "<prompt>" [options]
FlagDescription
-p, --prompt <text>Instructions for the AI agent (required)
--background <name>Background style: aurora sunset ocean lavender mint ember (default: aurora)
--padding <n>Background padding % (default: 8)
--corner-radius <n>Corner radius in pixels (default: 12)
--no-shadowDisable drop shadow
--loginOpen browser for manual login, then AI takes over
--auth <name>Save/load auth state (auto-creates on first use)
--no-headlessShow browser window
--viewport <WxH>Viewport size (default: 1920x1080)
-m, --model <model>Claude model
--max-steps <n>Max agent steps (default: 50)
--slow-mo <ms>Extra delay between actions
-o, --output <dir>Output directory (default: ./recordings)
-v, --verboseDebug logging

Export

$ npx screencli export <recording-dir> --preset <name> [options]

Export also supports --background, --padding, --corner-radius, and --no-shadow.

Presets

PresetResolutionAspectFormat
youtube1920 × 108016:9mp4
twitter1280 × 72016:9mp4
instagram1080 × 19209:16mp4
tiktok1080 × 19209:16mp4
linkedin1080 × 10801:1mp4
github-gif800 × 45016:9gif

Gradient backgrounds

Six background presets applied by default. Change with --background <name> or disable with --no-background.

aurora
sunset
ocean
lavender
mint
ember
FlagDescription
--background <name>Background style (default: aurora)
--padding <%>Space around the video (default: 8)
--corner-radius <px>Rounded corners (default: 12)
--no-shadowDisable drop shadow

Authentication

Log in manually, then let the AI agent continue with your authenticated session. The login is never recorded.

# First time — login flow + save for reuse
$ npx screencli record https://app.example.com \
    -p "Demo the dashboard" \
    --login --auth myapp

# Subsequent runs — instant, no login needed
$ npx screencli record https://app.example.com \
    -p "Demo the dashboard" \
    --auth myapp

Auth state (cookies, localStorage, sessionStorage) is saved to ~/.screencli/auth/<name>.json.

Effects

Applied automatically during video composition:

  • Auto-trim — removes idle time between agent actions
  • Zoom — auto-zooms to the area of activity. Disable with --no-zoom
  • Click highlights — visual pulse on click positions. Disable with --no-highlight
  • Cursor trail — smooth cursor movement overlay. Disable with --no-cursor

Examples

Basic recording with gradient

$ npx screencli record https://example.com \
    -p "Show the landing page and key features" \
    --background aurora --no-headless

Export for Twitter

$ npx screencli export ./recordings/a3f2c8e1 \
    --preset twitter --background sunset

Authenticated recording, full options

$ npx screencli record https://app.example.com \
    -p "Walk through the onboarding flow" \
    --auth myapp \
    --background ocean \
    --padding 10 \
    --corner-radius 16 \
    --no-headless