Skip to main content
RapidDev - Software Development Agency

How to Install and Use YouTube in OpenClaw

To use YouTube in OpenClaw, install the youtube skill with `clawhub install youtube`, add a YouTube Data API v3 key to your OpenClaw config, and search, play, and interact with YouTube videos directly from OpenClaw chat. Type natural language commands like 'Find me the best tutorial on...' or 'Play the latest video from...' and OpenClaw handles the rest. Beginner difficulty, about 10 minutes to set up.

What you'll learn

  • How to install the youtube ClawHub skill and verify it is active
  • How to create a free Google Cloud project and enable the YouTube Data API v3
  • How to configure your YouTube API key in OpenClaw for search and playback commands
  • How to search YouTube, retrieve video metadata, and request video playback from OpenClaw chat
  • How the YouTube skill differs from YouTube Watcher — on-demand search vs background channel monitoring
Book a free consultation
4.9Clutch rating
600+Happy partners
17+Countries served
190+Team members
Beginner15 min read10 minutesMedia & MusicMarch 2026RapidDev Engineering Team
TL;DR

To use YouTube in OpenClaw, install the youtube skill with `clawhub install youtube`, add a YouTube Data API v3 key to your OpenClaw config, and search, play, and interact with YouTube videos directly from OpenClaw chat. Type natural language commands like 'Find me the best tutorial on...' or 'Play the latest video from...' and OpenClaw handles the rest. Beginner difficulty, about 10 minutes to set up.

Why Use the YouTube Skill in OpenClaw?

The YouTube ClawHub skill turns OpenClaw into a video search and discovery tool you can access from anywhere. Instead of opening a browser and navigating to YouTube manually, you type what you are looking for in OpenClaw chat and get results — video titles, channel names, view counts, links, and durations — returned instantly. This is particularly useful when OpenClaw is embedded in a workflow or chat interface where switching to a browser is disruptive.

The YouTube skill handles on-demand queries: search for a topic, retrieve a specific video by title or channel, or ask for the most popular videos in a category right now. This is distinct from the YouTube Watcher skill, which monitors specific channels in the background and notifies you when new videos are posted. The YouTube skill is reactive (you ask, it responds); YouTube Watcher is proactive (it watches and alerts). Most users install both for different use cases.

The Google YouTube Data API v3 is free for personal and moderate-volume use, with a quota of 10,000 units per day (approximately 100 searches). The API key is free to generate through Google Cloud Console and does not require billing to enable for the YouTube Data API specifically. This makes the YouTube skill one of the lowest-friction integrations to set up in the OpenClaw ecosystem.

Integration method

ClawHub Skill

The YouTube skill integrates with OpenClaw via ClawHub, using Google's YouTube Data API v3 to search for videos, retrieve video metadata, fetch channel information, and surface content on demand through natural language prompts in OpenClaw chat. You install the skill with a single clawhub command, configure a free Google API key, and immediately start searching and interacting with YouTube content from any platform connected to OpenClaw.

Prerequisites

  • OpenClaw installed and running (version 1.0 or later)
  • The clawhub CLI available in your terminal
  • A Google account (free — same account you use for Gmail or YouTube)
  • A Google Cloud project with the YouTube Data API v3 enabled (free to create at console.cloud.google.com)
  • A YouTube Data API v3 key from Google Cloud Console

Step-by-step guide

1

Install the YouTube Skill via ClawHub

Open your terminal and install the YouTube skill from the ClawHub registry. The skill package includes YouTube Data API v3 client code, a natural language command parser that maps chat messages to YouTube API calls, and result formatting logic that presents video information in a readable format in OpenClaw chat. The installation takes under a minute. After it completes, verify the skill is listed as installed. It will show 'inactive' status until you configure an API key in the next step — this is normal behavior for skills that require external API credentials before they can function. If you see 'package not found' during installation, run `clawhub update` to refresh the skill registry index. If you see a version conflict, your OpenClaw installation may be below the minimum version required by the youtube skill — check with `openclaw --version` and update if needed.

terminal
1# Install the YouTube skill
2clawhub install youtube
3
4# Verify installation
5clawhub list --installed | grep youtube
6
7# Check initial status
8clawhub status youtube
9# Expected: 'youtube: installed (inactive — API key required)'

