OAuth setup¶
ytstudio talks to YouTube through the official APIs, which means you bring your own OAuth client. The flow is one-shot.
1. Create a Google Cloud project¶
- Open the Google Cloud Console and create a project.
- Under APIs & Services Library, enable both YouTube Data API v3 and YouTube Analytics API.
2. Configure the OAuth consent screen¶
- Go to APIs & Services OAuth consent screen.
- Pick External and create the application.
- Fill in app name and your contact email.
- Skip scopes for now.
- Add yourself as a test user.
- Leave the app in Testing mode; you do not need full verification for personal use.
3. Create OAuth client credentials¶
- Go to APIs & Services Credentials.
- Create credentials OAuth client ID.
- Pick Desktop app as the application type.
- Download the JSON file.
4. Initialize ytstudio¶
Credentials and the shared client secrets land under
~/.config/ytstudio-cli/. Files are stored owner-only (0600) and
directories owner-only (0700).
Headless login¶
If you are setting things up on a server without a browser:
The command prints a Google OAuth URL. Open it in any browser, approve
access, and copy the failed 127.0.0.1 redirect URL back into the terminal.
ytstudio finishes the exchange locally.
Status¶
To remove credentials for a channel, use ytstudio profile remove <name> (see
Multi-channel profiles). On a fresh single-channel install the
active profile is default.
If you run more than one channel, head to Multi-channel profiles next.