Scripts2026年5月15日·1 分钟阅读

Moonlight — Open Source Game Streaming Client

Moonlight is an open source GameStream client for PC, Mac, Linux, and Steam Link that streams games from a host running Sunshine or NVIDIA GameStream with low latency and up to 4K HDR at 120 fps.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Stage only · 29/100Stage only
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Single
信任
信任等级:Established
入口
Moonlight
通用 CLI 安装命令
npx tokrepo install b75404dd-5016-11f1-9bc6-00163e2b0d79

Introduction

Moonlight is an open source implementation of NVIDIA's GameStream protocol that lets you stream games and applications from a powerful PC to almost any device on your network. Originally a reverse-engineering effort of the Shield streaming protocol, it has grown into the go-to client for self-hosted game streaming when paired with Sunshine as the host.

What Moonlight Does

  • Streams games and desktop applications from a host PC to clients over a local network or the internet
  • Supports up to 4K resolution at 120 fps with HDR on compatible hardware
  • Provides hardware-accelerated video decoding on the client for minimal CPU usage
  • Works with gamepad, keyboard, and mouse input forwarded to the host with low latency
  • Available on Windows, macOS, Linux, iOS, Android, ChromeOS, and Steam Link

Architecture Overview

The host (Sunshine or NVIDIA GameStream) captures the screen using GPU hardware encoders (NVENC, AMF, or VA-API), encodes the video as H.264 or HEVC, and streams it over RTSP to the client. Moonlight decodes the stream using platform-native hardware decoders and renders the frames. Input events are sent back over a low-latency control channel. The entire pipeline is optimized to keep end-to-end latency under 30 ms on a good LAN.

Self-Hosting & Configuration

  • Pair with the host by entering the PIN displayed in Moonlight into the host's web UI
  • Video settings (resolution, frame rate, bitrate) are configured in Moonlight's settings panel
  • For internet streaming, configure port forwarding or use a VPN like Tailscale or ZeroTier
  • Audio can be streamed alongside video or kept on the host
  • Custom apps and games can be added to the host's app list via Sunshine's web interface

Key Features

  • Sub-30 ms latency on a local gigabit network with hardware encoding and decoding
  • HDR passthrough for vivid colors on supported displays and GPUs
  • Multi-controller support for local co-op gaming on the client device
  • Clipboard sharing and remote desktop mode for productivity use
  • HEVC and AV1 codec support for better quality at lower bitrates

Comparison with Similar Tools

  • Steam Remote Play — Built into Steam; easy setup but limited to Steam library and higher latency
  • Parsec — Low-latency cloud gaming service; commercial with a free tier, closed source
  • Sunshine — The recommended host companion for Moonlight; open source replacement for NVIDIA GameStream
  • NVIDIA GameStream — The original proprietary host; deprecated in favor of Sunshine
  • Remote Desktop (RDP/VNC) — General-purpose remote access; not optimized for gaming latency or frame rates

FAQ

Q: Do I need an NVIDIA GPU to use Moonlight? A: No. When paired with Sunshine as the host, Moonlight works with NVIDIA, AMD, and Intel GPUs. The original NVIDIA GameStream required an NVIDIA GPU, but Sunshine removed that limitation.

Q: Can I stream over the internet? A: Yes, but it requires port forwarding or a VPN. A VPN like Tailscale is the simplest approach and avoids exposing ports to the public internet.

Q: What is the difference between Moonlight and Sunshine? A: Moonlight is the client that receives and displays the stream. Sunshine is the host that captures, encodes, and sends the stream. They work together as a pair.

Q: Does Moonlight support mouse and keyboard input? A: Yes. Moonlight forwards mouse, keyboard, and gamepad input to the host. You can use it as a full remote desktop replacement for gaming or productivity.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产