# Desktop application

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> What each page of the Ringleader window is for: your workstations, credentials, configurations and forwards, the local runtime, your account and the daemon, the bundled tools, settings, diagnostics and versions.


The Ringleader application is one window, opened from the icon in your menu bar or system
tray. Its pages show your workstations, credentials, configurations and forwards, the local
runtime, your account and the daemon, the bundled tools, settings, diagnostics and versions. This
page says what each page is for and the controls that matter. The application is the same on macOS
and Windows, and this page names the places where it differs.

The sidebar on the left includes these entries:

- **Workstations**, **Credentials**, **Configurations**, **Bindings** and **Troubleshoot**, each a
  page described below.
- **Docs**, which opens this documentation in your browser.
- Your account menu at the bottom, showing your name or **Not signed in**. It opens
  **About**, **Account**, **Settings**, **Requested URLs** and **Bundled Tools**. It also switches
  **Theme** between Light, Dark and System, and holds **Sign out** while you are signed in.

Closing the window hides it, and the application keeps running. Quit from **Quit Ringleader**
at the bottom of the sidebar. Quitting leaves the daemon running, so your
workstations keep running and keep picking up changes you make to them.

## Workstations

Your workstations, one card each, grouped by namespace. The local runtime is not in
this list: it has its own tab under [Settings](#local-runtime). Above the list,
**Manage Workstations (in Terminal)** opens the terminal UI.

A card shows the workstation's name, its status and a line of facts, such as its size
and how long until its lifecycle deadline. Beside them it says where the workstation
runs (**This device**, **Another device** or **Cloud**) and has three buttons: start or
stop, open a shell, and open it in VS Code.

Click a card to open it. An open card lists the workstation's namespace, provider, size,
disk, address and device, and adds two buttons:

- **Restart**, offered while the workstation can be stopped.
- **Delete**, which first says what deleting that workstation does and asks you to type
  its name. For a [Node-bound workstation deletion](https://docs-stg.ringleader.dev/workstations/lifecycle/deletion-deadlines/#node-bound-workstation-deletion)
  that runs on someone else's computer, it says the record goes at once and the VM stays on
  that computer as an orphaned workstation.

An open card can also show these facts, when they apply:

- **Deadline** names the next deadline, such as `Stops in 3h` or `Deletes in 2d`. It
  reads `Ends in` when both a run limit and a delete deadline apply, and counts to
  whichever comes first.
  [Starts, stops and restarts](https://docs-stg.ringleader.dev/workstations/lifecycle/starts-stops-restarts/) and
  [Deletion and delete deadlines](https://docs-stg.ringleader.dev/workstations/lifecycle/deletion-deadlines/) explain both.
- **Idle for** says how long an idle policy has found the workstation idle.
- **Status** carries the workstation's own message, such as why it failed.

With no workstations to show, the page says why and offers what helps: a button to the
local runtime, or **Sign in** when you are signed out.

## Credentials

The keys your workstations and coding agents use, such as an API key or a GitHub token. Ringleader
stores each key and adds it to the requests they send, so the workstations never see it.
[Injected credentials](https://docs-stg.ringleader.dev/security/credentials/injected-credentials/) explains how. The
page is the same as the **Credentials** page of the Ringleader console.

**Add credential** opens a drawer that stores a token, connects your GitHub account or connects an
MCP server. Click a credential to see which requests Ringleader adds it to and which of
your workstations it reaches.
[Connect workstations to GitHub with the Ringleader GitHub App](https://docs-stg.ringleader.dev/guides/connect-github-app/)
walks through connecting GitHub.

While you are signed in, the page also lists the credentials kept on this computer, which only
workstations on this computer use. **Add local Claude API key** and **Add local OpenAI API key** store
one there. Signed out, the page shows only the credentials on this computer, and its drawer does not
offer GitHub or MCP servers until you sign in.

## Configurations

A configuration adds packages, tools and settings to workstations. A workstation gets one by name, by
label, or because you own it. The page lists your configurations and is the same as the
**Configurations** page of the Ringleader console. **New config** creates one.

Click a configuration to open it. Its page has four tabs: **Overview**, **Environment**, **Applied to
Workstations** and **YAML**. Signed out, the page shows the configurations kept on this computer,
which apply to workstations on this computer.
[Configuration layers](https://docs-stg.ringleader.dev/workstations/configuration/configuration-layers/) explains
how a workstation's configurations combine, and
[WorkstationConfig](https://docs-stg.ringleader.dev/reference/resources/workstationconfig/) lists their fields.

## Bindings

The ports and sockets this computer forwards to and from your workstations. A forward lets you open a
service that runs on a workstation, such as a web server, at a `localhost` address on this computer.
The list on the left names your workstations. **Showing** switches between **Mine** and **Everyone**,
which adds the workstations shared with you, and **All bindings** shows every workstation's forwards
at once.

Click a workstation to see its forwards as lines between the workstation and this computer. A moving
dot on a line shows that the forward is carrying traffic. On a workstation's view, you can:

- Turn its forwarding on or off with the switch.
- Click **Add a port** to forward another port.
- Click a line for its details, with buttons that open its address on this computer and change the
  port it uses here.
- Open the menu beside the switch for **Automatic forwarding…**, **Add a socket…**, **View YAML** and
  **Delete binding**. **Automatic forwarding…** sets what this computer does when the workstation
  starts a server or opens a web page. **Add a socket…** forwards a Unix socket, such as the
  workstation's Docker socket.

Ringleader keeps a workstation's forwards in a LocalBinding on this computer.
[Port and socket forwarding](https://docs-stg.ringleader.dev/workstations/connectivity/port-socket-forwarding/)
explains them, and [Local bindings](https://docs-stg.ringleader.dev/reference/cli/commands/bindings/) covers the
`rl binding` commands that change them.

## Local runtime

A lightweight Linux runtime with `dockerd`, `kind` and `kubectl`, wired into your shell
so the bundled `docker` CLI talks to it. It is the **Local runtime** tab of
[Settings](#settings). The tab shows the runtime's status and, once it exists, its card.
The button at the top reads **Create Local Container Workstation**, or **Re-apply Local
Container Workstation** once the runtime exists, and the card has the same **Delete** as
any workstation. The two run
[`rl local-runtime create` and `rl local-runtime delete`](https://docs-stg.ringleader.dev/reference/cli/commands/local-runtime/),
so the application and a terminal give you the same runtime. Deleting the runtime removes the
containers, images and volumes in it and switches `docker` back to the context you had
before. To create it again, use the button at the top.

On a Mac, the tab's **Shared folders** section lists the folders on your Mac that
`docker run -v` can give a container. Each of the four standard volumes has a switch,
and each folder you added has a **Remove** button. **Add folder** opens a folder
picker. Once the runtime exists, **Apply** first says that the runtime restarts and
its running containers stop, and then applies your changes. Before the runtime exists,
the button at the top creates it with the folders you chose. The section makes the
same change as `rl local-runtime create` with its share flags, as
[Choose the folders the runtime shares](https://docs-stg.ringleader.dev/guides/run-local-container-runtime/#choose-the-folders-the-runtime-shares)
describes.

## Account

Your control-plane sign-in and the local daemon on this computer, opened from the
account menu.

- The control plane you are signed in to, with your user and the server's version,
  and a **Sign out** button. When you are not signed in, a **Sign in to Ringleader
  Console** card offers the device-code sign-in. The application offers one control plane,
  never a second.
- **Local daemon** shows whether the background `rl daemon` is running, with its
  process id and version, and has **Restart** and **Stop** buttons, or **Start
  daemon** when it is not running. **Open data folder** opens your data directory
  (`~/.ringleader` on a Mac, `%USERPROFILE%\.ringleader` on Windows).
- On Windows, **Windows services** shows the state of the **Ringleader VM Service**,
  which runs local `hcs` workstations, and of Windows' Host Compute Service. It has
  no buttons. When the VM service is not running, the row says what to do.

## Bundled Tools

The real upstream binaries Ringleader ships and links onto your `PATH`: Docker, `kubectl`, `kind`
and Helm, with the version of each so you can confirm what is installed. The page opens from the
account menu. **Refresh versions** reads the versions again.

## Settings

How Ringleader behaves on this computer, opened from the account menu. The page has four tabs:

- **Settings** has the switches listed below.
- [**Local runtime**](#local-runtime) has the container runtime on this computer.
- [**Opening URLs**](#opening-urls) decides what happens when a workstation opens a URL.
- **Nodes** shows this computer's node ID. While you are signed in, **Open Nodes** opens the list of
  your registered computers in the Ringleader console.

The **Settings** tab has these:

- **Launch Ringleader at login** starts the application when you sign in to your
  computer, so the background service and your local runtime are always ready. You can also
  set this in the [welcome flow](https://docs-stg.ringleader.dev/guides/complete-ringleader-setup/), or later in macOS **System Settings → General →
  Login Items**.
- **Reach workstations with standard `ssh`** manages a one-line include in your
  `~/.ssh/config` so `ssh <workstation>` works without Ringleader in the loop. The
  switch reflects the real state of the file, and the text under it shows the path
  of the included config. When another tool has moved the include below other rules,
  the text says so. Turn the switch on again to put it back at the top. The switch
  runs the same install and uninstall as
  [`rl ssh-config`](https://docs-stg.ringleader.dev/reference/cli/commands/workstation-access/#rl-ssh-config), and reads that
  command's status to show the state.
- **Send a daily usage summary** sends Ringleader a small report of counts once a day. It is off
  until you turn it on, and the page shows it only while you are signed out.
  [Daily usage summary](https://docs-stg.ringleader.dev/reference/cli/commands/usage-summary/) lists
  everything it holds.
- **Re-run the welcome flow** opens the welcome flow again, with the same choices: sign-in, local
  runtime, `ssh`, launch at login and the daily usage summary.

### Let tools find Docker at the default socket

Some tools, such as testcontainers-go and testcontainers-java, look for Docker
only at `/var/run/docker.sock` and ignore Docker contexts. Your local runtime is
not at that path: the `docker` command reaches it through the `ringleader`
[Local container runtime](https://docs-stg.ringleader.dev/reference/local-container-runtime/).
If you use only the `docker` command, you do not need this setting.

On a Mac, the **Let tools find Docker at /var/run/docker.sock** switch makes
`/var/run/docker.sock` a link to your local runtime's Docker socket. A startup job
makes the link again each time your Mac starts. The switch is off by default, and
the application on Windows does not have it.

Clicking the switch first shows what will change, with **Continue** and
**Cancel** buttons. After **Continue**, macOS asks for an administrator password.
If you choose **Cancel**, or cancel the password dialog, nothing changes. Turning
the switch off removes the link and the startup job, and asks for the password the
same way.

If another program already holds `/var/run/docker.sock`, Ringleader leaves it
alone. Docker Desktop can hold it, through its **Allow the default Docker socket
to be used** setting. The switch is then unavailable, and the text under its label
says what holds the path. You can turn the switch on once nothing else holds the
path. If you turned the switch on before the other program took the path,
Ringleader's startup job is still installed and would take the path first at the
next start. The application then shows **Remove Ringleader's startup job** in place of the
switch, which removes the job after the same explanation and password.

From the command line, `rl local-runtime default-socket` changes the same setting.
Its `enable` and `disable` each ask for an administrator password, and `enable`
refuses, changing nothing, when another program holds the path:

```bash
rl local-runtime default-socket enable
rl local-runtime default-socket disable
rl local-runtime default-socket status
```

### Opening URLs

A program on a workstation can ask your computer to open a URL, for example to sign you in.
[Browser sign-in](https://docs-stg.ringleader.dev/workstations/connectivity/browser-sign-in/)
explains how the URL reaches your computer. The **Opening URLs** tab has two cards.

**When a workstation opens a URL** sets what happens to a URL that no other rule set decides:

| Choice | What happens |
|---|---|
| **Open** | The URL opens in a browser on this computer. |
| **Queue** | The URL waits up to 10 minutes for you to click **Approve** or **Deny** on the **Requested URLs** page. |
| **Ignore** | The URL is recorded and not opened. |

The choice is the same setting as `rl urlopenrules default`, which
[URL open rules](https://docs-stg.ringleader.dev/reference/cli/commands/url-open-rules/)
describes. If someone edited the default rule set, the choice reads **No default** and you cannot change
it here. Change the rule set with `rl urlopenrules edit default`.

**URL rule sets** lists the rule sets on this computer, with the name, priority, workstations and rules
of each. The one with the highest priority decides first. The list is read-only. To change a rule set,
use `rl apply`.

## Troubleshoot

Diagnostics and logs for when something is wrong. **Generate bundle** saves a
[diagnostics bundle](https://docs-stg.ringleader.dev/troubleshooting/#prepare-a-diagnostics-bundle) to send to
the Ringleader team, shows where it saved the zip, and lists anything the bundle
leaves out. It is the bundle `rl troubleshoot --all --diagnostics` makes: the daemon log,
every workstation, session and configuration you can read, and the names of the Secrets you
can read. [Bundle contents](https://docs-stg.ringleader.dev/troubleshooting/#bundle-contents) lists the rest.
Below it, **Logs** shows the application's log or the daemon's, the same logs
[Troubleshooting](https://docs-stg.ringleader.dev/troubleshooting/) describes.

## About

Opened from the account menu, this page shows the `rl` and daemon versions and your data
directory, which help when you file an issue. It links to the website, the source and the
licenses of the bundled tools. When a newer Ringleader is available, the page says so. The
application hears about a new version whether or not you are signed in, as
[Check for a newer version](https://docs-stg.ringleader.dev/reference/cli/#check-for-a-newer-version)
explains.

While you are signed in, the page offers **Download and install**. It runs
[`rl upgrade`](https://docs-stg.ringleader.dev/reference/cli/#install-a-newer-version), which downloads the
installer from your control plane, checks it, and opens it. The installer asks for
administrator permission, and if you cancel it, nothing changes. On a Mac the application quits
during the install and comes back on the new version with its window open. Signed out,
the page offers a **Download** button when the control plane names a download page, and
that button opens the page in your browser.

## Next steps

- **[Run VS Code in a browser on a workstation](https://docs-stg.ringleader.dev/guides/run-vscode-in-browser/)**: go beyond the defaults with a file you can commit beside your code.
- **[CLI](https://docs-stg.ringleader.dev/reference/cli/)**: drive everything from the terminal instead.