Pro tip: If you also want channel monitoring (get notified when specific channels post new videos), install `clawhub install youtube-watcher` as a companion skill. The two skills use the same API key but serve different use cases.

Expected result: The terminal shows 'youtube installed successfully'. The skill appears in the installed list with 'inactive' status until API credentials are configured.

2

Create a Google Cloud Project and Enable YouTube Data API v3

Go to console.cloud.google.com and sign in with your Google account. If you do not have a project, click 'Select a project' > 'New Project'. Name it 'OpenClaw YouTube' or similar. Click 'Create'. This is free and does not require billing. Once in your project, navigate to APIs & Services > Library. Search for 'YouTube Data API v3'. Click on it, then click 'Enable'. This adds the YouTube Data API to your project's allowed services. Next, create an API key. Go to APIs & Services > Credentials. Click 'Create Credentials' > 'API key'. Google creates a key immediately and displays it — copy it now. This is your YouTube Data API key. Optionally (recommended), restrict the key to only the YouTube Data API: click 'Edit API key', under 'API restrictions' select 'Restrict key', choose 'YouTube Data API v3' from the list, and save. This prevents the key from being used to call other Google APIs if it is ever leaked. The free quota for YouTube Data API v3 is 10,000 units per day. A search request costs 100 units, so you get approximately 100 searches per day at no cost. This is sufficient for personal and moderate team use. If you need higher quotas, Google offers paid quota increases.

terminal
1# Your YouTube Data API key will look like:
2# AIzaSyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3
4# Test the key immediately after creation:
5curl "https://www.googleapis.com/youtube/v3/search?part=snippet&q=openclaw&maxResults=3&type=video&key=YOUR_API_KEY"
6
7# A successful response returns a 'items' array of video results
8# A 403 error means the key was not created correctly or the API is not enabled
9# A 400 error means the key is malformed

Pro tip: Set up a Google Cloud billing alert even if you do not add a payment method — if you inadvertently hit the YouTube API quota and enable billing, alerts prevent unexpected charges. The YouTube Data API v3 quota resets daily at midnight Pacific Time.

Expected result: The YouTube Data API v3 is enabled in your Google Cloud project. The test API call returns a JSON array of video search results, confirming the key is valid and the API is enabled.

3

Configure Your YouTube API Key in OpenClaw

Open `~/.openclaw/config.yaml` and add the YouTube skill configuration block under the `skills` key. If a `skills` section already exists from other installed skills, add the youtube block inside it without replacing the existing content. The `api_key` field is your YouTube Data API v3 key from Step 2. The `max_results` field controls how many results the skill returns for search queries — 5 is a sensible default that provides enough context without overwhelming the chat interface. The `safe_search` option controls YouTube's content filtering: `moderate` (default) filters most explicit content while allowing news and documentary coverage; `strict` applies YouTube's strictest filtering; `none` disables filtering. For most users, `moderate` is appropriate. The `result_fields` list controls which video metadata fields the skill includes in search results. The defaults (title, channel, duration, views, url) give a good summary — add `description` if you want video description snippets in results, though this makes responses longer. After saving the config, reload OpenClaw with `openclaw reload` or restart the process. The YouTube skill status should change from 'inactive' to 'active'.

~/.openclaw/config.yaml
1# ~/.openclaw/config.yaml
2skills:
3 youtube:
4 api_key: "YOUR_YOUTUBE_DATA_API_V3_KEY"
5 max_results: 5 # Videos returned per search query (default: 5, max: 50)
6 safe_search: "moderate" # 'strict', 'moderate', or 'none'
7 default_region: "US" # ISO 3166-1 alpha-2 country code for regional results
8 default_language: "en" # Preferred video language
9 result_fields:
10 - title
11 - channel
12 - duration
13 - views
14 - url
15 # - description # Uncomment to include video descriptions in results

Pro tip: Set `default_region` to your actual country code (e.g., `GB` for UK, `DE` for Germany) to get locally relevant search results. YouTube's search ranking is region-sensitive and using the correct region code improves result relevance for region-specific queries.

Expected result: The config saves without errors. Running `clawhub status youtube` shows 'active' and `openclaw reload` logs a successful YouTube API authentication.

4

Test YouTube Commands in OpenClaw Chat

