codex premiere procodex cliAI agent editingMCP video editingAI video editing

Codex Premiere Pro: What the CLI Can Script, Not See

Codex premiere pro: can the Codex CLI drive Premiere Pro from the terminal? What it can script, what it still can't see, and how to edit on a real timeline instead.

I ChelI Chel
October 28, 2026
Before
After
Background swap · Sofa, made in Shoty. Original footage on the left, result on the right.

A sofa, a plain wall behind it. A beat later the wall is a rooftop at dusk. The person on the sofa and the camera's slow push don't move; only what's behind them changes. That's the clip above, and it's the kind of shot "codex premiere pro" searches are usually asking about: can a terminal coding agent actually make that happen inside Premiere?


What the Codex CLI is actually good at

Codex CLI is a command-line agent built for writing and running code. Point it at a problem with a clear script to write, and it writes a good one. That's genuinely useful for Premiere Pro work: an expression, a panel script, a batch rename, a small automation aimed at whatever scripting or extension layer the host exposes.

What it doesn't have, by itself, is a way to see inside Premiere's window. It can write the script; it can't watch the timeline update, confirm the edit matched the brief, or notice that a clip landed one frame off. That gap exists whether Codex is running in a plain terminal or anywhere else it has no project to look at.

Why "it can write the script" isn't "it can edit the video"

Three things have to be true for an agent to actually finish a cut, not just hand you code to run:

  • It can look. Check a frame before trimming it, not guess from a filename or a script's own assumptions.
  • It can act on a real timeline, placing and trimming clips in the project itself, not in a file it hopes a script applies correctly.
  • It can generate or fix a shot and put the result back, instead of leaving you to drag a rendered file onto a track.

A script Codex writes and you run can satisfy none of these on its own. It's still homework delivery, just well-written homework.

The route that gives Codex a real timeline

Shoty is a desktop video editor (Mac and Windows) with an agent chat built in. Pick ChatGPT · my subscription in the model picker and Shoty runs the official Codex CLI on your machine, signed in with your own OpenAI account, with no fee from Shoty for the agent itself.

  1. For each turn, Shoty opens a local MCP server and hands Codex tools: look at a frame, read and update the timeline, generate a shot, export. Every call shows up in the chat.
  2. The timeline is a text format (.shoty), so Codex is reading and editing a structure the way it reads and edits code, instead of hoping a script executed cleanly inside someone else's app.
  3. When the cut is done, Shoty exports it as EDL, FCPXML or OpenTimelineIO, the formats Premiere Pro, DaVinci Resolve or Final Cut Pro open for the finish.

1. Ask for the part Codex is actually good at

Write a batch of clean, numbered filenames for these clips so the project reads in order, then cut the dead air out of the first five minutes.

Scripting-style thinking carries over well to a timeline it can actually touch.

2. Name what must not change on a VFX fix

Replace the wall behind the sofa in shot 2 with a rooftop at dusk. Keep the person, their pose and the camera's push exactly as they are.

3. Export for the host you're finishing in

Export this project as an EDL for Premiere Pro.

Where this still needs you

  • Judging the cut. Codex can draft and execute fast; which beat actually lands is still an editor's call, and you can always grab the Shoty timeline and trim by hand.
  • Approving generated shots. Anything sent to a video model costs credits, so set the run mode to review if you want to sign off before it renders.
  • Anything outside Shoty's tools. A Codex script aimed at Premiere's own scripting layer directly is still a one-way push with no confirmation it worked; that limit doesn't go away, it's just not the route this guide is about.

Download the free Shoty editor and pick ChatGPT (Codex CLI) from the model picker. For the Claude Code version of the same setup, see Claude Code Premiere Pro.

FAQ

Can the Codex CLI control Premiere Pro directly?

Not on its own. Codex CLI is a command-line agent: it runs commands and writes files in your terminal, but Premiere Pro doesn't hand it anything back to read. It can write a script aimed at the host's own scripting or extension tools, where those exist, but it still can't see the panel it just changed or confirm the edit landed.

Is the Codex CLI different from ChatGPT for this?

In Shoty they're the same underlying agent: picking ChatGPT in the model picker runs the official Codex CLI on your machine. The difference above is about Codex CLI used on its own in a terminal, writing scripts with no project it can see, versus Codex CLI holding an actual timeline through Shoty's tools.

Can Codex write Premiere Pro scripts or expressions?

Yes, and that part plays to its strengths. Codex is a coding agent, so drafting a script aimed at an editor's scripting layer is something it does well. Running it, confirming it did what you asked, and fixing it if it didn't is still on you, since the CLI has no eyes on the result.

How do I actually get an AI-edited cut into Premiere Pro?

Edit on a timeline the agent can read and write directly, then export a format Premiere opens: EDL, FCPXML or OpenTimelineIO. In Shoty, the agent behind the ChatGPT (Codex CLI) option edits the project over a local MCP server, and the cut leaves in one of those formats.

Try it in Shoty

The editor is free on Mac and Windows. Bring Claude, ChatGPT or Gemini on the plan you already pay for.

Download the free editor