# The config.yaml file

> Everything Connections changes is written to config.yaml. Where the file is, the backups kept on each save, and every key a server and the file may have.

Source: https://hiveboard.dev/docs/settings/config-file · Section: Settings and your data · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- Your servers and HiveBoard's settings live in one plain file, config.yaml, in the data folder; Connections edits it for you.
- Every save keeps the previous file as a timestamped backup (the newest ten are kept) and replaces the file in one step.
- HiveBoard reads the file when it starts, so edit it by hand only while HiveBoard is not running.
- No password is ever written to it; a server's key is named by its id in HiveBoard's keychain.

Everything Connections does is written to one plain file, `config.yaml`, in
HiveBoard's [data folder](/docs/settings/data-folder): your servers, how each
signs in, and a few settings for HiveBoard itself. You never have to open it —
but it is a plain YAML file, and you can read or edit it by hand.

No password is ever written to it. A server that signs in with a key names
that key by its id in HiveBoard's [keychain](/docs/keys/keychain); the key
itself is a file in the `keys/` folder beside it.

## Where it is

**Settings → General → Where HiveBoard keeps things → Settings file** shows the
path, with **Copy**. Normally it is `config.yaml` in the data folder. HiveBoard
takes the first of these that exists:

1. the file named with `--config`;
2. the file named by the `HIVEBOARD_CONFIG` environment variable;
3. `config.yaml` in the folder HiveBoard was started from — only when the data
   folder is the default one;
4. `config.yaml` in the data folder.

When there is none, HiveBoard writes a starter file with no servers in the
data folder, and opens on its first-run page. Saves always go back to the file
that was read.

## How HiveBoard writes it

- **A backup on every save.** The file as it was is copied to
  `config.yaml.bak.<date>-<time>` first, never over an earlier backup. The
  newest ten backups are kept.
- **In one step.** The new file is written beside the old one and then put in
  its place, so a half-written file never replaces a good one.
- **Afresh.** A save writes the whole file again, with HiveBoard's own comment
  at the top. Comments you added are not kept, except in the backup.

