explaingit

gargvr/shorts-autopilot

Analysis updated 2026-05-18

4PythonAudience · generalComplexity · 3/5LicenseSetup · moderate

TLDR

A Python tool that finds YouTube videos on a topic, cuts the best moments into vertical Shorts, adds captions, and uploads them to your channel automatically on a schedule.

Mindmap

mindmap
  root((Shorts Autopilot))
    Pipeline
      Discover YouTube videos
      Download and transcribe
      Select best moments
      Crop to 9 16
      Burn captions
      Upload to YouTube
    Pipelines
      Talking with GPT-4o
      Highlights audio peaks
    Config
      channel.yaml niche
      Provider keywords
      Privacy setting
    Scheduling
      Cron or Task Scheduler
      Claude Cowork skill
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a YouTube Shorts channel in a specific niche that automatically discovers, clips, and uploads content on a schedule.

USE CASE 2

Convert a long interview or podcast into several vertical clips with animated captions with a single command.

USE CASE 3

Generate ready-to-paste titles, hashtags, and pin comments for each clip without writing them yourself.

USE CASE 4

Use the sports pipeline to automatically clip and post highlight moments from recent football matches.

What is it built with?

PythonOpenAI WhisperGPT-4offmpegYouTube Data API

How does it compare?

gargvr/shorts-autopilotadeliox/klein-head-swapats4321/ragit
Stars444
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity3/53/52/5
Audiencegeneraldesignerdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires YouTube Data API key, OpenAI key for the talking pipeline, and OAuth credentials for uploading.

Use the code freely including commercially, you are responsible for any legal issues arising from the content you process.

In plain English

Shorts Autopilot is a Python tool that automatically finds long-form YouTube videos in a topic area, cuts the best moments into vertical short clips, adds animated captions, and uploads them to your YouTube channel on a schedule. The goal is to run a YouTube Shorts channel that publishes content without ongoing manual work. Each run follows a fixed pipeline. It searches YouTube for recent popular videos matching keywords you define in a YAML config file. It picks one video you have not clipped before, downloads it, and then runs one of two cutting strategies: for talk-style or interview content, it transcribes the audio with Whisper and uses GPT-4o to identify the strongest self-contained moments, then crops each to 9:16 (vertical) framing and adds word-by-word captions. For sports or highlight content, it finds audio peaks like crowd noise and renders them as vertical clips with the original commentary. After cutting, it generates ready-to-paste titles, captions, and hashtags for each clip, then uploads them to YouTube as private by default. A local ledger file remembers which source videos have already been processed, so each run automatically moves to something new. You configure the niche, keyword list, privacy setting, and pipeline type in a single YAML file. A dry-run flag lets you preview what would happen without downloading or uploading anything. The only paid costs are for the talking pipeline: OpenAI Whisper transcription at roughly $0.006 per source minute and a single GPT-4o call for moment selection, totaling under $0.20 for a typical 8 to 12 minute video. The highlights pipeline has no API costs beyond the YouTube Data API. A local Whisper option (faster-whisper) is available to eliminate the transcription cost entirely. The tool runs on cron, Windows Task Scheduler, or a Claude Cowork scheduled task. Uploads default to private, and the README includes a clear legal notice: reuploading copyrighted content violates YouTube terms of service regardless of attribution. The code is MIT licensed, you are responsible for what you run through it.

Copy-paste prompts

Prompt 1
How do I set up Shorts Autopilot with my YouTube API key and OpenAI key and run a dry-run to see what it would clip?
Prompt 2
How do I configure channel.yaml so Shorts Autopilot targets a specific niche with custom keywords and posts as unlisted?
Prompt 3
What is the cost breakdown for running the talking pipeline on a 10-minute YouTube video with Shorts Autopilot?
Prompt 4
How do I schedule Shorts Autopilot to run every hour on a Linux server using cron?
Prompt 5
How do I switch Shorts Autopilot to use local faster-whisper instead of the OpenAI API to avoid transcription costs?

Frequently asked questions

What is shorts-autopilot?

A Python tool that finds YouTube videos on a topic, cuts the best moments into vertical Shorts, adds captions, and uploads them to your channel automatically on a schedule.

What language is shorts-autopilot written in?

Mainly Python. The stack also includes Python, OpenAI Whisper, GPT-4o.

What license does shorts-autopilot use?

Use the code freely including commercially, you are responsible for any legal issues arising from the content you process.

How hard is shorts-autopilot to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is shorts-autopilot for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub gargvr on gitmyhub

Verify against the repo before relying on details.