opencine
Optional Hermes Agent gateway integration: adds Open Cine skills to Hermes and registers the MCP server, enabling Telegram-based video requests and review-file delivery.
Creates and uses private duplicates of Hugging Face ZeroGPU Spaces in the user's account for generation, stores the HF token, and reads generation quota.
Optional Telegram bot integration for review: configures a bot token and chat ID, sends test messages, and posts review gates and final videos via the telegram_send tool.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opencineCut a 30-second reel from ~/Videos/lisbon/, upbeat, end on the sunset."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
██████╗ ██████╗ ███████╗███╗ ██╗ ██████╗██╗███╗ ██╗███████╗
██╔═══██╗██╔══██╗██╔════╝████╗ ██║ ██╔════╝██║████╗ ██║██╔════╝
██║ ██║██████╔╝█████╗ ██╔██╗ ██║ ██║ ██║██╔██╗ ██║█████╗
██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║ ██║ ██║██║╚██╗██║██╔══╝
╚██████╔╝██║ ███████╗██║ ╚████║ ╚██████╗██║██║ ╚████║███████╗
╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚═╝╚═╝ ╚═══╝╚══════╝https://github.com/user-attachments/assets/bbb318d6-0323-4017-a8db-fd7f4601558b
Open Cine gives any agent (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, …) a director's playbook (skills) and a video engine (MCP server). The agent plans the edit; the engine does the deterministic work (scene detection, beat-synced cuts, tracked 9:16 crops, captions, rendering), and generation runs on private duplicates of Hugging Face ZeroGPU Spaces in your own account.
Skill | What it does |
| Cuts a 9:16 short (30–60 s) from your footage: hook, rhythm, match cuts, music, captions, generated extra angles, virtual multicam, character swap / restyle, motion graphics, scribbles. |
| Makes a short film from a prompt. Every shot is generated, with consistent characters and places. |
| Remakes your clip with another character from a picture or description. Motion, timing, camera and sound stay. |
| Installs the engine, saves your HF token, creates your Spaces and registers the MCP server. |
Sample film
A short film made with Open Cine.
https://github.com/user-attachments/assets/c56cb3aa-8a1e-4fc8-8deb-0816c911908a
Related MCP server: OCC-ForAgent
Requirements
A Hugging Face PRO account and a token with write access (settings/tokens)
Node.js ≥ 22 (motion and scribble layers, MCP registration)
Vibe install
Paste this into your agent:
Set up Open Cine for me: https://github.com/tranlamm/open-cine
Follow skills/opencine-setup/SKILL.md in that repo.The agent checks the tools, installs the engine, has you enter your HF token, creates your Spaces and registers the MCP server. Restart the agent when it is done.
Install
Any agent
npx skills add tranlamm/open-cineThen ask your agent: “Set up Open Cine.” The opencine-setup skill installs the engine, asks for your HF token, creates your Spaces and registers the MCP server.
Claude Code plugin
/plugin install open-cine --marketplace tranlamm/open-cineEnter your Hugging Face token when prompted (stored in the system keychain), then ask “Set up Open Cine” to create your Spaces.
Manual
git clone https://github.com/tranlamm/open-cine ~/.opencine/engine
uv --directory ~/.opencine/engine sync
uv --directory ~/.opencine/engine run opencine setupopencine setup checks the tools, saves the token to ~/.opencine/.env, creates the Spaces, installs the renderer and registers the MCP server with your agents via add-mcp. For any other MCP client, add a stdio server named opencine:
uv --directory ~/.opencine/engine run --quiet opencine mcp serveOptional extras: uv --directory ~/.opencine/engine sync --extra vision (scribbles that find named objects with Florence-2 + EdgeTAM), --extra mask (SAM 2.1 mask wipes).
Usage
Talk to your agent:
Cut a 30-second reel from ~/Videos/lisbon/, upbeat, end on the sunset.
Make a 20-second noir short: a detective finds a letter in the rain.
Swap the dancer in ~/clips/dance.mp4 with the character in ~/refs/robot.png.The agent stops at review gates and waits for you:
Gate | You review |
G1 | Shot list and storyboard |
G2 | Generated stills |
G3 | Generated clips |
G4 | The rendered preview |
Answer in plain words: all ok · ok 1,3; 2 lower camera angle · cancel. Your taste (pacing, transitions, text density) is remembered across projects. Projects live in ~/.opencine/projects/<pid>/.
Telegram and Hermes (optional)
Review on Telegram. Create a bot with @BotFather and send it a message, then run:
uv --directory ~/.opencine/engine run opencine setup --telegram --no-spaces --no-fx --no-mcpIt asks for the bot token, reads your chat id from that message and sends a test message. The agent then posts gates and finals with the telegram_send tool. If Hermes already polls the same bot, add --telegram-chat <your user id>.
Hermes Agent. Talk to the agent from Telegram through the Hermes gateway. With Hermes installed and its Telegram gateway set up (hermes gateway setup):
uv --directory ~/.opencine/engine run opencine setup --hermes --no-spaces --no-fx
hermes gateway restartThis adds skills/ to Hermes (skills.external_dirs) and registers the MCP server (add-mcp -a hermes). Send footage to your bot (the public Bot API takes files up to 20 MB) and ask for a video. Without the Telegram tool, Hermes attaches review files through MEDIA: lines. Recommended: hermes config set display.busy_input_mode queue, so a new message waits instead of interrupting a long turn.
Command | Does |
| First-run wizard |
| Telegram tool, Hermes Agent |
| MCP server (stdio) |
| Create a project |
| Index footage, print the scene table |
| Render an EditPlan |
| Create Spaces, read quota |
opencine --help lists every command.
skills/ agent skills: opencine-edit, opencine-film, opencine-swap, opencine-setup
src/opencine/ engine: ingest · index · plan · render · gen · review · mcp
fx/ Remotion renderer for the motion and scribble layers
.claude-plugin/ Claude Code plugin and marketplaceContributing
See CONTRIBUTING.md.
License
The code is released under the Apache License 2.0. The bundled fonts (Anton, Montserrat) are under the SIL Open Font License.
The models and Spaces the engine calls keep their own licences, and several are non-commercial or own-use only (marked † below). Check them before any commercial use. The fx/ renderer uses Remotion, which is free for individuals and small teams; larger companies need a Remotion company license.
Acknowledgements
Open Cine stands on the work of these model authors, Space maintainers and tool builders. Thank you.
Generation (Hugging Face ZeroGPU Spaces)
Qwen Team. Qwen-Image-2.1. Space Qwen/Qwen-Image-2.1. Qwen Research License †
MiniMax. MiniMax-H3. Spaces multimodalart/minimax-h3, MiniMaxAI/MiniMax-H3-Turbo-Lora, conditioner multimodalart/qwen3vl-conditioner. MiniMax-H3 Community License †
larryvrh. MiniMax-H3 Turbo LoRA, via MiniMaxAI/MiniMax-H3-Turbo-Lora. Apache-2.0
Alissonerdx. MiniMax-H3 character-swap LoRA v1.1 and LMS LoRA. Alissonerdx/Minimax-H3-ComfyUI; Space linoyts/minimax-h3-character-swap. BFS Character Swap licence, own use only †
LightX2V. Distillation LoRAs for fast Ref2VA sampling. huggingface.co/lightx2v
LBH-123-AI. MiniMax-H3 latent upscaler. LBH-123-AI/Minimax_h3_latent_Upscaler
SCAIL-2. Space fffiloni/SCAIL-2. MIT weights, Apache-2.0 code
Lightricks. LTX-2.3 with Union-Control IC-LoRA. Space linoyts/LTX-2-3-sync. LTX-2 Community License †; Gemma 3 text encoder under the Gemma terms
FlashVSR+. Space hugging-apps/flashvsr-plus. Apache-2.0
ACE-Step 1.5. Space ACE-Step/Ace-Step-v1.5. MIT
Local vision
Microsoft. Florence-2-base-ft, ONNX by onnx-community. MIT
Meta. EdgeTAM, via yonigozlan/EdgeTAM-hf and jax-image-tools/edgetam-video-onnx. Apache-2.0
Meta. SAM 2.1 tiny, ONNX by vietanhdev. Apache-2.0
Depth Anything V2 Small, ONNX by onnx-community. Apache-2.0
OpenCV Zoo. YuNet face detector. opencv/face_detection_yunet. MIT
Real-ESRGAN (xinntao/Real-ESRGAN, BSD-3-Clause) and RIFE ncnn (nihui/rife-ncnn-vulkan, MIT) for final upscaling and interpolation
Tools: FFmpeg, Remotion, PySceneDetect, librosa, OpenCV, MCP Python SDK, gradio_client, huggingface_hub, skills, add-mcp, Hermes Agent. Fonts: Anton, Montserrat.
Star History
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, run, schedule, and publish AI video pipelines to YouTube and TikTok from any MCP client.
MCP server for Google Veo AI video generation
AI video editor for agents and humans: timeline, captions, color, audio and generation as MCP tools.
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAutomated short-form video creation from text prompts, combining text-to-speech, captions, background videos, and music, exposed as an MCP server for AI agents.57 npmMIT
- AlicenseNot gradedqualityAmaintenanceMCP server for OpenChatCut, enabling AI agents to create, edit, and export fully editable video projects through a real multitrack timeline and agent-native tools.1AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives AI agents a stateful multi-track video editor powered by MLT, enabling them to assemble timelines, add media and text, apply filters and transforms, preview downscaled frames, and render final videos to disk.MIT
- FlicenseNot gradedqualityAmaintenanceThis MCP server enables users to turn folders of raw video clips into finished, beat-synced montage cuts through natural-language chat, automating shot selection, music matching, subtitles, transitions, picture-in-picture, and rendering.-