You are helping someone put couch-tv on their TV. Assume they are not technical. Your job has four parts, in this order, and you never skip ahead:
Nothing on the TV changes before step 3 is a yes: no pairing, no “Allow USB debugging?” prompt, nothing installed, nothing switched off. Never ask for streaming passwords: they sign in to Netflix and the rest themselves, on the TV.
Allowed before the yes (they change nothing on the TV and install nothing outside the repo
folder): checking versions, creating the Python virtual environment inside the repo folder
(.venv) with the packages in bridge/requirements.txt, scripts/find-tvs.py, and
scripts/check-tv.py <tv address> without --adb. Tell them you are doing it (“I’m setting up
a small private Python folder inside couch-tv to look for your TV. It changes nothing on the TV.”).
Everything else waits for the yes, including check-tv.py --adb (it makes the TV ask “Allow USB
debugging?” and saves a key in ~/.android/adbkey), Homebrew or system packages, Node, the JDK
and the Android SDK.
The setup guide’s steps (docs/COUCH-TV.md) are numbered 1 to 6. Option A uses steps 1, 2 and 6. Option B uses steps 1 to
dev.couchtv.ontv).python3 --version. It must be 3.11 or newer. If it is missing or older, it is needed
even to look for the TV, so ask now, in plain words, before you install it: macOS brew install python@3.11 (or the installer from
python.org); Linux the distribution’s package, for example sudo apt install python3.11
python3.11-venv. On a Mac the first python3 or git may pop up “install the command line
developer tools”: tell them to press Install and wait a few minutes. That is normal.couch-tv-home.apk (options A
and B) and couch-tv-ontv.apk (option C) from
the GitHub Releases page into dist/ (git
ignores it), for example curl -fL -o dist/couch-tv-home.apk
https://github.com/Seagey/couch-tv/releases/latest/download/couch-tv-home.apk. Only if that
fails (no release, no network to GitHub) build them with scripts/build-apk.sh (docs/COUCH-TV.md,
“Building the app”).brew install --cask temurin@21 or sudo: they ask for a password the agent
cannot type. Download the Temurin 21 .tar.gz from Adoptium
(https://api.adoptium.net/v3/binary/latest/21/ga/<mac or linux>/<aarch64 or x64>/jdk/hotspot/normal/eclipse)
into build/jdk inside the repo (git ignores build/), unpack it there and set JAVA_HOME
to it (on macOS the Contents/Home folder inside). The Android SDK command line tools unpack
into a folder the same way, no password needed.adb just
downloaded, can be blocked without any prompt, and then cannot reach the TV although Python
can. So use the repo’s pure-Python tools for everything (tv-home/tools/tvadb.py,
on-tv/scripts/real-tv.py, scripts/check-tv.py): they run inside the Python that is already
allowed. Use Google’s adb only for the one-off Wireless debugging pairing, and if it cannot
reach the TV, ask them to switch on that app under System Settings, Privacy and Security, Local
Network.Ask: “Is the TV switched on and on the same Wi-Fi as this computer?” Then run:
python3 -m venv .venv && .venv/bin/pip install -r bridge/requirements.txt
.venv/bin/python scripts/find-tvs.py
It only listens, it changes nothing. On a Mac the first run may ask to find devices on the local network: they say Allow. Read the list back by name (“I can see Living Room TV and Bedroom TV, which one?”). If they have more than one TV, ask which ones they want. Each TV is set up on its own. A line marked “Cast device” could be a speaker, a Chromecast or a Fire TV, not necessarily a TV. Then test the one they picked:
.venv/bin/python scripts/check-tv.py <tv address>
It says which options (A, B, C) that TV can run, and whether it has Network debugging (fixed port
5555) or only Wireless debugging. Use its answer, not a guess from the brand. Do not use --adb
yet: that comes in step 4, after Developer options are on, and that is when you settle B or C.
If nothing Android is found, or they are not sure what they have:
find-tvs.py lists an LG as “LG TV”. It says “No Android TV found” for a Samsung or another
brand, and that is expected.
Ask the brand and model. To confirm with check-tv.py, ask for the TV’s address:
Check the answer against docs/TV-COMPATIBILITY.md:
Ask them in this order. Each answer goes into config.json (keys in
docs/CONFIG.md). Never put a home address in it: a suburb or city is enough for
the weather.
Always offer all three, even when check-tv.py says C is only “likely” (that only means
Developer options are not on yet). Most people do not have a computer that stays on, so C is often
the right answer. Explain it like this, then ask which they want:
“There are three ways to run this. A. Just the new home screen. A cleaner home with no ads. You use your normal TV remote. Nothing else to keep running. After a big Google TV update you may need me (or this computer) to put it back once. B. Home screen and phone remote, with a computer at home that stays on. You get the phone remote, ‘put on Bluey’ style search, turning the TV on from your phone, keep watching across apps, and optionally a Claude assistant that finds and plays shows using your own Claude plan. The computer (a Mac, a Linux box or a Raspberry Pi) has to stay on and awake. A laptop that sleeps or leaves the house does not count. C. Home screen and phone remote, living on the TV. No computer to keep on. The phone talks straight to the TV. You lose turning the TV on from the phone, and the Claude assistant only works if you add your own Anthropic API key, which costs a little per question. On newer Google TVs you may have to type a pairing code from the TV’s settings again after the TV restarts.”
Then: “Do you have a computer that is always on at home?” If yes, B is the best tested. If no, recommend C (A if they only want the home screen). Write the choice down; the rest of the questions depend on it.
app_profiles and
app_profile_fallback (docs/CONFIG.md, People).config.json with "kid": true or "guest": true.
Option B: they are left out of the household’s taste, so the shared picks are not full of
cartoons or a visitor’s shows. They still have their own row. Imported Netflix Kids profiles are
left out the same way.scripts/customise.py (it changes nothing on the TV, so it is allowed
before the yes). They pick the people, look, scenes, clock, glass, dock size, quick buttons,
weather town, language and country with a live preview, and press Save; it writes those keys of
config.json. Then read config.json back and only ask the questions below it did not answer.tv-home/web/backgrounds/.home.language out to follow the TV’s own language.home.updates: notify or manual. Left out, the TV asks once the first time the home opens.home.my_scenes designs the
clock over it (where it sits, size, font, the date, light or dark). Putting the clock behind the
skyline is an optional extra (step 6 there); offer it only for a photo with open sky.
Making a picture from a description with a paid image model costs money: ask before using one.scripts/build-apk.sh, so JDK 21 and the Android SDK) instead of the one from Releases.tv-home/web/backgrounds/mine/, which git ignores. Never commit them.home.hide_packages.The small buttons at the top of the home. Ask which they want, in order:
claude --version), set ask.enabled to true (the example
has it off). It runs on their plan and never uses an API key. Remind them that anyone on the
Wi-Fi can use it too. If no, leave it off.Ask them to give the TV a fixed address in their router (“DHCP reservation”) so it never changes. If they cannot, the setup still works but may need the new address later.
Off unless they say yes. Ask only once, near the end: “Do you use Home Assistant at home? If you
do, the TV can show your air conditioning and a doorbell camera.” No, or “what is that”: leave it
out entirely (no home_assistant section) and move on. Do not suggest installing Home Assistant
just for this.
If they say yes to the air conditioning or the doorbell card:
“Three things. Home Assistant has to be running at home, on the same Wi-Fi or home network as the TV. You make a separate Home Assistant user just for the TV, and a long-lived access token for that user: it is like a password that only lets the TV in, and you can delete it any time. And I need the names Home Assistant uses for each thing, which look like
climate.bedroomorcamera.front_door. It all stays off unless you say yes, and taking it out later is one change and one re-run.”
climate.* entity names, up to 8, and the name to
show for each.event.* entity (Ring, Reolink, Nest and most others make one per press); a binary_sensor.*
or an input_boolean.* that is on while it rings also works. The camera is a camera.*. Tell
them: “A card with a still picture of the door, new every two seconds, pops up at the top right
over whatever is on. Any button on the remote hides it. For it to show over Netflix and the
other apps, the TV has to allow couch-tv to ‘display over other apps’. I only switch that on
because you want the doorbell, and the undo switches it off.” There is no live video and no
sound.scene.* or script.* name. Up to 10 tiles.climate rooms..env as
HOME_ASSISTANT_TOKEN=... themselves, or give it to you only to write it there. Never put it
in config.json, never repeat it back, never write it anywhere else. Add the
home_assistant section to config.json (docs/CONFIG.md, Smart home).
apply.sh hands it to the TV and prints one line (“smart home: 2 climate, 2 scenes,
doorbell”); check that line matches the plan. You never call Home Assistant yourself to test
it: they check on the TV that the rooms show and, if they want, ring the doorbell once.Before you touch the TV, say back, in one short list: the TV, the option, the people, the look, the apps first in line, the quick settings, and what will be switched off on the TV. Then explain exactly what changes:
check-tv.py said the TV only has Wireless debugging: you will pair once with Google’s
platform-tools and run adb tcpip 5555 (setup guide step 1, “Only Wireless debugging?”). On some TVs
that port closes after a restart and has to be opened again the same way.apply.sh) switch off the Google TV home, ambient mode (the idle adverts), the
setup wizard and any ad tracker you agree to. Nothing is deleted. Other makers’ own homes are
left alone. Warn them:
survey-tv.py saw nothing risky, so
say it may happen on theirs. apply.sh does everything else first and switches the wizard off
last. If the TV drops off the Wi-Fi, apply.sh says so: they re-join the Wi-Fi at the TV
(Settings, Network and Internet) and you run apply.sh again (it is safe to repeat). Have the
TV remote ready. KEEP_SETUP=1 leaves the wizard on if they would rather not risk it.apply.sh has to run again.
Option B’s bridge does that check every day.KEEP_SETUP=1, on some TVs the old home then keeps the Home button.home.updates set to notify, the TV home asks GitHub once a week
whether a new couch-tv release is out; with manual, only when someone presses Check for updates
now (either can be changed in Home settings, Updates). It installs nothing unless someone at the
TV says yes on Android’s own screen.Ask: “Ready for me to set it up? You can undo all of it.” Wait for a clear yes.
dist/ in step 0; build only if that download failed.config.json from their answers. Never commit it..venv/bin/python scripts/check-tv.py <tv address>
whether ADB answers on 5555. Then, while they stand at the TV, run
.venv/bin/python scripts/check-tv.py <tv address> --adb and have them tick Always allow
and press Allow. Now settle B or C from its Android version.
Use the Android version from --adb to pick your words from now on:
com.google.android.apps.tv.launcherx.
Otherwise (for example com.google.android.tvlauncher, or a maker’s own home) call it the
TV’s own home screen.apply.sh. Seen on one Google TV (Android 14): once the
Google TV home and the setup app were switched off, the TV stopped showing “Allow USB
debugging?” for any new key; computers allowed before kept working. So, before step 5, make
sure each computer that will talk to the TV has been allowed, and for option C that the on-TV
app’s Connect ADB has been allowed.tv-home/tools/survey-tv.py before apply.sh.
Option A: run apply.sh with no BRIDGE_URL. Option B: with BRIDGE_URL. It copies the app
with tvadb.py, which falls back to a slower copy by itself if the TV stalls; let it finish.
If it ends with “this computer can no longer reach it”, the TV forgot its Wi-Fi: ask them to
re-join it at the TV, then run the same apply.sh command again.
pair_tv.py. Run
.venv/bin/python bridge/pair_tv.py <tv id> in the background, ask them to read you the code
on the TV, then run .venv/bin/python bridge/pair_tv.py <tv id> --code <code>. It prints
ok: ... is paired and exits 0, or says the TV refused the code (then start again: each
pairing shows a fresh code).launchctl bootstrap, check
launchctl print gui/$(id -u)/app.couchtv.bridge says state = running. Exit code 78
(EX_CONFIG) with an empty log means launchd could not open a log file another program made:
delete it or rename the log paths, then bootout and bootstrap again
(bridge/examples/couch-tv-bridge.plist.example). Seen on a real Mac.apply.sh once more. Options A and B: if they said yes to update news, a new
couch-tv release shows up as a dot on the gear tile within a week. Either way, Home settings,
Updates checks for one and installs it (Android asks first, and once asks to let Home install
apps), and the weekly look can be switched on or off there.config.json, .env and bridge/data/ hold their settings and history. Git ignores them.
Never commit them, and never paste their contents into issues or chat logs.scripts/privacy-scan.sh first. It must find nothing.claude -p with ANTHROPIC_API_KEY removed on purpose, so it uses their Claude
plan, not a paid key. Leave that in place. Option C only uses an API key they typed in themselves.