My kid likes to sneak into other apps and keep watching long past the time we agreed. I spent a whole day off chatting with an AI to fix it (my English was messy, see my tips). I did not write a single line of code. We ended up with a TV that has a kids mode, locks itself at bedtime and goes quiet, plus a phone app to control it. The photos and screenshots here are from our own TV and phone.

What you get

Before you start
- A Mac or Windows computer on the same Wi-Fi as the TV
- An AI assistant that can run commands on your computer, such as Claude Code, GitHub Copilot CLI, Codex or Gemini CLI
Step by step
- Turn on developer mode on the TV. Settings, System, About, then press OK on "Android TV OS build" seven times.
- Turn on USB debugging in the new Developer options menu.
- Clean the TV. Paste prompt 1 below into your assistant. It uses the open-source CleanYourTV project to remove ads and junk apps. Nothing is uninstalled for good, and you can tell the assistant to restore your TV.
- Allow your computer when the TV asks, then answer the assistant's questions.
- Add kids mode. In the same chat, paste prompt 2. It asks which apps your kids may open and what hours the TV may be used.
Prompt 1: clean the TV
Talk to me in Thai. Clone https://github.com/Gathin23/cleanyourtv and work inside that folder. Open its PROMPT.md and do everything between the two --- lines, exactly as if I had pasted it to you. My TV model is: ____ (if I left this blank, read the model from the TV once you are connected).
Prompt 2: kids mode and time rules
Talk to me in Thai. My TV was cleaned with CleanYourTV and the cleanyourtv folder is on this computer. Clone https://github.com/nirasnet/peach-tv next to that folder, read its README.md, and set up the family TV on my real TV step by step, checking each step with a screenshot from the TV: 1. Install the TV agent with tv-agent/install.sh. If network ADB is already closed, tell me how to turn USB debugging back on, and close it again at the end. Keep the agent token private, don't print it in chat. 2. Ask me which apps my kids may open, then turn on Kids mode with only those apps. 3. Ask me what hours the TV may be used on school days and on weekends, and the daily screen-time limit, then set those rules. 4. Show me the unlock code and how to unlock the lock screen with the remote. 5. Ask me whether I have a Mac with Xcode and an iPhone. If yes, build and install the Peach TV app (ios/build-and-install.sh) and pair it with the TV. If not, give me a small script to lock and unlock the TV from this computer. Ask me before anything that needs my Apple account. Skip "away from home" (Tailscale) unless I ask for it.
Change "Talk to me in Thai" to your own language. The full steps and the latest version live in the peach-tv repository.

Credit
The TV-cleaning part is CleanYourTV by Gathin (MIT licence, cleanyour.tv). My kids mode and the iPhone app build on top of it.