Matrix_TV_The_Construct

couch-tv: the setup guide

This is the original couch-tv guide that Matrix TV Home Screen: The Construct is built on. It covers installing, settings and undoing it. For what the Matrix build adds, see the README.

Your own home screen and phone remote for a Google TV, and now a Samsung TV, with an LG path built and waiting for its first real LG. No ads on the home screen. Open source (MIT).

The Night home screen

Updates

4 November 2026: Fire TV extras, from a fork. Thirty four people have forked couch-tv now. From killy10o10, who runs it on a Fire TV Stick 4K (2nd gen):

And from Justin1491: the bridge stops trying to reach a TV that has not been paired yet, instead of retrying in the background. The two buttons come with the next release after 0.4.

1 November 2026: LG TVs. couch-tv now has an LG version, done the same way as the Samsung one: it goes on your LG as an app through LG’s Developer Mode, and the computer at home opens it every time the TV is switched on. It was built from LG’s own documentation and tested against a stand-in, so if you have an LG, you would be among the first to run it: give this repo to your agent, and please open an issue saying how it went. Setup and limits: docs/LG.md.

3 November 2026: older Fire TV sticks (Fire OS 6). Both TV apps now install on Android 7.1, so the Fire TV Stick 4K (1st gen) and other Fire OS 6 sticks can run them. Options A and B also take the Home key back on any Fire TV now, the way the “lives on the TV” app already did: apply.sh switches on a small Home button watch, and the undo switches it off. Checked on Android 7.1, 9 and 14 emulators with a stand-in for Amazon’s home, not yet on a real Fire OS 6 stick: if you have one, please open an issue saying how it went. It comes with the next release after 0.3.

30 October 2026: Fire TV sticks, older TVs, smart home and your own scenes. Sixteen people have forked couch-tv so far, and six of them built something worth having. The best of it is now in the main repo, credited to each of them. Download the new apps from the Releases page (or ask your agent to update).

Thank you to fifarsi and ishanboss20 (the Android 9 crash), gurpritsingh81 (Watch Next), herocode1 (the safety fixes and the install order), dlandman27 (Fire TV) and roliusz (the doorbell, Home Assistant and own scenes).

29 October 2026: Samsung TVs. couch-tv now works on Samsung TVs too. It was tested on a 2021 Samsung Frame. It is the same link and the same setup: give this repo to your agent and it offers the Samsung path when it finds a Samsung.

What is the same on a Samsung: the home (scenes, clock, weather, your apps in your order), the phone remote, and the Claude assistant. “Put on that show about the lawyer who never went to law school” finds Suits and plays it.

What is different on a Samsung:

One bridge can run your Google TVs and your Samsung together, and the phone remote switches between them. Full guide, limits and undo: docs/SAMSUNG.md.

28 to 29 October 2026, every TV:

Home backgrounds

Five scenes take turns every 20 seconds, each with a big glass clock that sits just behind the scenery: the peaks, the volcano and the misty hills overlap the bottom of the digits, and on the waterline scene the clock floats on the lake with a blurred reflection under the surface. Your apps and “keep watching” stay put. Start on one with ?scene=<name>, or swap in your own photos. Design your own scene (any photo, or a place you describe, with your own clock and date over it, and the skyline in front of the clock if you like): docs/MAKE-A-SCENE.md.

Night Golden hour Waterline
Night Golden hour Waterline
Fog Dawn Classic (?theme=classic)
Fog Dawn Classic

Shown with sample shows and sample people. On your TV, “keep watching” fills from what you actually watch: per TV and per person (with options B and C), up to 10 shows, newest first. With option A it is Android’s own Watch Next list, the same for everyone on that TV.

Design it before it goes on the TV

python3 scripts/customise.py (Windows: py -3 scripts\customise.py) opens a page with every look setting on the left and the real home on the right: people, scenes and their order, the clock, glass, the dock, quick buttons, weather and language. Save writes them into config.json, and setup hands them to the TV. Nothing on the TV changes. Details: docs/CONFIG.md.

