# Create a front-end workstation

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


> Create a workstation for front-end work: Node.js 24, Playwright and the GitHub CLI on Debian 13, with your coding agent installed.


Create a workstation for front-end work: Node.js 24, Playwright and the GitHub CLI on
Debian 13, with your coding agent installed. It runs on your own computer, with no account
needed, and your agent works inside the workstation, not directly on your computer.

## Prerequisites

- [Ringleader installed](https://docs-stg.ringleader.dev/install/) on your computer.
- `rl` 0.53.0 or later.
- A stack file for your agent. The examples use the Claude Code file, which creates a
  workstation named `frontend-claude-code`; replace the name with the one in your agent's block.

## Create a front-end workstation

The same files work on a Mac, a Windows PC and Linux. On
Linux the workstation reaches the internet over TCP and DNS only, so `ping` and other UDP
traffic leaving it fail.

The files name no namespace, so `rl apply` puts the workstation in your current namespace.
That is `local` until you sign in to the Ringleader console or run `rl namespace use`. To use
`local` while you are signed in, run `rl namespace use local` before you apply a file. Every later
command then uses `local` too, until you run `rl namespace use --unset`.

Before you apply a file, set your computer to ask you before it opens a link from a
workstation. Without this, it opens every link a workstation sends:

```bash
rl urlopenrules default queue
```

Then paste the three lines for your agent into a terminal. The first creates the
workstation, the second waits until every tool is installed, and the third opens a shell
inside it. Setup takes a few minutes, and longer the first time, while the base image
downloads.


### Claude Code


[View the file on GitHub](https://github.com/ringleader-dev/ringleader-examples/blob/main/stacks/frontend/frontend-claude-code.yaml)

```bash
rl apply -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/frontend-claude-code.yaml
rl workstation wait frontend-claude-code --for condition=Configured --timeout 20m
rl shell frontend-claude-code
```



### Codex


[View the file on GitHub](https://github.com/ringleader-dev/ringleader-examples/blob/main/stacks/frontend/frontend-codex.yaml)

```bash
rl apply -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/frontend-codex.yaml
rl workstation wait frontend-codex --for condition=Configured --timeout 20m
rl shell frontend-codex
```



### Cursor CLI


[View the file on GitHub](https://github.com/ringleader-dev/ringleader-examples/blob/main/stacks/frontend/frontend-cursor.yaml)

```bash
rl apply -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/frontend-cursor.yaml
rl workstation wait frontend-cursor --for condition=Configured --timeout 20m
rl shell frontend-cursor
```



### Antigravity CLI


[View the file on GitHub](https://github.com/ringleader-dev/ringleader-examples/blob/main/stacks/frontend/frontend-antigravity.yaml)

```bash
rl apply -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/frontend-antigravity.yaml
rl workstation wait frontend-antigravity --for condition=Configured --timeout 20m
rl shell frontend-antigravity
```

<div class="callout callout-warning">
  <p class="callout-title">It deletes itself after a week</p>
  <div class="callout-body">
    The workstation deletes itself, disk included, a week after you create it. Push your work
before then, or change <code>lifecycle.ttl</code> in a copy of the file, as
<a href="https://docs-stg.ringleader.dev/workstations/lifecycle/deletion-deadlines/#deletion-deadline">Deletion deadline</a>
describes.
  </div>
</div>







## Start the agent

In the workstation's shell, start your agent with its command from
[Start a coding agent](https://docs-stg.ringleader.dev/workstations/coding-agents/coding-agent-setup/#start-a-coding-agent).
When the agent asks you to sign in, approve its sign-in link on your computer, as
[Sign in from a workstation](https://docs-stg.ringleader.dev/guides/tool-sign-in/#sign-in-from-a-workstation)
shows. The workstation forwards its ports to your computer, so the sign-in completes in the
agent.

If a ready workstation is all you need, you are done. The sections that follow add the
starter app, your own projects and your editor.

## Add the starter app

The starter app is a React and TypeScript project made from Vite's own template. It gives you
and your agent something to work on from the start. It uses create-vite 9.2.1. The app's own
dependencies are resolved when the app is created, and `package-lock.json` records them. To
add it, put a second `-f` on the
first line of your agent's block:

```bash
rl apply -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/frontend-claude-code.yaml -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/starter-app.yaml
```

Wait and open a shell as before, then start the app's development server:

```bash
cd ~/app
npm run dev
```

Open <http://localhost:5173> in your browser. In a second terminal, open another shell on
the same workstation, `cd ~/app`, and start your agent. Ask it for a change, such as "add a
dark mode toggle". The page updates each time the agent saves a file.

The starter attaches to every workstation labeled `stack: frontend`, so you can also apply
it on its own to a front-end workstation you already have. It creates `~/app` once and never
overwrites it.

The starter's development server listens on `127.0.0.1` inside the workstation. If you bring
your own Vite project, start it with `npm run dev -- --host 127.0.0.1`, or set `server.host`
to `127.0.0.1` in its `vite.config.ts`.
[Service listen address](https://docs-stg.ringleader.dev/workstations/connectivity/port-socket-forwarding/#service-listen-address)
explains why.

## Clone your own project

To clone and push your own repositories, the workstation needs access to GitHub, and your
commits need your name and email. Follow
[Give a workstation access to GitHub](https://docs-stg.ringleader.dev/guides/github-access/). It adds your
token to each request, as [Injected credentials](https://docs-stg.ringleader.dev/security/credentials/injected-credentials/)
describes, so nothing running in the workstation can read it.

The guide's file selects `role: agent`. To reach every front-end workstation, including ones
you create later, replace both `role: agent` lines with `stack: frontend`, and use your
workstation's name in place of `my-git-box`. Keep the file name `my-git.yaml`, which
[Optional: Clean up](#optional-clean-up) refers to.

To use your own GitHub account in place of a token, follow
[Connect your GitHub account](https://docs-stg.ringleader.dev/guides/connect-github-app/#connect-your-github-account).
To give the workstations a GitHub App's short-lived tokens instead, see
[Connect workstations to GitHub with the Ringleader GitHub App](https://docs-stg.ringleader.dev/guides/connect-github-app/).
To clone over SSH with a key from your computer, read
[SSH keys for outbound Git](https://docs-stg.ringleader.dev/workstations/connectivity/git-ssh-keys/),
which says what that costs.

## Open the code in your editor

`rl code` opens a folder on the workstation in VS Code or Cursor on your computer. Use it to
read and edit what your agent is writing. Run `rl ssh-config install` first, once per
computer. It adds one line to your `~/.ssh/config` so the editor can find your workstations:

```bash
rl ssh-config install
rl code frontend-claude-code --path /home/<you>/your-app
```

Replace `frontend-claude-code` with your workstation's name. Replace `<you>` with your
[login name](https://docs-stg.ringleader.dev/workstations/packages-tools-settings/users-environment-system-settings/#login-user)
on the workstation, which `whoami` prints in its shell. For the starter app, the folder is
`/home/<you>/app`. If you have both editors, add `--editor cursor` to choose Cursor.

## Check what the front-end files install

Each front-end file installs these tools:

- Node.js 24, with npm and pnpm.
- Playwright, with Chromium for browser tests.
- The GitHub CLI, `git`, `curl`, `jq` and ripgrep.
- One coding agent.

The four files differ only in the agent they install, the workstation's name and its
`agent` label. Each agent keeps the defaults listed in
[Coding agent defaults](https://docs-stg.ringleader.dev/workstations/coding-agents/coding-agent-setup/#coding-agent-defaults).

Each file keeps the workstation off your local network and lets it reach the internet, as
[Keep a workstation off your local network](https://docs-stg.ringleader.dev/security/outbound/outbound-restrictions/#keep-a-workstation-off-your-local-network)
describes. For the Claude Code file, [Lock down Claude Code for unattended runs](https://docs-stg.ringleader.dev/guides/lock-down-claude-code/)
narrows it to a list of hosts. Each file also forwards the workstation's ports and the links it
opens to your computer.

## Check the front-end stack versions

The files fix the base image at Debian 13 and Node.js at major version 24. Playwright and
pnpm install their latest release when the workstation is set up. Each agent's version
behavior is in
[Coding agent defaults](https://docs-stg.ringleader.dev/workstations/coding-agents/coding-agent-setup/#coding-agent-defaults).
To choose a tool's version, add `version:` to its entry, as the
[devtools reference](https://docs-stg.ringleader.dev/reference/tools/devtools/) describes.

## Optional: Clean up

Cleaning up deletes the stack's workstation and its disk, and the starter app's
configuration. If you skip it, the workstation stays until it deletes itself at its one-week
deadline. The starter app's configuration stays until you delete it.

To clean up, pass `rl workstation delete` the same files you passed `rl apply`:

```bash
rl workstation delete -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/frontend-claude-code.yaml -f https://raw.githubusercontent.com/ringleader-dev/ringleader-examples/main/stacks/frontend/starter-app.yaml -y
```

Leave out `starter-app.yaml` if you didn't apply it. If you did, include it, or its
configuration stays behind and attaches to the next front-end workstation you create. That
is what you want for `my-git.yaml`, so leave it in place. When you no longer need it,
`rl workstation delete -f my-git.yaml` removes it.

## Next steps

- [Stacks](https://docs-stg.ringleader.dev/workstations/packages-tools-settings/stacks/) says what a stack is, and how to change one
  or run it in a cloud.
- To see how a workstation is built from the file you apply, read
  [workstation basics](https://docs-stg.ringleader.dev/workstations/basics/).
- [Deletion and delete deadlines](https://docs-stg.ringleader.dev/workstations/lifecycle/deletion-deadlines/) changes when the workstation
  deletes itself, and [Starts, stops and restarts](https://docs-stg.ringleader.dev/workstations/lifecycle/starts-stops-restarts/) changes when it stops.
- [Lock down Claude Code for unattended runs](https://docs-stg.ringleader.dev/guides/lock-down-claude-code/)
  walks through the security settings the Claude Code file starts from.
- [Run your own coding agent in Ringleader](https://docs-stg.ringleader.dev/guides/run-own-coding-agent/)
  keeps the key of another agent off the workstation.

