Skip to content
Projects

About

Live and past stream clipper: finds the moments, judges them with Claude, posts Shorts and Reels from your own accounts.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+8
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Operator Clipper

Operator Clipper watches live streams (Twitch, YouTube, Kick) or past streams, finds the moments people react to, asks Claude to judge and title them, cuts them into 1080x1920 vertical clips, and lets you review and post them to YouTube Shorts and Instagram Reels from your own accounts. It runs on your own computer. Your keys and logins stay on your machine.

It is open source under the GPL-3.0 license. It was built by Operator Logs: https://theoperatorlogs.com

Use it responsibly

Read this before you post anything.

  • Only clip your own content, or content from creators who allow it, or content you are clipping inside a clipping campaign that gives you the right to do so.
  • You are responsible for having permission for every stream and clip you process and post.
  • You are responsible for following the terms of YouTube, Instagram, Twitch and Kick, including their rules on reused content, automation and API use.
  • This tool does not grant you any rights to anyone's content. The license in this repository covers the software only.
  • Descriptions and captions generated by the tool intentionally contain no promotional links. Do not add affiliate or spam links to them.
  • Review before you post. The default posting mode for a new account is manual review, and you can keep it that way.

What it does

  • Watches live streams from Twitch, YouTube and Kick through streamlink, and keeps a rolling recording on disk. Other sites that streamlink supports are watched with audio detection only.
  • Clips past streams too: paste a YouTube video, Twitch VOD or Kick video link and it scans the whole recording.
  • Finds candidate moments from several signals: chat spikes (Twitch, YouTube and Kick chat), loudness, laughter, screams and cheers in the audio, facial expressions, motion and speech pace. The audio and face models run locally through MediaPipe.
  • Sends each candidate window to Claude, which decides whether it is worth posting, picks the exact start and end, and writes a title, description, tags and short on-screen reaction text.
  • Scores each clip on nine dimensions (hook, emotion, surprise, humor, clarity, payoff, talkability, shareability, rewatch) so you can sort by it. The score is a guide, not a prediction of how a clip will perform.
  • Cuts the clip with ffmpeg into a 1080x1920 video, with several layouts, burned-in captions and optional transcript captions through whisper.cpp.
  • Gives you a local review page with a grid view and a swipe feed, in light and dark themes. You can edit titles, reject clips, and post.
  • Posts to YouTube Shorts and Instagram Reels from accounts you connect, with per-account rules and pacing: manual or auto mode, daily limits, spacing, quiet hours and a minimum score.
  • Applies a text watermark at post time, per platform and per account. The master clip is never modified. See docs/WATERMARKS.md.
  • Uses niche packs (gaming, gta6, irl, podcast, events, custom) that hold the AI examples, themes, title keywords and hashtags for one kind of clipping. You can write your own. See docs/NICHES.md.
  • Runs a daily trend research pass that uses the official YouTube Data API to see what Shorts are doing well in your niche and rewrites an editable playbook that is fed to the AI judge.
  • Stores secrets (Google client, YouTube sign-ins, Instagram tokens, API keys) in the operating system keychain: macOS Keychain or Windows Credential Manager.
  • Has copyable links for posted clips.

Requirements

  • macOS 13 or newer (Apple silicon or Intel), or Windows 10 or 11 on x64. Linux is best effort and not tested as often.
  • Python 3.13 and ffmpeg. The installers add them if they are missing (Homebrew on macOS, winget on Windows).
  • An AI connection, one of:
    • Claude Code, using your own Claude Code login, or
    • an Anthropic API key of your own.
  • For YouTube posting: your own Google Cloud OAuth client (Desktop app). See docs/SETUP_YOUTUBE.md.
  • For Instagram posting: your own Meta app and an Instagram professional account. See docs/SETUP_INSTAGRAM.md.
  • Optional: whisper.cpp (whisper-cli) for transcript captions and podcast mode.

Nothing is shared between users. Everyone uses their own accounts and keys.

Quick start

macOS

  1. Download this repository: on https://github.com/theoperatorlogs/operator-clipper click Code, then Download ZIP, and unzip it (or git clone https://github.com/theoperatorlogs/operator-clipper.git). Open a Terminal in the folder.
  2. Run ./install.sh. It installs Python 3.13 and ffmpeg with Homebrew if they are missing, creates .venv, installs the Python packages, downloads the two MediaPipe models, creates config.toml from config.example.toml, and runs the setup check.
  3. Read the output of the setup check. It says exactly what is missing. You can run it again at any time with .venv/bin/python -m clipper doctor.
  4. Double-click start.command, or run .venv/bin/python -m clipper start. This starts the watcher and the review page together and opens http://127.0.0.1:8765 in your browser.
  5. Follow the first run walkthrough below.

If macOS blocks start.command the first time, right-click it, choose Open, and confirm.

Windows

  1. Download this repository: on https://github.com/theoperatorlogs/operator-clipper click Code, then Download ZIP, unzip it, and open the folder.
  2. Double-click install.bat. It runs install.ps1, which installs Python 3.13 and ffmpeg with winget if they are missing, creates .venv, installs the packages, downloads the two MediaPipe models, creates config.toml, and runs the setup check. If you prefer a terminal, run powershell -ExecutionPolicy Bypass -File install.ps1.
  3. Read the output of the setup check. You can run it again with .venv\Scripts\python -m clipper doctor.
  4. Double-click start.bat, or run .venv\Scripts\python -m clipper start. This starts the watcher and the review page together and opens http://127.0.0.1:8765 in your browser.
  5. Follow the first run walkthrough below.

