Main features
- GPU encoding with NVENC, AMF, QuickSync, VA-API, Vulkan Video or Video Toolbox, plus software encoding
- H.264, HEVC and AV1 video
- HDR on Windows, experimental on Linux
- Whole desktop or single-app streaming
- Virtual gamepad, keyboard, mouse, touch and pen input
- Web interface for settings and PIN pairing
- X11, Wayland (wlroots, XDG portal, KWin) and KMS capture on Linux
- Optional or mandatory stream encryption
- UPnP option for streaming over the internet
- Hosts on Windows, Linux, macOS and FreeBSD
What Sunshine does
Sunshine turns a computer into a streaming host. It captures the screen, encodes it on the graphics card, and sends video, audio and input to Moonlight clients on another PC, a phone, a tablet, a TV or a handheld. It was built to play PC games from another room or over the internet, and it is the usual replacement for NVIDIA GameStream, which NVIDIA stopped supporting in 2023. The same low latency also makes it a good way to use your own desktop remotely for video editing, 3D work or anything else where VNC and RDP feel slow.
It is not a remote-support tool. There is no ID server, no relay, no file transfer and no way for a technician to drop into someone else’s machine. Think of it as an open source counterpart to Parsec or Steam Remote Play for your own computers: Sunshine is the host and Moonlight the client.
How connections work
Moonlight connects straight to the host. Sunshine listens on a family of ports starting at 47989, all shifted together if you change the base port, and serves its web interface over HTTPS on port 47990. Add the host in Moonlight (by address if it is not listed automatically), then pair each new client once by typing the PIN Moonlight shows into Sunshine’s web interface.
Streaming over the internet needs a direct path to the host. Sunshine can ask the router to open ports through UPnP, an option that is off by default. The Moonlight project also lists port forwarding, IPv6 and virtual networks such as Tailscale or ZeroTier. There is no relay service to fall back on.
Encoding and capture
GPU encoding is the core feature. The README’s compatibility tables list NVENC on NVIDIA (Windows and Linux), AMF on AMD and QuickSync on Intel under Windows, VA-API on Linux and FreeBSD, Vulkan Video on Linux, and Video Toolbox on macOS, with software encoding everywhere. Clients can request H.264, HEVC or AV1, at up to 4K and 120 frames per second on capable hardware, and HDR is supported on Windows and experimental on Linux.
On Linux, Sunshine can capture through X11, KMS/DRM, wlroots compositors, the XDG Desktop Portal (GNOME, KDE and others) and KWin, so Wayland desktops are covered. With portal capture you approve a remote desktop prompt on the host once, and Sunshine stores a token so later sessions start without asking. NvFBC capture works on X11 only. On some distributions, Mesa ships with hardware H.264 and HEVC encoding disabled for legal reasons, and the docs explain how to rebuild it.
Security
The web interface asks you to create a username and password on first start, uses a self-signed certificate, and by default accepts connections only from the local network. Stream encryption is configurable separately for LAN and internet: off by default on the LAN, used when the client supports it over the internet, and can be made mandatory. There are no user roles, 2FA or single sign-on. Paired clients may launch anything in the host’s app list, including the full desktop.
Self-hosting Sunshine
Installers and packages exist for Windows (MSI, runs as a service), most Linux distributions (deb, rpm, Arch, Alpine, Flatpak, AppImage, Homebrew), macOS 15 and later, FreeBSD and Docker. On Linux, add the user running Sunshine to the input group so virtual input devices work.
Gamepads need a note. Linux and FreeBSD use free kernel interfaces. On Windows, full virtual controller support comes from the Virtual HID Broker, a separately installed paid upgrade whose driver is under LizardByte’s source-available license; the older ViGEmBus driver remains a free, limited option. On macOS, virtual gamepads need the broker. Sunshine itself stays GPL-3.0.
Limitations
Internet streaming without port forwarding, UPnP or a VPN is not possible. There is no file transfer, chat or multi-user management. The hardware tables are marked as work in progress, and results vary with GPU drivers.
Who it suits
Sunshine suits gamers and creative professionals who want low-latency access to their own high-end computer from other devices, including Linux users on Wayland. For helping other people or managing many machines, use RustDesk or MeshCentral. The remote desktop guide explains the differences.
License details
GPL-3.0. Sunshine is GPL-3.0. The optional Virtual HID Broker for full virtual gamepads on Windows (and any gamepads on macOS) is a separate paid add-on under a source-available license.
Technical details
Built with
- C++
- JavaScript
GitHub topics
- game-stream
- game-streaming
- game-streaming-server
- geforce-experience
- moonlight
- remote-desktop
Reviewed by the OpenSourcePicks editors from the project's repository and documentation. Something out of date? Tell us.