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.
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.
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
- Codync: Open-Source Grok Bot Alternative Turns 40+ AI Agents into Messageable Bots
- Unity Releases Official AI Agent Plugin With 29 Skills for Claude Code, Codex, Grok
- Claude-video open-source skill adds video analysis to AI agents
Sources
Related news
AI ToolsApp Store Compliance: Open-Source Guard Catches 125+ Rejection Patterns Before SubmissionFree tool scans iOS and Android projects locally, integrates with Claude Code, Codex, Cursor and other AI agents, and tracks EU AI Act, COPPA and age-gating deadlines.·by shared tag
AI ToolsGoogle Releases Official Migrate-to-Rust Skill for AI AgentsGoogle adds a dedicated Rust migration skill to its Agent Skills repository, giving coding agents a structured path for modernizing legacy codebases.·by shared tag
AI ToolsGoogle's EGM Plugin Splits AI Coding Into Architect and Coder RolesElephant-Goldfish Model separates long-term planning from stateless code generation to prevent context pollution in extended AI-assisted development sessions.·by shared tag
- Claude CodeJunior developer leaks production database password to Claude Code, sparking security debateA Reddit thread reveals how a schema migration error led to credentials exposure, and why enterprise subscriptions don't eliminate local storage risks.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.