█

AI/TLDR

Buy me a coffee
Buy me a coffee

OpenShorts

A self-hostable OpusClip alternative that turns long videos into reframed, captioned 9:16 shorts

Video GenerationOpen core
Language
Python
License
MIT (cloud/ directory under the OpenShorts Commercial License)
$git clone https://github.com/mutonby/openshorts.git
IN SHORT

What is OpenShorts?

OpenShorts is an open-source AI video platform built around a clip generator: paste a YouTube link or upload a file, and it finds the strongest moments of a podcast, webinar, stream or interview and returns finished 9:16 clips for Shorts, TikTok and Reels. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in Python and licensed MIT (cloud/ directory under the OpenShorts Commercial License).

Overview

OpenShorts is an open-source AI video platform built around a clip generator: paste a YouTube link or upload a file, and it finds the strongest moments of a podcast, webinar, stream or interview and returns finished 9:16 clips for Shorts, TikTok and Reels. Each clip comes reframed, captioned, with a hook line, a virality score and titles for each platform. The project positions itself as the open-source alternative to OpusClip, Klap and Vizard: the core is MIT-licensed and self-hosts with Docker, with no watermark or usage cap.

An OpenShorts clip card: a vertical podcast clip with burned-in captions, a viral score of 88/100, platform titles, and buttons for edit clip, reframing, subtitles, edit hook, dub voice, post and download
Each generated clip arrives with a virality score, per-platform titles and one-click edit, dub and post actions.OpenShorts README ↗

The pipeline is a chain of well-known parts. yt-dlp ingests the video, faster-whisper (or Parakeet on a GPU) transcribes it with word-level timestamps, PySceneDetect finds scene boundaries, and Google Gemini ranks the transcript to pick 3–15 moments of 15–60 seconds. FFmpeg cuts the clips, and the reframer chooses per scene between a face-tracked crop (MediaPipe + YOLOv8), a blurred-background frame, a split layout that stacks two speakers with captions on the seam, and a screencast layout. Setting `LLM_BASE_URL` points the moment picker at Ollama, LM Studio, vLLM or any OpenAI-compatible server instead of Gemini, so the clip pipeline can stay entirely on your machine; frame-level features such as automatic layout picking still need a Gemini key.

Around the clip generator sit a clip editor (source and program monitors beside the transcript; click a word to set a cut), ElevenLabs dubbing into 30+ languages, an AI Shorts module that writes scripts and renders UGC-style marketing videos with AI actors through fal.ai models, a YouTube Studio for titles, thumbnails and chapter descriptions, and social posting through Upload-Post. Everything is also scriptable: a built-in MCP server at `/mcp`, a REST API with completion webhooks, a zero-dependency `openshorts` CLI and an Agent Skills skill.

The OpenShorts clip editor: the wide source video and transcript on the left, the vertical 9:16 program output with a caption in the middle, and segment and framing controls on the right
The clip editor: source monitor, clickable transcript, the vertical program monitor and framing controls (auto, full frame, track subject).OpenShorts README ↗

The same software runs as a hosted service, OpenShorts Cloud, on a GPU; the README quotes about 50 seconds per 8-minute video there versus 5 to 8 minutes on a typical CPU, and the hosted paid plans add auto-posting and an Autopilot mode that clips every new upload on a connected channel. The `cloud/` directory with billing and hosted infrastructure is source-available under a separate commercial licence and is not needed to self-host.

What it does

  • Viral-moment detection that picks 3–15 clips of 15–60 seconds from the transcript and scene boundaries, each with a virality score and per-platform titles
  • Per-scene 9:16 reframing: face tracking (MediaPipe + YOLOv8), blurred background, two-speaker split with captions on the seam, or screen-over-presenter
  • Word-level captions from faster-whisper or Parakeet, burned in, plus editable hook overlays
  • A clip editor with source and program monitors and a clickable transcript for word-accurate cuts and fast re-renders
  • Runs the moment picker on a local LLM via any OpenAI-compatible server (`LLM_BASE_URL`) instead of Gemini
  • AI Shorts: scripted UGC marketing videos with AI actors, lip-sync, voiceover and b-roll
  • Automation through a built-in MCP server, a REST API with signed completion webhooks, a CLI and an Agent Skills skill

