# Devtools and tool configuration

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


> Devtools install development tools that don't come with the operating system, and tool configuration sets those tools up.


Devtools install development tools that don't come with the operating system, and tool
configuration sets those tools up. You declare both on a workstation or a
[configuration layer](https://docs.ringleader.dev/workstations/configuration/configuration-layers/).
A rebuilt workstation, or a teammate's, then gets the same tools set up the same way.

## Devtools

A devtool is a recipe for a development tool that takes more than a package install to be
ready. Examples are language toolchains, Docker, kubectl, a coding agent's command-line tool
and a browser IDE. A recipe handles what the tool needs, such as an upstream repository and
its signing key. It also picks the right binary for the workstation's processor, and turns
on any service the tool runs.
Every workstation the declaration reaches installs the tool the same way, on its
[configuration passes](https://docs.ringleader.dev/workstations/configuration/step-failures-retries/).
[Devtools](https://docs.ringleader.dev/reference/tools/devtools/) lists every recipe.

For a tool that has no recipe yet, two other ways work:

- Declare it as a package, if it ships
  as an operating-system, npm, PyPI, Go or mise package. See [package installation](https://docs.ringleader.dev/workstations/packages-tools-settings/package-installation/).
- Install it with a [setup script](https://docs.ringleader.dev/workstations/packages-tools-settings/scripts-files-services/#setup-scripts).

## Devtool behavior

A recipe that needs another tool, such as `claude-code`, which needs `nodejs`, installs the
missing tool on its own. Declaring that tool first makes the order explicit and lets you
choose its version.

When a workstation and several layers declare the same devtool, it installs once, from the
highest-priority layer's entry, including its `version`, `updatePolicy` and `config`.

Before it runs a recipe, Ringleader checks whether the tool is actually there. For
`docker`, that includes `docker compose` and `docker buildx`. For a configured `kind`, it
includes the cluster. A tool removed by hand is installed again on the next configuration
pass, and a tool that is already there is skipped.

A changed `version` or `config` runs the recipe again on the next configuration pass. Some
recipes then replace the release that is installed with the new `version`. Others check for
the tool's command first, and install nothing when it is there. Each recipe's page says which
kind it is. To keep a devtool current instead, leave out `version` and set
`updatePolicy: latest`, as [Devtool updates](https://docs.ringleader.dev/reference/tools/devtools/#updates)
describes. A changed `config` is applied:

- `kind` applies its ingress and load balancer again, and never recreates a running
  cluster.
- `playwright` installs the browser engines it is missing.
- `uv` installs the new Python, and rebuilds every `pypi` package on it.
- `vscode-web` installs the extensions you added.
- `spire-agent` rewrites its settings.

A devtool name Ringleader doesn't know fails setup, and the workstation reports the failing
step and stays `Configured: False`.

## Tool configuration

Installing a tool is often only the first step. Git needs your name and email, the GitHub
CLI needs an access token, and an editor needs its settings. Tool configuration declares
that setup once. Every workstation it reaches writes the tool's own configuration files on
every configuration pass, so the setup survives a rebuild.
[Tool configuration](https://docs.ringleader.dev/reference/tools/tool-configuration/) lists the tools it covers.

Devtools and tool configuration work together: a devtool installs the software, and tool
configuration sets it up. Several tools appear in both, such as `claude-code`, `codex`,
`vscode-web`, `git` and `gh`. Ringleader also applies its own defaults to some tools with no
tool configuration declared. `vscode-web` gets permission defaults when its devtool is
installed.
[Coding agent defaults](https://docs.ringleader.dev/workstations/coding-agents/coding-agent-setup/#coding-agent-defaults)
lists the defaults of every coding agent.

A setting you declare always wins over Ringleader's default for it. A tool Ringleader
doesn't recognize is skipped, not treated as an error, so a newer configuration applied to
an older workstation still applies the rest.

## Tool configuration behavior

Ringleader writes a tool's files again on every configuration pass. How much of a file it
controls depends on who else writes the file:

- Ringleader writes some files whole: code-server's `~/.config/code-server/config.yaml`,
  Claude Code's managed settings, `~/.gitconfig`, the GitHub CLI's `hosts.yml` and VS
  Code's remote machine settings.
- The tool itself writes the others too: `~/.claude/settings.json`, Claude Code's state
  file, code-server's `User/settings.json`, Codex's `~/.codex/config.toml`, OpenCode's
  `opencode.json`, and pi's `settings.json`, `models.json` and `mcp.json`. In these,
  Ringleader writes only the keys you declared and leaves every other key alone, so a
  setting changed inside the tool survives. When you stop declaring a key, Ringleader
  removes it from the file, and keys it never declared stay as they are. Codex's file is
  merged one setting at a time, so a folder you trusted at Codex's own prompt sits beside
  the ones Ringleader declares.

<div class="callout callout-warning">
  <p class="callout-title">Hand edits are put back</p>
  <div class="callout-body">
    If you edit a file that Ringleader writes whole by hand inside the workstation, the next pass
puts it back.
  </div>
</div>


A file whose content already matches isn't written again, so the tool's own timestamps and
formatting stay as they are.

Two layers can declare a tool configuration with the same `id`, or the same `name` when
there is no `id`. Then the higher-priority layer's `config` replaces the lower one's whole. No
fields are merged, so when you override one field, declare again the fields you still want.

## Secrets in tool configuration

Any string in a `config` can be a `${secret:NAME}` reference, or `${secret:NAME/key}` for
one key of a Secret that has several. Ringleader fills in the value inside the workstation,
so the value is never stored in the workstation or layer you apply, or in its status.

If the Secret doesn't exist, Ringleader doesn't write the file at all, and puts no
placeholder in its place. Only that tool is affected: every other tool still gets its
configuration, and the workstation reports the failing step. Create the Secret with
[`rl secret create`](https://docs.ringleader.dev/reference/cli/commands/imperative-creation/#rl-secret-create-name) before you apply
a configuration that names it.

## Install a devtool

To install a devtool, list it under `spec.devtools` in a workstation or a layer. Add a
`version` if you want one, and a `config` for a recipe that reads one:

```yaml
spec:
  devtools:
    - name: docker
    - name: nodejs
      version: "24"
    - name: playwright
      config:
        browsers: [chromium, firefox]
```

Each recipe's page in [Devtools](https://docs.ringleader.dev/reference/tools/devtools/) says what its
`version` means and what its `config` accepts.

## Configure a tool

To set a tool up, list it under `spec.toolconfigs` with its `config`. This gives git an
identity, and installs git with a devtool beside it:

```yaml
spec:
  devtools:
    - name: git
  toolconfigs:
    - name: git
      config:
        userName: Ada Lovelace
        userEmail: ada@example.com
```

To use a secret, put a reference where the value goes:

```yaml
spec:
  toolconfigs:
    - name: gh
      config:
        token: "${secret:gh-token/token}"
```

## Override a tool configuration from another layer

To change one field of a tool configuration from a lower layer, declare the same tool in a
higher-priority layer. Repeat every field you want to keep. A team layer at priority
100 sets code-server up with no password:

```yaml
spec:
  priority: 100
  toolconfigs:
    - name: vscode-web
      config: { port: 8080, auth: none }
```

Your layer at priority 200 turns a password on, and repeats the port:

```yaml
spec:
  priority: 200
  toolconfigs:
    - name: vscode-web
      config: { port: 8080, auth: password, password: "${secret:ide-password}" }
```

## Next steps

- [Devtools](https://docs.ringleader.dev/reference/tools/devtools/) lists every recipe, its fields and the
  distributions it supports.
- [Tool configuration](https://docs.ringleader.dev/reference/tools/tool-configuration/) lists every tool and its
  `config` fields.
- [Code, dotfiles and trusted folders](https://docs.ringleader.dev/workstations/packages-tools-settings/code-dotfiles-trusted-folders/)
  covers the folders coding tools trust without asking.

