SuperAPIAI Directory

smartest-tv

github.com · AI agents

Control LG, Samsung, Android TV and Roku smart TVs: play Netflix, YouTube and Spotify content by name, cast URLs, scene presets and multi-TV sync.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAndroid

About this tool

smartest-tv is an open-source project that provides a command-line tool called stv for controlling smart TVs through natural language. It supports four TV platforms: LG webOS, Samsung Tizen, Android TV / Fire TV, and Roku.

Main capabilities

  • Play content by name: enter a show name, and stv will resolve the content ID, open the corresponding app, and start playback. Netflix and Apple TV+ are resolved through HTML parsing, while Disney+, Max, Prime, Hulu, Paramount+, Peacock, Crunchyroll, and platforms on JustWatch are resolved through their APIs, with no login or API key required. When no platform is specified, stv automatically detects streaming sources in your region.
  • Cast URLs: paste a link to play it on the TV.
  • Queue and party mode: multiple people add content, and the TV plays it in order.
  • Scene presets: set the mood with one command.
  • Multi-room audio: turn off the screen and play music on all TVs.
  • TV as a display: for dashboards, clocks, signage, and more.
  • Viewing insights: for example, assess whether a Netflix subscription is worth it.
  • Multi-TV sync: control all TVs at the same time, including a remote friend's TV.

Usage

Install:pip install stv Play:stv play "Frieren" Connect to TV:stv setup When there is no TV, content opens directly in the browser, supporting Netflix, YouTube, Spotify, Disney+, and more. Entering stv directly shows a now-playing card and three contextual action suggestions based on viewing history. Unknown input gives a friendly prompt. Output uses the Catppuccin Mocha color scheme, and the theme can be changed via STV_THEME=nord or STV_THEME=gruvbox , while--format json can be used to pipe to jq.

MCP server

stv can act as an MCP server (21 tools) for Claude Code, Codex, Antigravity, and other MCP clients, controlling the TV through natural language. Setup is a one-line command, or via OpenClaw.

Home Assistant integration

It can be added to HACS as a custom repository. When pairing Android TV / Fire TV, the TV displays a 6-digit PIN, which you enter in the pairing form. In HA OS / HA Container, setting STV_CONFIG_DIR=/config/smartest-tv keeps pairing after the container is rebuilt. Once integrated, it can be used in automations to resolve shows by name and deep link to streaming apps, which HA's built-in media_player.play_media cannot do. Power, volume, and playback controls are also available as standard HA media player entities.

How it works

After you enter a name, stv resolves it to a content ID and deep links to the app on the TV. It does not use browser automation, API keys, or cloud dependencies. Results are cached, so repeat playback is instant. Streaming availability data is provided by JustWatch.

Privacy

stv runs on the local network, with no telemetry, analytics, cloud sync, or reporting back of what you watch. The only exception is community cache contributions: when playing content that is not in the local cache, stv resolves it and submits the resolved ID to a shared community cache so the next user can find it instantly. The data sent includes only the platform name, content slug, and resolved content ID; it does not send names, email addresses, user identifiers, IP addresses, viewing history, playback timestamps, TV IP or hardware information, usage frequency, or times. Cache contributions can be disabled in settings.

Limitations

The Samsung, Roku, and Android TV drivers need testing in real environments. The project includes 253 tests that can run without a TV. It is MIT licensed, written in Python, and requires no cloud services.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools