Início / Blog / PeakCut GitHub

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

Repositoryhaziqahmedqasmi/PeakCut
LicenseMIT (caption fonts under SIL OFL)
Language / stackPython 3.10+, FastAPI, ffmpeg + yt-dlp, plain HTML/JS dashboard
Created14 November 2026
Local databaseSQLite
Server databasePostgreSQL
Local dashboardhttp://127.0.0.1:8765 — no sign-in
Speech to textsherpa-onnx + Parakeet, runs locally (~480 MB model)
Official repository

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.

Name check before you start

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.server

Open 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-here

Important: 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 --build

On 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.com

All 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 IDServiceKeyNote
geminiGoogle GeminiHostedaistudio.google.com/apikey
openaiOpenAIHostedplatform.openai.com/api-keys
groq / openrouterGroq / OpenRouterHostedFast models; one OpenRouter key reaches many
anthropic / xai / mistral / deepseekClaude / Grok / Mistral / DeepSeekHostedProvider console
ollama / lmstudioLocal model on your machineNo paid keyMust return JSON reliably
customAny OpenAI-compatible endpointHosted or localAlso 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 SaaSpeakcut.ai (separate SaaS)
Where it runsYour own computer or server; clips stay in your data folderVendor cloud — source video is uploadedSeparate hosted service
InputYouTube / Twitch / Kick link or local fileUploaded file or connected channelIts own workflow
Which moments get clippedAI reads the full transcript (~4 requests per hour of video); live uses loudness + chat activity + transcriptVendor-specific selection modelsProduct-specific
Transcription privacyLocal: audio never leaves your machineProcessed in the vendor cloudCloud processing
CostFree MIT code; pay your AI provider directly, or use local modelsSubscription / credit packsIts own pricing
Live stream clippingYes — rolling buffer, clips while the stream is still runningUsually after the video is uploadedNot the same product
Multiple creatorsSeparate workspace per creator with channels, settings and logsTeam seats / workspaces, plan-dependentProduct-specific
PublishingQueue or auto-post to YouTube, Instagram and TikTok with spacing and daily capsVaries by tool and planProduct-specific
LicenseMIT — you can fork and modify itProprietaryProprietary

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