> [!WARNING]
> HiveBoard reads `config.yaml` only when it starts. Quit HiveBoard before you
> edit the file (on Windows, **Quit HiveBoard** in the tray icon's menu). An
> edit made while it runs is overwritten by its next save, and survives only in
> that save's backup.

## An example

```yaml
refresh_seconds: 20
clusters:
  - name: ember
    label: Ember
    hostname: ember.example.edu
    user: zoe
    identity: k261008-3fa9c2d1
    highlight_users: [zoe]
    allow_job_control: false
    group: Campus
    color: 145
    notes: "Allocation ends in December"
  - name: quartz
    hostname: quartz.example.edu
    user: zoe
    identity: k261008-3fa9c2d1
    jump: ember
  - name: nimbus
    ssh_host: nimbus
    interactive_auth: true
    inactive: true
  - name: cedar
    hostname: cedar.example.edu
    user: zoe
    kerberos: true
    kerberos_realm: HPC.EXAMPLE.EDU
```

Ember is self-contained, with a key from the keychain. Quartz is reached
through Ember, like `ssh -J`. Nimbus is an alias from `~/.ssh/config` that asks
for a password and a one-time code, and is set aside. Cedar signs in with a
Kerberos ticket.

## The keys of a server

Each server is one entry under `clusters:`. It needs a `name`, and either
`ssh_host` or `hostname`. Two servers with the same `name` stop HiveBoard from
starting.

### Who it is and how it is reached

| Key | What it does |
|---|---|
| `name` | The server's name inside HiveBoard, used in `jump:` and in links |
| `label` | The name shown on screen (**Display name**); the `name` when empty |
| `hostname` | The address of a self-contained server |
| `port` | Its SSH port; 22 when left out |
| `user` | Your user name on it |
| `ssh_host` | A host from `~/.ssh/config`, for an alias server |
| `jump` | The `name` of another server to reach it through |
| `scheduler` | `slurm` (the default), or `auto` to look it up at start-up |

For a server with `hostname`, HiveBoard fills `ssh_host` in by itself
(`user@host`, with `:port` when the port is not 22). Leave it out when you
write such a server by hand. See
[Hosts from your SSH config](/docs/connections/ssh-config-hosts) for the
difference between the two kinds, and
[Jump servers](/docs/connections/jump-servers).

### How it signs in

| Key | What it does |
|---|---|
| `identity` | The id of a key in HiveBoard's keychain |
| `agent` | `true`: use a key in this computer's SSH agent |
| `interactive_auth` | `true`: wait for a person — password and code, or key and code |
| `password_only` | With `interactive_auth`: a password and nothing else |
| `kerberos` | `true`: sign in with a Kerberos ticket, and no key |
| `kerberos_realm` | The realm, when the address does not imply it |

You do not set these one by one in the app: the sign-in choice on a server's
**Connection** tab writes them. See
[Sign-in methods](/docs/connections/sign-in-methods).

### What HiveBoard does there

| Key | What it does |
|---|---|
| `allow_job_control` | `true`: cancel, continue and delete your own jobs; `false` by default |
| `highlight_users` | People whose jobs are starred, and whose finished jobs are fetched |
| `apps` | Which codes it looks for: `[all]` (the default) or ids such as `[vasp, orca]` |
| `foreign_job_files` | `never`, `on-demand` (the default) or `always` |
| `inactive` | `true`: set aside, never contacted |

`foreign_job_files` decides how far HiveBoard goes in reading other people's
job folders: `never` opens none, `on-demand` reads one only when you open that
job and the server says you may, and `always` also tags other people's jobs in
the list (single-file app). The app does not change it: the server's
**General** tab shows it, and only the file sets it. See
[Other people's jobs](/docs/job/other-peoples-jobs).

`highlight_users` never widens what job control may touch: that is always your
own jobs, as the server's `whoami` says. See
[Turning on job control](/docs/job-control/turn-on-job-control).

### How it looks in Connections

| Key | What it does |
|---|---|
| `group` | A heading the server is listed under |
| `color` | A hue from 1 to 360; 0 picks one by itself |
| `notes` | Free text that only you see |

## Settings for HiveBoard itself

| Key | What it does |
|---|---|
| `refresh_seconds` | How often the job list updates; 20 by default |
| `server` | `host` and `port` HiveBoard serves its page on |
| `ai` | The assistant: `enabled`, `api_key_env`, `model`, `max_tokens` |

- `refresh_seconds` is what **Settings → General → Updates** changes; there it
  takes 10 to 600.
- `server.host` can only be this computer's own address — `127.0.0.1`,
  `localhost` or another loopback address: HiveBoard refuses to start on any
  other, because it has no login of its own.
  `server.port` is 8737 unless you change it; `--port` overrides it.
- `ai.api_key_env` is the name of the environment variable that holds the API
  key — `ANTHROPIC_API_KEY` by default. The key itself is never written to the
  file. See [The assistant](/docs/job/assistant).

> [!BUILD]
> The single-file app passes over a server key it does not know, and its next
> save leaves that key out. The Python build refuses to start, and names the
> key. Both builds read and write the same file.

## Check yourself

1. You edit config.yaml while HiveBoard is running, then change a server's colour in Connections. What happens to your edit?
   - The save writes what HiveBoard holds, so your edit survives only in the backup ← the answer
   - HiveBoard merges your edit with its change
   - HiveBoard refuses to save until you restart
   Why: HiveBoard reads config.yaml only when it starts; a save writes what it holds, after keeping the old file as a backup.

2. Which key turns on cancel, continue and delete for your own jobs on a server?
   - allow_job_control ← the answer
   - interactive_auth
   - foreign_job_files
   Why: allow_job_control is false by default; the Job control switch on a server's General tab sets it.

## Try it in the app

- Copy the **Settings file** path from **Settings → General** and open the file in a text editor, without changing it, to see how your servers are written.

## Related

- [The data folder](https://hiveboard.dev/docs/settings/data-folder.md)
- [The Settings page](https://hiveboard.dev/docs/settings/settings-page.md)
- [A server's page and its tabs](https://hiveboard.dev/docs/connections/server-tabs.md)
- [Exporting and importing servers](https://hiveboard.dev/docs/connections/export-import.md)
- [Command-line options](https://hiveboard.dev/docs/settings/command-line.md)
