Create a front-end workstation
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 on your computer.
rl0.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:
rl urlopenrules default queueThen 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
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-codeCodex
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-codexCursor CLI
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-cursorAntigravity CLI
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-antigravityIt deletes itself after a week
lifecycle.ttl in a copy of the file, as
Deletion deadline
describes.Start the agent
In the workstation’s shell, start your agent with its command from 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 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:
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.yamlWait and open a shell as before, then start the app’s development server:
cd ~/app
npm run devOpen 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
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. It adds your token to each request, as 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 refers to.
To use your own GitHub account in place of a token, follow 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. To clone over SSH with a key from your computer, read SSH keys for outbound Git, 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:
rl ssh-config install
rl code frontend-claude-code --path /home/<you>/your-appReplace frontend-claude-code with your workstation’s name. Replace <you> with your
login name
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,jqand 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.
Each file keeps the workstation off your local network and lets it reach the internet, as Keep a workstation off your local network describes. For the Claude Code file, Lock down Claude Code for unattended runs 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.
To choose a tool’s version, add version: to its entry, as the
devtools reference 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:
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 -yLeave 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 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.
- Deletion and delete deadlines changes when the workstation deletes itself, and Starts, stops and restarts changes when it stops.
- Lock down Claude Code for unattended runs walks through the security settings the Claude Code file starts from.
- Run your own coding agent in Ringleader keeps the key of another agent off the workstation.