cli-anything-openscreen
A stateful command-line interface for editing screen recordings. Transform raw captures into polished demo videos with zoom effects, speed adjustments, trimming, annotations, and beautiful backgrounds.
Installation
Prerequisites:
- Python 3.10+
- ffmpeg must be installed on your system
Usage
Basic Commands
REPL Mode
Run cli-anything-openscreen without arguments to enter interactive mode.
Type help for available commands, quit to exit.
Command Groups
project
Create, open, save, and configure projects.
zoom
Manage zoom regions — smooth zoom effects on specific timeline areas.
Zoom depths: 1=1.25x, 2=1.5x, 3=1.8x, 4=2.2x, 5=3.5x, 6=5.0x
speed
Manage speed regions — speed up idle time, slow down important moments.
Valid speeds: 0.25, 0.5, 0.75, 1.25, 1.5, 1.75, 2.0
trim
Manage trim regions — cut out sections of the recording.
crop
Set the visible area of the recording.
annotation
Add text overlays to the recording.
media
Inspect and validate media files.
export
Render the final polished video.
preview
Capture truthful review bundles from the current Openscreen project.
Current preview support is static rather than live. A quick bundle typically
contains:
- a low-res preview clip
- sampled frames
- a
heroframe for quick inspection summary.jsonwith trim/zoom/speed facts
Bundle capture also writes or updates a stable recipe-level trajectory.json
beside the preview root so agents can reconstruct preview history over time.
Viewer commands:
session
Manage session state with undo/redo.
State Management
- Undo/Redo: Up to 50 levels of undo history
- Project persistence: JSON
.openscreenfiles - Session tracking: auto-tracks modifications
Output Formats
- Human-readable (default): Formatted key-value pairs
- Machine-readable (
--json): Structured JSON output
Editor Settings
For AI Agents
- Always use
--jsonfor parseable output - Check return codes — 0 = success, non-zero = error
- Parse stderr for error messages in non-JSON mode
- Use absolute file paths
- After
export render, verify the output exists and probe it - Times are in milliseconds for all region commands
- Coordinates (focus, crop, position) are normalized 0-1
- Use
preview capture --jsonto validate zoom, trim, annotation, and timing visually - Read returned bundle artifact paths from the JSON payload; images and clips live on disk
- Use
cli-hub previews ...only to inspect/open existing bundles
Version
1.0.0
