# Write YouTube scripts with your agent under the page

Write YouTube scripts in Flywrite, a Markdown writing app for Mac. Keep each script as a plain file and run Claude Code or Codex on it, outside a code editor.

Flywrite for YouTube scripts

Write YouTube scripts
with your agent

Flywrite is the Markdown writing app for writing your YouTube scripts with AI on a Mac. Keep each script as a plain file, and run Claude Code, Codex or any CLI agent on it in a real terminal under the page, outside a code editor. No AI fee.

Buy Now

See what's inside

- Mac app
- Bring your own agent

https://vimeo.com/1212212727

Watch the demo

/images/demo-cover-1150.70cd5b11.webp

/images/demo-cover-800.fa7280a5.webp 800w, /images/demo-cover-1150.70cd5b11.webp 1150w, /images/demo-cover-1800.1b5f7915.webp 1800w

Flywrite with a Markdown draft open and Claude Code in the terminal under the page

Your agent helps with every script. The code editor it runs in wasn't built for writing.

- A video starts as an outline and research notes, turns into a script, and gets a last read before you record. Claude Code or Codex can tighten the hook, shorten a segment or check the script against your notes.
- But the agent runs in a code editor or a terminal on its own, so you read your script in a tool built for code, or copy it back and forth from a chat window.

- The script lives in a code editor: That's where the agent runs, so you read your own script in a tool built for code.
- Your research sits in another app: Notes, sources and screenshots live somewhere else, so the agent can't check the script against them.
- An agent rewrite you can't take back: It rewrote the hook you liked along with the one you asked about, and there's no easy way to get it back.

A script, from outline to final read, in Flywrite.

- Keep each video in one folder: Put the script, the outline and your research notes in one folder as Markdown files, with screenshots and thumbnails beside them. Open the folder in Flywrite.
- Draft on a page that reads cleanly: Write in Rendered view, with a heading for each segment and the syntax out of the way. Press ⌘E when you want the raw Markdown.
- Ask your agent for a pass: Select the intro and ask Claude Code to tighten the hook, or ask Codex to check the script against your research notes. The script updates live as it edits.

Everything you need to write each script with your agent.

- A page you can read the script on: Rendered view keeps the Markdown syntax out of the way, so the script reads the way you'll say it, with Source view one keystroke away (⌘E). Pick the theme, fonts, text size and page width for your scripts project.
- Claude Code, Codex or both: Launchers start Claude Code, Codex and Cursor Agent, each in its own terminal tab under the page. Any other agent that runs in the Mac terminal runs here too, on the plan you already have.
- The agent sees your selection: Claude Code gets the open script, line and selection with no setup, so "tighten this hook" works on the lines you've selected. Send Selection to Terminal (⌘⇧L) works for any agent.
- Roll back what the agent changed: Flywrite saves a checkpoint of the whole project when Claude Code starts in its terminal, and when Cursor Agent starts after its one-time setup. Codex and other CLI agents don't trigger it, so press ⌘⇧C before you start them. Restore the whole project or just this script.
- Your scripts, backed up to GitHub: One Sync button backs up your scripts folder to your own GitHub repository and keeps your Macs in step. You never write a git command.
- Research, screenshots and clips in one folder: Notes, sources and past scripts sit beside the one you're writing, and ⌘P jumps to any file by name. Paste a screenshot and Flywrite saves it into the folder. MP4 and MOV clips and MP3 or WAV voiceovers open with playback controls.

- I write a LOT of markdown but clunky IDE previews just made me miserable. Flywrite does everything I want: keyboard friendly, customizable, git backed. Perfect!: David K.
- My favorite writing app, by far! I love how I can customize it exactly how I want.: Cindy T.
- Finally, a view and edit flow right in a great-looking package that's a pleasure to work with!: Jeff R.

One plan. Every feature.
Bring your own agent.

Questions from YouTube script writers

- Is Flywrite screenwriting software?: No. Flywrite writes Markdown, with headings, lists, bold text and notes. If you need screenplay format with scene headings and character cues, screenwriting software is the right tool.
- Which agent should I use?: Any CLI agent that runs in the Mac terminal runs in Flywrite, with launchers for Claude Code, Codex and Cursor Agent. Claude Code sees the open script and your selection with no setup. Codex doesn't see them on its own, so type @ to name the file or press ⌘⇧L.
- Can my agent follow my channel's style?: Yes, with a rules file in the folder. Claude Code reads a CLAUDE.md file at the start of every session, and Codex reads AGENTS.md before it starts work. Put your channel's voice and script format there. [See a voice file example](/guides/claude-code-newsletter-drafts).
- What if the agent rewrites a script I liked?: Restore it. Flywrite saves a checkpoint of the whole project when Claude Code starts in its terminal, and when Cursor Agent starts after its one-time setup. Codex and other CLI agents don't trigger it, so press ⌘⇧C before you start them. Restore the whole project or one file. [Roll back what an AI agent changed](/guides/review-and-undo-agent-edits).
- What does it cost?: Flywrite is $99 a year for Mac, with every feature and no AI fee. Your agent runs on the plan you already have.
- Is there a Windows or iPhone version?: No. Flywrite is a Mac app, so it can feel like a native Mac writing app. For Windows, Linux or a phone, Obsidian, Typora or Ulysses fit better.

Why I built Flywrite

- Hi, I'm Brian. I make my living writing: newsletters, YouTube scripts, courses. And these days, Claude Code is my collaborator on nearly all of it.
- But I never liked creating in a code editor. Cursor and VS Code are built for shipping software. Prose deserves better than a clunky preview pane in a dev tool.
- So I built the writing experience I actually wanted: calm and paper-like where I write, a real terminal right below it where my agent assists, and checkpoints to roll back what the agent changed, backed up to GitHub the way I'm used to. I hope you love writing in Flywrite as much as I do.

Write your next script in Flywrite.

Buy Flywrite for Mac

---

This is the Markdown copy of https://flywrite.app/for/youtube-scripts.
