An Agent-Aware Command-Line Interface for interacting with the YouTube API.
- Dual-Mode Experience: Built for both human operators (rich TUI) and AI agents (deterministic
--jsonoutput). - Headless Auth: Designed to gracefully handle authentication in autonomous environments.
- Mutative Safety: Built-in
--dry-runflags for destructive actions. - Agent Skill: Includes an
agentskills.iocompliantSKILL.mdfor seamless discovery by other agents.
You can install yt-cli directly using Go:
go install github.com/ghchinoy/yt-cli@latest- Download your OAuth 2.0
client_secret.jsonfrom the Google Cloud Console (Desktop App type). - Place it in the XDG configuration directory:
mkdir -p ~/.config/yt-cli cp path/to/your/client_secret.json ~/.config/yt-cli/client_secret.json
- Run any command to start the initial interactive OAuth flow:
yt-cli channel info --mine
This repository includes an Agent Skill that provides instructions on how to use yt-cli.
If you are using Gemini CLI, you can install the skill directly from this repository:
gemini skills install https://github.com/ghchinoy/yt-cli.git --path skills/yt-cliOnce installed, your agent will understand how to list your videos, look up channel information, and securely upload new content! See the skills/yt-cli/SKILL.md file for full instructions.
- Google Cloud Project
- YouTube Data API v3 enabled (
gcloud enable services youtube.googleapis.com) - YouTube Key and/or OAuth Client ID (preferred)
- A video to upload (optional)
This is not an official Google project.
Made with ❤️ by Gemini CLI and agentskills.