Claude Code · Codex · terminal and server
Make films from your coding agent.
The oms command and its skill let Claude Code or Codex make a film end to end, in a terminal or on a server: write film.tsx, check it, look at its frames, add sound and narration, and export an MP4 or a web player. Open the project in OpenMotionStudio to refine it on the picture.
One sentence
Send this to Claude Code or Codex with your own topic. The agent reads llms.txt, installs oms and its skill (asking you first), then writes, checks and renders the film as the skill says.
Read https://openmotion.studio/llms.txt, then make a film about "<your topic>"Install, step by step
-
Node and ffmpeg
oms needs Node 22.12 or newer. It renders MP4s with your own ffmpeg, a full build with x264;
oms rendersays what is missing.macOSbrew install ffmpegLinuxsudo apt-get install ffmpegWindowswinget install Gyan.FFmpeg -
The oms command
From npm;
oms --helpthen lists its commands.npm install -g @motionhub/oms -
The skill
With the standard
skillsinstaller, for Claude Code, Codex and the other agents it knows (into~/.agents/skills/oms, linked for each):npx skills add motionhubdev/openmotionstudio --skill oms -gOr with oms itself, which keeps the skill the same version as the command (
skillstakes the newest skill from GitHub, which can be newer than your command):Claude Codeoms install claudeCodexoms install codex -
Start a new session and ask
The skill loads in the next session. Describe the film as you would to a person: what it is about, for whom, how long, landscape or portrait, and where your material is.
Use OMS to make a 20-second portrait film from these screenshots. Hold the download address for the final two seconds.
Configure
- Chrome
- oms draws each frame in chrome-headless-shell, the build HyperFrames pins, with no display. The first check or render downloads it once (about 100 MB) into
~/.cache/puppeteer, or uses the copy HyperFrames or Puppeteer already has;OMS_CHROMEnames another. Linux on Arm has no such build: install Chromium with the system's package manager (sudo apt-get install chromium). As root or in a container Chrome runs without its sandbox and says so;OMS_CHROME_SANDBOX=1requires it,=0turns it off. - ffmpeg
- The one in
OMS_FFMPEG, else the first on thePATH. - Narration
-
oms voicespeaks the film's lines through your own provider. Keys are read from the environment oms runs in, and never written or printed.oms voice --list minimaxlists an account's voices.Provider Variables MiniMax MINIMAX_API_KEY; for an account on minimaxi.comMINIMAX_REGION=china(orMINIMAX_BASE_URL=https://api.minimaxi.com); optionallyMINIMAX_GROUP_ID,MINIMAX_TTS_MODELElevenLabs ELEVENLABS_API_KEY; optionallyELEVENLABS_MODELOpenAI OPENAI_API_KEY; optionallyOPENAI_TTS_MODELAzure AZURE_SPEECH_KEY,AZURE_SPEECH_REGIONYour own voice instead: read the lines into one take, and
oms voice "My Film" --recording take.m4atranscribes it, matches it to the script and cuts it into the film a line at a time (transcribed with a MiniMax, OpenAI or ElevenLabs key above). - Where the skill goes
oms installrespectsCLAUDE_CONFIG_DIRandCODEX_HOME; by default the skill goes into~/.claude/skills/omsand~/.codex/skills/oms.
What the agent runs
The agent runs these as the skill says; you can run them yourself too.
oms init "My Film" | A new project: the starter film.tsx and a .gitignore |
oms check "My Film" | Builds and checks it: errors with file and line, text past the frame, overlapping layers, missing characters, unvoiced lines |
oms still "My Film" --at 3 --out f.png | One frame as a PNG, for the agent to look at |
oms render "My Film" --out film.mp4 | The MP4, its lines as .srt beside it; stopped, it resumes |
oms player "My Film" --out web | A web player: a folder any static host plays, with no render |
oms preview "My Film" | Plays it on this machine and builds again on every change |
oms sound "My Film" --cues 1.2:land … --out media/fx.wav | An effects track for the picture's cues |
oms voice "My Film" | Speaks the narration, only the lines that changed |
oms font "My Film" --family "Noto Sans SC" | A face from Google Fonts, cut to the film's characters, with its licence |
oms motion search data | Finds a look on MotionHub; oms motion use takes it into the project |
oms pack "My Film" | The project as one .oms file |
Refine it in the Studio
What the agent made is an ordinary folder, and OpenMotionStudio opens it as it is: Import project at the foot of Home's prompt (or Ctrl/⌘ O), then the folder (on Windows and Linux, the film.tsx in it). Then point at the picture and say what to change.
To send it to another computer or a person, pack it as one file:
oms pack "My Film"It writes My Film.oms beside the folder: the project's own files, without renders, stills or the Studio's conversations. Choose it with Import project, and the Studio takes it into a new project in its workspace.
Update
npm install -g @motionhub/oms@latestnpx skills update oms -gA skill from oms install: move the old skills/oms folder aside, then run oms install claude or oms install codex again.
For agents: openmotion.studio/llms.txt · apps/cli