T-009
TV Remote
The TV's remote on the Mac, with every app on the TV a click away.
Mac app · November 2026
A menu bar app for Android TV and Google TV sets. It speaks the Google TV remote protocol over your Wi-Fi, so there's nothing to install on the TV: pair once with the code the TV shows, and the remote is a click away in the menu bar.
The keys copy the Philips Google TV remote that came with the TV, in the same places. It adds one the real remote doesn't have: a keyboard key, which hands the TV your Mac's keyboard for typing and its volume and play keys.

Mac app · macOS 15
What it does
- Sits in the menu bar. Finds Android TV and Google TV sets on the Wi-Fi and pairs with the code the TV shows.
- The TV's remote, key for key: power, profile, settings, the ring and OK, back, home, live TV, volume, mute and input.
- Netflix, Prime Video and YouTube keys, and a blue key you set to any app.
- An Apps page: search 56 TV apps, or type any package name, and open one. Apps open by link, and if the TV refuses the link, by their Google Play page.
- The mic key asks Google Assistant on the TV, through the Mac's microphone.
- Keyboard mode, on
⌃⌥K: the Mac's keyboard types into the TV, and its volume and play keys work the TV. - A floating remote above every app, that tucks into the edge of the screen.
- Wakes the TV with Wake-on-LAN, where the TV allows it.
tvctl, the same code from a terminal, sharing the app's pairing.
Needs
- macOS 15 or later.
- A TV on Android TV or Google TV, on the same network as the Mac.
- Local network access, which macOS asks for the first time it looks for the TV.
- Microphone access, only for the mic key.
- Accessibility permission, only for the Mac's media keys in keyboard mode. Typing into the TV works without it.
- To build it, a Swift 6 toolchain: Xcode, or its command line tools.
Build it
The source isn't public yet, so there's no download. It's a Swift package with three parts: the menu bar app, tvctl, and TVRemoteKit, the Google TV remote protocol the two share.
The script builds TV Remote.app into build/ and signs it ad hoc, so it runs on the Mac that built it. The signature names the app rather than the exact build, so the permissions you've granted carry over when you build it again.
scripts/build-app.sh # build onlyscripts/build-app.sh --install # also copy it to ~/Applications and open itIt has no Dock icon. Look for the remote in the menu bar. Settings has an Open at login switch.
Pair with your TV
Pairing happens once. After that the app finds the TV again by its name and connects by itself.
- Turn the TV on, on the same Wi-Fi as the Mac.
- Click the remote in the menu bar. It lists the TVs it finds.
- Click Pair next to yours. The TV shows a code: six characters, letters A to F and numbers.
- Type the code and press Pair. A typo lets you type it again; a wrong code sent to the TV means starting over for a new one.
To pair again, or with another TV, use Pair again in Settings. It keeps one TV at a time. If the TV forgets the Mac, the app says so and goes back to pairing.
The remote
Click a key and the TV does what the real remote's key would. Hold OK for a long press. The header shows the TV's name, whether it's on or in standby, and the app on screen.
A small light at the top of the remote, where the real one has its microphone hole, shows the connection: green when connected, amber in standby, red while listening, grey when the TV can't be reached.
- Power. Turns the TV off and on. When the TV isn't reachable it sends Wake-on-LAN instead, and reconnects.
- Mic. Opens Google Assistant on the TV and sends it what the Mac's microphone hears. The TV notices when you've finished; press the key again to stop sooner. A question stops at 12 seconds. A TV that won't take voice opens its search instead.
- Keyboard. Turns keyboard mode on and off.
- App keys. Netflix, Prime Video and YouTube open their apps. The blue key opens whichever app you set it to.
While the menu bar panel is open, the Mac's arrows, Return, Esc, Delete and letters work the TV too, without keyboard mode.
The floating remote is the same remote in its own window, above every app. Open it with the button in the panel's header, or in Settings. Drag it against the left or right edge of the screen and it tucks in, leaving a sliver; click the sliver to bring it back. It reopens where you left it.
Opening apps
The grid button in the panel's header opens the Apps page. Apps the TV has opened come first, under On this TV, then the catalog of 56: streaming, live TV, sports and news, music, and players and tools. Type to filter, Return opens the top match, Esc goes back to the remote.
An app that isn't listed opens by its package name: type com.example.tv and press Return. Apps the TV opens while the app is connected, from the real remote too, show up at the top by themselves, with their icon.
The blue key opens ShemarooMe at first, as the blue key on the TV's own remote did. Right-click it to choose another app from a menu, or pick one with icons in Settings, where you can also type a package name or clear the key.
Keyboard mode
Press the keyboard key on the remote, or ⌃⌥K in any app. Your Mac's keyboard then works like a keyboard plugged into the TV: letters and numbers type into the TV's text field, the arrows and Return move and select, and Esc goes back.
The app you were working in stays in front, and nothing you type reaches it. The floating remote opens and outlines itself in blue, as the sign that keys are going to the TV. Press the key or ⌃⌥K again, or click into any other window, and the keyboard is yours again.
With Accessibility permission, the Mac's own media keys work the TV too: volume, mute, play and pause, back and forward, and the dictation key for the Assistant. Without it, those keys keep working the Mac, and Settings has a button that opens the permission in System Settings.
If another app already holds ⌃⌥K, the app says so, and the keyboard key on the remote still works.
How it works
The TV announces its remote service on the network, and the app watches for it. At pairing the Mac makes its own certificate, once, and the TV remembers it. Every connection after that is encrypted, and the TV knows the Mac by that certificate. A new certificate would mean pairing again.
Once connected, the TV reports its power, the app on screen, its volume and mute, and the app shows them. If the connection drops, the app retries, waiting a little longer each time, up to 30 seconds. It tries straight away when you open the panel or the Mac wakes, and if the TV turns up at a new address, it follows it there by name.
Apps open by link rather than by package name, since the TV this was built on refuses the generic package link. Each app has its own web link where known, then its Google Play page, which asks Play to open the app. If nothing opens within a few seconds, it tries the next. The link that worked is remembered for next time. When an app only gets as far as its Play page, the app tells you to press OK on Open.
Wake-on-LAN needs the TV's hardware address, which the app reads from the TV's certificate at pairing, or from the Mac's own network table. The mic sends the Mac's microphone to the TV as the real remote's mic would, and the TV passes it to Google Assistant.
Privacy and limits
- It has no account and no server of its own. Keys, apps and text go from the Mac to the TV over your network.
- What you say into the mic goes to the TV, and from there to Google Assistant, as with the real remote.
- For an app outside the catalog, it fetches the icon once from the app's public Google Play page and keeps it. That's the only thing it asks the internet for.
- The paired TV, the Mac's certificate, the blue key, the apps the TV has opened and the links that worked are kept in the app's own folder in Application Support, shared with
tvctl. - Capital letters type as small ones in keyboard mode: the key events it sends carry no Shift.
- The links for Netflix, Prime Video, YouTube and ShemarooMe were checked on a real TV. The others are each app's web address, and fall back to Google Play when the TV doesn't take them.
- Wake-on-LAN only works when the TV keeps its network up in standby, so it's a best effort.
- One TV at a time.
Reference
The commands of tvctl, and what the Mac's keys do on the TV.
tvctl
The app's code, from a terminal. It shares the app's pairing, so pair once in either. With no TV named, it uses the saved one, or the only TV on the network.
tvctl discover # list TVs on the networktvctl pair [name|ip] # pair this Mac (type the code the TV shows)tvctl status # power, current app, volumetvctl key UP OK BACK # press buttonstvctl launch com.netflix.ninjatvctl text "words" # type into the TV's focused text fieldtvctl say what time is it # ask the Assistant, in the Mac's voicetvctl wake # Wake-on-LANtvctl forget # drop the saved TVswift run tvctl discoverdiscover- Lists the TVs on the network, with their addresses.
pair [name|ip]- Pairs this Mac. Type the code the TV shows; a typo gets two more tries.
status- The TV's name and model, power, the app on screen, and volume.
watch [seconds]- Prints every change the TV reports, for a minute by default. Handy for seeing which app a key on the real remote opens.
key KEY…- Presses keys in order. Names like
UP,DPAD_UPandKEYCODE_DPAD_UPall work, as doHOME,BACK,OK,MUTE,PLAY_PAUSE,INPUT,SETTINGS,REDtoBLUEand the digits. raw CODE…- Sends Android key codes the key names don't cover.
launch PACKAGE|LINK- Opens an app by package name or by link. Some TVs only take links, such as
https://www.youtube.com. text WORDS- Types into the text field that has focus on the TV.
say WORDS- Asks Google Assistant on the TV, in the Mac's voice, through the same path as the mic key.
wake- Sends Wake-on-LAN to the saved TV.
verify [power]- Presses each key and checks what the TV reports back. Add
powerto also turn the TV off and on. probe [name|ip]- Connects without pairing, to see whether the TV accepts this Mac.
forget- Drops the saved TV.
Keyboard shortcuts
In keyboard mode, and in the menu bar panel while it's open. The media keys work in keyboard mode only, with Accessibility permission.
⌃⌥K- Keyboard mode on and off, from any app.
Letters, numbers, space- Type on the TV, with common symbols too. On Live TV, numbers change the channel.
← ↑ → ↓- Move.
Return- OK.
Esc- Back.
Delete- Erase. Forward Delete erases the other way.
⌘↑ / ⌘↓- Volume, for keyboards without volume keys.
Page Up / Page Down- Channel up and down.
fn ↑andfn ↓on a laptop. Home- The TV's home screen.
Volume, mute- The TV's volume and mute.
Play/pause, back, forward- Play and pause, rewind, fast forward.
Dictation key- Asks the Assistant, as the mic key does.
Ideas
- Pause the show when your phone rings.
- Movie night: everyone votes for the app from their phone.
- The TV turns itself off when the last person leaves the room.
Want one of these, or something wilder? Let's make it.