claude-yt
I often want to share a video with a few people: a walk-through of a 3D model, a screen recording of a tool, a family clip. YouTube’s unlisted visibility is perfect for that: the video doesn’t show up in search or on my channel, but anyone with the link can watch it without logging in.
Uploading through YouTube Studio is a lot of clicking, though. Since I work with Claude Code all day anyway, I wanted to just say “upload this as unlisted and give me the link”. So I built claude-yt.
What it is
claude-yt is a Claude Code skill: a short
instruction file plus a small Python command-line tool, yt, that talks to the
YouTube Data API v3. It can
- upload a video (default visibility: unlisted),
- list my uploads and show a video’s details,
- update title, description, tags or visibility,
- delete a video - Claude has to confirm with me first.
It is a personal tool. It runs only on my Mac, for my own channel, and is not offered to anyone else.
How it works
- The tool is a single uv script; uv installs the Google API client on first run, so there’s nothing to set up by hand.
- After a one-time Google sign-in, the OAuth token sits in the macOS Keychain. It is only ever sent to Google. There is no server and no database.
- Every command prints JSON, which is easy for Claude to read and to hand back to me as a link.
Setting up the Google side
The fiddly part is Google Cloud, not the code:
- Create a Google Cloud project and enable the YouTube Data API v3.
- Configure the OAuth consent screen as External and add yourself as a test user.
- Create an OAuth client of type Desktop app and download its JSON.
- Run
yt auth client_secret.jsononce and sign in.
Two things I learned on the way:
- Testing mode logs you out weekly. While the app is in “Testing”, Google’s refresh token expires after 7 days. To publish the app (“In production”), Google wants a home page and a privacy policy - which is the main reason this article exists.
- Unaudited projects are supposed to be private-only. Google says videos uploaded through an unaudited API project are locked to private. In my test the upload stayed unlisted anyway; the tool checks for the lock and tells me if it happens.
Terms of use
By using claude-yt you agree to be bound by the YouTube Terms of Service. claude-yt is provided as is, without any warranty.
Privacy
claude-yt uses YouTube API Services. What it accesses, where data is stored and how to revoke access is described in the claude-yt privacy policy.