Scan your whole stack
From OX Research Newsroom
Latest version: v0.9.50
io.github.ctrlpi/pi-bay was last scanned on 23 Nov 2026 at version 0.9.50. Risk score 50 of 100 (medium). High-severity rules fired. The AI review did not flag it.
| Version | Published | Status |
|---|---|---|
| 0.9.50 LATEST | 23 Nov 2026 | 1 rule fired |
| 0.9.41 | 18 Nov 2026 | 1 rule fired |
| 0.9.40 | 17 Nov 2026 | 1 rule fired |
| 0.9.34 | 8 Nov 2026 | Not shown |
Findings for v0.9.50. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The same file downloads and runs a program and contains code referencing an autostart mechanism, such as cron, a Windows Run key or a systemd or LaunchAgent unit. A wrapper that only downloads a tool does not normally need to start automatically.
HIGHThe score describes 0.9.50; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
pi-bay is an App and MCP Server for managing Raspberry Pis and other SSH devices on a LAN: find them, browse and edit their files, and run commands in an SSH terminal.
Requires Node.js 20 or newer and SSH enabled on the target device.
npx pi-bay
Your browser will open automatically! If it doesn't, head to http://localhost:3141.
.py, .sh, .bash, and .js files on the device from their own folder.pi-bay includes a dependency-free Model Context Protocol server, enabled by default on Raspberry Pi hosts. On macOS and other non-Pi hosts, enable MCP in the user interface or with --mcp stdio or --mcp http.
In Claude Desktop, open Plugins in the sidebar, choose Add > Add marketplace and enter ctrlpi/claude-plugins. The marketplace appears as ctrlpi; install pi-bay from it.
In Claude Code, run /plugin marketplace add ctrlpi/claude-plugins, then /plugin install pi-bay@ctrlpi.
To use pi-bay on a remote computer or Raspberry Pi, start it there:
npx pi-bay
A Raspberry Pi serves MCP on the network by default; on another computer, add --mcp http --host 0.0.0.0.
On the desktop, install pi-bay-remote from the ctrlpi/claude-plugins marketplace, or add ctrlpi-remote to any MCP client:
{
"mcpServers": {
"pi-bay-remote": { "command": "npx", "args": ["-y", "ctrlpi-remote", "pi-bay"] }
}
}
ctrlpi-remote finds pi-bay on your network and claims its key the first time. Nothing else to set.
Key, no TLS:
/mcpaccepts only the claimed key, saved in~/.ctrlpi/pi-bay-config.jsonon the remote machine (deletemcp.api_keythere to reset). The web interface has no key: disable it with--ui off, so nothing answers without the key. Plain HTTP: trusted networks only.
The server supports MCP revision 2026-07-28 and the legacy initialize flow through 2025-03-26. It uses plain JSON responses rather than SSE because it does not send server-initiated messages.
You can also use it with mcp-remote from any client that only speaks stdio: npx -y mcp-remote http://<host>:3141/mcp --allow-http --header "Api-Key:<your-mcp-key>". Unlike ctrlpi-remote, it does not find the server or claim its key for you.
pi_device_authenticate is the only tool that takes a username and password. The other tools reuse its connection, or sign in again by themselves with:
save_password: true (or Save password in the app) in macOS Keychain or Linux Secret Service.SSH_AUTH_SOCK) and the default identity files (~/.ssh/id_ed25519, ~/.ssh/id_rsa).When neither works, the tool asks the agent to call pi_device_authenticate first.
| Tool | Purpose |
|---|---|
pi_devices_list |
List discovered devices on the LAN with model, ctrlPi status, and saved credential availability. |
pi_device_info |
Get hardware model, OS, kernel, storage, memory, uptime, and ctrlPi details. |
pi_device_authenticate |
Sign in over SSH and optionally save the password to the system keychain. |
pi_command_run |
Run a shell command and return its output and exit code, with a timeout (default 30 s, max 5 min). |
pi_files_list |
List one folder relative to $HOME, optionally with hidden files. |
pi_file_read |
Read a file as UTF-8 text or base64. |
pi_file_write |
Create or overwrite a UTF-8 or base64 file, up to 16 MB, creating missing parent folders. |
pi_directory_create |
Create a folder relative to $HOME. |
pi_path_rename |
Rename or move a file or folder relative to $HOME. |
pi_path_delete |
Permanently delete a file or recursively delete a folder relative to $HOME. |
pi_device_reboot |
Reboot the device. |
pi_ctrlpi_install |
Install or update the ctrlPi API (pi-gpio-api), and start its service when sudo needs no password. |
pi_ui |
Open the web UI in the browser, or return its address when pi-bay runs on another computer. action: "stop" stops it. |
Call pi_devices_list first, then pass its device_id to device-specific tools.
Install ctrlPi API in the top-right menu installs pi-gpio-api on the connected Pi. A popup asks for the agent name, the API key, and the Lite (recommended) or Full package. The API key is optional: left empty, it is the default your-secret-key, which is public, so change it before relying on the agent. pi-bay writes ~/pi-gpio-api/config.json with the name and key, then runs the installer in the Terminal tab so you can follow it.
If the Pi already has ~/pi-gpio-api/config.json, its agent name and API key are kept and the installer updates pi-gpio-api in place. The installer ends with the sudo commands that create and start the pi-gpio-api service, or restart it; run them in the same terminal.
The pi_ctrlpi_install MCP tool does the same without the terminal. On a first install a missing name or key gets the installer's defaults, the hostname and your-secret-key, and the result warns about the default key. On a Raspberry Pi where sudo needs no password it then creates and starts, or restarts, the service itself; otherwise it returns the installer's output with the commands to run.
Toggle Pi USB Power in the top-right menu turns off every USB port on the connected Pi that supports power switching, then turns them back on after 3 seconds, using uhubctl. A popup explains what will happen and, when uhubctl is missing, that it is installed first with apt. The commands run in the Terminal tab, where sudo can ask for your password. It is refused on a Pi that boots from a USB drive, since cutting its USB power would crash it.
.json files), Cancel and Save. Format JSON reformats with 3-space indentation..py, .sh, .bash, or .js file in the Terminal tab from the file's own folder: python3 file.py, ./file.sh, or node file.js.$HOME. Folder structure is kept and missing folders are created.$HOME.secret-tool (Secret Service).From GitHub:
git clone https://github.com/ctrlpi/pi-bay.git
cd pi-bay
npm start
Or install the npm package locally:
npm install pi-bay
npx pi-bay
pi-bay [--port PORT] [--host ADDRESS] [--allow-host NAME] [--ssh-port PORT] [--api-port PORT] [--api-key KEY] [--no-open] [--ui on|off] [--mcp off|http|stdio] [--config PATH] [--help] [--version]
No environment variables are required: each one in the table is an optional alternative to its flag.
Command-line values take precedence over environment variables.
Boolean environment variables accept true or false, and 1 or 0.
On Linux, pi-bay checks /proc/device-tree/model. When the host is a Raspberry Pi, it listens on 0.0.0.0 by default so another computer on the same network can open it. It does not try to launch a browser on the Pi itself, and Streamable HTTP MCP is enabled at /mcp by default. Start with --mcp off to disable MCP while keeping the web interface available, or switch MCP off from the top-right menu while it runs.
Only expose pi-bay on a trusted network. It has no login of its own and can run commands on, and change files of, every device it has signed in to.
/24 network of the address the computer uses to reach other networks (offline, its first active IPv4 interface) and checks SSH on port 22 (--ssh-port) and a ctrlPi agent's /hello on port 8314 (--api-port).raspberrypi hostname. A ctrlPi agent without SSH is shown as an ESP32 when its model or name says so, and as a Pico otherwise. Other SSH hosts are marked unverified./config/read with the configured API key: the model (agent.platform), operating system (agent.os) and version (agent.version). Live scan information is preferred; a previously saved model is used when the device does not return one. After SSH login, pi-bay also reads the Raspberry Pi model from Linux and saves it for future scans.~/.ctrlpi/pi-bay-devices.json stores device identity, username, model, and whether a saved password exists. It is written with mode 0600 and lives outside the app folder, so reinstalling or upgrading pi-bay keeps it.
Passwords are not written to this file. They are stored in macOS Keychain or Linux Secret Service, and with a saved password Connect works with the password field left empty. A password used without Save password stays in memory for the current session only.
Download as ZIP creates a standard archive of the home folder. Restore from ZIP extracts an archive into the home folder, overwrites matching paths, and leaves other files untouched. Keep a separate copy of important files before restoring.
pi-bay can run commands, overwrite and delete files, install software, and reboot devices. It is intended for a trusted local workstation and LAN.
127.0.0.1 by default, or 0.0.0.0 when the host is a Raspberry Pi.localhost, the machine's own name (or <name>.local), or a name given with --allow-host. Any other name gets 403, which blocks DNS rebinding: a web page cannot point its own domain at your machine and drive pi-bay through it. The terminal's WebSocket is checked the same way.Do not expose it to an untrusted network, and connect only to devices you trust.
/24 network of the address the computer uses to reach other networks. Devices on another subnet or VLAN are not found; with a VPN that routes all traffic, the VPN's address is used, so disconnect it to scan the local network.sudo raspi-config → Interface Options → SSH) and listening on port 22, or start pi-bay with --ssh-port.pi; current Raspberry Pi OS images use the username chosen when the card was written.pi_device_authenticate first, or a saved password.The SSH user needs write permission for the target folder. Files outside $HOME cannot be changed from pi-bay's file browser; use the Terminal tab with sudo instead.
The installer only prints the sudo commands for the pi-gpio-api service. Run them in the Terminal tab. pi_ctrlpi_install runs them itself only when sudo needs no password, and reports needs_sudo otherwise.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.