Skip to main content

YT Studio CLI

ascii

CI Coverage PyPI Python

Manage and analyze your YouTube channel from the terminal. Designed for humans and AI agents.

Motivation

I built this because I needed to bulk update video titles for a YouTube channel I manage with 300+ videos. YouTube Studio does not support bulk search-replace operations, which made it a tedious manual process. This tool uses the YouTube Data API to perform bulk operations on video metadata. Furthermore, it provides features for analytics and comment moderation, all accessible from the command line.

Features

  • Bulk update video metadata across hundreds of videos in one pass (search-replace titles, descriptions, tags).
  • Upload videos from a directory using YAML sidecars for metadata and thumbnails.
  • Schedule, start, stop, and update YouTube livestream broadcasts, including RTMP ingest details.
  • Multi-channel profiles: manage several channels from one machine and switch per command.
  • Comments moderation: list, reply, approve, reject, and ban from the CLI.
  • Channel analytics queries via the YouTube Analytics API.
  • Playlists: bulk-add by search and reorder by views with one command.
  • Agentic authoring: use your LLM to write descriptions and edit metadata, based on the actual video transcript and guided by a per-channel tone of voice.

Documentation

See the full documentation for installation, OAuth setup, and the command reference.

Agent skill

This repo includes a harness-agnostic agent skill that teaches any skill-aware AI agent to operate a channel through this CLI, following the open SKILL standard.

Development

Clone the repo, sync dev dependencies, and install the pre-commit hook so ruff check and ruff format run on every commit (same checks CI runs):

uv sync --group dev
uv run pre-commit install

Run the suite manually with uv run pytest and uv run pre-commit run --all-files.

To preview the docs site locally, install the docs group and serve with mkdocs:

uv sync --group docs
uv run mkdocs serve  # or: uv run mkdocs build

API quota

The YouTube Data API enforces a default quota of 10_000 units per project per day. Most read operations (listing videos, comments, channel info) cost 1 unit, while write operations like updating video metadata or moderating comments cost 50 units each. Bulk updates can consume quota quickly. When exceeded, the API returns a 403 error; quota resets at midnight Pacific Time.

Action Examples Approx. cost
Read list videos, comments, playlists; analytics queries 1 unit
Write update a video, moderate a comment, add or reorder playlist items, schedule a broadcast 50 units
Search search.list, used by playlists add --from-search 100 units
Upload videos.insert ~1600 units

A full per-operation breakdown lives in the API quota docs.

You can request a quota increase via IAM & Admin → Quotas in the Google Cloud Console. See the official quota documentation for full details.

Disclaimer

This is not an officially supported Google or YouTube product. YouTube and YouTube Studio are trademarks of Google. All channel data is accessed exclusively through the official YouTube Data API and YouTube Analytics API.

Metadata

Release files for ytstudio-cli 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ytstudio-cli 0.5.0
File Size Uploaded Provenance Actions
ytstudio_cli-0.5.0.tar.gz 199.2 kB With provenance Details for ytstudio_cli-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ytstudio-cli 0.5.0
File Interpreter ABI Platform Actions
ytstudio_cli-0.5.0-py3-none-any.whl Python 3 none any Details for ytstudio_cli-0.5.0-py3-none-any.whl

Total release size: 253.3 kB

Release files / ytstudio_cli-0.5.0.tar.gz

Download URL ytstudio_cli-0.5.0.tar.gz
Size 199.2 kB
Tags Source
SHA-256 checksum
How to use checksums
85e423e44b4ad543171a6011da6d113d12718de6b5a99c09744ffd60f5d9ecc1
BLAKE2b-256 checksum
How to use checksums
293282adb383e2823f8d5db4793fbe8c9aa84634e9a0f63cc2e3235e300fab7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / ytstudio_cli-0.5.0-py3-none-any.whl

Download URL ytstudio_cli-0.5.0-py3-none-any.whl
Size 54.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
802184787260b521490362472d305cc3ee9e46c1960b80ac5367bb935cc7a2f7
BLAKE2b-256 checksum
How to use checksums
2830a2877a8a6ca6c346b319ebaf5afb94535be7e06f0cd48ab3468c607f02c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for ytstudio-cli 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ytstudio_cli-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page