Open the OpenClaw chat interface and test YouTube commands. The skill understands a wide range of natural language video queries — you do not need to use specific syntax. Commands like 'Search YouTube for...', 'Find me videos about...', 'What are the most popular videos on...', and 'Get details for this YouTube video...' all work as you would expect. Start with a simple search to confirm the integration is responding correctly. You should see formatted results with video titles, channel names, view counts, and clickable URLs within seconds. Then try a more specific query — searching for a particular creator's videos or a specific video by approximate title. For video metadata retrieval, paste a YouTube URL directly in the chat and ask OpenClaw to summarize or describe the video. The skill fetches the video's metadata from the API and formats the key details.

OpenClaw Prompt

Search YouTube for the top 3 tutorials on machine learning for beginners from the past year and show me the titles, channels, and view counts

Paste this in OpenClaw chat

youtube-commands.txt
1# Example OpenClaw chat prompts for the YouTube skill:
2
3# Basic search
4"Search YouTube for tutorials on building a React app with TypeScript"
5"Find the most popular videos about sourdough bread baking"
6
7# Channel-specific
8"Show me the 5 most recent videos from the Kurzgesagt YouTube channel"
9"Find videos from Fireship published in the last month"
10
11# Video metadata
12"Get the details for this YouTube video: https://www.youtube.com/watch?v=VIDEO_ID"
13"How many views and likes does this video have: [URL]"
14
15# Discovery
16"What are the trending YouTube videos in the Technology category today?"
17"Find beginner Python tutorials with more than 1 million views"
18
19# Playback (if OpenClaw has a media output configured)
20"Play the first result for 'lofi hip hop study music'"
21"Queue up 3 jazz piano videos for background listening"

Pro tip: For the most accurate results on channel searches, use the exact channel name as it appears on YouTube rather than approximate names. Channel names are case-insensitive in the API, but unusual or ambiguous channel names may return incorrect results if not specified precisely.

Expected result: OpenClaw returns formatted YouTube search results in the chat interface — video titles, channel names, view counts, and URLs — confirming the skill is active and the API key is working.

5

Explore Advanced Use Cases and Combine with Other Skills

The YouTube skill becomes most powerful when combined with other OpenClaw skills and integrations. For example: search YouTube for relevant tutorials on a topic you are researching, then ask OpenClaw to summarize the top results using the summarize skill; or find the latest news videos on a topic and route the links to your Telegram or Discord channel automatically. For research workflows, the YouTube skill can retrieve video descriptions and metadata, which you can then process with OpenClaw's AI capabilities — extracting key points, comparing approaches across multiple tutorial videos, or building a curated content list. If you need YouTube transcripts (the spoken text content of videos rather than just titles and descriptions), the Video Transcript Downloader skill is a complementary tool. It works well alongside the YouTube search skill: search for relevant videos first, then download their transcripts for deeper analysis. The YouTube skill's API quota (100 searches/day on the free tier) is sufficient for personal and research use. For high-volume use cases, RapidDev's team can advise on API quota management and efficient querying patterns to stay within the free tier limits.

OpenClaw Prompt

Find the 3 most highly-viewed YouTube tutorials on Docker Compose from 2025 and give me a brief summary of what each one covers based on the video title and description

Paste this in OpenClaw chat

youtube-advanced.txt
1# Combine YouTube search with transcript download workflow:
2# 1. Search for relevant videos
3# 2. Extract video IDs from results
4# 3. Use video-transcript-downloader to get transcript text
5# 4. Summarize transcript content
6
7# In OpenClaw chat (multi-step workflow example):
8# "Search YouTube for the best OpenClaw tutorial videos,
9# then download the transcript for the top result,
10# and give me a 3-sentence summary of what it covers"
11
12# API quota usage reference:
13# Search query: 100 units
14# Video details: 1-5 units
15# Channel details: 1-5 units
16# Playlist items: 1-5 units
17# Daily free quota: 10,000 units
18# = approximately 100 searches/day at no cost

Pro tip: To check your current API quota usage, go to console.cloud.google.com > APIs & Services > Dashboard > YouTube Data API v3 > Quotas. This shows how many units you have consumed today and your remaining daily quota.

Expected result: OpenClaw returns rich video information and can chain YouTube searches with other skill capabilities in multi-step workflow prompts.