Getting started

Self-hosting needs Docker and Docker Compose (8 GB+ RAM). The default image is CPU-only; an NVIDIA GPU with NVENC is optional. API keys for Gemini, fal.ai, ElevenLabs and Upload-Post are entered in the dashboard's Settings, and each is needed only for the features that use it.

Clone the repository

bashbash
git clone https://github.com/mutonby/openshorts.git
cd openshorts

Configure (optional)

The `.env` file holds server-side settings such as S3 backup keys and the local-LLM endpoint.

bashbash
cp .env.example .env

Launch

bashbash
docker compose up --build

Open the dashboard and clip a video

Go to http://localhost:5175, enter your API keys under Settings, then upload a long-form video or paste a YouTube link in the Clip Generator.

Optional: keep the moment picker local

Point it at Ollama on the host instead of Gemini. The README recommends 7–8B models or larger for reliable JSON and a larger Ollama context (for example OLLAMA_CONTEXT_LENGTH=16384).

bashbash
# .env
LLM_BASE_URL=http://host.docker.internal:11434/v1
LLM_MODEL=qwen2.5:14b
The OpenShorts 'connect an agent' panel with tabs for Claude, ChatGPT, Claude Code, Claude Desktop, Cursor, n8n and curl, and the steps to add the MCP server URL
Connecting an AI agent to OpenShorts through its MCP server.OpenShorts README ↗

Optional: drive it from an agent

Add the self-hosted MCP server to Claude Code; tools include process_video, get_job_status, list_clips, recut_clip and publish_clip.

bashbash
claude mcp add --transport http openshorts http://localhost:8000/mcp

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Turning a weekly podcast or interview into a batch of captioned vertical clips without a paid clipping service
  • Running a fully local clipping pipeline on your own server with an Ollama model doing the moment selection
  • Letting an AI agent clip and schedule videos through the MCP server or REST API, with webhooks instead of polling
  • Producing low-cost UGC-style product videos with AI actors for TikTok, Reels and Shorts
The OpenShorts UGC gallery showing six AI-actor marketing videos with titles, durations, low-cost or premium tags and per-video cost
AI Shorts output in the UGC gallery, with each video's mode and cost.OpenShorts README ↗

How OpenShorts compares

OpenShorts alongside other open-source video generation tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
MoneyPrinterTurbo★ 147kA self-hosted WebUI, API and CLI that turns one topic or keyword into a finished short video — script, stock or generated footage, voiceover, subtitles and music.
HyperFrames★ 93.2kHeyGen's HTML-to-video renderer: author a composition in HTML, CSS and JS, preview it in a browser, then render the same input to a deterministic MP4 locally or on AWS Lambda.
OpenMontage★ 84.5kAn agentic video production system that gives a coding assistant 12 pipelines and 100+ tools to research, script, generate and render a video end to end.
Open Generative AI★ 37kMIT-licensed desktop and web studio for AI image, video and lip-sync generation that runs hosted models through the Muapi.ai API, with optional local image models in the desktop app.
Hypit★ 31.9kA markup language and compiler that lets a coding agent rebuild a reference video as an editable workflow — footage, captions, B-roll and effects anchored to words rather than timestamps — and render variants in one command.
Toonflow★ 23.3kInfinite-canvas workbench for AI short-drama production, taking a novel through chapter events, script, storyboards and video nodes.
Lemo-Opuscar★ 23.2kA Claude Code skill and library of 59 film styles that has a coding agent make a narrated short film entirely in code — canvas and WebGL frames, scored music and TTS — with no video model.
OpenShorts★ 10.1kA self-hostable OpusClip alternative that turns long videos into reframed, captioned 9:16 shorts