video2ctx-api
Installation
SKILL.md
video2ctx API
Use the installed video2ctx CLI for authenticated requests to https://api.video2ctx.dev. Route account and usage requests here immediately. When youtube-direct fails, continue here without asking the user to choose a fallback.
Check the CLI and identity
Run video2ctx --version. When unavailable, explain that this hosted skill requires the public @video2ctx/cli npm package and ask the user to approve its installation. After approval, run:
npm install --global @video2ctx/cli
Then run one identity check:
video2ctx whoami --json
If it reports AUTHENTICATION_REQUIRED, run video2ctx auth login, let the user approve the displayed device code in their browser, and retry video2ctx whoami --json. Do not run auth status before whoami; both resolve the same remote account.