Common use cases

On-Demand Video Search and Discovery

Search YouTube for tutorials, news clips, music videos, or any content category directly from OpenClaw chat. The skill returns a ranked list of results with titles, channels, durations, and links — no browser required. Useful when you want to find a specific type of content without leaving your current workflow context.

OpenClaw Prompt

Search YouTube for the top 5 tutorials on setting up a Kubernetes cluster for beginners and show me the titles, channels, and view counts

Copy this prompt to try it in OpenClaw

Video Metadata and Detail Retrieval

Get detailed information about a specific YouTube video — description, publish date, tags, comment count, like count, and transcript availability — by providing a URL or video title. Useful for research, content curation, or building automated workflows that react to video details.

OpenClaw Prompt

Get the full description, publish date, view count, and channel details for the YouTube video at https://www.youtube.com/watch?v=dQw4w9WgXcQ

Copy this prompt to try it in OpenClaw

Channel Content Discovery

Find the most recent or most popular videos from a specific YouTube channel without subscribing or navigating to the channel page. Useful for staying up to date with specific creators, curating content from trusted sources, or building automated content feeds.

OpenClaw Prompt

Find the 3 most recently uploaded videos from the Fireship YouTube channel and show me their titles, publish dates, and view counts

Copy this prompt to try it in OpenClaw

Troubleshooting

clawhub install youtube fails with 'package not found' or registry error

Cause: The local ClawHub registry index is stale and does not include the latest skill packages.

Solution: Run `clawhub update` to refresh the registry index, then retry the install. If the error persists, check your internet connection and verify that ClawHub's registry endpoint is accessible. For 429 rate limit errors, wait 60 seconds and retry with `clawhub install youtube --mirror eu` to use an alternate mirror.

typescript
1# Refresh registry and retry:
2clawhub update
3clawhub install youtube
4
5# If rate limited, use alternate mirror:
6clawhub install youtube --mirror eu

YouTube searches return 'quota exceeded' or 403 error after the first day of use

Cause: The YouTube Data API v3 free quota of 10,000 units per day has been exhausted. Each search query costs 100 units, so approximately 100 searches per day are included at no cost.

Solution: Wait until midnight Pacific Time for the quota to reset. To avoid hitting the limit, set `max_results` to a lower number (3 instead of 5) to reduce the result set per query, or cache frequent search results in OpenClaw rather than re-querying YouTube for the same content. For sustained high-volume usage, apply for a quota increase in Google Cloud Console.

typescript
1# Reduce quota consumption by limiting results per query:
2skills:
3 youtube:
4 max_results: 3 # Lower value = fewer quota units per search

YouTube skill shows 'active' in clawhub status but searches return no results

Cause: The API key is valid but the `default_region` or `safe_search` settings are filtering out all results for the query, or the search query uses very specific terms that return no YouTube matches.

Solution: Test with a broad, popular search term first (e.g., 'cooking tutorial') to rule out query issues. If that works, the problem is with your specific search term. If it also fails, check that `safe_search` is not set to `strict` for a query with legitimate content, and verify `default_region` is a valid ISO country code.

typescript
1# Test with a simple, broad query directly:
2curl "https://www.googleapis.com/youtube/v3/search?part=snippet&q=cooking+tutorial&maxResults=3&type=video&key=YOUR_API_KEY"
3# If this returns results, the API is fine and the issue is your query or filters

OpenClaw YouTube API key configuration shows 'invalid API key' error

Cause: The API key in the config is incorrect, the YouTube Data API v3 is not enabled in the Google Cloud project, or the key was restricted to specific IP addresses that do not match where OpenClaw is running.

Solution: Verify the key in Google Cloud Console > APIs & Services > Credentials. Check that the key's API restrictions include YouTube Data API v3. If the key has IP restrictions, either add your current IP or remove the restriction. If the YouTube Data API is not enabled, go to APIs & Services > Library and enable it.

typescript
1# Verify the key works and the API is enabled:
2curl "https://www.googleapis.com/youtube/v3/videos?part=snippet&id=dQw4w9WgXcQ&key=YOUR_API_KEY"
3# 200 = key valid and API enabled
4# 403 = API not enabled or key restricted
5# 400 = key format is wrong