The Crypt look

"look": "crypt" (or Home settings, Look): green code rain, the clock and date in a 90s terminal window and square terminal app tiles. The code above the app you are on falls in that app’s colour, and the screen’s edges glow in it, so a TV backlight that follows the picture (Govee, Hue Sync) turns Netflix red or Disney+ blue as you move along the dock.

Crypt

Crypt also has its own screensaver (the rain, the terminal clock, the date and the weather, the window drifting to a new spot every minute): build the app yourself (scripts/build-apk.sh) and run apply.sh or apply.py with SCREENSAVER=crypt. Undo puts the TV’s own screensaver back.

Setting up from Windows: tv-home/tools/apply.py and undo.py are apply.sh and undo.sh in Python, with the same steps and files: $env:TV_IP="<tv address>"; .venv\Scripts\python tv-home\tools\apply.py.

Settings on the TV

No computer and no config.json needed for the everyday settings. Press down to the dock and pick the gear, Settings (just before More apps). OK opens a small menu: Home settings is couch-tv’s own list, TV settings is Android’s own (Wi-Fi, picture, sound). The remote’s own gear or Settings button opens the same menu (docs/REMOTES.md).

Home settings on the TV

Any remote works: up and down move, right or OK opens a section, OK changes a row, holding OK on a scene, an app, a person or a quick button picks it up so up and down move it, and Back steps back and then closes. What you change shows when the list closes.

Your own photos. On a TV with a file picker, Add photos from a USB drive or this TV opens it and copies the photos you choose into the app (turned the right way up and sized for the screen). Many Android TV and Google TV builds have no file picker; then the list says so and you add a photo from a web address instead (a JPEG or PNG on the internet, which the TV loads each time). The on-TV app (option C) only takes web addresses. Your photos take turns with the scenes and replace the Classic look’s own.

