Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Agent-screenplay Installation, Setup, and System Requirements

Agent-screenplay requires Node.js 20 or higher and specific system permissions on macOS and Linux, with Windows having no additional requirements beyond standard installation.

Share
AI-generated conceptual illustration accompanying: Agent-screenplay Installation, Setup, and System Requirements
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Installation and Setup

To install Agent-screenplay, use the command npx agent-screenplay init to begin the setup process. The package is available via npm and should be installed globally using npm i -g agent-screenplay, which grants access to the screenplay command. For guidance on writing scenarios, run npx agent-screenplay guide. To test a scenario without filming, use npx agent-screenplay check demo.json. To record and edit a screen recording, execute npx agent-screenplay record demo.json, which generates a video file (demo.mp4) and a storyboard image (demo.storyboard.png). For re-editing the last take without re-filming, use npx agent-screenplay render demo.json. A requirement for installation is Node.js version 20 or higher. To sign in, run npx agent-screenplay login https://app.example.com, which opens a browser window for authentication.

Usage and Command Examples

Agent-screenplay allows users to generate screen recordings with minimal input. In Claude Code, typing /screenplay followed by a prompt initiates the process, such as /screenplay Make a 30-second walkthrough of https://askli.co. For agents like Codex, Cursor, or those connected to the MCP server, users can simply request "Make a screen recording of …". The agent then navigates the site, inquires about voice-over preferences, creates a scenario, films the recording, and provides an MP4 file. Custom audio files can also be integrated by specifying "audio": "voice/02.mp3", supporting formats like MP3, WAV, and M4A. These files may originate from tools like ElevenLabs' or Cartesia's web apps or from local TTS models such as Piper or Kokoro, which the agent can execute locally.

Customization and Styling

Customization and styling in Agent-screenplay are handled through a combination of command-line tools and manual configuration in the scenario.json file. To apply a new style after recording, users can run npx agent-screenplay style <scenario.json>, which allows for adjustments such as background gradients, padding, corner radius, and shadow effects. For example, a gradient can be defined with colors and an angle, while padding and radius values control the spacing and curvature of the screen recording. Title and end cards are disabled by default but can be enabled by setting "cards": true in the configuration or using the editor’s switch. The styling process is supported by a clear workflow that maps from the scenario definition through playback, filming, and editing, ensuring precise control over the final output.

System Requirements and Compatibility

Agent-screenplay requires specific system configurations to function properly. On macOS, users must enable Screen Recording and Accessibility permissions in System Settings for the terminal or agent app. Windows users face no additional requirements beyond the standard installation. For Linux, an X11 session with the AT-SPI accessibility bus is necessary, which is standard on GNOME environments. Wayland is explicitly not supported due to its design restrictions on screen capture and synthetic input. Additionally, desktop recordings cannot be performed in headless containers, as they require a real screen to operate. These requirements ensure compatibility with the underlying technologies, such as accessibility APIs and ffmpeg, which are used for recording and editing.

Technical Implementation and Features

The technical implementation of Agent-screenplay relies on a combination of tools and processes to generate high-quality screen recordings from a single prompt. It begins by parsing a scenario file (scenario.json), which dictates the sequence of actions to be performed. These actions are executed using Playwright for web interactions and agent-desktop for desktop operations, with ffmpeg handling video encoding. Each frame is rendered using Skia, ensuring smooth and precise visual output.

Key features include time remapping to accelerate long waits, spring zooms focused on interactive elements, cursor path tracking, and overlays with captions and voice tracks. A persistent pill at the top of the screen indicates when Screenplay is recording or rehearsing, with an immediate Stop button to terminate the session. The tool is bundled with open-source components, including Inter (SIL Open Font License), ffmpeg (GPL), and agent-desktop (Apache-2.0).

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more