PeakCut: Open-Source Tool Auto-Clips Streams to Vertical Shorts With Local AI

PeakCut turns long videos and live streams into captioned 9:16 clips, runs entirely on your hardware, and supports any OpenAI-compatible model plus local speech recognition.

cpaua4 min12

PeakCut, an MIT-licensed Python project that appeared on GitHub on 14 November 2026, automates the full pipeline from long-form video or live stream to ready-to-post vertical clips. You paste a YouTube, Twitch, or Kick link (or upload a file), and the tool transcribes the audio locally, asks an AI which moments hold a stranger's attention, renders each selection in 9:16 with word-by-word captions in one of three styles, and can queue or auto-publish to YouTube, Instagram, and TikTok with spacing and daily caps. The repository has gathered 1,527 stars and 493 forks.

haziqahmedqasmi/PeakCutgithub.com/haziqahmedqasmi/PeakCut

Live clipping while the stream is running

The standout feature is a rolling buffer that records a live transmission and cuts highlights before the stream ends. PeakCut evaluates loudness, chat activity, and the running transcript to decide what to clip in real time. Each creator gets a separate workspace with their own connected channels, clip settings, posting rules, and an activity log.

Bring your own AI key — or run without one

Clip selection uses a chat model that returns JSON. The dashboard (Settings → AI) supports Gemini, OpenAI, Grok (xAI), Groq, OpenRouter, Anthropic Claude, a local model via Ollama, or any OpenAI-compatible endpoint. Multiple model IDs can be listed as fallbacks. If no key is provided, PeakCut falls back to loudness-based moment picking. The project's studio/ai.py is the only file that talks to an AI service, making it straightforward to add new providers.

Speech recognition stays on your machine

Transcription uses sherpa-onnx with NVIDIA's Parakeet model (English, ~480 MB) and a FastConformer Arabic model (~107 MB), both released under CC-BY-4.0. The model downloads once on first start; audio never leaves the host. Arabic support is opt-in via Settings → Speech models or per-video options, and the UI captions remain in English even when the source mixes Arabic and English.

Requirements and local deployment

PeakCut needs Python 3.10+ and ffmpeg (install via winget install Gyan.FFmpeg on Windows, brew install ffmpeg on macOS, sudo apt install ffmpeg on Linux). The repository should live in a short, permanent path — C:\peakcut or ~/peakcut — because Windows cannot open files whose full path exceeds 260 characters, which breaks model loading. After pip install -r requirements.txt, start the server with python -m studio.server and open http://127.0.0.1:8765. No sign-in is required on a personal machine; on a shared server set PEAKCUT_ACCOUNTS=1 to enable email/Google authentication and an admin dashboard at /admin.

Posting automation and storage management

Connected accounts (YouTube, Instagram, TikTok) are configured once per workspace. Finished clips can be queued manually or auto-posted with configurable intervals and daily limits. All data — videos, clips, recordings, creators, settings, and the speech model — lives in a single folder (default ./data, override with PEAKCUT_DATA). The dashboard shows remaining disk space, lets you move the folder to another drive, and pauses new ingest when the drive is nearly full. A Docker Compose stack with PostgreSQL and Caddy for HTTPS is documented in DEPLOY.md.

Resource-aware queueing under load

The server measures CPU, memory, and disk every second. Each user's videos wait in their own queue and the queues take turns, so one heavy job cannot block others. New tasks start only while headroom exists, pause briefly when resources are tight, and resume automatically. Upload size, video length, recording duration, creator count, and storage are unlimited unless explicitly capped in .env. Five concurrent uploads are allowed; request bodies are size-capped to prevent memory exhaustion.

Related reading

Sources

haziqahmedqasmi/PeakCutgithub.com/haziqahmedqasmi/PeakCut
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.