How to Make Short Videos with Claude Code and Remotion (2026)
Claude Code can't edit video in a timeline, but it is very good at writing code, and Remotion turns React code into MP4 files. Put the two together and you can describe a short video in plain English, watch it update in a browser preview, and render a 1080x1920 file for Instagram Reels, YouTube Shorts, TikTok or X.
This guide walks through the free route first, with Remotion's official agent skills. Every command below was run on 2026-12-01 with Remotion 4.0.548 and Node.js 24. Tools in this space change quickly, so check the linked docs if something looks different.
Short answer: create a project with npx create-video@latest --yes --blank my-video, add Remotion's skills with npx remotion skills add, start the preview with npm run dev, then open Claude Code in the same folder and ask for a 1080x1920 video. Render with npx remotion render.
What you need
- Node.js. The blank project we created on 2026-12-01 asks for Node 20.19+, 22.13+ or 24+ in its
package.json. - Claude Code (or Codex, Cursor, OpenCode and other agents that read Agent Skills).
- A Remotion license if you're a bigger company. Remotion is free for individuals and organisations of up to 3 people, including commercial use; larger companies need a company license (Remotion license FAQ).
- About 100 MB of disk for the headless Chrome that Remotion downloads the first time it renders.
Step 1: Create a blank Remotion project
npx create-video@latest --yes --blank my-video
cd my-video
--blank gives the agent an empty composition to build on, so it isn't fighting a demo. Run npm install if the installer didn't.
Step 2: Add Remotion's agent skills
Remotion maintains official Agent Skills that teach coding agents its APIs and best practices: compositions, animation timing, captions, rendering and more. Inside the project, run:
npx remotion skills add
If you'd rather install them from outside a Remotion project, npx skills add remotion-dev/skills does the same through the general skills CLI. Use one route, not both.
Claude Code reads skills when a session starts, so start (or restart) Claude Code after this step. Type / in Claude Code and look for remotion-best-practices to confirm they loaded. If you're new to skills, our guide Agent Skills (SKILL.md) explained covers how they load.
Step 3: Start the preview, then Claude Code
Leave the preview running in one terminal:
npm run dev
That opens Remotion Studio in your browser, and it reloads every time the agent saves a file. In a second terminal:
cd my-video
claude
Step 4: Ask for a vertical video
Be specific about size, length and content. A prompt that works well:
Use /remotion-best-practices. Create a new composition called Reel,
1080x1920 at 30 fps, about 25 seconds long. It explains one tip:
"Claude Code ignores part of your CLAUDE.md when an @import points
to a missing file."
Scenes: a hook (max 8 words, one highlighted word), three short
bullets, a terminal window that types one command, and a closing
call to action with my handle @you.
Add word-by-word captions near the bottom, but keep everything
above the bottom 350 px clear of other text.
Use big fonts: nothing smaller than 40 px.
Things that make the difference:
- Say 1080x1920. The blank project's starter composition is 1280x720 landscape, so the agent may keep that size unless you ask.
- One idea per video. Short videos that try to say three things say none.
- Ask for captions. Most people watch muted.
- Give real facts. Don't let the agent invent numbers for "stat" scenes.
Then iterate in the preview: "make the hook appear faster", "the third bullet wraps badly, shorten it", "switch to a dark theme".
Step 5: Check stills before you render
Rendering a full video after every change is slow. Render single frames of the busiest moments instead and look at them:
npx remotion still Reel out/check.png --frame=120
Ask Claude Code to do this itself after each change and open the PNGs. It catches text that runs off the screen or sits under the captions. A good instruction to add: "after each edit, render stills at the middle of every scene and fix anything that overflows."
Step 6: Render the MP4
npx remotion render Reel out/reel.mp4
If you leave out the composition ID, Remotion asks you which one to render. A 25-second 1080x1920 video took us about 30 seconds on an 8-core machine. Upload out/reel.mp4 to Instagram, YouTube Shorts, TikTok, LinkedIn or X as it is.
Common problems and fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Video comes out landscape | Composition is still the blank project's 1280x720 | Ask for width: 1080, height: 1920 explicitly |
| Empty frame between scenes | Each scene waits before its content animates in, while the previous one has already faded out | Start each scene's entrance on its first frame, or overlap scenes by a few frames |
| Words in captions run together | Words drawn as separate elements with no real gap, and the highlighted word is scaled up | Lay words out in a flex row with a fixed gap; scale the active word only slightly |
A command wraps mid-flag (-- / fix) |
CSS word-break: break-word on the terminal text |
Wrap only at spaces (white-space: pre per line) and shrink the font or add a \ continuation |
| A button or link covers the headline | Headline and button positioned separately, and the headline animates in from below | Put both in one flex column with a gap, and animate the column as a unit |
| First render is slow or downloads something | Remotion fetches a headless Chrome once | Let it finish; later renders reuse it |
| Skills don't show up in Claude Code | Claude Code was already running | Restart it from the project folder |
We hit the middle four ourselves while building video templates, which is why they're on the list.
A faster way: a fixed template the agent fills in
Writing a new composition from scratch for every video works, but each one comes out a little different, and you repeat the same fixes. The alternative is to build one tested template that reads a small script file, for example a reel.json with a theme and a list of scenes, and have your agent write only that file:
{
"theme": "midnight",
"captions": true,
"scenes": [
{ "type": "hook", "text": "Claude is *ignoring* half your CLAUDE.md?" },
{ "type": "terminal", "command": "python3 agentkit_doctor.py ." },
{ "type": "cta", "text": "Save this for your next repo", "handle": "@you" }
]
}
In Remotion this means one composition whose length comes from the script (calculateMetadata), one component per scene type and a <Sequence> per scene. A skill then tells the agent the scripting rules (hook length, scene count, no invented numbers) and to check stills before rendering. Every video gets the same polish, and a new one takes a few minutes.
That is exactly what our paid Reels Studio is, if you'd rather not build it: the skill, a Remotion template with 7 scene types and word-by-word captions, 4 themes and 3 example scripts, for $29. The demo videos on its page were rendered with it, unedited. The free route above works fine too.
FAQ
Can Claude Code edit my existing camera footage? Not well. Remotion can place video files in a composition and cut them by time, so simple trims and overlays work, but this setup is best for animated text, graphics and screen-style scenes.
Does Claude Code need to run anything in the cloud? No. Remotion renders on your machine. Only Claude Code itself talks to Anthropic.
Do I need to know React? It helps when you want to change things by hand, but the agent writes the code. Reading the preview is enough to direct it.
Is it allowed to sell videos made with Remotion? Yes, under the free license if you're an individual or a team of up to 3; check Remotion's license page for company rules.
Which agent works best? Remotion's skills support Claude Code, Codex, Cursor, Kimi Code and OpenCode. The steps are the same; only the command that starts the agent differs.
Reels Studio · $29 · 30-day refund
Skip the setup: the skill, the template and 3 example scripts
7 animated scene types, word-by-word captions, 4 themes, voiceover and music support, a self-check step before every render. One-time $29; works with Claude Code, Codex, Cursor and other agents that read SKILL.md.