PeakCut GitHub: Self-Hosted AI Clipping for Long Videos & Live Streams
PeakCut is the open-source tool people are looking for when they search “peakcut github”: a self-hosted pipeline that turns long videos and streams into captioned vertical clips. Here is the real repository, a working install and deployment guide, and an honest comparison with hosted clipping tools.
By AI Video Generator Editorial · Updated November 2026 · 9 min read
PeakCut GitHub repository at a glance
| Repository | haziqahmedqasmi/PeakCut |
| License | MIT (caption fonts under SIL OFL) |
| Language / stack | Python 3.10+, FastAPI, ffmpeg + yt-dlp, plain HTML/JS dashboard |
| Created | 14 November 2026 |
| Local database | SQLite |
| Server database | PostgreSQL |
| Local dashboard | http://127.0.0.1:8765 — no sign-in |
| Speech to text | sherpa-onnx + Parakeet, runs locally (~480 MB model) |
PeakCut on GitHub — MIT-licensed, created 14 November 2026, and actively developed. Star the repo to follow updates; the dashboard also checks GitHub for new releases.
peakcut.ai is a different product — a hosted SaaS for AI presenters and short-video pipelines. It is not the repository below. Search for peakcut github and you want haziqahmedqasmi/PeakCut.
What PeakCut actually does
- Clips from any video. Transcribes the audio, asks an AI which moments would hold a stranger’s attention, and renders each as 9:16 with word-by-word captions in one of three styles and a hook line.
- Live clipping. Records a stream into a rolling buffer and cuts highlights while it is still live, using loudness, chat activity and the transcript as signals.
- Workspaces per creator. Channels, clip settings, posting rules and an activity log stay separate for each creator.
- Posting. Connect YouTube, Instagram and TikTok once, then queue or auto-post with spacing and daily caps.
- Local transcription. Speech recognition uses sherpa-onnx with NVIDIA’s Parakeet model on your own machine — audio never goes to an AI service.
Deploy PeakCut locally (quick start)
Requirements: Python 3.10+ and ffmpeg. Install ffmpeg with winget install Gyan.FFmpeg (Windows), brew install ffmpeg (macOS) or sudo apt install ffmpeg (Linux).
Use a short, permanent path — C:\peakcut on Windows or ~/peakcut on macOS/Linux. A deep temporary folder can break speech-model loading on Windows (260-character path limit).
git clone https://github.com/haziqahmedqasmi/PeakCut C:\peakcut
cd C:\peakcut
pip install -r requirements.txt
python -m studio.serverOpen http://127.0.0.1:8765. On first start PeakCut downloads the speech model (about 480 MB, once). No sign-in on a local machine. Go to the AI page, choose a provider, paste the key and press Save and test — or put the same settings in .env:
PEAKCUT_AI_PROVIDER=gemini
PEAKCUT_AI_MODELS=gemini-2.5-flash
PEAKCUT_AI_KEY=your-key-hereImportant: the README says a working AI key is required — without one, no clips are made. If you do not want a paid API key, point PEAKCUT_AI_PROVIDER at ollama or lmstudio and run a local JSON-capable model.
Server deployment with Docker
The repo includes Dockerfile, docker-compose.yml and DEPLOY.md for a one-server setup: the app, PostgreSQL and Caddy for automatic HTTPS. Copy the repo to the server, then:
docker compose up -d --build
# later updates:
git pull && docker compose up -d --buildOn a shared server set PEAKCUT_ACCOUNTS=1 for email or Google sign-in. Grant admin privileges from the machine itself — no web request can change roles:
python -m studio.admin grant you@example.comAll state lives in one folder (default ./data, overridable with PEAKCUT_DATA): videos, clips, recordings, creators, settings and the speech model. Backups are a folder copy; the app stops accepting new videos when the disk is nearly full. Keep .env and secrets/ private — they are git-ignored.
Choose your AI provider
PeakCut needs a chat model that returns JSON. A one-hour video is read in about four requests, so a fast, inexpensive model is enough. Model IDs change often — check the provider’s current list; several comma-separated IDs are tried in order as fallbacks.
| Provider ID | Service | Key | Note |
|---|---|---|---|
gemini | Google Gemini | Hosted | aistudio.google.com/apikey |
openai | OpenAI | Hosted | platform.openai.com/api-keys |
groq / openrouter | Groq / OpenRouter | Hosted | Fast models; one OpenRouter key reaches many |
anthropic / xai / mistral / deepseek | Claude / Grok / Mistral / DeepSeek | Hosted | Provider console |
ollama / lmstudio | Local model on your machine | No paid key | Must return JSON reliably |
custom | Any OpenAI-compatible endpoint | Hosted or local | Also set PEAKCUT_AI_BASE_URL |
PeakCut vs hosted clipping tools
The real trade-off is not features — it is where the video goes and who pays. Hosted tools (OpusClip, Submagic, Veed and similar) take care of infrastructure but require uploading your footage and charge subscriptions or credits. PeakCut is free code on your own machine: you pay the AI provider directly, or nothing with a local model.
| PeakCut (self-hosted) | Hosted clipping SaaS | peakcut.ai (separate SaaS) | |
|---|---|---|---|
| Where it runs | Your own computer or server; clips stay in your data folder | Vendor cloud — source video is uploaded | Separate hosted service |
| Input | YouTube / Twitch / Kick link or local file | Uploaded file or connected channel | Its own workflow |
| Which moments get clipped | AI reads the full transcript (~4 requests per hour of video); live uses loudness + chat activity + transcript | Vendor-specific selection models | Product-specific |
| Transcription privacy | Local: audio never leaves your machine | Processed in the vendor cloud | Cloud processing |
| Cost | Free MIT code; pay your AI provider directly, or use local models | Subscription / credit packs | Its own pricing |
| Live stream clipping | Yes — rolling buffer, clips while the stream is still running | Usually after the video is uploaded | Not the same product |
| Multiple creators | Separate workspace per creator with channels, settings and logs | Team seats / workspaces, plan-dependent | Product-specific |
| Publishing | Queue or auto-post to YouTube, Instagram and TikTok with spacing and daily caps | Varies by tool and plan | Product-specific |
| License | MIT — you can fork and modify it | Proprietary | Proprietary |
Who should self-host PeakCut?
- Good fit: podcasters, streamers and clipping studios with hours of source material, a need to keep footage local, and a machine that can run ffmpeg around the clock.
- Poor fit: anyone who only cuts an occasional clip and does not want to install Python, ffmpeg and a speech model.
- Before you post: clip only videos you made or have permission to use, label AI-written captions/hooks where platforms require synthetic-media disclosure, and check the rules of each source and destination site.
Frequently asked questions
What is the PeakCut GitHub project?
PeakCut is a free, MIT-licensed, self-hosted tool that turns long videos and live streams into captioned 9:16 vertical clips. Paste a YouTube, Twitch or Kick link (or upload a file); it transcribes locally, lets AI pick the moments, adds word-by-word captions and a hook, and can queue clips to YouTube, Instagram or TikTok.
Is PeakCut free and open source?
Yes. The code is MIT-licensed at github.com/haziqahmedqasmi/PeakCut with no credits or subscription inside the app. You pay the AI provider you connect (or run a local model for free), plus your own hardware and electricity.
Can I run PeakCut without an AI key?
Not for clip generation: the official README states that a working AI key is needed and that without one, no clips are made. You can avoid paid keys by running a local model through Ollama or LM Studio. Speech-to-text is separate: it runs on your own machine with sherpa-onnx and the Parakeet model (about 480 MB, downloaded once), so audio never leaves it.
How do I deploy PeakCut on a server?
The repository ships Dockerfile, docker-compose.yml and DEPLOY.md for a one-server deployment with PostgreSQL and automatic HTTPS via Caddy. Run docker compose up -d --build in the PeakCut folder. On any server other people can reach, set PEAKCUT_ACCOUNTS=1 and grant an admin from the machine itself with python -m studio.admin grant you@example.com.
Is PeakCut the same as peakcut.ai?
No. peakcut.ai is a separate SaaS product for AI presenters and short-video pipelines. The open-source PeakCut GitHub repository is a different project, released under MIT in November 2026, and is not affiliated with that site.
Which AI models work with PeakCut?
Any chat model that reliably returns JSON: Gemini, OpenAI, Grok, Groq, OpenRouter, Claude, DeepSeek, Mistral and other hosted providers, plus local Ollama / LM Studio or any OpenAI-compatible endpoint. About four requests are used per hour of video; a fast, inexpensive model is recommended.
Related guides on this site
Best AI video generators · Kling review · Seedance review · Bulin 47 AI video trend