Glass panels and a video background (optional, both off to start). Under Look, Glass panels puts clear, softly blurred panels with a light edge behind the clock, Keep watching and the apps, so the background shows through. Blur is heavy work for an older TV, so On, no blur keeps the panels and their edges without it; a TV that cannot blur at all gets that by itself. Video background plays a short clip that loops, muted, in place of the photo, in both looks: Video link takes the address of an MP4 or MOV on the web or on a computer at home, and the switch turns it off again without losing the link. The photo stays until the clip plays, and comes back if it will not play. The video stops while an app is in front. Over a video, the Night clock is frosted white instead of cut from the photo. Both are heavier than the plain home, so on a small TV stick switch them off if the home feels slow. Thanks alonmustafa (#22). Glass app icons (also under Look) shows each app’s symbol in light glass without its own background, like Apple’s clear icons, with the app you are on in its own colours (#25). How clear sets the glass from frosted to very clear in five steps (#29), and Clock style, Liquid glass draws the Night clock as clear glass digits that bend the photo behind them (#25). The phone remote follows the TV. Links straight to Apple’s own server (sylvan.apple.com, the tvOS aerials) never play: it uses a certificate from Apple’s private authority, which Android and Chrome do not trust. Copies of the same aerials on other hosts, or saved on a computer at home, play fine as MOV (#27).

Smart home (optional). If you already run Home Assistant, the home can show your air conditioning (each room’s temperature, warmer, cooler, on, off and mode), your scenes and scripts as tiles, and a doorbell card with the door camera’s picture over whatever is playing. It is off unless you add a home_assistant section to config.json; without it nothing changes. docs/CONFIG.md, Smart home, has the setup.

Where they are kept. On the TV, and with option B on the computer too, so the phone agrees and a reset TV gets them back. They win over config.json on that TV; About, Reset home settings goes back to it. docs/CONFIG.md has the details.

Languages. The TV home and the phone remote both speak English, Spanish (es, for Spain and everyone else), Mexican Spanish (es-MX: computadora, celular, presionar, clima and the rest), Italian (it), German (de) and Turkish (tr), all three with a 24 hour clock unless you pick 12 hour, and the smart home words Home Assistant uses in each. The phone has its own choice (TV menu, Language), “Same as the TV” by default. Messages that come from the bridge itself (an error, a note about how a show opened) and some screen reader labels on the phone are still in English.

Three ways to run it

Pick your option, then follow only its steps

Will it work on my TV?

Your TV A. TV home only B. Computer bridge C. Lives on the TV
Google TV (Sony, TCL, Hisense Google TV, Philips and others) Yes Yes Partial. Newer models may ask for a pairing code again after a restart
Google TV box (Google TV Streamer, Chromecast with Google TV, Onn) Yes Yes Partial, as above
Older Android TV (Android 7.1 to 11) Yes Yes Yes
Nvidia Shield Yes (not tested) Yes Yes (not tested)
Fire TV on Fire OS (Fire OS 6, 7 and 8: Fire TV Stick 4K 1st gen and newer, Stick 4K Max, Cube) Partial. Takes the Home key back, but Amazon’s home flashes up first Partial Yes, and it takes the Home key back (how)
Fire TV on Vega OS (newer Fire TV sticks) No No No
Samsung (Tizen) App only, opened from Samsung’s app row With a computer at home: yes, as an app that opens itself, not a true home screen (how) No
LG (webOS) App only, opened from LG’s app row, while Developer Mode lasts With a computer at home: as an app that opens itself, like the Samsung. Built, and run on two real LGs so far (how) No
Roku, Apple TV, Hisense with VIDAA No No No

Hisense, Sharp and other brands that sell more than one kind of TV: it depends on the model, not the brand. Their Google TV and Android TV models should work. Their VIDAA models run Hisense’s own system and do not. Open Settings, System, About (or Device Preferences, About): “Android TV OS” means yes. Or run scripts/check-tv.py. Brand by brand (TCL, Philips, Panasonic, Sharp, Xiaomi and more, untested): docs/TV-BRANDS.md.

What you can and cannot do on each:

Want everything on a Samsung, LG or another TV? The Samsung and LG apps cover the home and the phone remote, not everything. Plug in a Google TV box (for example the Google TV Streamer) and set couch-tv up on that, and you get everything, on any TV with an HDMI port.

Test your own TV (changes nothing on it, and installs nothing outside this folder):

git clone https://github.com/Seagey/couch-tv.git && cd couch-tv
python3 --version                                  # needs 3.11 or newer
python3 -m venv .venv && .venv/bin/pip install -r bridge/requirements.txt
.venv/bin/python scripts/find-tvs.py               # lists the TVs on your Wi-Fi
.venv/bin/python scripts/check-tv.py <tv address>  # says which options that TV can run

It knocks on the ports each kind of TV answers on (Android TV, Samsung, LG, Roku, Apple), so it can tell a Samsung from a Google TV without touching anything. Or, by hand: on the TV open Settings, System, About (Google TV) or Settings, Device Preferences, About (Android TV 9 to 11). If you see “Android TV OS”, it works. Details and sources: docs/TV-COMPATIBILITY.md.

Later, once Developer options are on (step 1), check-tv.py <tv address> --adb also reads the Android version and the maker. That one makes the TV ask “Allow USB debugging?” and saves this computer’s key in ~/.android/adbkey, so it waits until you have decided to go ahead.

Setting it up with an AI agent

Open this folder in Claude Code (or any coding agent) and say “set this up on my TV”. It reads AGENTS.md and asks you two things before it touches anything: which TV you have, and which option you want.

This repo is two separate things. You can use the first without the second, but the second needs the first’s TV set up the same way (developer mode on).

  1. The TV home 2. The phone remote and bridge
What it is An Android TV app that replaces the Google TV home screen. Scenes, clock, weather, your app row, “keep watching”. A phone web app (the remote) and a small Python service (the bridge) that runs on a computer at home and talks to the TV.
Where it lives tv-home/ (android/ is the app, web/ is its screen) remote/ (phone app) and bridge/ (the service)
Runs on The TV Your phone, plus a computer that stays on
Options A and B B (C has its own app, in on-tv/)

What you need

For every option:

Option B also needs:

The home with the computer off (option B): the app carries its own copy of the home and also keeps the bridge’s latest copy. If the computer is off, the TV still shows the clock, the weather and your app row. It only loses “keep watching” and the picks. With option A that copy is the home.

Setup

Step 1. Developer mode on the TV (every option)

Do this on the TV itself.

  1. Open Settings, then System, then About (Google TV). On Android TV 9 to 11 it is Settings, Device Preferences, About.
  2. Go right down to Android TV OS build (or Build). Press OK on it seven times. A countdown appears, then “You are now a developer!”.
  3. Go back. There is a new menu called Developer options (under System, or Device Preferences).
  4. Find USB debugging and switch it on.
  5. If there is also a Network debugging switch (also called ADB over network or ADB debugging), switch it on too. Some TVs have no such switch: on a TCL with Android TV 11, USB debugging alone opened the network port. Either way, check from the computer: .venv/bin/python scripts/check-tv.py <tv address>. If it says ADB is open on port 5555, everything in this repo works as it is. If it says only Wireless debugging is on, see the box below.
  6. Find the TV’s address: Settings, Network and Internet, your Wi-Fi (or Settings, Network, your Wi-Fi, details). It looks like four numbers with dots. Give the TV a fixed address in your router if you can, so it never changes.

The first time a computer connects, the TV asks “Allow USB debugging?”. Tick Always allow and press Allow. You never see it again.

Allow every computer before you switch the Google home off. Seen on one Google TV (Android 14): after apply.sh switched off the Google TV home and its setup app, the TV no longer showed “Allow USB debugging?” for any new computer. Computers allowed before that kept working. So connect each computer you will use (check-tv.py <tv address> --adb, and for option C the app’s Connect ADB) and press Allow before step 6. If it already happened, see “If something is stuck” in docs/UNINSTALL.md.

Only Wireless debugging? Newer Google TVs (Android 11 and up) may offer only Wireless debugging, which pairs with a code and uses a random port that changes after a restart. couch-tv’s scripts and the bridge speak plain ADB on a fixed port, so turn the fixed port on once with Google’s own tools (Android platform-tools):

  1. On the TV: Developer options, Wireless debugging on, then Pair device with pairing code. It shows a code and an address with a port, for example <tv address>:37123.
  2. On the computer: adb pair <tv address>:<pairing port> <code>.
  3. Back on the Wireless debugging screen, note the port under “IP address and port”, then adb connect <tv address>:<that port>.
  4. adb tcpip 5555. Port 5555 is now open and check-tv.py should say ADB is open on port 5555.

On some TVs port 5555 closes again after a restart. Then run steps 2 to 4 again (option B’s daily guard and the remote need it open). If your TV keeps a different fixed port open, set "adb_port" on that TV in config.json (or ADB_PORT=<port> for the scripts). The Wireless debugging port itself needs Google’s adb; couch-tv cannot use it directly.

Mac: “allow devices on your local network”. macOS asks once per program before it lets it talk to devices at home. Say Allow for Terminal (or the app your AI agent runs in). A program that is new to the Mac, like Google’s adb straight after downloading it, can be blocked silently: it then cannot reach the TV although everything else can. couch-tv’s own tools (tv-home/tools/tvadb.py, on-tv/scripts/real-tv.py, check-tv.py) are plain Python and run inside the Python you have already allowed, so use them for everything except the one-off Wireless debugging pairing above. If adb is blocked: System Settings, Privacy and Security, Local Network, and switch on the app it runs in.

Step 2. Get the code and set up Python (every option)

git clone https://github.com/Seagey/couch-tv.git
cd couch-tv
python3 --version                    # 3.11 or newer
python3 -m venv .venv
.venv/bin/pip install -r bridge/requirements.txt
cp config.example.json config.json

Edit config.json (it is private, it never gets committed):

Every key, with its default: docs/CONFIG.md. Which TV remotes work and which keys do what: docs/REMOTES.md. How the phone remote is hosted and how to add it to your phone: docs/REMOTE.md.

Optional settings (port, Claude location) go in .env. Copy env.example to .env.

Step 3. Pair the TV with the bridge (option B)

.venv/bin/python bridge/pair_tv.py living-room

The TV shows a 6 character code. Type it in and press Enter. That pairs the bridge as a remote (the TV lists it as “Couch TV bridge”). An AI agent cannot type into the waiting script: it runs that command in the background, asks you to read the code off the TV, then runs .venv/bin/python bridge/pair_tv.py living-room --code <the code>.

Then:

.venv/bin/python bridge/pair_tv.py living-room --adb

The TV asks “Allow USB debugging?”. Tick Always allow, then Allow. The keys it makes are stored on your computer (bridge/data/ and ~/.android/adbkey). They are in .gitignore.

Step 4. Build the phone remote (option B)

cd remote
npm ci
npm run build
cd ..

Step 5. Run the bridge (option B)

.venv/bin/python bridge/server.py

Open http://your-computer.local:5400 on your phone (same Wi-Fi). Add it to your home screen. To keep the bridge running all the time, use bridge/examples/couch-tv-bridge.plist.example (macOS) or bridge/examples/couch-tv-bridge.service.example (Linux). Both set CLAUDE_BIN and a PATH, because a background service does not see your shell’s.

Anyone on your Wi-Fi can use the remote and the assistant. The bridge has no password, so everyone on the network, kids included, can change the channel, turn the TV off or ask Claude for a show. Put visitors on a guest Wi-Fi network (most routers have one) so they cannot reach it. The bridge is for your home network only. Never put it on the internet or forward a port to it.

"phone_remote": false is for a house that only wants the TV home and its quick settings from the bridge. The bridge still serves the API (the TV home needs it), and the phone page still loads if someone opens it, so the same rule applies.

Step 6. Put the TV home on the TV (options A and B; this replaces the Google home screen)

Get couch-tv-home.apk from the GitHub Releases page (or build it, below). Look at the TV first (it changes nothing):

TV_IP=<your tv address> .venv/bin/python tv-home/tools/survey-tv.py

It also reminds you that switching the setup wizard off makes some TVs forget their Wi-Fi. Nothing can tell in advance which TVs, so plan for it on any TV: have the TV remote ready.

Then install it. Option A (no computer stays on):

TV_IP=<your tv address> APK=couch-tv-home.apk sh tv-home/tools/apply.sh

Option B (the home loads from the bridge):

TV_IP=<your tv address> APK=couch-tv-home.apk BRIDGE_URL=http://my-computer.local:5400 sh tv-home/tools/apply.sh

This installs the app, switches off the Google TV home (and ambient mode, the setup wizard and any ad trackers you name in EXTRA_OFF), and makes the new home the TV’s home. Other makers’ own home screens are left alone; the TV’s default home is set to couch-tv instead. Nothing is deleted. It also hands the app your config.json settings (people, weather, clock, look, quick buttons) for its built-in copy. Read the Undo section before you run it.

The setup wizard goes off last, after everything else is done. If the TV then forgets its Wi-Fi, apply.sh says so: join the Wi-Fi again at the TV (Settings, Network and Internet) and run the same command again. It is safe to run as often as you like.

Option A with no computer (reported by udhava2-stack, not tested by us). Apps on the TV and the phone do the install instead of apply.sh:

  1. Do step 1 (developer mode and USB debugging). Step 2 is not needed.
  2. Copy couch-tv-home.apk from the Releases page onto a USB stick and plug it into the TV.
  3. Install a file manager on the TV, for example File Manager +. Open the APK on the USB stick and install it. The TV may ask you to allow installs from the file manager first.
  4. On your phone, install TV Launcher Manager. It connects to the TV over Wi-Fi with ADB, so the TV asks you to allow it. Open Setup Launcher, pick couch-tv, then restart the TV.

Good to know:

Building the app (instead of downloading it)

You need JDK 21 and the Android SDK with platform 34 and build tools 34. Gradle is not needed: tv-home/android/gradlew fetches Gradle 8.11.1 by itself.

  1. JDK 21. The simplest way, with no password needed: download the Temurin 21 JDK .tar.gz for your computer from adoptium.net, unpack it into a folder you own (for example couch-tv/build/jdk, which git ignores) and point JAVA_HOME at it (on macOS the Contents/Home folder inside). Or install it system-wide: macOS brew install --cask temurin@21 (asks for your password), Linux sudo apt install openjdk-21-jdk.
  2. The Android SDK command line tools: download “Command line tools only” from developer.android.com/studio, unzip into ~/Library/Android/sdk/cmdline-tools/latest (macOS) or ~/Android/Sdk/cmdline-tools/latest (Linux).
  3. Then, with ANDROID_HOME set to that sdk folder:
    $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platforms;android-34" "build-tools;34.0.0"
    $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses     # answer y to each licence
    
  4. Build:
    JAVA_HOME=/path/to/jdk-21 ANDROID_HOME=/path/to/android-sdk sh scripts/build-apk.sh
    

    It prints where the APKs are (dist/couch-tv-home.apk, plus dist/couch-tv-ontv.apk for option C). The on-TV app carries the phone remote inside it, so for that one the script builds remote/ first, which needs Node 20 or newer. apply.sh finds dist/couch-tv-home.apk by itself.

The release APK is signed with your local debug key, which is fine for your own TV. The built-in copy uses config.example.json unless you pass CONFIG=config.json; apply.sh hands the TV your own settings either way. Home settings, Updates offers the releases of Seagey/couch-tv, which your own build cannot take (another key): a fork with releases of its own builds with UPDATE_REPO=owner/name sh scripts/build-apk.sh, and UPDATE_REPO= (empty) switches updates off.

Undo: put the Google home screen back

The full guide, with the TV-remote-only way and what to do if something is stuck: docs/UNINSTALL.md. In short:

  1. Option B: stop the bridge first, or its daily guard switches the Google home off again (macOS: launchctl bootout gui/$(id -u)/app.couchtv.bridge; Linux: systemctl --user disable --now couch-tv-bridge).
  2. Everything off, including developer mode: TV_IP=<your tv address> DEV_OFF=1 sh tv-home/tools/remove-all.sh. If the computer cannot reach the TV it says so, changes nothing and prints the TV-remote steps.

Only the home screen, keeping the app (10 seconds): TV_IP=<your tv address> sh tv-home/tools/undo.sh. It switches back on exactly what apply.sh switched off, and makes the home the TV had before the home again. To remove the app as well, after that: TV_IP=<your tv address> .venv/bin/python tv-home/tools/tvadb.py shell "pm uninstall app.couchtv.launcher".

With only the TV remote (no computer):

  1. On the couch-tv home, open the Settings tile (the gear at the end of the app row), or press the Settings button on your remote.
  2. Apps, then See all apps, then Show system apps.
  3. Open Google TV Home (it says Disabled) and press Enable. Do the same for Setup (the Google TV setup app). Ambient mode and the ad tracker are optional.
  4. Back in Apps, open Home (the new one) and press Uninstall.
  5. Press the Home button. Google TV is back.

Do step 3 before step 4. If the new home is removed while Google TV Home is still off, the TV has no home screen. Apps still open from the remote’s app buttons, and the computer undo above still works.

If the TV ever loses its saved Wi-Fi after switching the setup wizard off, enable Setup again (step 3) and set the Wi-Fi from there.

How it fits together

phone remote (remote/)  --->  bridge (bridge/, always-on computer)  --->  the TV
TV home (tv-home/)      --->  bridge (for shows and picks)               (Android TV Remote
                              TV home carries its own copy for when       protocol and ADB)
                              there is no bridge

Privacy and safety

Limits

Credits

MIT licence, see LICENSE.