Sign in to a tool from a workstation
Run a tool's sign-in command in a workstation, and its sign-in page opens in your browser.
Run a tool’s sign-in command in a workstation, and its sign-in page opens in your browser. A
workstation has no browser, so without this setup the tool can’t open its sign-in page. You
set it up once, then approve each link on your computer. The examples use Claude Code
(claude) and the GitHub CLI (gh auth login), but they are only examples: the steps are
the same for any tool that needs a browser sign-in.
Prerequisites
- Install Ringleader, with the Ringleader application running.
- A running workstation on your computer, in the namespace
local. The examples use a workstation namedmy-box; replace it with yours. To create one, follow the Quickstart and use your own name. - A label on that workstation that selects it. The examples use
tier: dev. To add it, runrl workstation label my-box tier=dev -n local. - A tool in the workstation that signs in with a browser. The examples use Claude Code, added
by the
claude-codedevtool in the file below. That is one example. To install another tool, declare its devtool, as Devtools and tool configuration describes. For a coding agent, Coding agent setup has a table of how to sign in to each agent.
Ask before your computer opens a link
Set your computer to ask before it opens a link from a workstation. The setting stays on your computer and covers every workstation:
rl urlopenrules default queueAdd browser sign-in to new workstations
Every workstation already has the passthrough-www-browser devtool, which hands a sign-in
link to Ringleader. The workstation also needs the tool, and your computer needs a LocalBinding
that forwards links. A defaultLocalBinding in a WorkstationConfig creates the LocalBinding.
Save this file as
browser-sign-in.yaml. Changetier: devto your label:apiVersion: workstations.ringleader.dev/v1 kind: WorkstationConfig metadata: name: browser-sign-in namespace: local spec: selector: matchLabels: tier: dev devtools: - name: claude-code # an example tool: replace it with yours defaultLocalBinding: enabled: true autoForward: forwardAll: true urlForward: enabled: trueRun
rl apply -f browser-sign-in.yaml. Ringleader then creates the LocalBinding, once, for eachRunningworkstation this file selects.
If your workstations already have a configuration, add the defaultLocalBinding to it
instead.
Sign in from a workstation
Start the tool’s sign-in in the workstation, then approve its link on your computer.
Open a shell on the workstation with
rl shell my-box -n local, and start the tool’s sign-in. For example, runclaude, or rungh auth login. For another tool, run its own sign-in command.On your computer, in a second terminal, list the links that wait for you:
rl urlopenrules history --pendingApprove the sign-in link by its ID, within 10 minutes of its arrival:
rl urlopenrules approve <id>Your computer then opens the link in your browser.
Sign in on the page that opens. The tool in the workstation finishes the sign-in.
Claude Code’s own sign-in link
Add browser sign-in to an existing workstation
Use this for a workstation that already has a LocalBinding from a template. It keeps that LocalBinding, so a template you add later changes nothing for it. Turn on URL forwarding for the workstation with a LocalBinding of your own.
If the workstation doesn’t have the tool yet, run
rl apply -f browser-sign-in.yamlwith the file from Add browser sign-in to new workstations.Save this file as
browser-sign-in-binding.yaml. Changemy-boxto your workstation’s name:apiVersion: core.ringleader.dev/v1 kind: LocalBinding metadata: name: browser-sign-in namespace: local spec: enabled: true workstationSelector: matchName: my-box autoForward: forwardAll: true urlForward: enabled: trueRun
rl apply -f browser-sign-in-binding.yaml. Links from that workstation then reach your computer.
To turn it off again, run rl binding disable browser-sign-in -n local.
Troubleshoot
- If the configuration created no LocalBinding, the workstation may be shared or bound to a node. Default forwards from a workstation’s configuration explains. If the workstation already had a LocalBinding from a template, follow Add browser sign-in to an existing workstation.
- If no link opens in your browser, the workstation may have no LocalBinding with
urlForward. Without it, your computer doesn’t read the link, as Link handling explains. - If the link is no longer in
rl urlopenrules history --pending, it waited more than 10 minutes and expired. Start the sign-in in the workstation again to get a new link.
Next steps
- Browser sign-in explains what happens to a link, and how your computer decides whether to open it.
- URL open rules lists the
rl urlopenrulescommands and their flags. - MCP servers for coding agents declares an MCP server for your coding agents.