# The data folder

> Where HiveBoard keeps your servers, keys, trusted hosts and logs, what each file in that folder is for, and how HiveBoard decides which folder to use.

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

## In short

- Everything HiveBoard keeps is in one folder, normally .hiveboard in your user folder — the server list, its own SSH keys, the servers it trusts, the connection log and more.
- Connections → Settings → General shows the folder in use, why it was chosen, and the settings file, each with a Copy button.
- The folder is the first of — --data-dir, the HIVEBOARD_HOME environment variable, a hiveboard-data folder beside the app, ~/.hiveboard.
- No password, one-time code or passphrase is ever written to it. The private keys of HiveBoard's keychain are, so guard a copy of it like your ~/.ssh.

HiveBoard keeps everything it owns in one folder on your computer: the servers
you added, the SSH keys it made or imported, the servers whose identity it
trusts, the log of every connection, the finished jobs it saved. Nothing of
this is kept on the clusters, and no password is ever written into it.

Unless you choose another, the folder is `.hiveboard` in your user folder —
`~/.hiveboard` on macOS and Linux, `%USERPROFILE%\.hiveboard` on Windows. It is
created the first time HiveBoard starts.

## Finding it

Open **Connections → Settings → General**. Under **Where HiveBoard keeps
things**:

- **Data folder** — the path, a **Copy** button, and why this folder is the
  one in use: "In your user profile (the default).", "Chosen with --data-dir
  when HiveBoard was started.", "Chosen with the HIVEBOARD_HOME environment
  variable." or "Portable — beside the app. Move the folder and everything
  comes along."
- **Settings file** — the `config.yaml` in use, with **Copy**.
- **In the folder** — what the main files are.

**Copy details** on the **About** tab puts the version, the build, your system
and the data folder on the clipboard in one line, for a problem report.

The folder's name starts with a dot, so macOS Finder and many Linux file
managers hide it; paste the copied path into the file manager instead.

## What is in it

| Path | What it is |
|---|---|
| `config.yaml` | Your servers and settings. Connections edits it; you can too |
| `config.yaml.bak.<time>` | A copy from before each save; the newest 10 are kept |
| `keys/` | HiveBoard's own SSH keys (below) |
| `known_hosts` | The servers whose identity HiveBoard trusts |
| `connections.log` | Every connect, drop and key install, with the reason |
| `terms-accepted.json` | Which version of the Terms of Use you accepted, and when |
| `engines/` | Your own simulation codes, if you add any |
| `cache.gob.gz` | Facts that do not change: who you are on each server, who owns a job, a job's code and kind |
| `archive/` | Your finished jobs, kept for the **Saved jobs** tab |
| `cm/` | macOS and Linux only: sockets of the system `ssh`, when a server from `~/.ssh/config` is reached through it |

A few details:

- **`keys/`** holds, for each key, `<id>` (the private key), `<id>.pub` (its
  public half), `<id>-cert.pub` (a certificate, if you added one) and
  `keys.json` (names and dates). A key you gave a passphrase stays locked by
  it on disk ([the keychain](/docs/keys/keychain)).
- **`config.yaml`** is saved whole or not at all: a half-written file never
  replaces a good one. Its format is on [config.yaml](/docs/settings/config-file).
- **`connections.log`** moves to `connections.log.1` when it passes 1 MiB, so
  the two together stay near 2 MiB. It never holds a password, a code or a
  passphrase; Diagnostics shows it ([the Diagnostics tab](/docs/help/diagnostics)).
- **`archive/`** keeps one file per finished job, by server, up to 512 MiB in
  all; past that the oldest entries go first.
- **`engines/`** is read when HiveBoard starts
  ([adding your own code](/docs/codes/your-own-codes)).

What the folder never holds: an account password, a one-time code, a key's
passphrase or a Kerberos password. Those are used once and discarded.

Nor does it hold the page's own preferences — the theme, the job list's
filters and sorting, which servers are shown, the 3-D options, Guardian's
settings and log. The app window or the browser keeps those, on each computer,
so they do not travel with the folder.

> [!WARNING]
> `keys/` holds private keys. Treat a copy of the data folder as you would
> your `~/.ssh`: do not mail it or leave it in a shared folder. To pass your
> servers to someone, export them instead — an export never carries a
> private key ([export and import](/docs/connections/export-import)).

## Which folder is used

The first of these that applies:

1. **`--data-dir PATH`**, given when HiveBoard is started
   ([command-line options](/docs/settings/command-line)).
2. **`HIVEBOARD_HOME`**, an environment variable naming a folder.
3. **A folder named `hiveboard-data` beside the app** — this is portable
   mode ([portable mode](/docs/settings/portable-mode)).
4. **`~/.hiveboard`**, the default.

The settings file is found the same way, first match wins: `--config PATH`;
the `HIVEBOARD_CONFIG` environment variable; a `config.yaml` in the folder
HiveBoard was started from, but only with the default data folder; and
otherwise `config.yaml` in the data folder. Saves go back to the file that was
read. A copy given `--data-dir`, `HIVEBOARD_HOME` or a portable folder never
picks up a stray `config.yaml` from elsewhere.

## Moving it, or starting afresh

- **To another computer:** quit HiveBoard and copy the whole folder into the
  same place there. Servers whose address, user and key live in HiveBoard are
  *self-contained* and work at once. A server that comes from
  `~/.ssh/config` needs the same setup on that computer, and one that signs in
  through this computer's SSH agent needs that computer's agent to hold the
  key ([hosts from your SSH config](/docs/connections/ssh-config-hosts)).
- **Your servers without your keys:** export them, and import the file on the
  other computer ([export and import](/docs/connections/export-import)).
- **Starting afresh:** quit HiveBoard and move the folder away. The next start
  is a first run: no servers, and the Terms of Use are asked for again.

> [!BUILD]
> The Python build uses the same folder and the same files, so the two can
> share one. It keeps no `cache.gob.gz` and no `archive/`, and has no portable
> mode: its folder is `--data-dir`, then `HIVEBOARD_HOME`, then
> `~/.hiveboard`.

## Check yourself

1. You start HiveBoard with --data-dir while HIVEBOARD_HOME is also set. Which folder does it use?
   - The one given with --data-dir ← the answer
   - The one in HIVEBOARD_HOME
   - ~/.hiveboard
   - A hiveboard-data folder beside the app
   Why: --data-dir comes first; HIVEBOARD_HOME is used only when no --data-dir is given.

2. Which of these is never written to the data folder?
   - Your password ← the answer
   - Your list of servers
   - HiveBoard's own private keys
   - The identities of the servers you trust
   Why: No password, code or passphrase is ever written; the keychain's private keys are files in keys/.

## Try it in the app

- Open Connections → Settings → **General** and read, under **Where HiveBoard keeps things**, which folder is in use and why.

## Related

- [Portable mode](https://hiveboard.dev/docs/settings/portable-mode.md)
- [Command-line options](https://hiveboard.dev/docs/settings/command-line.md)
- [The config.yaml file](https://hiveboard.dev/docs/settings/config-file.md)
- [The keychain](https://hiveboard.dev/docs/keys/keychain.md)
- [Exporting and importing servers](https://hiveboard.dev/docs/connections/export-import.md)
