# AutoClip

> A local-first OpusClip alternative that cuts long videos and stream replays into ready-to-post clips

- Category: Multimodal Generation / Video Generation
- Language: Python
- Licence: MIT
- Repository: https://github.com/zhouxiaoka/autoclip
- Website: https://zhouxiaoka.github.io/autoclip_intro/
- Canonical page: https://ai-tldr.dev/tools/autoclip/
- Updated: 2026-11-26

## In short

AutoClip is an open-source, MIT-licensed tool that turns long videos into short, ready-to-post clips. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in Python and licensed MIT. To get started: install the desktop app.

## Overview

AutoClip is an open-source, MIT-licensed tool that turns long videos into short, ready-to-post clips. You give it a video link, a local file or a live-stream replay; it finds the best moments, tracks the speaker, reframes to 9:16 (or keeps the original aspect ratio), burns in captions, generates covers and titles, and exports clips with post copy for TikTok, YouTube Shorts, Instagram Reels, YouTube, Douyin, Xiaohongshu and Bilibili. It presents itself as the open-source alternative to OpusClip, with no subscription.

The project is local-first: cutting and rendering run on your own computer. Analysis is done by a language model you choose, either a cloud provider with your own API key or a local model through Ollama or LM Studio, and transcripts come from existing subtitles, local Whisper or SenseVoice, or a cloud speech-to-text service. With a local model and local transcription the whole pipeline runs offline. When cloud services are used, the README states that analysis sends only transcript text, vision models receive sampled frames and cloud ASR uploads the audio.

Version 1.6 added a Live Replay tab for game and talk streams, with six sources: OBS Studio, Twitch, YouTube, Kick, Discord and local recordings. Connected to OBS over its WebSocket server (port 4455), AutoClip trims the recording losslessly with `-c copy` and queues clips as soon as the stream ends; gameplay highlight detection handles plays of 8 seconds or more and works best with a vision-capable model. The desktop app is built with Tauri, React and a FastAPI backend, and uses FFmpeg, yt-dlp, Whisper and FunASR under the hood; its interface ships in 13 languages and captions support right-to-left Arabic.

The same engine is exposed to scripts and AI agents. An `autoclip` CLI produces clips from a file and an SRT in one command, an MCP server (`uvx autoclip-mcp`) lets Claude Code, Cursor, Codex or OpenCode clip videos directly, and an Agent Skill installs with `npx skills add`. A Docker Compose setup serves a web UI and API for Linux, Intel Macs and servers. The README's own benchmark on an Apple Silicon Mac: a 1 h 43 min interview with existing subtitles became 10 clips in 7.5 minutes for an estimated ¥0.09 of `qwen-plus` usage, and a 2 h 52 min video transcribed locally with Whisper took 29.5 minutes.

## What it does

- Automatic highlight detection for podcasts, interviews, talks, courses and gaming streams, with speaker tracking and smart 9:16 reframing or the original aspect ratio
- Burned-in captions (including right-to-left Arabic), AI-generated or local covers, titles and per-platform post copy
- Live Replay import from OBS Studio, Twitch, YouTube, Kick, Discord and local recordings, with OBS WebSocket auto-capture and lossless trimming
- Runs fully offline with Ollama or LM Studio plus Whisper or SenseVoice, or with your own cloud LLM and ASR keys
- One-click repurposing to TikTok, Shorts, Reels, YouTube, Douyin, Xiaohongshu and Bilibili, with direct publishing through Bilibili or Upload-Post
- A CLI, an MCP server for coding agents, an Agent Skill and a Docker web UI with API docs

## Getting started

The desktop app is the easiest route on Apple Silicon macOS and Windows 10/11 x64 (Python and FFmpeg are bundled). The CLI and MCP server need Python 3.10+ (3.11 recommended) and FFmpeg; Docker with Compose v2 covers Linux, Intel Macs and servers.

1. Install the desktop app

   Download the `.dmg` (Apple Silicon) or `-setup.exe` (Windows) from GitHub Releases. Builds are unsigned: on Windows choose More info → Run anyway on SmartScreen; on macOS allow it under System Settings → Privacy & Security, or clear the quarantine flag.

```bash
xattr -dr com.apple.quarantine "/Applications/AutoClip Desktop.app"
```

2. Pick a model

   Open Settings, choose a cloud provider and enter your API key, or start Ollama or LM Studio for a local model. Test the connection and save. You can also click the built-in example project to see results without any API key.

3. Generate clips

   Paste a video link, drop in a file, or switch to Live Replay to connect OBS or import a stream recording. Choose the platforms you post to and click Generate. Videos without subtitles download a local transcription component the first time.

4. Or drive it from the terminal and agents

   Start the MCP server, install the Agent Skill, or run the CLI on a file with an existing SRT.

```bash
uvx autoclip-mcp
npx skills add zhouxiaoka/autoclip

autoclip --version
autoclip produce talk.mp4 --srt talk.srt --platform tiktok --portrait-style podcast --json
autoclip outputs PROJECT_ID --export-kits
```

5. Connect it to Claude Code

```bash
claude mcp add autoclip -- uvx autoclip-mcp
```

6. Self-host with Docker

   The web UI is at http://localhost:3000 and the API docs at http://localhost:8000/docs.

```bash
git clone https://github.com/zhouxiaoka/autoclip.git
cd autoclip
cp env.example .env
mkdir -p data logs uploads
docker compose up -d --build
```

## When to use it

- Turning a long podcast or interview into a batch of captioned vertical clips without paying for a clipping subscription
- Clipping gaming or talk streams automatically from OBS right after the stream ends
- Keeping footage private by running analysis on a local Ollama or LM Studio model with local Whisper transcription
- Letting a coding agent produce and export clips through the MCP server or the CLI

## Version history

- 2026-11-26 v1.6.2: Added three short-video templates with hover previews, one-click resume for interrupted or partly failed renders, and a "first 30 minutes only" option for long videos; improved reliability with Gemini, DeepSeek, Bailian and local Ollama models.