Windows may show a SmartScreen or Defender warning for the scripts. See Troubleshooting.

First run walkthrough

  1. Add the AI. A "Get set up" card at the top of the review page lists the three first steps (AI, account, stream) and links to each one; it disappears when all three are done. Open Settings > AI and choose one option.
    • Claude Code: install it with npm install -g @anthropic-ai/claude-code, then run claude once in a terminal and sign in. The clipper uses that login.
    • Anthropic API key: paste your own key. Usage is billed per use by Anthropic. More detail is in docs/SETUP_AI.md.
  2. Add an account. Open Settings > Accounts. For YouTube, upload your Google OAuth client JSON and sign in. For Instagram, paste your access token. Keep the account in manual mode at first. Guides: docs/SETUP_YOUTUBE.md and docs/SETUP_INSTAGRAM.md.
  3. Add a stream. Open Settings > Streams, paste a channel link, and pick a niche (or leave it on Auto). To clip a past stream, use Settings > Past streams. You can also pass a link on the command line with python -m clipper vod <url>.
  4. Review. Clips appear on the review page as they are made. Watch them, edit the title, reject the ones you do not want. A clip below your minimum score is kept on disk but marked rejected.
  5. Post. Press the post button on a clip for the account you want. When you trust the results, you can switch an account to auto mode and set its daily limit, spacing and quiet hours.

Command line reference: docs/COMMANDS.md.

Troubleshooting

  1. ffmpeg is missing. Run python -m clipper doctor. On macOS install it with brew install ffmpeg. On Windows run winget install Gyan.FFmpeg, then open a new terminal so the PATH change applies. Run the installer again if you are unsure.
  2. Wrong Python version. The project targets Python 3.13. Check with python --version inside the virtual environment. If the installer picked another Python, delete .venv and run the installer again.
  3. Keychain prompts. macOS may ask for your login password when the clipper reads a secret, and Windows may ask the first time Credential Manager is used. Choose Always Allow on macOS if you trust the prompt. If you cannot use the keychain, the app falls back to a restricted local file under data/secrets, and you can force that with the environment variable CLIPPER_SECRETS=file.
  4. Google invalid_grant or a login that expires after 7 days. While your OAuth app is in Testing status, Google expires the sign-in after 7 days. Publish the app to Production in the Google Cloud console, then sign in again. See docs/SETUP_YOUTUBE.md.
  5. Instagram permission errors. Check that the account is a professional account, that the token includes the content publishing permission, and that the account is added as a tester on your Meta app. Generate a new token and use Replace token on the Accounts page. See docs/SETUP_INSTAGRAM.md.
  6. Port 8765 is already in use. Another copy of the clipper or another program holds the port. Close the other copy, or start the review page on another port with python -m clipper review --port 8766.
  7. Claude usage limits. With Claude Code you share the limits of your own plan. If clips stop getting titles, you may have hit a limit. Wait for it to reset, lower the number of streams, or switch Settings > AI to an Anthropic API key. When the AI fails, the clipper falls back to a plain heuristic range and templated text rather than dropping the clip.
  8. Windows Defender or SmartScreen warns about the scripts. The installer and start scripts are plain text and unsigned, so Windows may warn about them. Open them in a text editor to read them first. If you are comfortable, choose More info and Run anyway. If your policy blocks scripts, run the installer from PowerShell with -ExecutionPolicy Bypass as shown above.

More answers are in docs/FAQ.md.

Costs you should expect

The software is free. These are the costs that come from the services it uses:

  • Anthropic usage. Every candidate moment sent to Claude uses tokens, and frame images and transcripts add to that. With Claude Code this counts against your plan's limits. With an API key it is billed per use by Anthropic. Watching many streams for many hours uses more than watching one.
  • Your own API quotas. The YouTube Data API has a daily quota per Google Cloud project, and each upload and each trend research run uses part of it. Instagram limits how many posts an account can publish in 24 hours.
  • Your computer. Recording, audio analysis, face reading and rendering use CPU and disk. Old recording segments are pruned automatically after the number of hours set in the config.
  • Optional services you bring yourself, such as a separate YouTube API key for trend research. That key uses the same free quota system.

The clipper does not promise any views, earnings or growth. What a clip earns is decided by the platforms and your audience.

Project layout

clipper/          the application code (watching, detection, AI judge, cutter, review page, posting)
niches/           built-in niche packs: gaming, gta6, irl, podcast, events, custom
assets/           fonts, sound effects and music folders (see assets/sfx/README.md)
docs/             setup guides, niches, watermarks, FAQ, commands
config.example.toml   copied to config.toml by the installer
install.sh        macOS installer
install.bat       Windows installer launcher (runs install.ps1)
install.ps1       Windows installer
start.command     macOS start script (double-click)
start.bat         Windows start script (double-click)
data/             created at run time: database, recordings, clips, your settings (git ignored)
models/           the two MediaPipe models, downloaded by the installer (git ignored)

License

Operator Clipper is licensed under the GNU General Public License version 3. See LICENSE. Third party components and their licenses are listed in THIRD_PARTY_LICENSES.md.

Credits

Built by Operator Logs: https://theoperatorlogs.com

Thanks to the people behind streamlink, FFmpeg, whisper.cpp, MediaPipe, Pillow, NumPy and the other open source projects this tool stands on. Contributions are welcome: see CONTRIBUTING.md. To report a security issue, see SECURITY.md.

Explore related projects

Loading…