The host is the computer that runs the PiChamber server. Connected devices use the host's projects, filesystem, Pi configuration, sessions, and provider credentials.
For access from connected devices, keep the host awake and the server active.
The examples use port 3000.
Replace this port with your actual server port.
Find the server port
-
If you do not know the port, list the discovered servers:
pichamber status
This command does not scan every possible port.
Same Wi-Fi: no tunnel needed
--lan allows connections from other devices.
It does not set or change the password.
Without --lan, the default 127.0.0.1 binding accepts connections only from the host.
If no password exists, --ui-password without a value generates one.
The server prints the generated password when it starts.
--ui-password "your-strong-password" uses the value you supply instead.
-
If a server already uses this port, stop it:
pichamber stop --port 3000 -
Start guided setup in an interactive terminal:
pichamber serve -
Select Local network.
-
Set the port to
3000. -
Select Generate a secure password.
-
Select Browser UI and API.
-
Select In the background.
-
Confirm the settings.
-
Save the password under UI password securely.
For scripts, CI, and non-interactive terminals, use explicit flags instead:
pichamber serve --port 3000 --lan --ui-password
-
Find the host's local IP address.
On macOS, System Settings → Wi-Fi → Details → TCP/IP shows the address.
-
On the other device, open the host's LAN URL.
If the address is
192.168.1.42, the URL ishttp://192.168.1.42:3000. -
Enter the server password.
Startup flags do not change a running server. These wizard choices and the flag-based example start the server in the background. When the server generates a password, it prints output like this example. The example password is a placeholder.
┌ PiChamber Started
│
◆ port 3000 (PID: 12345)
│
◆ UI password
│ <generated-password>
│
▲ save this password
│ it is not shown again
│
● visit: http://127.0.0.1:3000/
│
● logs: pichamber logs -p 3000
│
└ daemon running
The printed visit: URL works only on the host.
On another device, 127.0.0.1 refers to that device, not the host.
Use LAN HTTP access only on trusted networks. Guest Wi-Fi isolation or the host firewall can block connections between devices. Do not disable protections broadly.
Internet access: standalone tunnel
A standalone tunnel is a cloudflared process that you start directly.
It lets a device outside your network reach the host over HTTPS.
This procedure uses ordinary password login, not a one-time browser link.
A managed tunnel is a tunnel that PiChamber starts and controls. An active managed tunnel changes browser authentication. Do not use the standalone tunnel procedure with an active managed tunnel. This combination can cause a “Tunnel access required” screen.
-
If you do not have
cloudflared, install it.On macOS with Homebrew, use:
brew install cloudflaredFor other systems, follow Cloudflare's installation instructions.
-
If no server runs on this port, start guided setup:
pichamber serve -
In guided setup, select This machine only.
-
Set the port to
3000. -
Select Generate a secure password.
-
Select Browser UI and API.
-
Select In the background.
-
Confirm the settings.
-
Save the printed password.
If the server already runs with a password, skip the setup steps.
An existing server keeps its password and binding.
A server without a password accepts every request that reaches it.
The tunnel gives anyone with its URL that access.
If the running server has no password, stop it and start it again with a password before you start the tunnel.
The LAN procedure describes how to stop and start the server with different settings.
Tunnel-only access does not require --lan.
For scripts, CI, and non-interactive terminals, use explicit flags instead:
pichamber serve --port 3000 --ui-password
-
If a managed tunnel is active, stop it:
pichamber tunnel stop --port 3000 -
In another terminal, start the standalone tunnel:
cloudflared tunnel --url http://127.0.0.1:3000 -
Keep this terminal open.
-
On the other device, open the public HTTPS URL that
cloudflaredprints. -
Enter the server password.
LAN access and a standalone tunnel can operate together.
A server with --lan also accepts loopback connections.
The same tunnel command works with that server.
Local devices use http://HOST-IP:3000.
Remote devices use the standalone tunnel's HTTPS URL.
Manually started tunnels get a temporary URL that changes on every restart,
which breaks saved device connections.
For a stable address, use pichamber pair --tailscale or a managed tunnel
with your own hostname instead.
This procedure does not automatically restart the server or standalone tunnel after the host reboots.
Startup integration can manage the server.
It does not restart the standalone tunnel.
Alternative: managed tunnel
This procedure requires a server with a strong password, an installed cloudflared executable, and your own hostname in Cloudflare (ephemeral quick tunnels were removed because their URL changed on every restart). Do not start a managed tunnel for a server without a password. Managed tunnel access requires a one-time browser link. The server does not allow ordinary password login on the managed tunnel's public hostname.
-
If a standalone tunnel runs, press Ctrl+C in its terminal.
-
Start guided tunnel setup in an interactive terminal:
pichamber tunnel start --port 3000 -
If saved profiles appear, select Choose a mode manually.
-
Select the managed remote tunnel mode and provide your hostname and token (or save them as a reusable profile).
-
Confirm the settings.
-
Copy the full
https://…/connect?t=…link from the Tunnel Started output.
The CLI asks for a saved profile or tunnel mode.
Managed remote mode requires a hostname and token; managed local mode requires a cloudflared config file.
The CLI guide describes these choices.
For scripts, CI, and non-interactive terminals, specify the server and mode:
pichamber tunnel start --port 3000 --mode managed-remote \
--token-file ~/.secrets/cloudflare-token \
--hostname pichamber.example.com
- Paste the one-time browser link directly into the intended browser.
- After the browser connects, bookmark the main site instead of the one-time browser link.
Only pichamber tunnel start prints the one-time browser link.
pichamber tunnel status --port 3000 shows the public hostname, not the link.
If you lose the link, start the tunnel again to get a new one.
The one-time browser link expires after 30 minutes and permits only one use. Keep the link private. Link previews or QR scanners can consume it.
Startup integration can manage the server. It does not restore the managed tunnel after a server restart or host reboot. The CLI guide describes stable hostnames and managed tunnel profiles.
Stop the tunnel and server separately
When you stop a tunnel, the server continues to run.
pichamber tunnel stop does not control a standalone tunnel.
Stop a standalone tunnel
-
Press Ctrl+C in the standalone tunnel's terminal.
-
Stop the server:
pichamber stop --port 3000
Stop a managed tunnel
-
Stop the managed tunnel:
pichamber tunnel stop --port 3000 -
Stop the server:
pichamber stop --port 3000
Check the remaining servers
-
List the remaining discovered servers:
pichamber status -
If you enabled startup integration, prevent automatic server restart:
pichamber startup disable
The startup instructions explain how the operating system manages the server.
Pair a PiChamber client
A one-time browser link and an app pairing link serve different purposes.
App pairing links use pichamber://connect.
They permit only one use and expire after ten minutes.
Keep pairing links private.
Pair only devices you trust.
The host's browser UI has an Add a device control under Settings → Remote Access → Ways to connect. That page shows Local network status, the Tailscale Private/Public route, the Add a device QR, Devices with access, and Security (UI password state). On the desktop app, outgoing servers live under Settings → Servers. The CLI can also generate an app pairing link.
-
Generate an app pairing link with one of these methods.
In the host's browser UI, open Settings → Remote Access and choose Add a device to generate a QR code. When no route is reachable yet, the dialog points at Ways to connect instead of showing a code.
For LAN access, use this command instead:
pichamber pair --port 3000 --qrFor a standalone tunnel, use its actual public URL:
pichamber pair --port 3000 --server https://pichamber.example.com --qr -
Scan or paste the app pairing link into the receiving PiChamber client.
Use the receiving PiChamber client, not a browser address bar.
QR output requires an interactive terminal.
--server advertises an address.
It does not create a tunnel.
connect-url can start a server if none exists.
It does not change an existing server.
--relay adds a private relay fallback.
The CLI guide describes other connection options.
Docker hosts
The browser UI has an Add a device control under Settings → Remote Access → Ways to connect.
Inside a container PiChamber only knows its container address, which other devices usually cannot reach, so it does not list it, and Local network shows Not detected. A code includes it only when the browser opened PiChamber at that address.
Set PICHAMBER_PUBLIC_URL to the address other devices use, such as your reverse proxy's HTTPS URL or http://HOST-IP:32145, and Add a device leads its QR code with it.
The CLI requires an address that the receiving device can reach.
Without --server or PICHAMBER_PUBLIC_URL, connect-url warns that the container's own address is unreachable.
For LAN access, Docker must publish the host port to the LAN.
-
Open a terminal in the Compose directory.
-
Replace the example address and port with your actual host mapping or public HTTPS URL.
-
Generate an app pairing link:
docker compose exec --user 1000:1000 -e HOME=/home/pichamber pichamber bun packages/web/bin/cli.js connect-url --server http://HOST-IP:32145 --qr -
Scan or paste the app pairing link into the receiving PiChamber client.
The --user and HOME options run the command as the server's user.
Without them, the command writes the pairing link to a different data directory, and the server rejects the link.
The default Compose binding accepts connections only from the host. Pairing does not make the server reachable from other devices. Run PiChamber in Docker describes network bindings and persistent data.