127.0.0.1.
Prereqs
Node 20+ on macOS, Linux, or WSL.corebrain login opens your browser, authenticates against your CORE workspace, and stores a PAT in ~/.corebrain/preferences.json.
Option A — Tailscale Funnel
Stable URL tied to your tailnet. Good for days/weeks of uptime.Install Tailscale
tailscale version.
Bring Tailscale up
Enable Funnel for this device
In the Tailscale admin console:- DNS → HTTPS Certificates: turn on.
- Access Controls: add a Funnel grant.
Install + register the gateway
tailscale funnel --bg 7787, captures the public URL (https://<device>.<tailnet>.ts.net), generates a security key, and prints both.
Option B — ngrok
Fastest possible setup (one auth token, public URL in seconds). Free-tier URLs change on every restart, so this path is best for short-lived sessions or paid ngrok accounts.Install ngrok
Add your auth token
Sign in at dashboard.ngrok.com, copy the auth token:ERR_NGROK_4018).
Install + register the gateway
ngrok http 7787 in the background, captures the public HTTPS URL, generates a security key, and prints both.
Register in the CORE app
The security key is shown once — copy it now. Then:- In the CORE webapp → Sidebar → Gateways → + New gateway.
- Pick Native.
- Paste the Base URL and Security key, submit.
tailscale status or the ngrok dashboard).
Verify
Register a folder (recommended)
Until you register at least one folder, the gateway runs in permissive first-run mode. Once you register one, scope is enforced everywhere.Troubleshooting
tailscale not found on PATH: install via brew install --cask tailscale (macOS) or the official installer (Linux). brew install tailscale only installs the daemon helper, not the CLI binary.
tailscale funnel started but no public URL appeared within 5s: Funnel isn’t yet enabled for this device. Re-check the admin console (HTTPS certs + Funnel grant) and retry.
ngrok did not expose a public URL within 15s: usually a missing auth token. Run ngrok config add-authtoken <token> and retry.
Gateway shows as Unreachable: confirm the tunnel is alive and the URL in the webapp matches what corebrain gateway status prints.
Lost the security key: run corebrain gateway register to generate a new one, then update Sidebar → Gateways → Edit in the webapp.
For a deeper troubleshooting matrix, see Tunnels.