Best practices

  • Restrict your YouTube API key to only the YouTube Data API v3 in Google Cloud Console — this prevents the key from being used for other Google services if it is ever exposed.
  • Set `max_results` to 3-5 for most queries — returning 50 results per search uses the same quota per request but produces responses that are too long to be useful in chat interfaces.
  • Use specific, descriptive search queries rather than single keywords — 'React TypeScript tutorial 2026 beginner' returns far more relevant results than 'react tutorial'.
  • Monitor your API quota usage in Google Cloud Console > APIs & Services > Dashboard to avoid unexpected quota exhaustion — the free 10,000 units per day resets at midnight Pacific Time.
  • Install the Video Transcript Downloader skill alongside the YouTube skill for research workflows where you need the spoken content of videos, not just their titles and metadata.
  • For channel monitoring (get notified when specific channels post new videos), use YouTube Watcher rather than polling the YouTube skill manually — YouTube Watcher is purpose-built for background monitoring while this skill handles on-demand queries.
  • Keep the youtube skill updated with `clawhub update youtube` — Google occasionally deprecates YouTube API endpoints and the skill updates maintain compatibility.

Alternatives

Frequently asked questions

How do I install YouTube in OpenClaw?

Run `clawhub install youtube` in your terminal, then create a free YouTube Data API v3 key in Google Cloud Console (console.cloud.google.com). Add the key to your OpenClaw config under `skills.youtube.api_key` in `~/.openclaw/config.yaml`. Run `openclaw reload` or restart OpenClaw, and you can immediately start searching YouTube from OpenClaw chat.

Is the YouTube Data API v3 free to use with OpenClaw?

Yes — YouTube Data API v3 includes 10,000 free quota units per day, which equals approximately 100 search queries. Google does not require a payment method for this quota level. If you need more than 100 searches per day, you can apply for a free quota increase through Google Cloud Console or enable billing for paid quota top-ups.

What is the difference between YouTube and YouTube Watcher in OpenClaw?

The YouTube skill handles on-demand queries — you ask for a video, it finds and returns results immediately. YouTube Watcher runs in the background and monitors specific channels, notifying you when new videos are posted without any manual prompting. Most users install both: YouTube for active search and discovery, YouTube Watcher for passive channel monitoring.

How do I configure the OpenClaw YouTube API key?

Generate a YouTube Data API v3 key in Google Cloud Console (APIs & Services > Credentials > Create Credentials > API key) after enabling the YouTube Data API v3. Add it to `~/.openclaw/config.yaml` under `skills.youtube.api_key`. The key is a string starting with 'AIzaSy...'. Run `clawhub status youtube` after reloading to confirm the key is valid and the skill is active.

Why is clawhub install youtube not working?

Run `clawhub update` first to refresh the registry index, then retry. For 429 rate limit errors, wait 60 seconds and use `clawhub install youtube --mirror eu`. If you see a version conflict, check your OpenClaw version with `openclaw --version` — the youtube skill may require a newer version of OpenClaw than you currently have installed.

Can I control YouTube video playback from OpenClaw chat?

The YouTube skill retrieves video information and URLs — actual video playback depends on how OpenClaw is configured in your environment. If you have a media output configured in OpenClaw, you can request playback through the skill. For music-focused playback control, the Spotify Player skill is better suited. RapidDev can help configure OpenClaw's media output settings for your specific setup.

How many YouTube searches can I make per day with OpenClaw?

The free YouTube Data API v3 quota is 10,000 units per day, and each search request costs 100 units — giving you approximately 100 searches per day at no cost. Video detail lookups cost 1-5 units each. The quota resets daily at midnight Pacific Time. Monitor your usage in Google Cloud Console > APIs & Services > Dashboard > YouTube Data API v3 > Quotas.

RapidDev

Talk to an Expert

Our team has built 600+ apps. Get personalized help with your project.

Book a free consultation

Need help with your project?

Our experts have built 600+ apps and can accelerate your development. Book a free consultation — no strings attached.

Book a free consultation

We put the rapid in RapidDev

Need a dedicated strategic tech and growth partner? Discover what RapidDev can do for your business! Book a call with our team to schedule a free, no-obligation consultation. We'll discuss your project and provide a custom quote at no cost.