connect-youtube-developer-platform

Installation
SKILL.md

Give the user's agents their YouTube channel (videos, stats, comments, uploads) through a small CLI that talks to the YouTube APIs with the user's own Google Cloud project, so every call uses their own free daily quota (10,000 units) and no third-party service. Do every step yourself in Chrome AI with the dev-browser skill; the user only signs in, picks their channel and clicks "Allow" in Google's pages. Talk to the user in their language, short messages, no jargon (never say "OAuth", "client secret", "scope" or "token" to them; say "YouTube access" and "the key").

If you got this skill from a link instead of a local folder, install nothing else from the repo: download scripts/youtube.py and scripts/youtube-oauth.sh with curl -fsSL https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/connect-youtube-developer-platform/scripts/<file> -o <scratch>/<file>, and read another skill it names only when you reach it, from https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/<skill-name>/SKILL.md.

Never print, log or repeat the key's secret, a sign-in code or what youtube.py keeps in ~/.config/youtube-cli/config.json. Browser scripts that read the secret write it straight to a file with writeFile and log only { saved: true }. Ask the user before you accept Google Cloud's terms or publish the app (steps 3 and 6), once for both.

  1. Check the tools. chrome-ai start and dev-browser --help must answer (otherwise run setup-dev-browser), and python3 --version must be 3.9 or newer. If ~/.agents/skills/youtube-cli/ already exists, run python3 ~/.agents/skills/youtube-cli/scripts/youtube.py channel: if it answers, tell the user YouTube is already connected and skip to step 10.

  2. Pick the account: the argument, or the Google account signed in to Chrome AI (open https://myaccount.google.com in a page named connect-youtube and read the email). If Chrome AI is not signed in to Google, ask the user to sign in there with the account that owns their YouTube channel and say "done". Then open https://www.youtube.com/account and read the channel name, so you can confirm it with the user in one line.

  3. Find or create the Google Cloud project, in the page connect-youtube. A project of its own keeps YouTube's quota apart from anything else. Open https://console.cloud.google.com/cloud-resource-manager and look for a project named YouTube CLI: reuse its ID. If there is none, open https://console.cloud.google.com/projectcreate, name it YouTube CLI, create it, wait for the notification, and read its ID (the project= part of the address once it opens). On a first visit, Google Cloud asks for a country and its terms: ask the user before you accept. Read each page with snapshotForAI() before clicking: the console speaks the user's language and moves its buttons.

  4. Turn on YouTube: open https://console.cloud.google.com/flows/enableapi?apiid=youtube.googleapis.com,youtubeanalytics.googleapis.com&project=<id> and confirm. Wait until the page says they are on.

  5. Set up the sign-in screen: open https://console.cloud.google.com/auth/overview?project=<id>. If it offers to get started, fill: app name YouTube CLI, support email = the account, audience External, contact email = the account, tick the Google API Services User Data Policy box, then create. If it is already set up, keep it as it is.

  6. Keep the access for good: open https://console.cloud.google.com/auth/audience?project=<id>. If the status is "Testing", click "Publish app" and confirm. A Testing app loses YouTube access every 7 days; published, it keeps it (Google does not review a personal app, it only shows a warning when signing in).

  7. Create the key: open https://console.cloud.google.com/auth/clients/create?project=<id>, type Desktop app, name YouTube CLI, create. In the same browser script, read the client ID and the secret from the dialog that opens and save them without logging them:

    await writeFile("youtube-client.json", JSON.stringify({ installed: { client_id, client_secret } }));
    console.log(JSON.stringify({ saved: true, client_id_end: client_id.slice(-30) }));
    
Installs
22
GitHub Stars
48
First Seen
Nov 2, 2026