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-browserdevtool. 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,
urlForwardin 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.
Link handling
A sign-in that expects a browser next to the program works across the boundary between your computer and the workstation, in these steps:
- 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.
- The devtool’s
www-browsercommand stands in for that browser and records the link. The devtool puts the command on thePATHand setsBROWSER=www-browserfor every login shell. It also points the desktop URL handler and thex-www-browseralternative at it. - 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. - Your computer decides what happens to the link: open it, or hold it until you approve it.
- After you sign in, your browser sends the result back to the port on your computer.
autoForwardcarries 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.
Link approval
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 queueA 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.
Review the links a workstation sent
To see every link a workstation sent, and what your computer did with each, run:
rl urlopenrules historyNext steps
- Port and socket forwarding
explains the forwards that
autoForwardsets up. - passthrough-www-browser lists what the devtool supports.
- Sign in to a tool from a workstation signs in to Claude Code and other tools this way, from start to finish.
- URL open rules
lists the
rl urlopenrulescommands and their flags. - Lock down Claude Code for unattended runs holds every link for approval, and sets up a workstation that nobody has to watch.