# Portable mode

> Carry HiveBoard on a USB stick or to another computer: --portable keeps the settings, keys and trusted hosts in a hiveboard-data folder beside the app.

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

## In short

- Start HiveBoard once with --portable and it creates a hiveboard-data folder beside the app and copies your settings, keys and trusted hosts into it, never overwriting anything.
- From then on that folder is the data folder whenever HiveBoard is started from there, with no flag needed.
- Copy the app and the folder together; on another computer every self-contained server works as it did.
- Your own codes, the connection log and the saved jobs are not copied, and the Terms of Use are asked for again.

In portable mode HiveBoard keeps its whole data folder beside the app, in a
folder named `hiveboard-data`, instead of in your user folder. Copy the app
and that folder to a USB stick or another computer, start the app there, and
your servers, keys and trusted hosts come along. Nothing has to be installed.

Portable mode is a feature of the app that hiveboard.dev hands out, on every
system.

## Making a copy portable

Start the app once from a terminal with `--portable`, using the name of your
file:

```text
.\hiveboard-0.1.7-windows.exe --portable
./hiveboard-0.1.7-linux --portable
```

(On a Mac, `./hiveboard-0.1.7-macos-arm64 --portable`, or the `macos-intel`
file.)

HiveBoard then:

1. creates a folder named `hiveboard-data` beside the file;
2. copies into it your `config.yaml`, your `known_hosts` and the keys in
   `keys/` from `~/.hiveboard` — and never overwrites a file already there;
3. starts with that folder as its data folder. Started from a terminal, it
   prints "Portable mode: everything lives in …" and a line for each file it
   copied.

From then on the folder is what switches portable mode on: start the app from
beside it — a double-click will do — and it uses `hiveboard-data`, with no
flag. `--portable` is not needed again.

The app must sit in a folder you can write to, such as a USB stick or your
Documents, since the folder is created beside it.

> [!TIP]
> To start a portable copy with no servers at all, create an empty folder named
> `hiveboard-data` beside the app yourself, then start it. The first start is
> then a first run, in that folder.

## What is copied, and what is not

| Copied | Not copied |
|---|---|
| `config.yaml` — your servers and settings | `engines/` — your own simulation codes |
| `known_hosts` — the servers you trust | `connections.log` |
| `keys/` — HiveBoard's own keys and certificates | `archive/`, the saved finished jobs, and `cache.gob.gz` |
| | `terms-accepted.json`, so the Terms of Use are asked for once more |

The copies come from `~/.hiveboard`, the default data folder, even if you
normally point HiveBoard elsewhere with `HIVEBOARD_HOME`. Copy `engines/` by
hand if you use codes of your own. What each file is: [the data
folder](/docs/settings/data-folder).

The page's own preferences — the theme, the filters and sorting of the job
list, which servers are shown, the 3-D options, Guardian's settings and log —
are not in the data folder at all. The window or the browser keeps them, on
each computer, so on another computer they start from the defaults.

## What works on another computer

A server is **self-contained** when its address, user and key all live in
HiveBoard's data folder; those work anywhere the folder goes. Two kinds of
server depend on the computer:

- **A server that comes from `~/.ssh/config`** is reached as `ssh <name>`
  would reach it on that computer, with that computer's `~/.ssh`. Open it in
  Connections and choose **Make it self-contained** on its **Connection** tab
  before you carry it ([hosts from your SSH config](/docs/connections/ssh-config-hosts)).
- **A server that signs in through this computer's SSH agent** — a security
  key, a smart card, a password manager — needs the agent of the computer you
  are on to hold the key too ([security keys, smart cards and the SSH agent](/docs/keys/ssh-agent)).

In a portable copy the foot of the Connections list says "Portable copy." and
counts the servers that still use this computer's `~/.ssh`. Settings →
**General** gives the reason for the data folder as "Portable — beside the
app. Move the folder and everything comes along."

## Which folder wins

Portable mode is third in the order HiveBoard picks its data folder:
`--data-dir` and the `HIVEBOARD_HOME` environment variable both come before
it. With `--data-dir` given, `--portable` is ignored. To leave portable mode,
quit HiveBoard and move or rename `hiveboard-data`.

> [!WARNING]
> The folder holds your private keys, and a USB stick is easily lost. Give the
> keys you carry a passphrase, so that a lost stick does not open your
> accounts ([the keychain](/docs/keys/keychain)).

> [!BUILD]
> The Python build has no `--portable`. Point it at a folder on the stick with
> `--data-dir` or the `HIVEBOARD_HOME` environment variable instead.

## Check yourself

1. You copied the app and its hiveboard-data folder to another computer. Which servers may not work there?
   - Servers added from ~/.ssh/config ← the answer
   - Servers with a key from HiveBoard's keychain
   - Servers that sign in with a password
   - Servers reached through a jump server in HiveBoard
   Why: A server that comes from ~/.ssh/config depends on that file and those keys, which stay on the first computer; self-contained servers travel with the folder.

## Try it in the app

- Open Connections and read the note at the foot of the server list — it says whether any of your servers still depends on this computer's ~/.ssh.

## Related

- [The data folder](https://hiveboard.dev/docs/settings/data-folder.md)
- [Command-line options](https://hiveboard.dev/docs/settings/command-line.md)
- [Hosts from your SSH config](https://hiveboard.dev/docs/connections/ssh-config-hosts.md)
- [Security keys, smart cards and the SSH agent](https://hiveboard.dev/docs/keys/ssh-agent.md)
- [Exporting and importing servers](https://hiveboard.dev/docs/connections/export-import.md)
