talira

Sunshine

Self-hosted game stream host for Moonlight

open sourceGPL-3.0-onlyself-hostablefree

Sunshine is a game streaming host you run on your own gaming PC, streaming games and the desktop with low latency to Moonlight clients on Windows, macOS, Linux, Android, iOS and tvOS. It encodes with AMD, Intel or NVIDIA GPUs (AMF, NVENC, Quick Sync, VA-API, VideoToolbox, Vulkan Video) or in software, captures the screen with each OS's own methods, and emulates Xbox, PlayStation and Nintendo controllers. A browser-based web UI sets up applications and streaming settings and pairs client devices. It runs on Windows, Linux, macOS and FreeBSD, is GPL-3.0 licensed and is a LizardByte project funded by donations and a paid controller-driver licence.

Problems it solves

  • play my PC games on the couch TV without carrying the gaming PC into the living room
  • stream games from my desktop to my phone or tablet over Wi-Fi with low latency
  • I want a self-hosted alternative to NVIDIA GameStream now that it's discontinued
  • stream my PC games to a Moonlight client on an AMD or Intel GPU, not only NVIDIA
  • play games from my Linux gaming rig on a laptop in another room
  • use my PlayStation or Xbox controller on the client and have the host see a real gamepad
  • set up which games and apps are streamable from a web page instead of config files
  • pair a new phone with my game streaming host by entering a PIN in the browser
  • stream 4K HDR games from my own hardware without a cloud gaming subscription
  • remote into my home PC's desktop with gaming-grade latency from anywhere

Features

  • streams to any Moonlight client
  • hardware encoding on AMD, Intel and NVIDIA GPUs, plus software encoding
  • AMF, NVENC, Quick Sync, VA-API, VideoToolbox and Vulkan Video encoders
  • screen capture through DXGI, KMS/DRM, ScreenCaptureKit, X11 and Wayland
  • gamepad emulation for Xbox 360/One/Series, DualShock 4, DualSense and Switch Pro
  • web UI for applications, settings and device pairing
  • 4K and HDR streaming on supported GPUs
  • Windows, Linux, macOS and FreeBSD hosts
  • Docker images on Docker Hub and GHCR

Limitations

  • Full controller support on Windows and macOS needs a paid libvirtualhid licence: some gamepad profiles need a separately installed Virtual HID Broker12

Forks

  • Apollo The easiest way to stream with the native resolution of your client device. Its own project since 2024.

Alternatives

The same job

These do what Sunshine does.

  1. Apollo The easiest way to stream with the native resolution of your client device
  2. Apollo.io AI sales platform with a B2B contact database, sequences and dialer

Compare Sunshine with the top 3