OpenSourcePicks

Open source alternatives to popular software, with live GitHub data

GitHub stats refreshed every day

Moonlight

Low-latency streaming client for Sunshine hosts on PC, Mac, Linux, phones, Apple TV and Raspberry Pi

Visit MoonlightGitHubDocumentation

Main features

  • Hardware-accelerated decoding on Windows, macOS and Linux
  • H.264, HEVC and AV1 video (AV1 with Sunshine)
  • HDR and up to 4K at 120 FPS on capable devices
  • 7.1 surround sound
  • Up to 16 gamepads with force feedback and motion controls
  • Direct mouse mode for desktop work, pointer capture for games
  • System shortcuts such as Alt+Tab passed to the host
  • Multitouch and YUV 4:4:4 color with Sunshine
  • Official clients for Windows, macOS, Linux, Android, iOS, Apple TV and Raspberry Pi

What Moonlight does

Moonlight is the client half of a low-latency streaming setup. It connects to a host computer running Sunshine, shows that computer’s games or full desktop, and sends back keyboard, mouse, touch and controller input. The project started as an open source implementation of NVIDIA’s GameStream protocol, used by the SHIELD devices. Since NVIDIA ended GameStream support in 2023, Sunshine has been the recommended host, and the Moonlight website also lists Wolf, which streams apps running in Docker containers.

The project calls itself community-run, with no ads, paid versions or subscriptions. The page here covers Moonlight PC (the moonlight-qt repository); the Android, iOS and embedded clients share the same protocol and are maintained by the same organization.

Clients and platforms

Moonlight PC runs on Windows, macOS and Linux (Snap, Flatpak and AppImage), on Steam Link hardware, on the Raspberry Pi 4 and 5, on other ARM boards, on experimental RISC-V builds and on NVIDIA Jetson and Nintendo Switch devices through L4T Ubuntu. Separate official apps cover Android, ChromeOS, and iPhone, iPad and Apple TV. Moonlight Embedded targets single-board computers. Community ports bring it to Xbox consoles, homebrew-enabled PS Vita, Switch and Wii U, and LG webOS and Tizen TVs. The old Chrome app is archived.

Phones and tablets act only as clients here: you can stream a PC to an iPad, but Moonlight cannot be used to control a phone.

Streaming quality

The client decodes video in hardware on all desktop platforms and supports H.264, HEVC and AV1 (AV1 needs Sunshine and a host GPU that can encode it). The website advertises 4K with HDR and up to 120 frames per second on the PC client, with an option to turn off V-Sync for the lowest latency. Audio goes up to 7.1 surround. With Sunshine hosts, Moonlight also supports 10-point multitouch and full YUV 4:4:4 color, which keeps text sharp when you use it for desktop work rather than games.

Two mouse modes matter for remote desktop use: pointer capture for games, and direct mouse control that behaves like a normal remote desktop. Moonlight can pass shortcuts such as Alt+Tab to the host instead of the local machine.

Connecting and security

Moonlight connects directly to the host, with no relay or ID service. On first connection the client shows a PIN that you enter in Sunshine’s web interface, which pairs the two devices. Whether the stream is encrypted depends on the host’s settings; Sunshine encrypts internet streams when the client supports it and can be told to require encryption. For streaming from outside the home, the Moonlight project suggests port forwarding, IPv6 or a virtual network such as Tailscale or ZeroTier.

Setting it up

There is no server component in Moonlight itself. Install Sunshine on the computer you want to reach, install Moonlight on each device you want to use, add the host and pair. The rest of the configuration (resolution, frame rate, bitrate, codec, controller options) is per client.

Limitations

Moonlight is only as useful as the host behind it, and NVIDIA’s own host is no longer supported. It does not get through NAT on its own. There is no file transfer, clipboard sync or way to help another person, and the community ports vary in maintenance and features.

Who it suits

Moonlight suits anyone running Sunshine: gamers streaming to a TV, laptop or handheld, and people who want a fast, high-quality view of their own workstation from another room or office. For remote support or managing other people’s computers, use RustDesk. The remote desktop guide covers the other tools.

License details

GPL-3.0. All official Moonlight clients are GPL-3.0. Ports for Xbox, PS Vita, Switch, Wii U and smart TVs are separate community projects.

What the GNU GPL v3 means for you

Technical details

Self-hosting needs

  • Sunshine or another compatible host

Built with

  • C++
  • Qt

GitHub topics

  • gamestream
  • linux-app
  • macos-app
  • moonlight
  • nvidia
  • qt
  • sdl2
  • steam-link
  • windows-app

Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.

Moonlight compared with similar tools

AppLicenseSelf-hosting needsHosted versionLast commit
FreeRDPApache-2.0Nothing beyond the appNotoday
MeshCentralApache-2.0Node.js, Database (NeDB built in, or MongoDB, PostgreSQL, MySQL, MariaDB, SQLite)Notoday
MoonlightGPL-3.0*Sunshine or another compatible hostNo2 days ago
noVNCMPL-2.0*A VNC server, websockify (unless the server speaks WebSockets)No3 days ago
RustDeskAGPL-3.0*Nothing beyond the appNotoday
SunshineGPL-3.0*Nothing beyond the appNotoday

An asterisk marks a license with exceptions, such as proprietary directories or paid plugins; see the app page.