Skip to content
denpingusPublic

About

Xbox Cloud Gaming (xCloud) client for the Nintendo Switch: launcher, friends and messages, and a native WebRTC player

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

NXCloud

An Xbox Cloud Gaming (xCloud) client for the Nintendo Switch, in two parts:

  • NXCloud, the launcher: your playable library, friends, messages and achievements.
  • NXStream, the player: its own WebRTC client that streams the game, with the Switch's hardware video decoder, sound, rumble, motion aiming, an on-screen gamepad and an Xbox-guide-like menu over the game.

Leia em português

Recent, like a console home

Discover: Game Pass lists The whole library
Discover: Game Pass lists The whole library
Playing, with the performance stats The menu over the game
Playing, with the performance stats The menu over the game
Player settings On-screen gamepad
Player settings On-screen gamepad

Features

Launcher (NXCloud)

  • Library: every title your account can stream (Game Pass, plus games you own that support cloud play). Recent works like a console's home: the last game you played comes first, and a game still running in the cloud shows up as "Go back to ...". Also Discover (Recently added, Most popular, Leaving soon, Coming to Game Pass), All (sort and genre filter), Favorites and search.
  • Starts instantly, works offline: the library, lists, game details and artwork are kept on the SD card; the app refreshes in the background and retries by itself when the internet comes back.
  • Game details: landscape art, description, the current xCloud queue estimate and your achievement progress.
  • Achievements: per game, with icons, gamerscore and unlock dates.
  • Friends: presence, friend requests, add friends by gamertag, profiles, mute and block, "play together" when a friend is in a game you have.
  • Messages: Xbox conversations, read and reply, with a notification when a message arrives.
  • Real time: friends signing in and new friend requests show up as they happen (Xbox Live RTA).
  • Your profile: gamerscore, bio and recently played games.
  • English, Português (Brasil) and Español; System / Dark / Light theme; interface sounds.

Player (NXStream)

  • Picture: 720p (default) or 1080p, decoded by the Switch's hardware (FFmpeg nvtegra) and shown as soon as each frame is ready.
  • Low lag on real networks: a jitter buffer that asks for lost packets again (NACK), receiver reports and a bandwidth estimate so the console lowers the bitrate before the lag builds up. Priority: low lag, balanced or picture.
  • Sound, with lost packets rebuilt from Opus FEC and clock drift followed smoothly.
  • Controller: the Switch pad as an Xbox pad (by position or by label), HD Rumble, and motion aiming with the gyroscope (while ZL is held, or always).
  • On-screen gamepad for handheld play, with L3/R3, and an editor: move and resize every control, make a button a toggle, set the opacity.
  • Menu over the game (+ and − together, or the menu button on the touch gamepad): resume, Xbox button, back to NXCloud with the game still running, leave; friends and messages (reply with the keyboard); settings.
  • Notifications for new messages, friend requests and friends coming online, and an icon when the network struggles.
  • Everything works by touch, so it can be played without a controller.

Sign-in uses Microsoft's device code flow: the Switch shows a code, you type it at microsoft.com/link on your phone or PC. Your password is never entered on the console, and the tokens stay on your SD card (/switch/nxcloud/auth.json).

Cloud play comes with Game Pass Essential, Premium and Ultimate (not PC Game Pass), or with cloud hours bought for games you own. From November 2026 Microsoft limits it per month: 5 hours with Essential, 10 with Premium and 15 with Ultimate, with more hours sold in the Xbox Store (Xbox Wire).

Install

  1. Copy nxcloud.nro and nxstream.nro to sdmc:/switch/nxcloud/.
  2. Open NXCloud in title mode (hold R while starting a game, or use a forwarder): the player needs the memory of title mode.
  3. Sign in, pick a game, play. Leaving the game (or going back with it running) returns to NXCloud.

If you already have libnxbox installed, you can play through it instead (Settings > Streaming app). It is a separate project: NXCloud does not include or download it.

Controls

Where Button Action
Library A / ZR Game details (or go back to the running game) / play right away
Library X / Y Favorite / search
All tab ZL Sort & filter
Discover ZL / ZR Previous / next list
Everywhere L / R Switch tabs
Everywhere − / + Settings / close
In game + and − together NXCloud menu
In game menu L / R, A, B Tabs, select, back to the game

The footer's hints are buttons too: tap them.

Building

Needs devkitPro with switch-dev, switch-sdl2, switch-sdl2_ttf, switch-sdl2_image, switch-curl, switch-ffmpeg and switch-libopus, plus git and cmake in devkitPro's MSYS2.

make                       # NXCloud
bash stream/deps/build.sh  # NXStream's WebRTC dependencies (once)
make -C stream             # NXStream

stream/deps/build.sh fetches libpeer at a pinned commit (with stream/patches/libpeer-xcloud.patch), mbedTLS 2.28 with DTLS-SRTP, libsrtp and cJSON, and builds them for the Switch. poc/ has the Python proofs of concept used to map the xCloud protocol.

How it works

NXCloud talks to the same web services as xbox.com: Microsoft and Xbox Live sign-in, the xCloud (gssv) title list, queue and sessions, the Game Pass catalog, peoplehub / social / messaging / titlehub / achievements, and the RTA WebSocket. To play, it chain-loads NXStream with the title id.

NXStream asks xCloud for a console, negotiates WebRTC (ICE, DTLS-SRTP, SCTP data channels) through libpeer, and speaks xCloud's channel protocol: H.264 video, Opus audio, the binary input reports (gamepad, frame timing, vibration) and the control and message channels.

hbloader runs every NRO in the same process, so both apps stop and join all their threads before handing over: a thread or a thread stack left behind crashes the next NRO.

License

GPL-3.0-or-later, see LICENSE.

NXStream links FFmpeg (devkitPro's build, GPL), libpeer (MIT), mbedTLS (Apache-2.0), libsrtp (BSD-3-Clause), cJSON (MIT) and libopus (BSD-3-Clause); both apps use SDL2 (zlib) and curl (curl license).

Credits

Greenlight, xbox-xcloud-player and xal-node (xCloud protocol), xbox-webapi-python and go-xsapi (Xbox Live APIs), libnxbox (showed xCloud streaming on the Switch was possible).

Unofficial homebrew, not affiliated with Microsoft, Xbox or Nintendo.

About

Xbox Cloud Gaming (xCloud) client for the Nintendo Switch: launcher, friends and messages, and a native WebRTC player

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages