How to make a demo video with Claude Code or Codex
Updated September 2026
To make a demo video with Claude Code, connect Screen Agent's MCP server with one command, then describe the video in plain language. Claude opens your app in Screen Agent's built-in browser, records the flow, cuts dead air, adds zooms, title scenes, captions and a voiceover, and exports the file in 16:9, 9:16 or 1:1. Codex and Cursor work the same way.
What you need
- A Mac running macOS 15 or later, with Screen Agent installed and activated
- Claude Code, Codex, Cursor or another MCP client
- Your app running locally or at a URL the agent can open
- Optional: an ElevenLabs API key in Screen Agent's settings for natural voices (macOS voices work without one)
1. Connect Screen Agent to your agent
Run the command for your agent once. Screen Agent launches automatically the first time the agent calls it.
# Claude Code
claude mcp add -s user screen-agent -- "/Applications/Screen Agent.app/Contents/MacOS/ScreenAgent" --mcp
# Codex
codex mcp add screen-agent -- "/Applications/Screen Agent.app/Contents/MacOS/ScreenAgent" --mcp2. Describe the video
Tell the agent what to show, who it's for, where you'll post it and how it should sound. The more specific the prompt, the better the video.
Record a 30-second demo of the invite flow at localhost:3000:
open Settings, click Team, and invite a teammate by email.
Blur real emails, cut dead air, add a title card "Invite your
team in seconds", captions and a friendly voiceover. Export a
16:9 version for the website and a 9:16 version for Reels.3. What the agent does
- 1Sets the viewport and opens your app in Screen Agent's browser (browser_set_viewport, browser_navigate).
- 2Starts recording, then clicks, types and scrolls through the flow at a steady pace (recording_start, browser_run_script).
- 3Stops recording, and Screen Agent adds a zoom on each click automatically (recording_stop).
- 4Cuts idle time, masks private data and adds title scenes (project_auto_cut_idle, project_add_mask, project_edit_scenes).
- 5Writes and voices the narration and adds captions (project_narrate, project_add_text).
- 6Reviews frames, then exports each format (project_contact_sheet, project_set_style, project_export).
4. Review and iterate
Open the project in Screen Agent to watch it, or ask the agent for changes such as “make the title shorter”, “zoom tighter on the Invite button” or “use a calmer voice”. Every zoom, cut and scene stays editable, so you can also adjust it by hand.
Screen Agent's MCP server for Claude Code and Codex →Tips for better agent-made demos
- Use a seeded demo account so the agent never shows real data
- Name the exact buttons and fields the agent should use
- Ask for recording marks at key moments so narration lines up
- Keep each video to one flow, and ask for a separate video for the next feature
- Re-run the same prompt after each release to keep demos current