NS2Bench lets you, or an AI agent, see, hear and drive a Nintendo Switch 2 from a computer. This guide shows how to wire it up.
Every setup has two independent parts:
- Eyes (always): the console's HDMI goes into a USB capture card. The card gives the computer video and audio.
- Hands (optional): a small input device plugs into the console's USB port. The computer sends it commands. The console sees a wired controller, keyboard and mouse.
People use the NS2Bench page in a browser or the desktop app. Agents use the HTTP API or MCP on the same computer (127.0.0.1:7630). Everyone shares one bench, and you see every agent action live.
The console stays offline. NS2Bench never gives it internet access. Capture and USB input need no network at all.
Which setup do I need?
| What you have | Setup | Input connection in Settings |
|---|---|---|
| Only a capture card | View only | View only |
| A Linux board with USB device mode (Luckfox Pico Pro/Max, Raspberry Pi Zero 2 W, Pi 4/5) | Linux board | Network Bridge |
| A Raspberry Pi Pico (RP2040) and a 3.3 V USB-to-UART adapter | Pico | Serial Bridge |
| A CH9329 module (keyboard and mouse only) | CH9329 | CH9329 |
| You also want the console on a local network (homebrew tools) | Offline network | (Network tab) |
| Several consoles, each with its own capture card | Several consoles | (Consoles tab) |
Not sure? Start with view only, then add an input device later. Input settings change without restarting the app.
How an input device connects
An input device needs two connections: USB to the console (where it acts as the controller) and a link to this computer (so NS2Bench can tell it what to press).
| Device | To the console | To this computer | Notes |
|---|---|---|---|
| Linux board (Luckfox Pico Pro/Max, Raspberry Pi Zero 2 W, Pi 4/5) · recommended | its USB device port | Ethernet or Wi-Fi, built in | One board does both. Every button, including C, GL and GR in Pro mode. Installs and updates from the app over SSH |
| Raspberry Pi Pico (RP2040) | its only USB port | its serial pins (GP0, GP1, GND) through a 3.3 V USB-to-UART adapter | The USB port is taken by the console, so the computer needs the adapter. Another Pico flashed with Raspberry Pi's debugprobe firmware works as the adapter. The Pico firmware hasn't been tried on a console yet |
| CH9329 | its USB side | its serial side, through a USB-to-UART adapter | Keyboard and mouse only, no controller buttons |
Pick a Linux board like the Luckfox if you can: it needs nothing else, it is the setup tested on real consoles, and it offers the Switch 2 Pro Controller mode. Some cheap RP2040 boards with a USB-C port aren't seen by a Mac over a USB-C-to-USB-C cable; use a USB-A to USB-C cable to flash them.
If you want every controller button, including C, GL and GR, use a Linux board. Its Pro mode shows the console a Switch 2 Pro Controller. The Pico and the board's standard mode cover all buttons except C, GL and GR. CH9329 has no controller at all.
Before you start: your computer
Install the app from the latest release, then:
macOS (14 or newer)
- Nothing else to install. Capture, sound and on-screen text reading are built into the app.
- First launch: if macOS says Apple could not verify the .dmg, or that the app is damaged or can't be checked, run
xattr -dr com.apple.quarantine ~/Downloads/NS2Bench-*.dmgbefore opening the .dmg (orxattr -dr com.apple.quarantine /Applications/NS2Bench.apponce it's installed), or click Open Anyway in System Settings → Privacy & Security. Only for the first install: updates from inside the app don't need it. - Allow Camera (the picture), Microphone (console sound) and Local Network (the input device) when asked. Change them later in System Settings → Privacy & Security.
- Clips (Save clip) need ffmpeg:
brew install ffmpeg. - Serial adapters (Pico, CH9329) work without drivers; they show up as
/dev/cu.usbserial-…or/dev/cu.usbmodem….
Windows 10/11
- Install ffmpeg (capture, sound and clips use it):
winget install Gyan.FFmpeg, then restart NS2Bench. NS2Bench also finds ffmpeg installed with Chocolatey or Scoop, or anffmpeg.exenext tons2bench-app.exe. - SmartScreen may say "Windows protected your PC": choose More info → Run anyway.
- USB-to-UART adapters may need their vendor driver (CH340/CH341 or CP210x). The port shows up as
COM3or similar in Device Manager. - Optional: Tesseract for on-screen text reading.
- The offline console network service doesn't run on Windows: use a Linux helper or a router.
Linux
- ffmpeg: the
.debinstalls it for you. With the AppImage, install it yourself (sudo apt install ffmpeg,sudo dnf install ffmpeg,sudo pacman -S ffmpeg). - Permissions: add yourself to the groups that own capture cards and serial ports, then log out and in:
sudo usermod -aG video,dialout $USER(Arch:video,uucp). - AppImage:
chmod +x NS2Bench-*.AppImage. If it won't start, install FUSE 2 (sudo apt install libfuse2). - Optional:
sudo apt install tesseract-ocrfor on-screen text reading. - Serial ports show up as
/dev/ttyACM0(Pico) or/dev/ttyUSB0(most adapters).
The capture card (every setup)
- Any USB UVC HDMI capture card works. 1080p60 is the goal. Tested: UGREEN 15389 (MS2130).
- Plug the console dock's HDMI out into the card's HDMI in. Plug the card into the computer by USB.
- Pick the card, resolution, frame rate and quality in the Video panel. It lists only what your card offers.
- Audio comes from the capture card too. There is no separate audio cable.
- macOS: a small built-in helper does the capture. It shares the card with OBS: if OBS already owns the card, NS2Bench uses OBS's format and never takes the card away. On first launch, allow Camera (picture), Microphone (console audio) and Local Network (the Bridge).
- Linux and Windows: NS2Bench uses
ffmpeg(install it first). The card may need to be free, so close OBS or other apps that hold it if the picture does not start. - Run
ns2bench devicesto list the capture cards NS2Bench can see.
View only
The simplest bench. You can watch live, record, take full-resolution screenshots and read on-screen text (OCR). Agents can watch too, but nobody can press buttons.
Parts
- Console in its dock
- USB HDMI capture card (UVC)
- HDMI cable and the card's USB cable
Steps
- Connect the dock's HDMI out to the capture card.
- Plug the capture card into the computer.
- Start NS2Bench and open
http://127.0.0.1:7630(or the desktop app). - Pick your card in the Video panel.
- In Settings → Devices, set Input connection to View only and click Apply input connection.
Check it works
- The video pill in the top bar turns green and the console picture appears.
- The Bridge pill says not configured. That is expected here.
Common problems
- Black picture: wake the console; make sure it is docked and the dock has power. Try another HDMI cable.
- Card missing from the list: on macOS, allow Camera access. On Linux or Windows, close any app that is using the card.
- No sound: on macOS, allow Microphone access. Check that the card is the selected audio source.
Linux USB-gadget board
A small Linux board pretends to be USB devices. It runs NS2Bench Bridge (ns2bench-board). This is the tested setup (Luckfox Pico Pro/Max). It supports both controller modes:
- Standard (default): the console sees a HORI-style wired controller + USB keyboard + USB mouse.
- Pro: the console sees a Switch 2 Pro Controller, with every button including C, GL and GR. No keyboard or mouse in this mode.
Switch modes with The console sees in the Driving panel. It takes about 8 seconds.
Parts
- A Linux board with USB device (OTG) mode: Luckfox Pico Pro/Max, Raspberry Pi Zero 2 W, or Pi 4/5 using the USB-C port
- A USB cable from the board's OTG port to the dock's USB port
- An Ethernet cable to the computer (or use Wi-Fi or the board's USB network)
- The capture card setup above
Steps
- Install NS2Bench Bridge on the board from the app: Settings → Install → Bridge board, enter its SSH host, click Install on board. (From source:
make board-install BOARD=<ssh-host>; addBOARD_TARGET=aarch64-unknown-linux-muslfor a 64-bit Raspberry Pi.) - Plug the board's OTG USB port into the dock's USB port.
- Connect the board's Ethernet to the computer (or join both to the same private network).
- Start the Bridge if it is not already running:
ssh <ssh-host> /opt/ns2bench/ns2bench-hidd.sh start --bind <board-ip>. - Make sure the token file
~/.ns2bench/hidd.tokenon the computer matches the board's token. - In Settings → Devices set:
- Input connection: Network Bridge
- Bridge address: the board's IP (default
192.168.79.2) - Bridge port:
7631 - Bridge token file:
~/.ns2bench/hidd.token
- Click Apply input connection.
Check it works
- The Bridge pill turns green and shows the round-trip time and usb configured.
- Press a button on the on-screen Joy-Con. The console reacts, and the button lights up.
When the console sleeps
A board powered by the console's USB loses power when the console sleeps, and boots again when it wakes. Keep NS2Bench running: it notices within about three seconds and reconnects by itself. Input works again once the board has booted and the console has set up its USB.
For this to work, the board must bring itself back up at boot. Add a boot script for your board that runs /opt/ns2bench/gadget.sh and then /opt/ns2bench/ns2bench-hidd.sh start. Test one real sleep and wake for your board and dock.
Common problems
- Bridge offline · reconnecting: check the cable and the board's IP. Ping the board. Make sure the Bridge is running on it.
- Bridge connected but usb is not configured: wake the console. Check that the cable goes to the board's OTG port, not a power-only port. Some cables carry power only.
- Mouse does nothing on the HOME menu: normal. The console reads the mouse, but only some software shows a cursor.
- Keyboard ignored: the console's USB keyboard support is under System Settings → Controllers & Accessories.
- On the board, stop and start things with
ns2bench-hidd.shandgadget.shonly. Do not kill processes by pattern.
Raspberry Pi Pico
A Raspberry Pi Pico (RP2040) running NS2Bench Bridge firmware. Its USB port goes to the console and shows the same controller + keyboard + mouse as a Linux board in standard mode. The computer talks to it over a serial (UART) link through a separate USB-to-UART adapter.
The Pico firmware is built but has not been run on real hardware yet. Reports are welcome.
Parts
- Raspberry Pi Pico (RP2040) and a micro-USB cable
- A 3.3 V USB-to-UART adapter (CP2102, FT232 or CH340)
- Three jumper wires
- The capture card setup above
Steps
- Flash the Pico from the app: Settings → Install → Flash Pico, then hold the BOOTSEL button while you plug the Pico into the computer. The app copies the firmware onto the RPI-RP2 drive and the Pico restarts. Unplug it. (From source:
make picobuildsfirmware/pico/ns2bench-pico.uf2; copy it onto the RPI-RP2 drive yourself.) - Wire the Pico to the adapter:
- Pico GP0 (pin 1, UART0 TX) → adapter RX
- Pico GP1 (pin 2, UART0 RX) ← adapter TX
- Pico GND (pin 3) — adapter GND
- Leave the adapter's 3.3 V / 5 V pin unconnected. The Pico gets power from the console.
- Plug the Pico's micro-USB into the dock's USB port.
- Plug the adapter into the computer.
- In Settings → Devices set:
- Input connection: Serial Bridge
- Serial port: the adapter (for example
/dev/cu.usbserial-XXXXon macOS,/dev/ttyUSB0on Linux,COM3on Windows) - Baud rate:
921600
- Click Apply input connection.
Optional: build with NS2BENCH_TOKEN=... make pico to make the Pico require a token (set the same token file on the computer). Build with NS2BENCH_BAUD=115200 if your adapter cannot do 921600.
Check it works
- The Bridge pill turns green and shows usb configured.
- An on-screen Joy-Con press reaches the console.
Common problems
- No serial port shows up: install the adapter's driver (CP210x, FTDI or CH340), then replug it.
- Bridge offline: TX and RX are probably swapped. TX always goes to RX. Also check GND.
- Garbled or no replies: the baud rate must match the firmware (921600 unless you built it with another value).
- Never use a 5 V adapter. The Pico's pins are 3.3 V only.
CH9329 module
A CH9329 module turns serial commands into a USB keyboard and mouse. It is cheap and simple, but it has no controller: no buttons, no sticks. Use it for typing and pointing only.
Parts
- A CH9329 module
- A 3.3 V USB-to-UART adapter, unless your module's cable has USB-serial built in
- The capture card setup above
Steps
- Plug the module's USB (HID) side into the dock's USB port.
- Wire the UART side to the adapter: module TX → adapter RX, module RX ← adapter TX, GND — GND. (Skip this if the module has built-in USB-serial.)
- Plug the adapter (or the module's serial cable) into the computer.
- In Settings → Devices set:
- Input connection: CH9329
- Serial port: the adapter's port
- Baud rate: the module's setting, usually
9600
- Click Apply input connection.
Check it works
- The Bridge pill turns green.
- Typing in the native keyboard mode shows up on the console (for example in a text field).
Common problems
- Controller buttons do nothing: expected. CH9329 is keyboard and mouse only.
- Nothing happens: check the baud rate and swap TX/RX if needed.
- Keyboard ignored by the console: check System Settings → Controllers & Accessories → USB Keyboard.
Several consoles
One bench can run several consoles at once. Each has its own capture card (picture and sound) and, if you use the offline network, its own network address. They can share one controller (a Luckfox or Raspberry Pi board, a Pico, or a CH9329): its USB cable is plugged into one console at a time, and you tell NS2Bench which.
The names NS2Bench uses
| Name | What it is |
|---|---|
| Console | One Switch, with a name you choose and its model |
| Model | Switch 2 or Switch 1: sets the menu routes, screen names and controller mode |
| Capture card | The HDMI-to-USB card for that console's picture and sound |
| Controller | The device that presses buttons (the NS2Bench Bridge on a board or Pico, or a CH9329) |
| Network | How the console reaches this computer (shared home network, direct cable, or none) |
Set up
- Connect each console's dock to its own capture card, and both cards to the computer.
- Open Settings → Consoles. Your first console is already there: give it a name and model.
- Under Add a console, enter a name (for example Switch 1), pick its model, its capture card (cards another console uses can't be picked) and, if it's on the shared home network, its address. Click Add console.
- A strip of small live pictures appears under the console: one per console, with its name, colour and whether its picture is live. Click one to watch that console big. Screenshots, clips, screen reading and tests then work on it. + Add console opens Settings → Consoles.
The controller
- 🎮 marks the console the controller is plugged into. Buttons, keys and agent input go only there.
- The controller goes to the console you pick. Click a console's picture and move the controller's cable to it: NS2Bench lets go of everything held and sets the board up for that console. It remembers your pick, also after the board or NS2Bench restarts. (Turn this off in Settings → Consoles to pick the controller's console separately.)
- Each console has its own controller choice (Settings → Consoles → Controller, or the Controller card): Pro Controller, which is that console type's own (Switch 1 or Switch 2), or Controller + keyboard for typing.
- Safety net: if a Switch 2 starts the board as its Pro Controller while another console is picked, NS2Bench knows the cable is in that Switch 2, says so and follows it. Nothing is pressed on the wrong console.
Agents and scripts name the console with ?console=<id or name> or an X-NS2Bench-Console header; MCP tools take a console argument, and list_consoles shows them all. Without one, a request is about the console the controller is on. Input for a console the controller isn't on is refused with a message saying where it is. See the reference.
Not yet: sharing one capture card between consoles (an HDMI switch), and several controllers at once. Each console needs its own capture card for now.
Optional: offline console network
You only need this for local network tools, such as homebrew loaders. Capture and input never need it. Variants A–C use a separate network for the console. Variant D keeps it on your home Wi-Fi.
Whichever variant you pick, the console gets no internet. NS2Bench never forwards traffic, never turns on internet sharing, NAT or a proxy, and never asks an outside DNS server. Its local DNS answers only the console's connectivity test; every other name is refused. Every lookup the console tries shows up in the network log.
The Bridge link from the computer to a Linux board is separate. It can use your normal LAN.
A · Direct cable (macOS or Linux)
Parts: a spare Ethernet adapter on the computer just for the console, an Ethernet cable, and the dock's LAN port (or a USB-Ethernet adapter on the console).
- Give the dedicated adapter a fixed private address, for example
192.168.80.1/24. NS2Bench does not configure the interface for you. - Describe that interface in
bench.json(use your adapter's interface name):
Build the network service:"network": { "interface": "en7", "address": "192.168.80.1", "subnet": "192.168.80.0/24", "pool_start": "192.168.80.10", "pool_end": "192.168.80.13" }make netd. - Check the config without opening any ports:
native/target/release/ns2bench-netd --check bench.json. - Install it as a service:
- macOS: copy the binary to
~/.ns2bench/bin/ns2bench-netd, fill inlaunchd/ns2bench-netd.plist.templateand copy it to~/Library/LaunchAgents/. No root needed. - Linux: install it at
/opt/ns2bench/ns2bench-netdand use the systemd unitlaunchd/ns2bench-netd.service.
- macOS: copy the binary to
- Connect the console's Ethernet to the dedicated adapter.
- In Settings → Network, choose Direct, isolated computer ↔ console. Turn on local DHCP, DNS and the connectivity-test page as needed, then apply.
The console gets an address from the pool (for example 192.168.80.10–192.168.80.13). The Network tab shows the live status and leases.
The service refuses to start if IP forwarding is on, or if it cannot check. That is on purpose.
B · Isolated router, VLAN or Wi-Fi (any OS)
- Set up a router, VLAN or Wi-Fi network for the console with internet blocked, including IPv6. A normal home LAN is not isolated.
- Let the router hand out addresses (DHCP).
- Connect the console to it by Ethernet or Wi-Fi.
- In Settings → Network, choose Isolated router / VLAN / Wi-Fi. This turns off NS2Bench's local DHCP and DNS so they don't clash with the router.
C · Windows computer with a remote helper
Windows cannot run the network service locally. Run it on a Linux board or PC instead, and control it from Windows.
- On the Linux helper, set up
ns2bench-netdas in variant A. The helper owns the console's Ethernet. - Make a token:
openssl rand -hex 16 > ~/.ns2bench/netd-control.token. Copy the same file to the Windows computer. - In the helper's config, add a management listener on a private address that is not on the console network:
"network": { "control": { "listen": "192.168.79.1:7632", "token_file": "~/.ns2bench/netd-control.token" } } - In NS2Bench's config on Windows, point to the helper:
"network": { "helper": { "url": "http://192.168.79.1:7632", "token_file": "~/.ns2bench/netd-control.token" } } - Keep the management link private: a direct cable or the board's USB network. Its traffic is plain HTTP.
The Network tab on Windows then shows the helper's status and controls. Or skip the helper and use variant B.
D · Shared home network (Wi-Fi, no extra hardware)
The consoles stay on your normal home Wi-Fi, next to your computer. Nothing else to buy or plug in. Each console uses manual settings that leave it nowhere to send traffic, and NS2Bench on your computer answers only its connection test, so the console still says it's connected.
How the internet is blocked
| Way out | What stops it |
|---|---|
| Looking up a Nintendo name (eShop, updates, accounts, telemetry) | NS2Bench's DNS refuses every name except the connection test. Each attempt shows in the leak watch and the network log. |
| Connecting to a server by IP address | The console's gateway is its own address, so nothing it sends leaves your home network, whatever the address. |
| IPv6 | Your router must not hand out IPv6, or turn it off. |
| Your computer passing traffic on | The console never sends traffic to your computer as a gateway, and the helper stops if forwarding or internet sharing is turned on. |
| The console going back to automatic settings (a reset, an update, someone changing them) | The leak watch warns you within about 10 minutes. Add a router-side pause too (step 7). |
The last row is the one thing a shared network can't rule out: there, the console's own settings are the lock. If you need "offline even after a factory reset", use variant A or B, where no route to the internet exists at all.
You need: NS2Bench on macOS or Linux with the network helper installed, your computer and the consoles on the same home network, and a router that hands out no IPv6 (or with IPv6 off).
- Reserve addresses in your router (Google Home, your router's app or its web page): one for your computer and one for each console. Note them, for example computer
192.168.86.199, consoles192.168.86.251and192.168.86.252. - Install the network helper if you haven't: Settings → Install → Network helper.
- Open Settings → Network and choose Shared home network.
- Pick the network adapter that is on the consoles' network. The list shows each adapter with its address, for example
en10 · Belkin USB-C LAN · 192.168.86.199/24. - Enter the console addresses, tick the three checks (no IPv6, computer address reserved, no other saved Wi-Fi on the consoles) and click Save and use this network. NS2Bench keeps a backup of your settings file, then click Restart network helper.
- On each console: System Settings → Internet → your Wi-Fi → Change Settings:
- IP address settings: Manual. IP address: the console's reserved address. Subnet mask:
255.255.255.0. Gateway: the console's own address. - DNS settings: Manual. Primary and secondary DNS: your computer's address.
- Save and run the connection test. It passes, and the console says it's connected. NS2Bench shows these exact values for each console under Type this on each console.
- IP address settings: Manual. IP address: the console's reserved address. Subnet mask:
- Recommended second lock: in your router's app, pause or block internet for the consoles (Google Home: Wi-Fi → Family Wi-Fi → pause). Check that the connection test still passes with the pause on.
- Delete every other saved Wi-Fi network on each console, and avoid local wireless play with a console on newer firmware (consoles can pass system updates to each other that way).
Stopping: Settings → Network → Stop using the shared network. Your settings are backed up first; the helper then answers no console and hands out nothing on your home network. Restart the network helper to apply it. To use a direct cable again, follow section B.
Reading the leak watch (Settings → Network, checked every 30 seconds):
- Protected: the console asked NS2Bench recently. It shows when, its last connection test, and how many names were refused.
- On your network but not using NS2Bench: it hasn't asked for 10 minutes while it's on the network. It may be back on automatic settings and online. Check its settings. NS2Bench also sends a desktop notification.
- Not on the network right now: off, asleep or away. Nothing to do.
Common problems
- The console won't connect: check that its DNS is your computer's address, the helper is running (Settings → Install), and the adapter picked in step 4 is on the consoles' network. Only listed addresses get answers, so check the console's IP too.
- The console refuses its own address as the gateway: use an unused address outside the router's DHCP range instead, for example
192.168.86.254. Make sure nothing uses it, now or later. - Your computer's address changed: the consoles can't connect (they stay offline). Reserve it in the router and run the setup again.
- Only one network at a time: the helper serves either this shared network or a direct cable (variant A), not both.
Common problems
- Network tab says unavailable: the service is not running, or it and the UI use different state folders. On Windows, check
network.helperand that both token files match. - Console gets no address: check the interface name and subnet in the config, and that the cable goes to the dedicated adapter.
- Console says it has no internet: that is correct. The connectivity test passes locally, but nothing goes further.
Agents
Once the pills are green, agents can use the bench. Open Settings → API & MCP for the API address, request examples and a ready-to-copy MCP configuration for Claude Code, Codex or opencode. Agents and people share the same controls, and the manual-only switch blocks agent input at any time.
Windows notes
- Capture uses
ffmpegwith DirectShow. Close other apps that hold the card. - The Linux board, Pico and CH9329 all work from Windows. Serial ports are named
COM3,COM4and so on. - There is no local network service on Windows. Use a remote helper (variant C) or an isolated router (variant B).