π Introduction
Control your Google TV from the CLI via the Android TV Remote protocol
gtv drives a Google TV from your terminal. It speaks the Android TV Remote v2 protocol directly β the same channel the official mobile remote uses β so there's no companion app, no cloud account, and nothing left running in the background. Pair once over your local network and the connection is saved for next time.
π§ Two ways to drive your TV
gtv is built around one idea: the same remote, two surfaces.
- The interactive remote β run
gtvwith no arguments for a fullscreen terminal UI: D-pad navigation, playback, volume, an app launcher, and a keyboard mode (Tab) that types straight into TV text fields. - One-shot commands β when you'd rather not open the UI, every action is also
a plain command:
gtv key up,gtv app youtube,gtv status. Ideal for scripts, hotkeys, and automations.
Both talk to the same paired device β pick whichever fits the moment.
π¦ Quick start
npm install -g @kud/gtv-cli # requires Node.js β₯ 22
gtv # discovers + pairs on first run, then opens the remoteπ What's here
- π§° Commands β the full reference: pairing and
discovery (
pair,discover,switch,devices), diagnostics (status,doctor), and one-shot input (key,app, navigation, and volume).