# Build a workstation

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


> Describe a Linux workstation, start it on your computer, and open a shell in it.


Describe a Linux workstation, start it on your computer, and open a shell in it. A
workstation is a Linux virtual machine that Ringleader builds to your description and keeps
running until you stop it. On this page it is a plain Debian 13 workstation called
`my-opencode-box`. The [next page](https://docs.ringleader.dev/quickstart/agent/) puts a
coding agent into it.

## Prerequisites

- [Ringleader installed](https://docs.ringleader.dev/install/), with the Ringleader
  application running.

## Build the workstation

Build the workstation in the Ringleader application or from the command line. Either way,
the first workstation takes a few minutes, because Ringleader downloads the Debian 13 image
first. Later workstations from the same image start faster.

<div class="callout callout-note">
  <p class="callout-title">Note</p>
  <div class="callout-body">
    If the welcome flow is open, click <strong>Skip setup</strong> first. The quickstart needs nothing from
it, and you can open it again from <strong>Settings</strong> later.
  </div>
</div>




### Use the application


1. In the Ringleader window, open **Workstations** and click **Add workstation**.
2. Choose **Build from scratch**.
3. On **The basics**, fill in the workstation:
   - **Namespace:** `local`, which keeps the workstation on this computer.
   - **Name:** `my-opencode-box`.
   - **Runs on:** **This computer**.
   - **Image:** **Debian 13**, which is already chosen.
   - **Labels:** type `role=agent`. The next page uses this label to find the
     workstation.

   Click **Continue**.
4. On **Tools and configuration**, click **Claude Code** under **Coding agent**, and **git**
   under **Devtools**, so neither is selected. The workstation starts plain, and the next
   page adds the tools it needs. Click **Continue**.
5. Click **Continue** on **Lifecycle**, then **Create my-opencode-box** on **Summary**.

Wait until the workstation's card on the **Workstations** page says **Ready**.



### Use the command line


Create a file called `my-opencode-box.yaml`:

```yaml
apiVersion: workstations.ringleader.dev/v1
kind: Workstation
metadata:
  name: my-opencode-box
  namespace: local
  labels:
    role: agent
spec: {}
```

Here's what these fields mean:

- `name` is what you call the workstation in every command.
- `namespace: local` keeps it on this computer.
- `role: agent` is a label. The next page uses it to find the workstation.
- The empty `spec` takes Ringleader's defaults, which give you a Debian 13 workstation on
  this computer.

Apply the file:

```bash
rl apply -f my-opencode-box.yaml
```

Wait until it is ready:

```bash
rl workstation wait my-opencode-box --for Ready --timeout 10m -n local
```






## Log in and use the workstation

Open a shell on the running workstation. In the application, click the terminal button on
its card, labeled **Open a shell on my-opencode-box**. On the command line, run:

```bash
rl shell my-opencode-box -n local
```

You are now logged in to the workstation.

<div class="callout callout-note">
  <p class="callout-title">Your username and hostname</p>
  <div class="callout-body">
    The prompt shows your username and the workstation&rsquo;s hostname. Your username is the
same as your account name on your computer, and <code>sudo</code> works without a password. On
Windows, Ringleader changes the name to fit Linux, as
<a href="https://docs.ringleader.dev/workstations/packages-tools-settings/users-environment-system-settings/#login-user">Login user</a>
describes. The hostname is <code>local-my-opencode-box-</code> followed by a code that keeps it
unique. To choose your own, set <code>hostname</code> under <code>spec</code>.
  </div>
</div>


Check which version of Linux the workstation runs:

```bash
cat /etc/os-release
```

The output names Debian GNU/Linux 13.

Next, check that the workstation reaches the internet:

```bash
curl -I https://example.com
```

The first line of the output ends in `200`, which means the request succeeded. Type
`exit` to leave the shell.

## Understand what happened

Ringleader built a workstation to match your description: the form in the application, or
the file you applied with `rl apply`. Opening a shell found the workstation's address and
login key for you, so you didn't set up SSH. Leaving the shell doesn't stop the
workstation. It keeps running, with its files, until you stop or delete it.

## Next steps

- [Run a coding agent](https://docs.ringleader.dev/quickstart/agent/)
  installs the OpenCode coding agent on `my-opencode-box` and gives it a task.

