A bench for a Nintendo Switch 2 on your desk. It shows the console's picture and sound on your computer and lets you, or an AI agent, press its buttons. You can record clips, read on-screen text, and run repeatable tests.
Developers testing software on real hardware, people automating repetitive checks, accessibility experiments, and anyone who wants an AI agent to operate a console while they watch.
No. NS2Bench only does what a TV and a wired controller do: it receives HDMI and presses buttons over USB. Nothing is installed on the console. It works with any Switch 2 as it comes out of the box, on any system version: no jailbreak, mods or homebrew needed. A jailbroken console works too.
No. NS2Bench never gives the console internet access. Capture and USB input need no network at all. The optional console network answers only the console's connectivity test and never forwards traffic. See Offline console network.
Yes. NS2Bench is free and open source under the GPL-3.0 license. You can use, change and share it. Whenever you pass it on, changed or not, keep the credit "NS2Bench, created by PhantomPtr" and the license; if you pass on a changed version, offer its source to the people who receive it and mark it as changed (see NOTICE). If it's useful, you can support it.
No. NS2Bench is an independent project. Nintendo Switch is a trademark of Nintendo.
A capture card for video and sound (always), and one input device if you want to press buttons:
- a Linux board with a USB device port (Luckfox Pico Pro/Max, Raspberry Pi Zero 2 W, Pi 4/5),
- or a Raspberry Pi Pico plus a 3.3 V USB-to-UART adapter,
- or a CH9329 module (keyboard and mouse only).
The setup guide has a diagram and steps for each.
- macOS: nothing; just allow Camera, Microphone and Local Network.
brew install ffmpegif you want to save clips. - Windows: ffmpeg (
winget install Gyan.FFmpeg), and a CH340/CP210x driver if your serial adapter needs one. - Linux: ffmpeg (the
.debinstalls it) and thevideoanddialoutgroups (sudo usermod -aG video,dialout $USER).
See Before you start.
If you want every button, including C, GL and GR, use a Linux board: its Pro mode shows the console a real Switch 2 Pro Controller. A Pico is the cheapest controller option (all buttons except C, GL and GR). A CH9329 gives only a keyboard and mouse. You can start with view only and add an input device later.
The console needs a way to output HDMI, which normally means the dock. The input device plugs into one of the dock's USB ports.
Yes. Choose View only in Settings → Devices. You can watch, listen, take screenshots, save clips and read on-screen text.
In the Video panel on the right of the main window. It lists only the formats your card offers.
In Settings → Devices. Changes apply without restarting; the old connection releases every button first.
Yes, in Settings → Install. Flash Pico puts the Bridge firmware on a Raspberry Pi Pico (hold BOOTSEL while you plug it in). Install on board sets up or updates the Bridge on a Linux board over SSH (set up key sign-in first). Install helper runs the offline network helper as a service on macOS or Linux. Downloads come from the release that matches the app and are checked before use.
The video pill in the top bar turns green with a frame rate, and the Bridge pill turns green when the console has accepted the input device. Diagnostics in the top bar copies a full status summary.
Any USB (UVC) HDMI capture card. 1080p60 is the goal. Tested: UGREEN 15389 (MS2130), at 1080p60 and 1440p30.
On Windows, internal (PCIe) cards such as the Elgato 4K Pro work too, if they show up in OBS as a Video Capture Device. Pick the card under Video → Device and its sound under Video → Sound (or leave Sound on automatic). NS2Bench asks the card for a size and frame rate it offers. If the card still refuses, NS2Bench falls back to the card's own default, as OBS does. If the colours look washed out, turn off HDR on the console, or turn off HDR output in the card's own software.
On macOS, yes: NS2Bench shares the card with OBS and never takes it away. On Windows and Linux, ffmpeg usually needs the card for itself, so close other apps that hold it.
Check the console is docked and on, the HDMI cable goes into the card's input, and the right card is selected in the Video panel. On macOS, allow Camera for NS2Bench in System Settings → Privacy & Security. Run Diagnostics for details.
Click Sound off in the top bar to turn sound on. On macOS, allow Microphone for NS2Bench. If you have two identical capture cards, NS2Bench pairs the sound with the picture by USB position.
On macOS, about 12% of one core at 1080p60 (hardware JPEG and H.264). On Linux, MJPEG cards are passed through without re-encoding.
- Linux board: check the board is powered and reachable at the address in Settings → Devices, and that the token file matches the board's token.
- Pico: check the serial port and that the baud rate is 921600; TX and RX must cross (adapter TX → Pico GP1, adapter RX → Pico GP0) and GND must be connected.
- CH9329: match the module's baud rate (usually 9600).
Then check the input device is plugged into the console's USB port and the console is awake.
The Switch 2 needs a press to last at least about 50 ms. NS2Bench holds every press for at least 75 ms. If the Bridge is green but nothing happens, the console may be asleep or showing a dimmed screen: the first press only wakes it.
GL and GR are the two back buttons on the Nintendo Switch 2 Pro Controller; Joy-Con 2 don't have them. To use them (and C), use a Linux board and choose The console sees → Pro Controller in the Driving panel. The console then sees a Switch 2 Pro Controller. Otherwise C works as a GameChat shortcut.
Yes. Plug it into the computer; NS2Bench maps it by button position (the bottom face button is B).
Choose Your keyboard sends → Keyboard & mouse in the Driving panel. The console sees a real USB keyboard. This needs a Linux board or a Pico in standard mode, or a CH9329.
A board powered from the console's USB loses power and restarts when the console wakes. NS2Bench reconnects by itself. Presses made while the Bridge is offline are dropped, never replayed later.
Yes, with a little help. A dimmed screen wakes with any press, which NS2Bench does by itself. Sleep Mode, a crash or power-off need one of these, set in Settings → Devices → Power and wake:
- HDMI-CEC (nothing mechanical): a USB-CEC adapter (for example Pulse-Eight) in the HDMI cable between the dock and the capture card sends the "power on" a TV would send. Turn on the console's System Settings → TV Output → Match TV Power State, and install libcec on the computer (
brew install libcecon a Mac). It can also put the console to sleep. - A power-button command: for a button presser such as a SwitchBot, a Home Assistant webhook or a relay. This is the only way back from a crash or power-off.
Then Wake the console (in the no-picture screen, the search, the API POST /api/power, the power MCP tool and ns2bench power wake) tries CEC, then the power button if you allow it, then a press. The Switch 2 has no Wake-on-LAN, and a board powered from the console's USB port switches off about 7 seconds after Sleep Mode; it boots again when the console wakes, and NS2Bench reconnects by itself within about 30 seconds.
No. Capture and USB input work without any network. The console network is only for tools that talk to the console over a LAN.
Connect the console's Ethernet (dock port or USB adapter) to a dedicated Ethernet adapter on your Mac or Linux computer and run ns2bench-netd. It hands out addresses and answers only the connectivity test. Or use a router, VLAN or Wi-Fi network with internet blocked. See the setup guide.
No. It isn't a setting. NS2Bench never forwards, NATs or proxies console traffic and never asks an upstream DNS server.
The network service runs on macOS and Linux. On Windows, run it on a Linux board or PC that owns the console's Ethernet port and control it from the Network tab (remote helper), or use a router with internet blocked.
Any MCP client: Claude Code, Codex, opencode and others. Settings → API & MCP shows a ready-to-copy configuration.
Yes. Block agents (manual only) in the Driving panel stops agent input immediately. Only you, from the NS2Bench window, can turn it off again.
The engine listens only on 127.0.0.1 by default. Listening on another address requires a token. Web pages from other sites can't send it commands.
NS2Bench checks GitHub releases at start, every 6 hours and when you open Settings → Updates. It downloads a new version in the background and installs it when you close NS2Bench (or right away with Restart now). Every download is checked against the release's SHA-256, and on macOS against NS2Bench's signature, before it installs. Each part can be turned off in Settings → Updates. A Linux .deb is updated by downloading the new .deb.
Messages like "Apple could not verify "NS2Bench-….dmg" is free of malware", "NS2Bench is damaged" or "cannot be opened because Apple cannot check it". NS2Bench is signed but not notarized by Apple (that needs a paid Apple Developer ID), so macOS blocks it when it's downloaded in a browser. Allow it once:
- Before opening the .dmg, in Terminal:
xattr -dr com.apple.quarantine ~/Downloads/NS2Bench-*.dmg, then open it and drag NS2Bench to Applications. - If it's already in Applications:
xattr -dr com.apple.quarantine /Applications/NS2Bench.app - Without Terminal: click Done, open System Settings → Privacy & Security, scroll down, click Open Anyway next to NS2Bench and open it again (for the .dmg, and once more for the app if asked).
Updates from inside the app (Settings → Updates) don't trigger this, so you only do it for the first install.
Choose More info → Run anyway. The installer isn't signed with a paid certificate yet.
From 0.0.3 on, every NS2Bench build carries the same signature, so macOS asks once and remembers, across restarts and updates. Updating from 0.0.2 or older, it asks one last time.
Settings → Appearance. The moon button in the top bar switches between light and dark.
In ~/.ns2bench/: clips, test reports, and a log file per day in ~/.ns2bench/logs (kept 7 days). Screenshots go to your Downloads folder. Nothing is uploaded anywhere.
Yes. Settings → Notifications turns on desktop notifications for when the Bridge or the picture drops, tests and clips finish, an agent starts driving, or an update is ready. By default they only show while NS2Bench is in the background.
Settings → Install → Install command line tool puts ns2bench on your PATH (macOS may ask for your password once; the Linux .deb installs it already). Then run ns2bench --help. It can do everything the API and MCP can.
Click Help in the top bar, then Save bug report (a zip of logs, status and a screenshot; no tokens), and attach it to a GitHub issue.
If NS2Bench closes as soon as it opens, make the report without the window: run ns2bench report (or ns2bench-app report; on Windows "%LOCALAPPDATA%\NS2Bench\ns2bench-app.exe" report). It's saved to Downloads and includes crash reports (crash-….txt in ~/.ns2bench/logs) and startup traces. To get the window up when a device makes it crash, start it with --safe: no capture, input or sound.
Blue lines are normal activity, amber lines are warnings that may fix themselves, and red lines need you. For problems NS2Bench recognises, a blue box under the line says what happened and what to do. Problems in the Logs panel shows only warnings and errors; Everything adds detail such as each API call.
Help → Run the check in the app (or ns2bench doctor) checks video, the console picture, OCR, the Bridge, USB state, calibration and network isolation, and says which part is broken and what to do. --probe also presses RIGHT and LEFT on the HOME menu to test input end to end.