Tutorial · tested Nov 2026

Create Videos with Claude Code + Remotion

You describe the video, Claude writes it as React code, Remotion renders it. Every command below is one we ran.

Remotion is a React framework that turns components into video files. Claude Code writes the components for you. We followed this guide on a fresh project: we created a Remotion project, added Remotion's official skills for Claude, asked for a 15-second explainer about invoice automation, then asked for one change. Here is the video, the exact prompts, and what each step took.

The result

The final video. 15 seconds, 1920×1080, 30 fps, 478 kB, no sound. Made with the two prompts below.
Frame from the first version: three numbered steps in white text on a dark background, with teal number circles: Invoices arrive by email, Fields are read and checked, Entries go to accounting.
After the first prompt (step 3). All three steps stay on screen, each with a numbered circle.
The same frame after the follow-up prompt: larger text, centred, and each number replaced by a drawn icon: an envelope, a magnifying glass and a ledger.
After one follow-up prompt (step 4). Centred, larger text, and an icon drawn with shapes for each step.
Closing frame: a large teal number 120 above the words invoices a month, no typing.
The closing scene. The number counts up from 0 to 120.

Time and cost

First video (step 3)One change (step 4)
TimeAbout 1.5 minutes (17 turns)About 1 minute (14 turns)
CostAbout $0.56About $0.85
What Claude didLoaded the Remotion skill, added the font, wrote the video, checked still frames, renderedEdited the video file, checked still frames, rendered again

The costs are what Claude Code reported at API prices for our single run of each prompt. On a Claude subscription the same work counts toward your usage instead. Rendering the 15-second video took about 12 seconds on a 4-core desktop CPU, with no GPU.

Before you start

1

Create a Remotion project

bashnpx create-video@latest my-video

It asks a few questions. We took the defaults: template Blank, and Install all skills when it asks about agent skills. It then installs the packages, which took about 35 seconds for us. The last question offers to open the project in Cursor; you can say no. Then:

bashcd my-video claude

To skip the questions, for example in a script: npx create-video@latest --yes --blank --skills my-video.

2

Check the Remotion skills

Remotion maintains official skills that teach Claude its components, animation and rendering. If you chose Install all skills in step 1, they are already there: 14 skills in .agents/skills, which Claude Code finds through a .claude/skills link that the installer creates. The main one, remotion-best-practices, tells Claude which of the others to read for the task.

For an existing project, or if you skipped them:

bashnpx remotion skills add

Licence: Remotion is free for individuals, for companies with up to 3 employees, and for non-profits. Larger for-profit companies need a company licence. Check the current terms on remotion.dev/docs/license.

3

Ask for your first video

In Claude Code, describe the video scene by scene, with timings. This is the prompt we used, word for word:

promptCreate a 15-second video that explains invoice automation for a small business. 1920x1080, 30 fps. 1. Title (3 seconds): "From inbox to accounts" fades in on a dark background. 2. Three steps slide in from the right, one by one (3 seconds each): "Invoices arrive by email", "Fields are read and checked", "Entries go to accounting". 3. Closing (3 seconds): a counter counts up from 0 to 120, with the text "invoices a month, no typing". Colours: #1C1C1E background, #4E8C7F accents. Font: Nunito. Use spring() for the motion. When it is done, render it to out/video.mp4.

In our run Claude loaded the remotion-best-practices skill and read its guides, added the Nunito font with npx remotion add @remotion/google-fonts, wrote the video in src/InvoiceVideo.tsx and registered it in src/Root.tsx under the ID InvoiceAutomation. It then rendered still frames with npx remotion still, looked at them, and rendered the MP4. It added one thing we didn't ask for, the word "accounts" in the accent colour, and said so.

To preview and render the video yourself:

bash# Preview in Remotion Studio (opens in your browser) npm run dev # Render to MP4 npx remotion render InvoiceAutomation out/video.mp4

Use your own composition ID in place of InvoiceAutomation. Claude tells you what it called it, and npx remotion compositions lists them all. npm run dev is the same as npx remotion studio.

4

Ask for changes

Everything is code, so you change the video by asking for what you want, in the same Claude Code session. Our follow-up prompt, word for word:

promptCentre everything on screen and make the text larger. Give each step a simple icon drawn with shapes: an envelope, a magnifying glass, a ledger. Keep the timing the same and render it again to out/video.mp4.

Claude edited the one video file, checked three still frames, made the icons a little bigger after looking at them, and rendered again. Compare the second and third images above. Each change is a code change, so you can review it and keep it in git (the project starts as a git repository).

Other requests in the same style (we didn't run these):

prompt# Timing Make the steps appear faster: 0.5 seconds apart instead of 3. # Numbers Add three counters that count up from 0: 99.9% uptime, 50 ms latency, 10M requests a day. # Style Add a subtle particle effect to the background, like floating dust in a spotlight.

More ideas (not tested by us)

One template, many videos

Remotion components take props, so one template can render many versions from data:

promptCreate a Remotion template for customer testimonial videos. It should accept props: { name, company, quote, avatarUrl }. Then render 10 variations using the data in ./testimonials.json.

Code walkthroughs

promptCreate an animated code walkthrough video that shows the authentication flow in ./src/auth/. Highlight each function as it's explained, with annotations appearing beside the code.

Animated reports

promptRead the metrics from ./data/monthly-report.json and create an animated video showing: - Line chart of monthly active users (animated draw-in) - Bar chart of revenue by region (bars growing up) - Key metrics with count-up animations

Tips

  1. Give timings. Say how long each scene lasts. Claude turns seconds into frames for you.
  2. Give your brand. Hex colours, font names and logo paths in the prompt.
  3. Ask Claude to check frames. Ours rendered stills with npx remotion still and looked at them before rendering the full video. If yours doesn't, ask for it.
  4. Start simple. Get the scenes and timing right, then add effects.
  5. Preview in Studio. npm run dev shows changes as Claude saves them.

Troubleshooting

"Could not find composition with ID …"

The ID in your render command doesn't match the one in src/Root.tsx. The error message lists the IDs that exist, for example Available compositions: MyComp, InvoiceAutomation. MyComp is the empty placeholder from the Blank template.

"Port 3000 is busy, trying another"

Remotion Studio moves to the next free port by itself. Open the address it prints, such as http://localhost:3001.

Claude keeps asking before it renders

Claude Code asks before running a new command. Allow npx remotion commands once and say not to ask again, or add Bash(npx remotion *) to the allowed tools in the project's .claude/settings.json. That rule covers single commands only: in our run, a render joined to another command with && still needed approval, and Claude ran the render on its own instead.

Claude doesn't seem to use the skills

Check that .claude/skills exists in the project and lists the remotion-… folders, and that you started claude in the project folder. If they're missing, run npx remotion skills add.

What's next? You can keep video scripts as notes and have Claude turn them into compositions. See Claude Code with Obsidian.

Credits

More tutorials: all tutorials, including diagrams with Excalidraw and Claude Code with Obsidian.

Tested on 28 November 2026 with Claude Code 2.1.332 on Ubuntu, Node.js 22.18, Remotion 4.0.547 (create-video 4.0.547), and remotion-dev/skills at commit a3f4098.

Need professional AI-generated content?

Rivok Labs builds custom video pipelines, branded templates, and AI-powered content workflows for teams.

Start a conversation