For the complete documentation index, see llms.txt. A markdown version of this page is at /workstations/connectivity/browser-sign-in/index.md.

Browser sign-in

Ringleader sends a sign-in link that a tool opens inside a workstation to your computer, where you decide whether it opens.

Ringleader sends a sign-in link that a tool opens inside a workstation to your computer, where you decide whether it opens. Tools such as claude, gh auth login, gcloud auth login and az login open a browser to sign you in, and a workstation has none. With browser sign-in, you approve the link on your computer, sign in in your own browser, and the tool in the workstation finishes the sign-in. To set it up and sign in, follow Sign in to a tool from a workstation. For a workstation that already has a LocalBinding from a template, follow Add browser sign-in to an existing workstation.

Parts of browser sign-in

Browser sign-in has two halves, and you need both:

  • On the workstation, the passthrough-www-browser devtool. It stands in for the system browser, so a program that tries to open a link hands it to Ringleader instead of failing. Ringleader adds it to every workstation.
  • On your computer, urlForward in a LocalBinding. It lets the links reach your computer, where Ringleader records them and applies your rules.

You don’t need to list the devtool in a configuration, and a configuration that already lists it still applies. A workstation you created earlier gets the devtool too: Ringleader applies its configuration once more to add it.

The devtool alone sends nothing to your computer. You turn browser sign-in on for a workstation with urlForward in a LocalBinding, and your URL open rules then decide what happens to each link.

A sign-in that expects a browser next to the program works across the boundary between your computer and the workstation, in these steps:

  1. A program in the workstation, such as Claude Code, starts a small server on a random port. It then tries to open a sign-in link with the system browser.
  2. The devtool’s www-browser command stands in for that browser and records the link. The devtool puts the command on the PATH and sets BROWSER=www-browser for every login shell. It also points the desktop URL handler and the x-www-browser alternative at it.
  3. The Ringleader background service on your computer reads the record over its SSH connection to the workstation. It writes the link to its history in ~/.ringleader/browser-opens.log.
  4. Your computer decides what happens to the link: open it, or hold it until you approve it.
  5. After you sign in, your browser sends the result back to the port on your computer. autoForward carries it to the program in the workstation. Claude Code needs this, because it waits for the sign-in on a port it picks at random.

Without urlForward, your computer doesn’t read the record, so no link reaches it. Only links that start with http:// or https:// pass, and your computer checks each one again before it does anything with it. Every device of yours that is connected to the workstation receives the link.

Your computer decides what happens to each link. By default it opens every link, so set the default to hold links for your approval before you use browser sign-in:

rl urlopenrules default queue

A program in the workstation then can’t make your browser load a page, with your cookies, without your approval. The setting stays on your computer and covers every workstation, not only one. A held link waits for you to approve it, and the approval has to come within 10 minutes of the link arriving. URL open rules lists every rl urlopenrules command and flag.

urlForward.open, the field that once decided this, has no effect now. A file that still sets it applies without an error.

To see every link a workstation sent, and what your computer did with each, run:

rl urlopenrules history

Next steps