HUB
Sign inSign up
starlink-bridge logo

rcooler/starlink-bridge

By rcooler

•Updated 16 days ago

Read-only Starlink monitoring for Prometheus and Home Assistant. Local and cloud sources.

Image
0

139

rcooler/starlink-bridge repository overview

⁠Quick overview

StarlinkBridge is a read-only monitoring bridge for one Starlink dish. It reads the dish over local gRPC or the consumer Starlink cloud and serves Prometheus metrics, a JSON status endpoint, and optional Home Assistant MQTT Discovery.

The useful dish-specific readings include power consumption, outage causes and durations, obstruction data, heating and thermal alerts, physical alignment, firmware state and uptime. Traffic, latency and loss are also available. It never sends a dish command.

  • Images for linux/amd64 and linux/arm64, published as rcooler/starlink-bridge with each tagged release.
  • Source and documentation: GitHub⁠

⁠Changelog⁠

⁠0.1.0 - 2026-11-11
  • First public release: local gRPC and consumer-cloud data sources with local-first auto mode, Prometheus metrics, the /api/v1/status JSON snapshot, Home Assistant MQTT Discovery, and multi-arch images.

Full history: GitHub Releases⁠

⁠Installation

⁠Docker Compose
services:
  starlink-bridge:
    image: rcooler/starlink-bridge:latest
    restart: unless-stopped
    ports:
      - "9091:9091"
    read_only: true
    cap_drop: [ALL]
    security_opt: [no-new-privileges:true]
    environment:
      # local, cloud, or auto (local first, cloud as fallback)
      STARLINK_MODE: "cloud"
      STARLINK_LOCAL_ADDRESS: "192.168.100.1:9200"
      STARLINK_POLL_INTERVAL: "60s"
      # Required only when the account has more than one dish.
      # STARLINK_DEVICE_ID: ""
      STARLINK_COOKIE_FILE: "/app/config/starlink.cookie"
      STARLINK_COOKIE_STATE_FILE: "/app/data/cookies.json"
      STARLINK_MQTT_ENABLED: "false"
      # STARLINK_MQTT_BROKER: "tcp://homeassistant.local:1883"
      # STARLINK_MQTT_USERNAME: "starlink"
      # STARLINK_MQTT_PASSWORD: "change-me"
    volumes:
      - ./secrets:/app/config:ro
      - ./data:/app/data

The container runs as UID/GID 10001: ./data must be writable by that user and stay on a persistent volume.

⁠Data sources
  • Local (STARLINK_MODE=local): needs network access to the dish at 192.168.100.1:9200. No account is involved.
  • Cloud (STARLINK_MODE=cloud): needs internet access and an authenticated Starlink browser session. Save the Cookie request-header value from a signed-in Starlink account request into ./secrets/starlink.cookie (one line, no quotes). The bridge keeps the rotating session in ./data/cookies.json. Do not sign out of the browser session that supplied the cookie.
  • Auto (STARLINK_MODE=auto): tries local first and falls back to cloud after a local failure.

Step-by-step cookie instructions and every option: configuration guide⁠ · Compose example⁠ · NAS deployment notes⁠

⁠Prometheus scrape job
  - job_name: 'starlink'
    scrape_interval: 60s
    static_configs:
      - targets: ['starlink-bridge:9091']

Scraping never polls Starlink; /metrics serves the cached snapshot.

⁠Endpoints
http://localhost:9091/metrics
http://localhost:9091/api/v1/status
http://localhost:9091/healthz
http://localhost:9091/readyz

⁠PS

  • One bridge instance monitors one dish. For several dishes run separate instances with their own MQTT prefixes and client IDs.
  • Keep cookies and MQTT credentials out of images, source control and command-line arguments.
  • /api/v1/status and the metrics are unauthenticated. Keep port 9091 on a private network.
  • Starlink can revoke a session or demand a new login. When that happens, replace starlink.cookie with a fresh Cookie header.

MIT licensed. StarlinkBridge is an independent project and is not affiliated with, endorsed by, or sponsored by SpaceX or Starlink. Product names are trademarks of their respective owners and are used only to describe compatibility and integration.

Tag summary

Content type

Image

Digest

sha256:6e1df0a0f…

Size

9.6 MB

Last updated

16 days ago

docker pull rcooler/starlink-bridge