YouTube Upload for Openclaw

A technical skill for automating video uploads to YouTube via official OAuth 2.0 authentication and API integration.

brorlandi
v1.0.0
Mar 1, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-youtube-upload

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-youtube-upload using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is YouTube Upload?

This Openclaw Skills addition provides a robust way to programmatically upload video content to YouTube using the official YouTube Data API v3. Unlike brittle browser-based scrapers, it uses Google's secure OAuth 2.0 flow to ensure reliability and compliance. It handles large file chunking and allows for granular control over metadata such as titles, descriptions, and privacy settings (public, private, or unlisted).

By leveraging this skill, developers can integrate video publishing directly into their automated workflows, ensuring that high-quality content reaches audiences without manual intervention. It is designed to work seamlessly within environments that support Python-based automation.

YouTube Upload Use Cases

  • Automating video publishing workflows for content creators and marketers.
  • Integrating video uploads into AI-driven video generation or editing pipelines.
  • Bulk uploading archival content or backups to YouTube as unlisted or private videos.
  • Developing automated social media scheduling tools that require direct video hosting.

How YouTube Upload Works

  1. Initialize the process by providing a local video file path and a valid Google Cloud client secret file.
  2. Authenticate the application via the browser-based OAuth 2.0 flow on the very first execution.
  3. Save the authentication state in a local token file to enable persistent, non-interactive access for future uploads.
  4. Transmit video data and metadata to YouTube servers using chunked media uploads to ensure stability for large files.
  5. Receive and process the API response to confirm the successful upload and retrieve the new video ID.

YouTube Upload Setup

To get started with this skill, install the required Google API libraries using pip:

pip3 install google-api-python-client google-auth-oauthlib google-auth-httplib2

You must also obtain a client_secret.json file from the Google Cloud Console with the YouTube Data API v3 enabled. Once configured, execute the upload script:

python3 scripts/upload.py \
  --file "/path/to/video.mp4" \
  --title "Your Title" \
  --description "Your Description" \
  --privacy "private" \
  --secrets "/path/to/client_secret.json"

YouTube Upload Data Schema & Taxonomy

The skill manages several key data components to ensure secure and efficient operation:

Component Description
client_secret.json Official OAuth 2.0 credentials generated via the Google Cloud Console.
token.pickle Local file generated after first auth to store session tokens for Openclaw Skills.
Metadata Input parameters including title, description, and privacyStatus (public, private, or unlisted).
Chunked Data The skill handles binary video streams in manageable chunks for API reliability.

YouTube Upload Advanced Features

  • Support for Resumable Uploads: Automatically handles large video files through chunking to prevent timeout errors.
  • Persistent Authentication: Uses local token caching so you only need to log in via a browser once.
  • Granular Privacy Control: Programmatically set visibility to public, private, or unlisted based on the workflow trigger.
  • Official API Compliance: Reduces the risk of account flagging compared to unofficial automation methods by using authorized Openclaw Skills protocols.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*