Open-Source PeakCut Turns Livestreams Into Viral Clips for Pennies
An open source tool turns long videos and live streams into captioned vertical clips using your own AI API key, with no vendor lock in.
Takeaways
- PeakCut is a self-hosted, MIT-licensed tool that clips long videos and live streams into vertical captioned shorts.
- Paste a YouTube, Twitch or Kick link, or upload a file, and it finds attention-holding moments and renders 9:16 clips.
- Live mode records streams into a rolling buffer and clips highlights using loudness, chat activity and transcript signals.
- Bring your own key: Gemini, OpenAI, Grok, Groq, OpenRouter, Claude, Ollama, or any OpenAI-compatible endpoint.
- Speech-to-text runs locally via sherpa-onnx with NVIDIA Parakeet (English) and FastConformer (Arabic), so audio never leaves your machine.
- One-click posting to YouTube, Instagram and TikTok with queueing, spacing and daily caps per creator workspace.
Hosted clipping services charge monthly fees to turn podcasts and livestream recordings into vertical videos. PeakCut packages that workflow as an open-source application that runs on the user’s hardware, connects to a user-supplied AI provider, and has attracted more than 1,700 GitHub stars.
A job starts with a YouTube, Twitch, or Kick URL, though users can also upload a file. PeakCut identifies promising moments, cuts them into 9:16 videos, adds word-by-word captions and an opening hook, then queues or publishes the results to connected accounts. Its live mode can create highlights while a broadcast is still running.
From source video to publish queue
PeakCut combines a FastAPI server with transcription, language-model analysis, media processing, and social publishing. Transcript analysis drives clip selection for recorded videos, while live jobs can also use loudness and chat activity.
- Transcribes source audio and asks a language model to identify segments likely to hold a viewer’s attention.
- Renders selected segments with three caption styles, a hook, and a vertical layout.
- Maintains a rolling buffer for livestreams and creates clips during the broadcast.
- Organizes channels, clip settings, posting rules, and activity logs into creator workspaces.
- Connects to YouTube, Instagram, and TikTok for queued or automatic posting, with configurable spacing and daily limits.
- Falls back to loudness-based selection when no AI key is configured.
Models are interchangeable
The AI layer supports Gemini, OpenAI, Grok, Groq, OpenRouter, Claude, local models through Ollama, and services that implement the OpenAI chat format. Users pay the selected provider directly, and PeakCut records token usage for each source video.
The language model processes transcripts, keeping requests smaller than video-based analysis would require. PeakCut typically divides a one-hour transcript across about four requests. With a fast, inexpensive model, that can reduce analysis costs to pennies per hour of source footage, although the final amount depends on the provider and model.
Audio stays on the machine
Speech recognition runs locally, so source audio stays on the host. PeakCut uses yt-dlp for retrieval, ffmpeg for media processing, and sherpa-onnx for transcription. The default English model is NVIDIA Parakeet, while the optional Arabic model uses NVIDIA FastConformer. Both models are available under the CC BY 4.0 license.
English support is installed by default. Users can add the roughly 107 MB Arabic model from Settings for Modern Standard Arabic and common dialects. During mixed-language speech, the AI processing step restores embedded English words in English. Final clip captions are rendered in English.
Setup follows a standard Python path
A local installation requires Python 3.10 or newer and ffmpeg. The repository can then be cloned and started with four commands:
git clone https://github.com/haziqahmedqasmi/PeakCut ~/peakcut
cd ~/peakcut
pip install -r requirements.txt
python -m studio.server
The first launch downloads the roughly 480 MB English speech model once. PeakCut then serves its dashboard at 127.0.0.1:8765 without requiring an account for local use.
Shared deployments can set PEAKCUT_ACCOUNTS=1 to enable email or Google sign-in and an administrative dashboard. Docker deployment is also available, including a docker compose up path with Caddy handling HTTPS.
Self-hosting shifts the operating work
PeakCut targets creators and agencies that process enough footage to make hosted clipping subscriptions expensive. Teams paying US$50 to US$200 per month can move transcription, storage, rendering, and workflow management onto existing hardware. Creator workspaces, posting limits, and live buffers also suit multi-channel operations.
Operators remain responsible for maintaining ffmpeg, configuring GPU drivers for faster transcription, funding provider accounts, and adding a reverse proxy for public deployments. GPU acceleration is optional, but CPU transcription will take longer.
With account support disabled, PeakCut binds to 127.0.0.1 and rejects cross-site state-changing requests. Its security guidance warns against exposing that mode directly to the internet. Users also remain responsible for media rights and for complying with the terms of the services they download from or publish to.
Clear seams make the stack reusable
PeakCut keeps costly and privacy-sensitive work under the operator’s control. Transcription runs locally, language-model access uses the operator’s key, and project data lives in a movable folder. The code isolates AI-provider communication in studio/ai.py, limiting the changes required to add another compatible backend.
Developers building related media tools can study how the project connects sherpa-onnx, yt-dlp, ffmpeg, JSON-formatted model responses, background jobs, and FastAPI. The repository’s AGENTS.md also maps the codebase for contributors and AI coding assistants.