Rich for humans.
Deterministic for agents.

An open-source Go CLI and Agent Skill for the YouTube Data API v3—combining semantic terminal output for operators with pure --json streams, headless OAuth, and --dry-run upload safety for AI coding agents.

One binary. Two first-class audiences.

Built around the Dual-Experience (DX & AX) CLI architecture: human operators get high-signal Lipgloss styling and grouped help, while autonomous agents get strict JSON streams, scoped queries, and actionable recovery hints on stderr.

Human DX

Semantic terminal UI

Color-coded headers, IDs, warnings, and command groups make interactive exploration fast. Automatically degrades when NO_COLOR or YT_CLI_NO_TUI is set.

Agent AX

Deterministic JSON & safety

Every subcommand accepts --json for unpolluted stdout payloads, truncates or scopes list queries to protect context windows, and supports --dry-run validation before mutating state.

Errors and diagnostic hints always route to stderr so JSON parsers never break.

Go from OAuth setup to safe automation.

  1. Authenticate

    ~/.config/yt-cli/client_secret.json

    Place your Desktop OAuth client_secret.json in ~/.config/yt-cli/ or export YT_CLIENT_ID and YT_CLIENT_SECRET for headless workflows.

  2. Query & Scope

    yt-cli channel videos --mine --limit 5 --json

    Retrieve channel statistics, filter uploads by privacy status (public, unlisted, private), and emit structured JSON.

  3. Dry-Run Validate

    yt-cli video upload ./demo.mp4 --title "Demo" --dry-run

    Verify file paths and snippet metadata locally before performing any mutative YouTube API upload.

Once your dry-run payload checks out, drop --dry-run to upload privately.

Private by default

yt-cli video upload ./demo.mp4 --title "Demo" --json

Live uploads default to private visibility so you or your human operator can review the video in YouTube Studio before publishing.

Install the CLI & skill.

Ask your agent


Prebuilt Binary (macOS & Linux)

Go CLI

Gemini CLI Skill

Open Agent Skills CLI

Read the full README