# Vaultport documentation > A secure, serverless, open-source SSH, SFTP, Mosh, Telnet and serial client for Windows, macOS, Linux, iOS and Android. No account, no telemetry, an end-to-end encrypted vault and sync only through storage you own. # Introduction **Vaultport** is a free, open-source terminal and file-transfer client for **SSH, SFTP, Mosh, Telnet and serial consoles**. It runs on Windows, macOS, Linux, iOS, iPadOS and Android from one code base: a Rust core for everything security-relevant and a React UI, packaged with [Tauri 2](https://v2.tauri.app/). It is built around three promises: - **Serverless.** There is no account, no backend and no cloud operated by this project. Every feature works without a server of ours. - **Private.** Hosts, keys, passwords, snippets and settings live in a local vault encrypted with XChaCha20-Poly1305. There is no telemetry. Data only leaves your device when you connect to a server, call a provider API you configured, or sync to storage you own. - **Open.** The whole application is licensed GPL-3.0-or-later, and releases are signed and attested so you can check that a download was built from this repository. ## What you can do with it | Area | Highlights | | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Connections | SSH with jump hosts, HTTP CONNECT and SOCKS5 proxies, agent forwarding and environment variables; Mosh; Telnet; serial consoles; a local terminal on desktop | | Terminal | A full terminal app for SSH and local shells: tabs with Ctrl/⌘+T and W, autocomplete from the commands installed on the machine, inline suggestions, syntax highlighting, command blocks, history search and rebindable shortcuts | | Security | Strict host-key verification, `@cert-authority` and `@revoked` support, post-quantum `mlkem768x25519-sha256` key exchange, FIDO2 and biometric hardware keys | | Files | A dual-pane SFTP browser with drag and drop, a resumable transfer queue and edit-and-upload | | Productivity | Groups with inherited settings, tags and favorites, workspaces with broadcast input, snippets with variables, deterministic autocomplete, a command palette | | Your data | Importers for OpenSSH, PuTTY, MobaXterm, SecureCRT and CSV; read-only cloud inventory for AWS, DigitalOcean and Azure; encrypted session logs; encrypted backups | | Sync | End-to-end encrypted, conflict-free sync through a synced folder, WebDAV or S3-compatible storage, plus QR-code device pairing | | Optional extras | Local AI that turns plain language into a shell command, running entirely on your device; and an MCP server that lets AI agents such as Claude Code work with your hosts under your approval. Both are off by default | ## How it fits together ```text ┌───────────────────────── your device ──────────────────────────┐ │ React UI (webview) ── typed IPC, opaque ids ──▶ Rust core │ │ strict CSP · isolation vault · ssh · sftp · sync │ └────────────────────────────────────────────────────────────────┘ │ SSH · Mosh · Telnet · serial │ ciphertext only ▼ ▼ your servers storage you own (folder, WebDAV, S3) ``` Secrets never cross into the web UI: it handles opaque identifiers and asks the core to act on them. See the [architecture overview](http://vaultport.niessen.dev/architecture.md) and the [security model](http://vaultport.niessen.dev/security/index.md) for the details. ## A native feel on every platform Vaultport draws its own title bar with tabs, but follows the conventions of each system: macOS keeps its traffic-light buttons, Windows gets Fluent-style caption buttons, and Linux honours your GNOME `button-layout` setting (order and side). On phones and tablets the layout switches to a touch-first design with a terminal key bar — see [Phones & tablets](http://vaultport.niessen.dev/guide/mobile.md). ## Next steps 1. [Install Vaultport](http://vaultport.niessen.dev/guide/installation.md) for your platform. 2. Follow the [quick start](http://vaultport.niessen.dev/guide/quick-start.md) to create your vault and connect to your first server. 3. Learn how the [vault](http://vaultport.niessen.dev/concepts/vault.md) and [groups & inheritance](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md) work. --- # Installation Grab the file for your platform from the [download page](http://vaultport.niessen.dev/download.md), which picks the right one for your device, or from [GitHub Releases](https://github.com/DavidNiessen/vaultport/releases). Before installing, you can [verify the download](http://vaultport.niessen.dev/download.md#verify-your-download). ## Windows **Requirements:** Windows 10 or 11, x64 or ARM64. | File | Use it for | | ---------------------------------------- | ------------------------------------------------------------------ | | `vaultport__x64-setup.exe` | Recommended. Installs for the current user, no admin rights needed | | `vaultport__x64_en-US.msi` | Managed or scripted deployments (Intune, Group Policy, `msiexec`) | | `vaultport__x64_de-DE.msi` | The same, German user interface for the installer | | `…_arm64-setup.exe`, `…_arm64_en-US.msi` | Windows on ARM devices | The `.exe` installer speaks English and German. Builds are Authenticode-signed when the project's code-signing certificate is configured for the release; otherwise Windows SmartScreen may warn about an unknown publisher. Vaultport uses the Microsoft Edge WebView2 runtime; if it is missing, the installer downloads it silently. ## macOS **Requirements:** macOS 13 Ventura or later. Download `vaultport__universal.dmg` (one build for Apple silicon and Intel), open it and drag **Vaultport** into **Applications**. The app uses the hardened runtime, and release builds are signed and notarized when the project's Apple credentials are configured for the release; if a build is not notarized, macOS asks you to confirm opening it in **System Settings → Privacy & Security**. ## Linux **Requirements:** x86_64 or aarch64, a desktop with WebKitGTK 4.1 (any current distribution). | File | Distribution | | ------------------------------------ | -------------------------------------- | | `vaultport__amd64.deb` | Debian, Ubuntu, Linux Mint, Pop!\_OS … | | `vaultport--1.x86_64.rpm` | Fedora, RHEL and derivatives, openSUSE | | `vaultport__amd64.AppImage` | Any distribution, no installation | | `aarch64` / `arm64` variants | 64-bit ARM machines | ```bash # Debian / Ubuntu sudo apt install ./vaultport__amd64.deb # Fedora sudo dnf install ./vaultport--1.x86_64.rpm # AppImage chmod +x vaultport__amd64.AppImage ./vaultport__amd64.AppImage ``` ### Runtime dependencies The `.deb` and `.rpm` packages declare their dependencies (WebKitGTK 4.1, GTK 3), so your package manager installs them. The AppImage bundles most libraries but needs **FUSE 2** to mount itself: ```bash sudo apt install libfuse2 # Ubuntu 22.04 and older, Debian sudo apt install libfuse2t64 # Ubuntu 24.04 and newer ``` The vault's "unlock with this device" option stores its key through the Secret Service API, so you need a running keyring such as GNOME Keyring or KWallet. Without one, use a master password. ### Security keys and serial ports - **FIDO2 security keys** are accessed over USB HID. Your user needs access to the key's `hidraw` device; most distributions ship suitable udev rules (for example with the `libfido2` package). If enrollment says no device was found, check those rules. - **Serial ports** (`/dev/ttyUSB*`, `/dev/ttyACM*`) usually require membership in the `dialout` group (Debian, Ubuntu, Fedora) or `uucp` group (Arch). Log out and back in after `sudo usermod -aG dialout $USER`. ### TPM device keys [Device keys](http://vaultport.niessen.dev/guide/keys.md#linux-tpm-2-0-device-keys) live in the TPM 2.0 and are used through `/dev/tpmrm0`. On most distributions that device belongs to the `tss` group, so add yourself to it and log out and back in: ```bash ls -l /dev/tpmrm0 # crw-rw---- 1 tss tss ... means: join the tss group sudo usermod -aG tss $USER ``` If `/dev/tpmrm0` belongs to `root` only, or the `tss` group does not exist, add a udev rule such as `/etc/udev/rules.d/60-tpm.rules` (create the group first with `sudo groupadd --system tss` if needed): ```text KERNEL=="tpmrm[0-9]*", SUBSYSTEM=="tpmrm", GROUP="tss", MODE="0660" ``` and run `sudo udevadm control --reload && sudo udevadm trigger`. If the device does not exist at all, enable the TPM (often called fTPM, PTT or Security Chip) in the firmware settings. If creating a device key fails, the error message tells you which of these is the problem. ## iOS and iPadOS **Requirements:** iOS or iPadOS 16 or later. Vaultport is not distributed through the App Store. The release workflow only publishes `vaultport__ios.ipa` when the project's Apple signing credentials are configured; the IPA is exported for App Store Connect, so it reaches devices through TestFlight when a beta is offered, or by re-signing it with a sideloading tool such as AltStore or Sideloadly. You can always [build it yourself](http://vaultport.niessen.dev/development/building.md) with your own Apple developer account. ## Android **Requirements:** Android 8.0 (API level 26) or later. Download `vaultport__android-universal.apk` on the device, allow **Install unknown apps** for your browser or file manager when asked, and open the file. The universal APK contains native code for all common CPU architectures. The release also contains an Android App Bundle (`.aab`) for app stores; it cannot be installed directly. ## Updating Desktop builds contain a self-updater: open **Settings → About → Check for updates**. Vaultport never checks in the background. Updates are signature-checked before they are installed. On mobile, install the newer APK or IPA over the existing app. ## Uninstalling If you made Vaultport your [default terminal](http://vaultport.niessen.dev/guide/default-terminal.md), the Windows setup `.exe` removes those registrations when you uninstall; with the `.msi`, on macOS and on Linux, switch the options off in **Settings → Terminal → Default terminal** first. On desktop, uninstalling the app keeps your vaults by default: they live in the app's data directory, which you can delete separately to remove all local data. On Android, iOS and iPadOS, removing the app also removes its data, including vaults. Either way, make sure you have a [backup](http://vaultport.niessen.dev/guide/sync.md#encrypted-backups) or another synced device first. ## Building from source Prefer to compile it yourself? See [Build from source](http://vaultport.niessen.dev/development/building.md). --- # Quick start This walkthrough takes about five minutes: create a vault, connect to a server, and switch from password to key authentication. ## 1. Create your vault On first launch Vaultport asks you to **Create your vault**. The vault is the encrypted database that holds all your hosts, keys, passwords, snippets and settings. 1. Pick a **vault name** (letters, digits, `-` and `_`). 2. Choose a **master password** of at least 8 characters. A long passphrase is best; the strength meter helps. 3. Optionally enable **Unlock with Windows Hello** (Windows), **Unlock with Touch ID** (macOS) or **Unlock with this device** (Linux, iPhone/iPad, Android). On Windows and macOS this creates a key in the TPM or Secure Enclave and asks for your face, fingerprint or device PIN/password to confirm; on the other platforms it keeps an unlock key in the system key store. You need at least one of the two: a master password, or device unlock. Later, in **Settings → Security**, you can add a short **PIN**, **security keys / passkeys**, **two-factor unlock** (password and security key together) or, if you accept the risk, **auto-unlock** — see [The vault](http://vaultport.niessen.dev/concepts/vault.md#unlocking). > **There is no password recovery** > > Nobody, including the Vaultport developers, can recover a forgotten master password. Keep a second unlock method (Windows Hello / Touch ID, a security key, another synced device) or an [encrypted backup](http://vaultport.niessen.dev/guide/sync.md#encrypted-backups). Already use Vaultport on another device? Choose **I already have a vault** to [pair this device](http://vaultport.niessen.dev/guide/sync.md#pair-a-new-device) or restore a `.vaultport` backup. ## 2. Add a host Open the **Hosts** section of the vault and choose **New host**: - **Address**: a host name or IP address. - **Port**: `22` unless your server uses another one. - **Username** and, if you use one, a **password** (stored encrypted in your vault). Changes are saved automatically. To bring in many hosts at once, use **Import** — for example from `~/.ssh/config` — see [Importing](http://vaultport.niessen.dev/guide/importing.md). > **Quick connect** > > You do not have to save a host first. Type into the search field at the top of the Hosts view (or in a new tab) using familiar syntax, then press Enter: > > ```text > ssh alice@example.com > ssh -p 2222 alice@example.com > ssh -J bastion.example.com alice@10.0.0.5 > alice@example.com:2222 > ssh://alice@example.com > ``` > ## 3. Connect and verify the host key Double-click the host (or select it and choose **Connect**). A terminal tab opens. The first time you connect, Vaultport shows the server's **host key fingerprint**. Compare it with the one published by the server administrator (on the server: `ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub`) and choose: - **Trust and connect**: remember the key in [Known hosts](http://vaultport.niessen.dev/guide/known-hosts.md) and connect. - **Connect once**: connect without remembering it. - **Disconnect**: abort. If a known server ever presents a _different_ key, Vaultport blocks the connection with a **Host key changed!** warning. Only replace the key if you can confirm the change with the administrator. ## 4. Switch to key authentication 1. Go to **Keychain → New key → Generate key**. Ed25519 is preselected and recommended. The private key is generated on your device and stored encrypted in the vault. 2. Choose **Install on host…** and select your server. Vaultport appends the public key to `~/.ssh/authorized_keys` with safe permissions. 3. Edit the host and add the key under **Keys**. You can now remove the stored password. Prefer hardware? Create a **FIDO2 security key** or a **device key** instead — see [SSH keys & hardware keys](http://vaultport.niessen.dev/guide/keys.md). ## 5. Keep going - Press Mod+K for the command palette (Mod is ⌘ on Apple devices and Ctrl elsewhere). All shortcuts are listed in [Keyboard shortcuts](http://vaultport.niessen.dev/guide/keyboard-shortcuts.md). - Organize hosts in [groups](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md) so they share settings such as the username or a jump host. - Open the **SFTP** tab to [transfer files](http://vaultport.niessen.dev/guide/sftp.md). - Set up [sync](http://vaultport.niessen.dev/guide/sync.md) to use the same vault on your laptop and phone. The vault locks itself after 15 minutes of inactivity (configurable in **Settings → Security**). Lock it manually with Mod+Shift+L. --- # The vault Everything you configure in Vaultport — hosts, groups, identities, keys, passwords, known hosts, snippets, port-forwarding rules, workspaces, cloud integrations and settings — is stored in a **vault**: a single encrypted SQLite file in the app's data directory. You can have several vaults on one device (for example _work_ and _personal_) and switch between them with the vault switcher or on the lock screen. ## Encryption at a glance - A random 256-bit **vault key** encrypts every record with **XChaCha20-Poly1305**. The vault id and the record id are bound into each ciphertext, so records cannot be swapped between entries or vaults. - The vault key itself is only ever stored **wrapped**, once per **unlock method** (a _key slot_): your **master password** (Argon2id, 256 MiB of memory and 3 passes on desktop, 64 MiB on phones and tablets), **Windows Hello** or **Touch ID**, a **PIN**, **security keys / passkeys**, and optionally **auto-unlock**. Unlock methods are stored on each device separately; they are not synced. - **Secrets** (passwords, private keys, API tokens) are separate records that are only decrypted when the Rust core needs them, held in memory that is wiped after use, and never sent to the UI. The details are in [Vault cryptography](http://vaultport.niessen.dev/security/vault-crypto.md). ## Unlocking The lock screen shows the methods set up for the selected vault on this device, the most convenient first. Add, remove and change them in **Settings → Security**. | Method | How it works | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Master password | Derives the key with Argon2id. Works on every device. | | Windows Hello | Windows: face, fingerprint or Hello PIN. The key comes from a Windows Hello key in the TPM, so nothing in Credential Manager can open the vault. | | Touch ID | macOS: Touch ID or your Mac password, through a key in the Secure Enclave. | | Unlock with this device | Linux, iPhone/iPad and Android: a key in the system key store (Secret Service, Keychain "this device only", Android Keystore). | | PIN | A short PIN for this device, combined with a secret in the system key store. After 5 wrong PINs the PIN is removed and you need another method. | | Security key / passkey | A FIDO2 security key or passkey with `hmac-secret` (PRF). Add several, e.g. a backup key. Desktop only. | | Password + security key (2FA) | With two-factor unlock on, the master password works only together with a security key — neither alone opens the vault, not even a copied file. Authenticator-app codes (TOTP) are not offered: a code cannot encrypt a file, so it would not protect a copy. | | Auto-unlock on this device | Off by default. Opens the vault without any prompt at startup. **Anyone who can use your OS account — on Windows any program running as you — can open the vault without a password.** | At least one method other than the PIN always remains. Losing every method on a device is recoverable only with the master password on another device, another paired device, or an encrypted backup — see [Backups](#backups). What each method protects against, and how, is in [Vault cryptography](http://vaultport.niessen.dev/security/vault-crypto.md#key-slots). > **Android** > > On Android, the device key is encrypted with an AES-256-GCM key that is generated inside the Android Keystore (StrongBox-backed when the phone has a StrongBox chip) and never leaves it; only the ciphertext is kept in the app's private storage. This support is new and has not yet been verified on a wide range of devices — keep a master password or another unlock method as a fallback. ## Several vaults Click the vault card at the top of the sidebar to open the **vault switcher**: it lists the vaults on this device, switches between them, and offers **Create vault**, **Restore from backup**, **Pair with another device** and **Lock vault**. Switching locks and closes the current vault first — its sessions, port forwards and connections end, and nothing of it stays in memory or on screen — then shows the other vault's lock screen, or opens it directly if it has auto-unlock and you have not locked it since Vaultport started. Vaultport remembers the last selected vault and shows it first when it starts. ## Locking When the vault locks, decrypted data is wiped from memory and open sessions are closed. Vaultport locks the vault: - after a period of inactivity (15 minutes by default, configurable or _never_), - when the computer wakes from sleep (desktop, on by default; **Settings → Security → Lock when the computer sleeps**) — Vaultport notices the suspend as soon as it runs again, before you can use it, - when the app moves to the background (phones and tablets, on by default), - when you press Mod+Shift+L or choose **Lock vault**. A vault with auto-unlock opens by itself only when Vaultport starts or when you switch to it. Once you lock it (or it locks after inactivity or sleep), it stays locked until Vaultport restarts or you unlock it with another method. ## Why an operation log? Internally the vault is not a set of rows that get overwritten. It is an append-only **log of operations** — "set field `/config/ssh/port` of host X to 2222 at time T" — that is materialized into documents. Each field is a _last-writer-wins register_ ordered by a hybrid logical clock, and deletions are tombstones. This is a [CRDT](https://crdt.tech/): any two devices that have seen the same set of operations hold exactly the same data, no matter in which order the operations arrived. That property is what lets Vaultport sync through plain, untrusted storage — a folder, WebDAV or an S3 bucket — without a server to resolve conflicts. See [Sync, backup & pairing](http://vaultport.niessen.dev/guide/sync.md) and the [sync protocol](http://vaultport.niessen.dev/security/sync.md). ## Backups Because the vault is end-to-end encrypted, losing every device _and_ the master password means losing the data. Protect yourself with at least one of: - sync to a second device, - an [encrypted `.vaultport` export](http://vaultport.niessen.dev/guide/sync.md#encrypted-backups) kept somewhere safe. --- # Groups & inheritance Vaultport organizes hosts in **groups**. Groups can be nested (for example `Production › EU › Web`), and — unlike plain folders — they carry **settings** that apply to every host and subgroup below them. ## How inheritance works Every host and every group has a _sparse_ configuration: it only stores the settings you actually changed at that level. When you connect, Vaultport resolves each setting **individually** by walking up from the host: 1. If the host sets the value, use it. 2. Otherwise use the value from the closest parent group that sets it. 3. Otherwise use the built-in default. ```text Production username = deploy, jump host = bastion-prod, keepalive = 30 s └── EU port = 2222 └── Web theme = Ember (production) ├── web-01 (no overrides) → deploy@web-01:2222 via bastion-prod, Ember theme └── web-02 username = admin → admin@web-02:2222 via bastion-prod, Ember theme ``` Because inheritance is per parameter, `web-02` can override only the username and still inherit the port, the jump host and the theme. The host and group editors show which values are **Inherited** and from where, and a group's editor tells you how many hosts its settings currently apply to. ## What can be inherited Practically everything that describes _how_ to connect: - **SSH**: port, credentials (an [identity](http://vaultport.niessen.dev/concepts/identities-and-keychain.md) or inline username, password and keys), jump hosts, proxy, agent forwarding (and confirmation), environment variables, startup snippet, keepalive interval, compression, legacy algorithms, post-quantum key exchange, host-key policy and connect timeout. - **Mosh**: enabled and server command. - **Telnet**: enabled, port, username and password. - **Terminal**: theme, font family and size, backspace key (DEL or Ctrl+H), terminal type, encoding, scrollback, cursor blink, bright bold. - **SFTP**: start path, show hidden files, follow symlinks. The address, label, tags, notes and favorite flag belong to each host. ## Defaults | Setting | Default | | ------------------- | ---------------------------------------- | | SSH port | 22 | | Telnet port | 23 | | Keepalive | 30 seconds | | Connect timeout | 15 seconds | | Post-quantum KEX | on | | Host-key policy | ask on first use, reject on change | | Terminal type | `xterm-256color` | | Theme / font | Midnight · JetBrains Mono 14 | | Mosh server command | `mosh-server new -s -l LANG=en_US.UTF-8` | ## Tips - Put shared credentials on a group via an identity, so rotating a password or key is a single change. - Give production groups a distinctive terminal theme such as **Ember (production)** so you always know where you are typing. - Cloud inventory integrations create and maintain their own group; you can still add settings to it, and hosts inherit them. See [Cloud inventory](http://vaultport.niessen.dev/guide/cloud-inventory.md). --- # Identities & keychain The **Keychain** section of the vault holds two kinds of credentials that hosts and groups _reference_ rather than copy. ## Keys A key entry stores the key's metadata (label, algorithm, public key, fingerprint, optional OpenSSH certificate) and, depending on its type, the private half: | Type | Where the private key lives | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | Ed25519, ECDSA, RSA | Encrypted in the vault (optionally also passphrase-protected) | | FIDO2 security key | On the hardware token; the vault only keeps the key handle | | Device key | In the Secure Enclave (macOS, iOS), Windows Hello, the Android Keystore or, without a biometric prompt, the TPM 2.0 on Linux; it can never be exported | Keys can be generated on the device, imported (OpenSSH, PEM PKCS#1/PKCS#8 and PuTTY formats), or enrolled on hardware. See [SSH keys & hardware keys](http://vaultport.niessen.dev/guide/keys.md). ## Identities An **identity** bundles a **username**, an optional **password** and any number of **keys** under a label such as _deploy (prod)_. Instead of entering credentials on each host, choose **Use an identity** in the host or group editor. ```text Identity "deploy (prod)" = deploy + key "prod-ed25519" + key "YubiKey" ▲ ▲ ▲ web-01 web-02 Production group (inherited by all its hosts) ``` Change the identity once — for example to rotate the key — and every host that uses it picks up the change. ## Inline credentials A host or group can also carry its own username, password and key list ("Custom credentials…"). Inline and identity credentials follow the normal [inheritance rules](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md): a host without credentials uses the closest group's. ## Authentication order On connect, Vaultport tries, in this order: 1. the keys configured for the host (directly or through its identity); 2. on desktop, if no keys are configured: your **system SSH agent** (`$SSH_AUTH_SOCK` on macOS and Linux; the Windows OpenSSH agent pipe or Pageant on Windows); 3. the stored password, if any; 4. keyboard-interactive authentication, for example one-time codes. Servers that require several methods in a row (`AuthenticationMethods publickey,password`) are handled. If a password or key passphrase is needed but not stored, Vaultport asks for it in a prompt. ## Where secrets go Passwords and private keys are vault **secrets**: they are only decrypted inside the Rust core at the moment they are needed and are never passed to the UI. When a host is deleted, its inline password is deleted with it; keys and identities stay in the keychain until you remove them. --- # The terminal Vaultport is a full terminal app, for SSH, Mosh, Telnet and serial sessions as well as local shells. The features on this page work the same over SSH and on your own computer: what they need from the remote machine is read over the session's own connection, and nothing is ever run on the server for them. ## Tabs | Action | Windows / Linux | macOS | | ------------------------ | -------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | New terminal tab | Ctrl+T | ⌘+T | | Close tab | Ctrl+W | ⌘+W | | Reopen closed tab | Ctrl+Shift+T | ⌘+⇧+T | | Connect to a host… | Ctrl+Shift+N | ⌘+O | | Split right | Ctrl+Shift+D | ⌘+D | | Split down | Ctrl+Alt+Shift+D | ⌘+⇧+D | | Go to the pane left… | Alt+← (and the other arrows) | ⌘+⌥+← (and the other arrows) | | Rename tab | Ctrl+Shift+R | ⌘+⇧+R | | Next / previous tab | Ctrl+Tab, Ctrl+PgDn/PgUp | ⌃+Tab, ⌘+⇧+]/[ | | Go to tab 1–8, last tab¹ | Ctrl+1…8, 9 | ⌘+1…8, 9 | ¹ The pinned Vault and SFTP tabs are 1 and 2. On Windows and Linux, Alt+1…9 works too. - **New terminal tab** opens a local shell on desktop — the [terminal profile](#terminal-profiles) you used last — in the directory of the local tab you are in. On phones and tablets, where there is no local shell, it opens the connection picker. - The **▾** next to the title bar's **+** opens a new tab with any terminal profile (or the connection picker); Mod+Shift+1…9 opens the first nine profiles directly, and the command palette has a **New terminal: …** entry for each. - **Split** a tab to the right or down (the split button in the title bar, the tab's right-click menu, a pane's header or the shortcuts above): the new pane is another connection to the same host (or a local shell with the same profile, in the same directory). Dragging another tab onto a terminal shows the two side by side. In a split, Mod+W closes only the focused pane, and when one pane is left it becomes a normal tab again. Drag dividers to resize panes, drag a pane's header to move it, and maximize a pane while you work in it — see [Split panes & workspaces](http://vaultport.niessen.dev/guide/workspaces.md). - **Duplicate** (tab menu or command palette) opens another connection to the same host (or another local shell in the same directory) right next to the tab. - **Double-click** a tab (or press F2 on it) to rename it; a renamed tab keeps its name even when a program sets the title. Clear the name to hand the title back. - Closing a tab or pane in which a command is still running (known with [shell integration](#shell-integration)) asks first, so a stray Ctrl+W does not end a long job. - **Right-click** a tab for duplicate, rename, close, close other tabs, close tabs to the right and reopen closed tab. Up to 20 closed terminal tabs are remembered until you quit. - **Reopen tabs on start** (Settings → Terminal) reopens your terminal tabs and splits after you unlock. Only host references and directories are saved, encrypted in this device's vault, and never synced. > **Ctrl+W and Ctrl+T in the shell** > > On Windows and Linux, Ctrl+W (delete word) and Ctrl+T (swap characters) no longer reach the shell (closing a tab with a running command asks first), as in most terminal apps with tabs. If you need them there, remove or change the shortcuts in **Settings → Shortcuts** — every shortcut can be rebound, and Ctrl+Shift+W closes tabs as well. ## Terminal profiles On desktop, a local terminal tab starts one of your **terminal profiles** — a program with its arguments, an optional start directory and environment variables. The first time you unlock on a computer, Vaultport looks for the installed shells and adds a profile for each: - **Windows:** Windows PowerShell, PowerShell 7 (`pwsh` on `PATH` or in its usual install folders), Command Prompt, Git Bash (Git for Windows' `bin\bash.exe`, as a login shell), every installed WSL distribution (started with `wsl.exe -d ` in its Linux home directory) and, when Visual Studio or its Build Tools are installed, the Developer Command Prompt and Developer PowerShell. - **macOS and Linux:** your login shell (`$SHELL`) and the other shells listed in `/etc/shells` (zsh, bash, fish, …), each as a login shell. Manage them in **Settings → Terminal → Terminal profiles**: add your own (any program, e.g. `nu` or `ssh.exe jumphost`), edit, reorder or hide profiles, choose the **default profile**, and run **Detect shells** again after installing a new one (it only adds profiles; your changes to existing ones stay). **New tab opens** chooses what Mod+T starts: the **last used profile** (the default, remembered across restarts) or always the **default profile**. Profiles name programs on this computer, so they are stored in this device's vault only and never synced. [Shell integration](#shell-integration) works per profile, recognised from the program: PowerShell (5.1 and 7), cmd, bash (Git Bash included), zsh and fish load it at start. A profile whose arguments already run a script or command (e.g. `bash -c …` or `pwsh -File …`) starts without it; a PowerShell `-Command` (like Developer PowerShell's) is kept and the integration runs after it. WSL shells run inside Linux, so Vaultport types the loader at the first prompt instead, as it does over SSH, and completes paths in the distribution (`/mnt/c/…` and `\\wsl.localhost\\…`). The [local AI](http://vaultport.niessen.dev/guide/local-ai.md) is told which shell the tab's profile runs. ## Autocomplete Suggestions appear at the cursor while you type at the prompt. They come from Vaultport's deterministic completion engine (no AI): - **Commands installed on the machine.** Vaultport lists the directories on `PATH` — plus the usual places such as `/usr/local/bin`, Homebrew, `~/.local/bin`, `~/.cargo/bin` — and knows the shell builtins. On a server it does this over an SFTP channel of your SSH connection, in the background, once every few minutes. - **Subcommands, options and values** of about 300 tools: `git`, `docker` and `docker compose`, `kubectl`, `systemctl`, `npm`/`pnpm`/`yarn`/`bun`, `cargo`, `go`, `gh`, `aws`, `terraform`, `brew`, macOS tools such as `defaults`, `launchctl` and `diskutil`, and many more. Typos are forgiven: `git chkout` finds `checkout`, `--fwl` finds `--force-with-lease`. - **Files and folders** in the shell's working directory, on your computer or on the server. - **Values from the machine**: git branches, tags and remotes of the repository you are in; `npm run` scripts, `make` and `just` targets; users and groups; SSH hosts from `~/.ssh/config`, `known_hosts`, `/etc/hosts` and your saved hosts; systemd units, init scripts and launchd jobs; network interfaces; signals; environment variables after `$`. - Your **command history** for the host and your **snippets**. | Key | Action | | ------------------------------------------ | --------------------------------- | | ↑ / ↓ | Choose a suggestion | | Tab | Insert it | | → or End | Accept the grey inline suggestion | | Ctrl+→ (⌥→ on macOS) | Accept its next word | | Ctrl+Space | Show suggestions now | | Esc | Hide the list | **Inline suggestions** show the rest of the best matching command from your history in grey after the cursor, like fish and Warp. In **Settings → Terminal → Suggestions** you can choose to see the list only when you press Tab (then Tab goes to the shell when there is nothing to suggest), and turn inline suggestions off. ## Syntax highlighting The command line is coloured while you type: commands, options, strings, variables, operators, keywords and comments. A command that is not installed on the machine — and that you have not run there before — turns **red** once you finish typing it, so typos such as `gti status` stand out before you press Enter. The colours come from your terminal theme and stay on the lines that ran. Output is highlighted too: errors, warnings, IP and MAC addresses, dates, UUIDs, commit hashes and HTTP status codes. Add your own patterns with colours under **Settings → Terminal → Custom output highlighting**, for example `prod-\w+` in red. ## Command blocks With [shell integration](#shell-integration), every command and its output form a **block**: - a thin line separates commands; a badge at the right shows the **exit status** and **how long it took** — green for success, red for failure (failures also show in the scrollbar); - **click the badge** to copy the command, its output or both, run it again, let the [local AI](http://vaultport.niessen.dev/guide/local-ai.md) suggest a fix, or copy a ready-made prompt for your [AI agent](http://vaultport.niessen.dev/guide/ai-agents.md); - Ctrl+Shift+↑/↓ (⌘+↑/↓ on macOS) jumps between commands, and Mod+Shift+O copies the output of the last one; - while you scroll through long output, the command it belongs to stays visible at the top — click it to jump there; - when a command that ran 10 seconds or longer finishes while you are in another tab or app, Vaultport tells you, with a link back to the tab. Change the threshold (or turn it off with `0`) in **Settings → Terminal → Command blocks**. ## Mistyped commands When a command fails because it does not exist, Vaultport offers the closest installed command — `gti status` → `git status` — with **Run** and **Edit** buttons. The rest of the line is kept. ## Context bar A slim bar under the terminal shows the working directory (click it to copy the path), the **git branch** (or commit, when detached) and the exit status and duration of the last command. Turn it off in **Settings → Terminal → Command blocks**. ## History search Ctrl+R opens a search over every command you ran on this host, newest and most frequent first, matching words in any order and fuzzy abbreviations. Enter puts the command on the prompt to edit, Mod+Enter runs it. While a command or a full-screen program runs, Ctrl+R goes to it as usual. ## Command editor Mod+Shift+E opens a text editor for long or multi-line commands, starting with what you typed. Mod+Enter runs it; Mod+Shift+Enter puts it on the prompt. Multi-line text is sent as one bracketed paste, so the shell does not run the lines one by one. ## AI in the terminal With [Local AI](http://vaultport.niessen.dev/guide/local-ai.md) turned on: - Ctrl+` opens the AI command bar: describe what you want, and the on-device model suggests one command with an explanation and a risk rating; - or type `# what you want` at the prompt and press Enter (with [shell integration](#shell-integration), so that `#` lines elsewhere — in a heredoc or a REPL — are left alone); - after a command fails, **Fix with AI** in its block menu suggests a corrected command from the command and its output. The model gets the terminal's operating system, working directory and recent commands as context. Suggestions are put on the prompt (Tab) or run (Mod+Enter) only when you say so. AI agents connected over MCP can also [read your open terminals and type into them](http://vaultport.niessen.dev/guide/ai-agents.md#terminals) with your approval. ## Shell integration Command blocks, exit codes, the working directory for new tabs and the best suggestions need **shell integration**: a few lines of shell script that mark where prompts, commands and output start (OSC 133 / 633) and report the working directory (OSC 7). It is on by default (**Settings → Terminal → Command blocks**). - **Local shells** (bash, zsh, fish, PowerShell and cmd, whichever [terminal profile](#terminal-profiles) starts them) load it automatically, without changing your dotfiles; WSL shells get it typed in at the first prompt. cmd has no script: Vaultport adds the marks to its `PROMPT`, which gives the working directory and prompt marks, but cmd reports neither command lines nor exit codes, so it has no command blocks. - **SSH sessions**: open the command palette and choose **Enable command blocks in this session**, or set **Shell integration over SSH** to **Automatic**. Vaultport then types a one-line loader that turns echo off, asks the shell which one it is (the same line works in bash, zsh and fish), reads the script for that shell and evaluates it in the running shell. At a PowerShell prompt (`PS …>`, Windows PowerShell or `pwsh` on any system) it types a PowerShell loader instead, and at a cmd prompt (`C:\…>`) it adds the marks to the prompt with `prompt`. PowerShell is recognised by that default prompt; with a prompt of your own, load the script from your profile (below). Nothing on the server is changed and the next login starts clean, although PowerShell keeps the loader line in its history. To have it permanently, source (in PowerShell, dot-source from `$PROFILE`) the [script for your shell](https://github.com/DavidNiessen/vaultport/tree/main/crates/term-intel/scripts) from your remote dotfile; it only activates when `VAULTPORT_SHELL_INTEGRATION` is set, which Vaultport sends with every SSH session. ## Default terminal On desktop, other programs can open Vaultport like any terminal: `vaultport -e htop`, `vaultport --working-directory ~/src`, `vaultport ssh://me@server`, a second launch that opens a tab in the running app, "Open in Vaultport" for folders on Windows, `xdg-terminal-exec` on Linux and shell scripts on macOS. Turn these on in **Settings → Terminal → Default terminal**; [Default terminal](http://vaultport.niessen.dev/guide/default-terminal.md) describes each OS, including why Windows' own "Default terminal application" list cannot show Vaultport. ## More - **Search** the output with Ctrl+Shift+F (⌘+F on macOS): results update as you type, show the match count, and can match case, whole words or a regular expression. - **Tab activity**: a tab shows a spinner while a command runs in it, and a check, a cross or a bell when a command finished, failed or the bell rang while you were elsewhere. **Bell** in Settings → Terminal chooses between a flash, a short tone or nothing. - **Zoom**: Mod+= / Mod+- / Mod+0; **clear** with Mod+Shift+K. - **macOS line editing**: ⌘+←/→ jump to the start or end of the line, ⌥+←/→ move by word, ⌘+⌫ deletes to the start of the line and ⌥+⌫ deletes a word. - **Themes, fonts, truecolor, OSC 52 clipboard, remote titles** and more are described under [Hosts & groups](http://vaultport.niessen.dev/guide/hosts-and-groups.md#terminal-features); the full list of shortcuts is under [Keyboard shortcuts](http://vaultport.niessen.dev/guide/keyboard-shortcuts.md). --- # Default terminal Vaultport can stand in for your system terminal: other programs can open a tab with a command, in a folder, or connected to a server from an `ssh://` link. Turn the integrations on in **Settings → Terminal → Default terminal**. Every change is made for your user only (no administrator rights), and switching an option off removes it again. ## Command line ```text vaultport [-e | --command | -x | -- [args…]] [--working-directory ] [--title ] vaultport ssh://user@host:port vaultport <directory> ``` | Option | What it does | | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `-e <program> [args…]` | Runs the program in a new local tab instead of your shell; the tab ends when it exits. Everything after `-e` belongs to the command. `--command`, `-x` and `--` are the same. | | `-e "<program> <args>"` | One string is split into words (with shell quoting, but no shell runs), as many `x-terminal-emulator` callers pass it. A path that exists is never split. | | `--working-directory <dir>`, `--working-directory=<dir>` | Starts the tab in this directory. A directory as a plain argument does the same. | | `--title <title>`, `--title=<title>`, `-T` | Names the tab. | | `ssh://user@host:port` | Opens the [saved host](http://vaultport.niessen.dev/guide/hosts-and-groups.md) with that address, port and user (the most recently used one if there are several), or else a quick connection. | If Vaultport is already running, a second `vaultport …` hands its arguments to the running app, which opens the tabs and comes to the front. Requests made while the vault is locked wait until you unlock it: the lock screen covers every tab, so nothing opens behind it. That includes local terminals, although they need no secrets. > **What a link can do** > > An `ssh://` link only ever connects: the user name, host and port are used, and everything else in the link — a password, a path, a query — is ignored. Host keys are checked as usual, and nothing is run on the server. Only `-e`, which you type yourself or which a program on your computer passes, runs a command, and only in a local terminal. Arguments handed over by a second launch are length-limited and checked before anything opens. ## Windows | Setting | What it registers (in `HKEY_CURRENT_USER`) | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | "Open in Vaultport" for folders | `Software\Classes\Directory\shell`, `Directory\Background\shell` and `Drive\shell` → `vaultport --working-directory "<folder>"` | | Handle ssh:// links | The `Vaultport.ssh` ProgID, Vaultport's capabilities in `Software\RegisteredApplications`, and the `ssh` scheme if no other app registered it | | Start from Run | `Software\Microsoft\Windows\CurrentVersion\App Paths\vaultport.exe`, so <kbd>Win</kbd>+<kbd>R</kbd> → `vaultport` and `start vaultport` work | - On Windows 11 the folder entry is in the classic menu: right-click → **Show more options**, or <kbd>Shift</kbd>+right-click. The compact Windows 11 menu only shows entries of packaged apps. - If another app is already chosen for `ssh://` links, Windows keeps using it. Vaultport then says so and opens **Settings → Apps → Default apps → Vaultport**, where you pick it for `SSH`. - Uninstalling with the setup `.exe` removes the entries. With the `.msi`, switch the options off first. ### Why Vaultport is not in "Default terminal application" Windows 11 (and Windows 10 since KB5026435) lets you choose a **Default terminal application** under **Settings → System → For developers** or in Windows Terminal's settings. That list is not open to ordinary programs: - It only contains packaged apps. Windows reads it from the app extension catalog: a terminal must be an MSIX package that declares the `com.microsoft.windows.terminal.host` app extension, and the list pairs it with a `com.microsoft.windows.console.host` extension from the same package ([`DelegationConfig.cpp`](https://github.com/microsoft/terminal/blob/main/src/propslib/DelegationConfig.cpp)). - The console host hands a new console over through COM: it creates the terminal's out-of-process server and calls `ITerminalHandoff3::EstablishPtyHandoff` ([`ITerminalHandoff.idl`](https://github.com/microsoft/terminal/blob/main/src/host/proxy/ITerminalHandoff.idl)). Marshalling that interface needs the `OpenConsoleProxy.dll` proxy that Windows Terminal registers in its package manifest ([`Package.appxmanifest`](https://github.com/microsoft/terminal/blob/main/src/cascadia/CascadiaPackage/Package.appxmanifest)). Vaultport is installed with an NSIS setup or an MSI, not as an MSIX package, so it cannot register these extensions. Writing the delegation CLSIDs into `HKEY_CURRENT_USER\Console\%%Startup` by hand would depend on Windows Terminal's own console host and proxy and is not something Vaultport does. Windows Terminal stays your default for console programs; use the options above to open Vaultport from Explorer, links and Run. ## macOS macOS has no system-wide default terminal. Like other Terminal alternatives, Vaultport declares in its `Info.plist` that it can open `ssh://` links, shell scripts and folders, and can make itself the default through Launch Services: | Setting | What it does | | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | Handle ssh:// links | Makes Vaultport the default app for `ssh://` (switching it off gives the links back to Terminal). | | Open shell scripts | Makes Vaultport the default app for `.command` and `.tool` (`com.apple.terminal.shell-script`) and `.sh` (`public.shell-script`) files. | - Double-clicking an executable script runs it in a new tab in your home folder, as Terminal does. A script that is not executable opens a shell in its folder instead, and a script downloaded from the internet (it carries the quarantine flag) asks before it runs. - Drag a folder onto Vaultport in the Dock, or run `open -a Vaultport ~/projects`, to open a tab there. - For a Finder menu entry, create a **Quick Action** in Automator or Shortcuts that receives folders in Finder and runs the shell script `open -a Vaultport "$@"`. ## Linux The packages (`.deb`, `.rpm`, AppImage) ship a desktop entry, `Vaultport.desktop`, that declares Vaultport a terminal emulator and `ssh://` handler: ```ini Exec=vaultport %U Categories=System;TerminalEmulator; MimeType=x-scheme-handler/ssh; X-TerminalArgExec=-e X-TerminalArgDir=--working-directory= X-TerminalArgTitle=--title= ``` | Setting | What it does | | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Make Vaultport the default terminal | Puts `Vaultport.desktop` first in `~/.config/xdg-terminals.list` (and in a desktop-specific list such as `gnome-xdg-terminals.list` if you have one), the [xdg-terminal-exec](https://gitlab.freedesktop.org/terminal-wg/specifications) choice used by launchers and file managers that support it. | | Handle ssh:// links | Runs `xdg-mime default Vaultport.desktop x-scheme-handler/ssh` (or edits `~/.config/mimeapps.list`). Switching it off gives the previous handler back. | Without an installed desktop entry (an AppImage, a source build), Vaultport writes one for itself to `~/.local/share/applications/Vaultport.desktop` and removes it again when both options are off. ### x-terminal-emulator (Debian, Ubuntu) Many programs on Debian and Ubuntu start `x-terminal-emulator`, which the alternatives system points at one terminal. Changing it needs root, so Vaultport leaves it to you. Vaultport accepts the `-e` and `-T` options that callers use, in both the `-e cmd args…` and `-e "cmd args"` forms: ```bash sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/vaultport 20 sudo update-alternatives --config x-terminal-emulator ``` ### Desktop environments - **GNOME** has no setting for the default terminal. Where xdg-terminal-exec is installed (for example on recent Ubuntu releases), GNOME uses it to start programs that need a terminal, so the first option applies. A file manager's own "Open in Terminal" entry may still open the terminal that provides it. - **KDE Plasma**: choose Vaultport in **System Settings → Default Applications → Terminal Emulator**; it is listed because of `TerminalEmulator` in its desktop entry. ## Phones and tablets Android, iOS and iPadOS have no default terminal, so the section is hidden there. --- <!-- Source: http://vaultport.niessen.dev/guide/hosts-and-groups --> # Hosts & groups The **Hosts** section of the vault is where you manage the machines you connect to. ## Adding a host Choose **New host** and fill in what you need; everything is saved automatically. **General** - **Label** (shown in lists and tabs), **address** and **port**. - **Parent group**, **tags** and **notes**. Mark frequently used hosts as **favorites**. **Credentials** - **Use an identity** from the keychain, or **Custom credentials…** with a username, a password (stored encrypted) and keys. See [Identities & keychain](http://vaultport.niessen.dev/concepts/identities-and-keychain.md). **SSH options** | Option | What it does | | ------------------------- | ------------------------------------------------------------------------------------------------------------------ | | Jump hosts | Connect through other saved hosts, in order (ProxyJump). See [Jump hosts & proxies](http://vaultport.niessen.dev/guide/jump-hosts-and-proxies.md) | | Proxy | HTTP CONNECT or SOCKS5 proxy for the first hop | | Agent forwarding | Lets the server use your keys for onward connections (with optional per-use confirmation) | | Environment variables | Sent on connect; the server must allow them with `AcceptEnv` | | Startup snippet | A [snippet](http://vaultport.niessen.dev/guide/snippets.md) run right after login | | Keepalive interval | Seconds between keepalive messages (default 30) | | Compression | Enables `zlib@openssh.com` / `zlib` | | Post-quantum key exchange | Prefers `mlkem768x25519-sha256`, falling back automatically (on by default) | | Allow legacy algorithms | Adds SHA-1, `ssh-rsa` and CBC ciphers for very old servers — always after the secure choices | | Strict host key checking | Refuse unknown hosts instead of asking. See [Known hosts](http://vaultport.niessen.dev/guide/known-hosts.md) | **Other protocols** — enable [Mosh](http://vaultport.niessen.dev/guide/mosh.md) or [Telnet](http://vaultport.niessen.dev/guide/telnet.md) for the host. **Terminal** — theme, font family and size, backspace key, terminal type, encoding and scrollback can be set per host or per group. Any of these can instead be set on a group and [inherited](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md). ## Groups Create a group with **New group**, nest it under another group, and move hosts into it by choosing their parent group. Opening a group shows its hosts and subgroups, and its own settings editor. Deleting a group never deletes hosts: its hosts and subgroups move up to the parent group. ## Finding hosts - The search field filters by label, address and tags (every word must match); **Filter by tags** narrows the list further. Favorites are listed first. - Switch between **grid view** and **list view**. - <kbd>Mod</kbd>+<kbd>J</kbd> jumps to any host or open tab from anywhere, and <kbd>Mod</kbd>+<kbd>K</kbd> opens the command palette with hosts, tabs, snippets and actions. - Type a connection string such as `ssh -p 2222 alice@example.com` into the search field and press <kbd>Enter</kbd> to [quick-connect](http://vaultport.niessen.dev/guide/quick-start.md#_2-add-a-host) without saving a host. ## Connecting Double-click a host, press <kbd>Enter</kbd> on it, or use **Connect**. Select several hosts and choose **Connect all**, or tick several hosts in the new-tab dialog to open them as [panes of one tab](http://vaultport.niessen.dev/guide/workspaces.md#splitting). Use **Open in SFTP** to browse its files instead. While connected, the tab's status dot shows the state: connecting, connected (with an indicator for unread output in background tabs), error or disconnected. If the network drops, Vaultport reconnects automatically (Settings → Terminal → _Reconnect automatically after network loss_), and **Reconnect** is always one click away. ## The local terminal On desktop, <kbd>Mod</kbd>+<kbd>T</kbd> opens a local shell in a new tab, and the **▾** next to the title bar's **+** lists all your [terminal profiles](http://vaultport.niessen.dev/guide/terminal.md#terminal-profiles): Windows PowerShell, PowerShell 7, Command Prompt, Git Bash and WSL distributions on Windows, your login shell and the other installed shells on macOS and Linux, plus any program you add under **Settings → Terminal → Terminal profiles**. With **Shell integration** on, local bash, zsh, fish, PowerShell and cmd shells load Vaultport's integration script automatically, without changes to your dotfiles. Your usual startup files are still read. ## Terminal features - **Tabs, autocomplete, syntax highlighting, command blocks, history search and AI**: see [The terminal](http://vaultport.niessen.dev/guide/terminal.md). - **Search** the output with <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd> (<kbd>⌘</kbd>+<kbd>F</kbd> on macOS). - **Themes**: the original Midnight, Daylight, Ember (production) and Glacier, plus Dracula, Nord, Gruvbox, Catppuccin, Tokyo Night, Solarized, One Dark and more; per host, per group, or globally. - **Output highlighting** for errors, warnings, IP and MAC addresses, dates, UUIDs and hashes, plus your own patterns (optional). - **OSC 52** clipboard writes from tmux or vim: _Ask_ (default), _Allow_ or _Deny_. - **Remote titles**: let programs set the tab title. - Copy on select, right-click to paste, Option as Meta key (macOS), cursor style and blink, scrollback size (10 000 lines by default). - **Shell integration**: if the shell emits the common shell-integration escape sequences (OSC 133 or OSC 633 prompt and command marks, OSC 7 working directory), Vaultport records each command in the host's [history](http://vaultport.niessen.dev/guide/snippets.md#command-history). Password prompts are detected so that what you type there is never recorded. ## Shell integration, OS detection and history import These switches are under **Settings → Terminal**. - **Shell integration** (on by default) loads Vaultport's integration script into [local shells](#the-local-terminal); it powers [command blocks](http://vaultport.niessen.dev/guide/terminal.md#command-blocks). For SSH sessions it sends the variable `VAULTPORT_SHELL_INTEGRATION=1` with the shell request, and you can load it into a running bash, zsh, fish, PowerShell or cmd from the command palette (**Enable command blocks in this session**) or automatically — see [The terminal](http://vaultport.niessen.dev/guide/terminal.md#shell-integration). The scripts for bash, zsh, fish and PowerShell are in [`crates/term-intel/scripts`](https://github.com/DavidNiessen/vaultport/tree/main/crates/term-intel/scripts). They do nothing unless that variable is set, so you can source one from your remote dotfile (for example `~/.bashrc`, or `$PROFILE` for PowerShell). The server must accept the variable (`AcceptEnv VAULTPORT_SHELL_INTEGRATION` in `sshd_config`); otherwise export it yourself before sourcing the script. - **Detect remote operating system** (on by default) checks `/etc/os-release` or `uname` after you log in to a saved host whose operating system is not set, and fills it in so the host shows the right icon. An operating system you picked yourself is never changed. - **Import remote shell history** (off by default) reads the end of `~/.bash_history`, `~/.zsh_history` and `~/.local/share/fish/fish_history` once per saved host and adds the commands to the host's [history](http://vaultport.niessen.dev/guide/snippets.md#command-history). Detection and import each open a short-lived extra SSH channel in the background after the terminal is up. Turn them off for servers that allow only one session per connection (`MaxSessions 1`). They are not used for Mosh sessions. --- <!-- Source: http://vaultport.niessen.dev/guide/keys --> # SSH keys & hardware keys Keys live in the **Keychain** section of the vault. Hosts and identities reference them by id. ## Generate a key **Keychain → New key → Generate key**, then pick the type: | Type | Notes | | ----------- | --------------------------------------------------------- | | Ed25519 | Recommended: fast, small, supported by all modern servers | | ECDSA P-256 | For environments that require NIST curves | | ECDSA P-384 | Same, larger curve | | RSA 4096 | For legacy systems that do not accept the others | The private key is generated on your device and stored encrypted in the vault. You may add a passphrase; Vaultport can remember it in the vault or ask on each use. ## Import a key **Import key** accepts OpenSSH private keys, PEM (PKCS#1 / PKCS#8) and PuTTY `.ppk` files, encrypted or not. Paste the key or choose the file. You can also attach an **OpenSSH certificate** (`…-cert-v01@openssh.com`) to any key so servers that trust your CA accept it. Importing an `ssh_config` with `IdentityFile` lines imports those keys too — see [Importing](http://vaultport.niessen.dev/guide/importing.md). ## Install a public key on a server Select a key and choose **Install on host…**. Vaultport connects to the saved host and appends the public key to `~/.ssh/authorized_keys`, creating the file with safe permissions if needed. If the key is already there, nothing changes. **Copy public key** puts the OpenSSH public key on the clipboard for anything else. ## FIDO2 security keys Security keys such as YubiKeys, SoloKeys or Nitrokeys can hold SSH keys in OpenSSH's FIDO formats `sk-ssh-ed25519@openssh.com` and `sk-ecdsa-sha2-nistp256@openssh.com`, which work with OpenSSH 8.4 and newer on the server. 1. **Keychain → New key → FIDO2 security key**. 2. Insert the key and touch it when it blinks; enter its PIN if it has one. 3. Install the public key on your servers as above. Every login then requires the physical key (and a touch). The vault only stores the key _handle_; the private key never leaves the token. Security keys work in the desktop apps (Windows, macOS, Linux). New keys are Ed25519 (`ed25519-sk`), which needs a reasonably recent key, for example a YubiKey with firmware 5.2.3 or later. ### Importing keys stored on a security key Keys created as _resident_ keys (for example with `ssh-keygen -t ed25519-sk -O resident`) live on the security key itself. To use them on a new computer, choose **Keychain → New key → Import from security key**, enter the key's PIN and confirm. Vaultport adds every SSH key it finds (like `ssh-keygen -K`). Keys that are already in your vault are skipped. Keys created with `-O verify-required` keep asking for the PIN at every login. Key files written by `ssh-keygen -t ed25519-sk`, `-t ecdsa-sk` or `ssh-keygen -K` can also be imported with **Import key**. They contain only the key handle, so they still need the security key at every login. ### Windows Current versions of Windows (10 version 1903 and later) only let programs running as administrator talk to security keys directly. Vaultport therefore uses the Windows security key dialog instead: Windows asks for the touch and, when needed, the PIN in its own window. This works for USB, NFC and Bluetooth security keys, for both Ed25519 and ECDSA keys, and the signatures are the same as OpenSSH's. Two things differ from macOS and Linux: - Windows always asks for a touch, even for keys created with `no-touch-required`. - **Import from security key** needs direct access to the key. Start Vaultport once with **Run as administrator** to import, or run `ssh-keygen -K` and import the key files with **Import key**. > **Linux** > > If no security key is found, make sure your user can access the device's `hidraw` node — see [Installation](http://vaultport.niessen.dev/guide/installation.md#security-keys-and-serial-ports). ## Device keys A **device key** is created inside your device's secure hardware and can never be exported or copied — not even into the vault: | Platform | Backend | Key type | | ---------- | ------------------------------------------- | ----------------------------------- | | macOS, iOS | Secure Enclave | ECDSA P-256 (`ecdsa-sha2-nistp256`) | | Windows | Windows Hello | RSA-2048 (`rsa-sha2-256`) | | Android | Android Keystore (StrongBox when available) | ECDSA P-256 (`ecdsa-sha2-nistp256`) | | Linux | TPM 2.0 | ECDSA P-256 (`ecdsa-sha2-nistp256`) | Every signature asks for Touch ID, Face ID, Windows Hello or, on Android, the system biometric prompt (strong biometrics only). On Linux there is no prompt (see below). Because such a key is bound to one device, register a separate device key per computer or phone, or combine it with another key on your servers. On Android the key is invalidated when you enroll a new fingerprint or face, so you would then need to create and install a new one. ### Linux: TPM 2.0 device keys On Linux, **Keychain → New key → Device key** makes a P-256 key inside the computer's TPM 2.0 chip (or the firmware TPM, such as AMD fTPM or Intel PTT). Vaultport talks to the kernel's TPM device directly, so you do not need `tpm2-tools` or `tpm2-abrmd`. You need: - a TPM 2.0 that is enabled in the firmware settings, so that `/dev/tpmrm0` exists (Vaultport falls back to `/dev/tpm0` if the kernel has no resource manager); - read and write access to that device, usually by joining the `tss` group — see [Installation](http://vaultport.niessen.dev/guide/installation.md#tpm-device-keys); - a TPM owner hierarchy without an owner password, which is the default on Linux. The private key never leaves the TPM. The vault stores only the key's public part and a copy of the private part that is encrypted by the TPM itself; only the same TPM can load it. That copy is useless on any other computer, and also on this one after the TPM is cleared (for example by a firmware "Clear TPM" or after some firmware updates). Back up with a second key on your servers. > **No confirmation on each use** > > A TPM has no fingerprint reader or confirmation button, so unlike the other device keys, a TPM key signs **without asking you**. It protects against the key being copied off the machine, not against software on the machine using it: any program running as your user that can open the TPM device and read the unlocked vault can log in with it. If you want a confirmation for every login, use a FIDO2 security key instead. > **Android support is new** > > Android Keystore keys have not yet been verified on many devices. Keep a second way to log in to your servers until you have confirmed the key works on your phone. ## How hardware signatures are checked Before a signature from a security key or the platform key store is sent to a server, Vaultport verifies it against the key's public key, so a misbehaving device can never make it send a wrong signature. PINs are held in memory that is wiped after use. ## Agent forwarding When agent forwarding is enabled for a host, Vaultport serves a **read-only, in-process agent** to that server. It can list and use only the keys configured for that host, it cannot add, remove or export keys, and each signature request can require your confirmation. SHA-1 `ssh-rsa` signatures are refused unless legacy algorithms are enabled. Only enable agent forwarding for servers you trust. When no keys are configured for a host, the desktop apps can also use your **system SSH agent** — see [authentication order](http://vaultport.niessen.dev/concepts/identities-and-keychain.md#authentication-order). --- <!-- Source: http://vaultport.niessen.dev/guide/known-hosts --> # Known hosts & host-key verification A server proves its identity with its **host key**. Checking that key is what protects you from someone intercepting the connection (a man-in-the-middle attack). Vaultport verifies the host key of **every hop** of every connection — the target and each jump host — against the **Known Hosts** list in your vault. ## The prompts | Situation | What you see | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | First connection to a server | **Verify host key** with the key type and SHA-256 fingerprint: _Trust and connect_, _Connect once_ or _Disconnect_ | | The key matches a trusted entry | Nothing — you are connected | | The server presents another key | **Host key changed!** with the previous and the new fingerprint. You can only _Replace and connect_ deliberately | | The key is marked `@revoked` | **Revoked host key** — the connection is blocked without asking | To check a fingerprint, ask the administrator or run on the server: ```bash ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub ``` > **When the key changes** > > A changed key means either the server was reinstalled or someone is intercepting your connection. Only continue if you can verify the new fingerprint through another channel. ## Policies Per host or group (inherited like any other setting): - **Ask** (default): ask on first use, reject on change. - **Strict host key checking**: only connect to hosts already in Known Hosts; unknown hosts are refused instead of asking. Good for automation-like workflows and production groups whose keys you imported in advance. ## Managing known hosts **Known Hosts** lists every trusted key with its host patterns and fingerprint, and can be searched by host or fingerprint. Remove entries you no longer trust. **Import known_hosts** reads an OpenSSH `known_hosts` file, including hashed entries (`|1|salt|hash`, from `HashKnownHosts yes`), comma-separated names, `[host]:port` entries, wildcards and `!` negations, and the markers below. Invalid lines are skipped with a warning. See also [Importing](http://vaultport.niessen.dev/guide/importing.md). ## Certificate authorities If your organization signs host keys with an SSH certificate authority, import a `known_hosts` file that contains the CA's public key as a `@cert-authority` line: ```text @cert-authority *.example.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA… host-ca ``` A host certificate is then accepted when: - it is a _host_ certificate signed by a matching CA key, - it is currently valid, - it names the host among its principals, and - it carries no critical options. No per-host prompt is needed for servers with valid certificates. ## Revoked keys Entries marked `@revoked` block a key everywhere — including a certificate's signing CA. Use them to retire a compromised key without waiting for every server to be fixed. ## Algorithm preferences and key changes When a host is already known, Vaultport prefers the host-key algorithms it already trusts for that host during negotiation. If a server then presents a key of a different type, that is treated as a **change** rather than silently accepted. See [Host-key policy](http://vaultport.niessen.dev/security/host-keys.md) for the full decision order. --- <!-- Source: http://vaultport.niessen.dev/guide/jump-hosts-and-proxies --> # Jump hosts & proxies ## Jump hosts (ProxyJump) Many networks only allow SSH through a **bastion** (jump host). In the host editor, **Jump hosts → Add jump host** lets you pick one or more saved hosts; Vaultport connects through them **in order**. ```text you ──▶ bastion-eu ──▶ bastion-internal ──▶ 10.0.0.5 ``` How it works: - Vaultport connects to the first hop, then opens a `direct-tcpip` channel through it to the next hop, and so on — the same mechanism as OpenSSH's `ProxyJump`. No agent or port forward is needed on the bastion. - **Every hop** gets its own host-key verification and authentication with that hop's own credentials, so each bastion can use a different user and key. - The connect timeout applies per hop and pauses while a prompt (for example a host-key confirmation or a security-key touch) waits for you. Jump hosts are an ordinary setting, so put them on a **group** and every host inside reaches the network through the same bastion. Importing an `ssh_config` with `ProxyJump` lines sets this up automatically; as in OpenSSH, the first hop's own jump chain is prepended. For a one-off connection, quick connect understands `-J`: ```text ssh -J bastion.example.com alice@10.0.0.5 ``` ## Proxies To reach the **first** hop through a proxy, set **Proxy** on the host or group: | Type | Notes | | ------------ | ------------------------------------------------------------ | | HTTP CONNECT | Optional Basic authentication; default port 3128 | | SOCKS5 | Optional username/password authentication; default port 1080 | Host names are always sent to the proxy **unresolved**, so DNS resolution happens on the proxy side and does not leak from your network. The proxy password is stored encrypted in the vault. `ProxyCommand` from `ssh_config` is not supported; the importer warns about it. ## Combining both Proxy and jump hosts combine: the proxy is used to reach the first hop, then the chain continues through SSH. Every host-key check and every authentication still happens end-to-end between Vaultport and each SSH server — the proxy only sees encrypted SSH traffic. --- <!-- Source: http://vaultport.niessen.dev/guide/port-forwarding --> # Port forwarding **Port Forwarding** in the vault holds saved tunnels. Each rule goes through one SSH host — and that host's jump hosts and proxy, if any. ## Rule types | Type | OpenSSH equivalent | Use it to… | | ----------- | ------------------ | -------------------------------------------------------------------------------- | | **Local** | `-L` | reach a service that is only reachable from the server (a database, an admin UI) | | **Remote** | `-R` | make a service on your device reachable from the server | | **Dynamic** | `-D` | turn your device into a SOCKS proxy (SOCKS5 and SOCKS4a) into the remote network | Example — open a database that only listens inside a private network: | Field | Value | | ------------------- | ------------------ | | Forwarding type | Local | | SSH host | `bastion-prod` | | Local address | `127.0.0.1:5432` | | Destination address | `db.internal:5432` | Then point your database client at `127.0.0.1:5432`. ## Starting and stopping - **Double-click** a rule (or use **Start** / **Stop**). The rule shows whether it is active and how many connections it currently carries. - Enable **Start automatically when the vault unlocks** for tunnels you always want. - Locking the vault stops all tunnels. Tunnels and SFTP panes share a pool of SSH connections, so several tunnels or file panes for the same host reuse one login. ## Binding to other interfaces By default local and dynamic forwards listen on `127.0.0.1`. You can bind to another address such as `0.0.0.0`, and Vaultport will warn you: **the tunnel is then reachable from other machines on your network** — for a dynamic forward, that is an open proxy into the remote network. For remote forwards, binding to non-loopback addresses on the server also requires `GatewayPorts` in the server's `sshd_config`. ## Importing forwards `LocalForward`, `RemoteForward` and `DynamicForward` lines from `~/.ssh/config` and PuTTY `PortForwardings` become rules on import — see [Importing](http://vaultport.niessen.dev/guide/importing.md). --- <!-- Source: http://vaultport.niessen.dev/guide/sftp --> # SFTP The pinned **SFTP** tab is a dual-pane file manager. Each pane shows either **This device** or any saved host, so you can copy between your computer and a server — or between two servers. ## Browsing 1. Open the SFTP tab (or choose **Open in SFTP** on a host). 2. In each pane, **Choose a location**: this device or a host. The pane opens in the host's configured SFTP start path, or the home directory. 3. Navigate with double-click, **Back**/**Forward**, the path bar and **Refresh**. **Filter** the listing and toggle **hidden files**. Per host or group you can set the **start path**, whether **hidden files** are shown, and whether **symlinks are followed**. ## Selecting files Each list works like a desktop file manager: - **Click** selects one entry, <kbd>Mod</kbd>+click adds or removes one, and <kbd>Shift</kbd>+click selects everything from the last clicked entry. - <kbd>Mod</kbd>+<kbd>A</kbd> selects all (also **Actions → Select all**), <kbd>Esc</kbd> clears the selection, and clicking the empty area below the list does too. - With the list focused, <kbd>↑</kbd>/<kbd>↓</kbd>, <kbd>Home</kbd>/<kbd>End</kbd> and <kbd>PgUp</kbd>/<kbd>PgDn</kbd> move through it and <kbd>Shift</kbd> extends the selection. See [Keyboard shortcuts](./keyboard-shortcuts.md#sftp) for the rest. - On touch screens, **long-press** an entry to start selecting; then tap entries to add or remove them. Tapping a folder otherwise opens it. The bar at the bottom of each pane shows how many entries are selected and has buttons to copy them to the other pane, delete them, open the full menu (**More actions**) and clear the selection. ## File operations Right-click (or use **Actions**) for **Open**, **Download**, **Upload to …** / **Download to this device** (copy to the other pane), **Rename**, **New folder**, **Delete** and **Permissions…** (octal, for example `644`). Right-clicking a selected entry acts on the whole selection; right-clicking any other entry selects just that one first. Deleting asks once for the whole selection and lists what will go. Deleting a folder is recursive but **never follows symbolic links**, so a link to `/` cannot take your system with it. ## Drag and drop Drag one entry, or everything selected, and drop it: | Drop onto | What happens | | -------------------------------------------------- | ----------------------------------------------------------------- | | A folder in the same pane | **Moves** the entries into it (a rename on the server) | | A folder of the path bar in the same pane | **Moves** them up into that folder | | The other pane, one of its folders or its path bar | **Copies** them there (upload, download or server-to-server copy) | The target is highlighted while you drag, and the label next to the pointer shows how many entries you are dragging and whether they will be moved or copied. A folder cannot be dropped onto itself or into one of its own subfolders, and dropping entries onto the folder they are already in does nothing. Press <kbd>Esc</kbd> to cancel a drag. SFTP has no server-side copy, so drags within a pane always move and drags between panes always copy. ### From your file manager Drag files and folders from Windows Explorer, Finder or your Linux file manager onto a pane, or onto one of its folders, to upload them there. Folders are uploaded with everything in them, through the same transfer queue. Dragging files out of Vaultport into your file manager is not supported yet; use **Download** or the local pane instead. This is a desktop feature; phones and tablets have no drag-in from other apps. ### Name conflicts If entries with the same names already exist in the target folder, Vaultport lists them and asks whether to **Keep both** (the new copy is named `name (1).ext`), **Overwrite** (files are replaced, folders merged) or **Skip** them. Moves offer only **Keep both** and **Skip**; they never replace anything. ## Transfers Drag files between the panes — or select them and choose **Upload to …** / **Download to this device** — to queue a transfer. The transfer list shows the state and progress of every item; you can cancel a transfer, and **Clear finished** tidies the list. The panes refresh when a transfer finishes. - Transfers run in parallel (with a concurrency limit) and pipeline SFTP requests for speed. - Data is written to a temporary `<name>.sshc-part` file and renamed when complete, so an interrupted transfer never leaves a truncated file under the real name. - An interrupted transfer is **resumed** from where it stopped if the partial file still matches the source. - Folders are copied recursively. Server-to-server copies are streamed through your device. - File names received from a server are validated before they are used locally; entries such as `../../.bashrc` are dropped and reported, so a malicious server cannot write outside the target folder. ## Edit locally **Edit locally** downloads a remote file into a private temporary folder (mode `0700`, files `0600`) and opens it with your default application. When you save, Vaultport notices the change and offers to upload it. - The upload **refuses to overwrite** the remote file if it changed on the server since you opened it, so you do not clobber someone else's edit. - Remote permissions are preserved, and the upload uses the same part-file-and-rename approach. - The temporary copy is removed when the edit session ends. Change detection is available in the desktop apps. ## Connections SFTP panes and transfers reuse a pooled SSH connection per host — including its jump hosts, proxy and credentials — instead of logging in again for every operation. --- <!-- Source: http://vaultport.niessen.dev/guide/workspaces --> # Split panes & workspaces A tab can hold several terminals side by side or stacked — **panes**. Saved with their layout, a set of panes is a **workspace** you can reopen with one click. ## Splitting - **Split right** (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>D</kbd>, <kbd>⌘</kbd>+<kbd>D</kbd> on macOS) or **split down** (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>D</kbd>, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>D</kbd>) splits the focused pane in two. The buttons are also in the title bar (the split icon), in a pane's header, in the tab's right-click menu and in the command palette. - The new pane opens the same kind of session as the pane you split: another connection to the same host, or a local shell with the same profile in the same directory. - Splitting in the same direction again divides that pane's space, so you can build any layout: three columns, a large pane with two stacked ones beside it, and so on. A tab holds up to 16 panes; a pane that is too small to split says so. - In the **new-tab dialog** (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd>, <kbd>⌘</kbd>+<kbd>O</kbd>), tick several hosts and choose **Create workspace** to open them as panes of one tab, in a grid. ## Focus The focused pane — the one your typing goes to — has a coloured outline and a highlighted header. Click a pane to focus it, or move with <kbd>Alt</kbd>+arrow keys (<kbd>⌘</kbd>+<kbd>⌥</kbd>+arrows on macOS) to the pane in that direction. <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>→</kbd> / <kbd>←</kbd> (<kbd>⌘</kbd>+<kbd>]</kbd> / <kbd>[</kbd>) goes through the panes in order. ## Resizing - Drag a **divider** between panes; it lights up when you can grab it. **Double-click** it to make the panes on both sides equal, or use **Equal sizes** in the tab's toolbar for the whole tab. - From the keyboard, <kbd>Alt</kbd>+<kbd>Shift</kbd>+arrows (<kbd>⌘</kbd>+<kbd>⌃</kbd>+arrows) move the nearest divider of the focused pane in that direction. Dividers can also be focused with <kbd>Tab</kbd> and moved with the arrow keys. - Sizes are proportions, so the layout keeps its shape when the window changes size. Panes keep a minimum size while you drag. ## Maximizing **Maximize** (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Enter</kbd>, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>Enter</kbd>, the ⤢ button or double-clicking a pane's header) shows one pane on its own, filling the tab. The toolbar then says **Maximized**; click it, press the shortcut again or move focus to another pane to bring the others back. ## Moving panes Drag a pane by its **header**, or a **tab** from the tab bar, while the target tab is showing. A highlight shows where it will land: - an **edge** of a pane puts it on that side of the pane, - the **centre** of a pane swaps the two (a tab you drop there takes the pane's place, and the pane becomes a tab where the dragged tab was), - the **tab bar** turns a pane into a tab of its own. **Move to new tab** in a pane's menu does the same. Hover over another tab while dragging to switch to it, then drop into one of its panes. Press <kbd>Esc</kbd> to cancel a drag. Sessions keep running while they move: nothing reconnects. ## Closing <kbd>Mod</kbd>+<kbd>W</kbd> or a pane's **×** closes the focused pane; when one pane is left, it becomes a normal tab again. As with tabs, closing a pane in which a command is still running asks first. ## Broadcast Turn on **Broadcast** (<kbd>Mod</kbd>+<kbd>Shift</kbd>+<kbd>B</kbd>) to send every keystroke to all panes of the tab — handy for running the same update on a fleet, or comparing output side by side. All panes are outlined in red while broadcast is on; turn it off before typing anything host-specific. > **Warning** > > Broadcast sends exactly what you type, including mistakes, to every host at once. Snippets can also [run on many hosts](http://vaultport.niessen.dev/guide/snippets.md#running-on-several-hosts) with a confirmation step instead. ## Saving workspaces **Save** in a split tab's toolbar stores its panes and their layout in the vault: the hosts, local shells (with their directory) and the sizes of every split. Saved workspaces appear under **Workspaces** in the new-tab dialog, open as new connections in the same layout, and sync with the rest of your vault. Quick connections and serial ports are not saved; panes of hosts you deleted are left out when you open a workspace. **Reopen tabs on start** (Settings → Terminal) also brings back your split tabs, layouts included. ## Phones Phones show one pane at a time: the chips above the terminal switch between the panes of a tab. Splitting and dragging are not available there; saved workspaces open there too, one pane at a time. ## Tips - Give the hosts of a workspace distinct terminal themes per environment to see at a glance which pane is production. - Every pane shortcut can be changed in **Settings → Shortcuts**; see [Keyboard shortcuts](http://vaultport.niessen.dev/guide/keyboard-shortcuts.md#split-panes-workspaces). --- <!-- Source: http://vaultport.niessen.dev/guide/snippets --> # Snippets & autocomplete ## Snippets A **snippet** is a saved command or multi-line script with a description, for example _Restart the web server_. Snippets live in the vault (and therefore sync), and can be grouped into **packages**. Create one in **Snippets → New snippet**. ### Variables Use placeholders for values that change between runs: | Syntax | Meaning | | ------------------ | ------------------------------------ | | `{{name}}` | Asked for before the snippet runs | | `{{name:default}}` | Asked for, pre-filled with `default` | Variable names start with a letter or underscore and contain letters, digits and underscores. The same variable may appear several times; you are asked once. ```bash sudo systemctl restart {{service:nginx}} journalctl -u {{service:nginx}} --since "{{since:10 min ago}}" --no-pager ``` ### Running snippets **From the Snippets screen**, **Run** asks for the variables and the **target hosts**. Each target gets a new terminal tab that logs in and runs the script. The snippet's run counter goes up, so your most-used commands are easy to spot. **From a terminal**, open the side panel (<kbd>Mod</kbd>+<kbd>.</kbd>) on **Snippets**: - **Run** types the snippet into the current tab and presses Enter (double-click does the same), - **Paste** types it without pressing Enter, so you can review or edit it first, - **All tabs** runs it in every connected terminal tab. The command palette (<kbd>Mod</kbd>+<kbd>K</kbd>) can also run a snippet in the current tab. Snippets whose variables have no default must be run from the Snippets screen, where you can fill them in. ### Running on several hosts Choose several target hosts in the **Run** dialog to execute the same snippet everywhere, each in its own tab, or use **All tabs** for sessions that are already open. For interactive work across many machines, see also [broadcast in workspaces](http://vaultport.niessen.dev/guide/workspaces.md#broadcast). ### Startup snippets Set a **startup snippet** on a host or group (SSH options) to run it automatically after login — for example `tmux new -A -s main`. ## Command history When the remote shell reports its commands through [shell-integration sequences](http://vaultport.niessen.dev/guide/hosts-and-groups.md#terminal-features), Vaultport recognizes each command you run and keeps a per-host, frecency-ranked **history** in the encrypted vault. Browse it in the terminal side panel under **History**: click a command to insert it, double-click to run it. To start with the commands you already ran on a server, turn on [Import remote shell history](http://vaultport.niessen.dev/guide/hosts-and-groups.md#shell-integration-os-detection-and-history-import). ## Autocomplete: deterministic, no AI Vaultport's completion engine is deliberately **not** AI. It is a small, offline, deterministic engine in the Rust core (`term-intel`) that ranks suggestions from: - your command **history** for the host, - your **snippets**, - the **commands installed on the machine** (everything on `PATH`, the usual tool directories and shell builtins), - **command specs** for about 300 tools (subcommands, flags and values of `git`, `docker`, `kubectl`, `systemctl`, `npm`, `cargo`, `gh`, `aws`, `terraform`, macOS tools and many more), matched by prefix or fuzzily, - **values from the machine**: git branches, tags and remotes, `npm run` scripts, `make` and `just` targets, users and groups, SSH hosts, systemd units, network interfaces, signals and environment variables, - **paths**: on this computer in local terminals, and on the server. On a server, Vaultport reads directories and the few small files it needs (such as `.git/HEAD`, `package.json` or `/etc/passwd`) over an SFTP channel of the terminal's own SSH connection, so no second login is needed and nothing is run on the server. Without SFTP on the server, the rest still works. It uses a quote-aware shell tokenizer, never runs anything, and works the same on every platform. You can switch it off in **Settings → Terminal → Suggestions**. See [The terminal](http://vaultport.niessen.dev/guide/terminal.md#autocomplete) for inline suggestions, syntax highlighting and the rest of the terminal. ### Using it Suggestions appear below the cursor as you type at the prompt: | Key | Action | | -------------------------------- | ----------------------------------------------- | | <kbd>↑</kbd> / <kbd>↓</kbd> | Choose a suggestion | | <kbd>Tab</kbd> | Insert it | | <kbd>→</kbd> or <kbd>End</kbd> | Accept the grey inline suggestion from history | | <kbd>Ctrl</kbd>+<kbd>Space</kbd> | Show suggestions now | | <kbd>Esc</kbd> | Close the list | | <kbd>Enter</kbd> | Close the list and run the line as you typed it | While the list is closed, <kbd>Tab</kbd> and the arrow keys go to the shell as usual. Inserting a directory keeps the list open for the next level. Suggestions work best with [shell integration](http://vaultport.niessen.dev/guide/terminal.md#shell-integration) (on by default for local shells): Vaultport then knows exactly where your input starts, which directory you are in, and when a command is running. Without it, the prompt is recognized by its usual ending (`$`, `#`, `%`, `>` or `❯`), and paths only complete from absolute or `~/` paths. Nothing is suggested while a command runs, in full-screen programs such as `vim` or `htop`, or while a workspace broadcasts input to several terminals. ## Risk hints Generated commands (see [Local AI](http://vaultport.niessen.dev/guide/local-ai.md)) are rated by a deterministic risk checker that recognizes destructive patterns — recursive deletes, disk writes and formatting, permission changes, firewall flushes, SQL drops, force pushes, `curl … | sh`, fork bombs and more — including inside `sudo`, `sh -c '…'` and `ssh host '…'`. The rating is a hint for you, not a security boundary. --- <!-- Source: http://vaultport.niessen.dev/guide/mosh --> # Mosh [Mosh](https://mosh.org/) (mobile shell) keeps a session alive when your network changes — switching from Wi-Fi to mobile data, closing the laptop lid, roaming between access points. Vaultport contains a **native Mosh client** written in Rust, wire-compatible with `mosh-server` 1.3 and 1.4. You do not need to install `mosh-client` locally. ## Requirements - `mosh-server` installed on the host (`apt install mosh`, `dnf install mosh`, `brew install mosh` …). - UDP traffic to the server allowed — by default `mosh-server` picks a port between 60000 and 61000. - Working SSH access: Mosh starts through SSH. ## Enabling Mosh In the host (or group) editor, enable **Use Mosh**. Optionally change the **server command**; the default is: ```bash mosh-server new -s -l LANG=en_US.UTF-8 ``` ## How a Mosh session starts 1. Vaultport connects over SSH as usual — with your keys, jump hosts, proxy and host-key checks. 2. It runs the server command, which prints `MOSH CONNECT <port> <key>` and detaches. 3. The SSH connection is no longer needed; the session continues over **UDP**, encrypted and authenticated with **AES-128-OCB3** using the session key from step 2. ## Roaming and resilience - The server always replies to the address of the newest authentic packet, so Vaultport can switch networks at any time. - Like the reference client, Vaultport hops to a new local port automatically after 10 seconds without a round trip. - Mosh synchronizes the **screen state** rather than a byte stream: after a long disconnect you see the current screen immediately, without replaying everything that happened. - Packets that fail authentication are dropped silently; replayed and wrong-direction packets are rejected. ## Limitations Mosh carries an interactive terminal only. Port forwarding, agent forwarding and SFTP need an SSH connection — use a regular SSH tab or the SFTP tab for those. Scrollback is what Vaultport's terminal has received; Mosh itself does not resend history. --- <!-- Source: http://vaultport.niessen.dev/guide/telnet --> # Telnet Some switches, routers, embedded devices and legacy systems still only speak Telnet. Vaultport includes a Telnet client for them. > **Telnet is unencrypted** > > Everything — including your username and password — travels in clear text. Only use Telnet on trusted networks, for example a dedicated management VLAN, or through an SSH tunnel. ## Enabling Telnet for a host In the host (or group) editor, **Enable Telnet** and set: - **Port** — 23 by default, - optional **username** and **password** (stored encrypted in the vault). CSV, MobaXterm, PuTTY and SecureCRT imports create Telnet hosts automatically where the source says so. ## What is supported Vaultport implements RFC 854 with RFC 1143 "Q method" option negotiation, which cannot get stuck in negotiation loops. Supported options: | Option | RFC | Purpose | | ----------------- | ---- | ----------------------------------- | | ECHO | 857 | Server-side echo | | SUPPRESS-GO-AHEAD | 858 | Full-duplex operation | | BINARY | 856 | 8-bit clean transmission | | TERMINAL-TYPE | 1091 | Reports `xterm-256color` by default | | NAWS | 1073 | Window size, sent on every resize | | NEW-ENVIRON | 1572 | Sends `USER` | Everything else is refused. Line endings follow the NVT rules: a carriage return you type is sent as `CR LF`. ## Logging Telnet sessions are recorded to [encrypted session logs](http://vaultport.niessen.dev/guide/session-logs.md) like SSH sessions. --- <!-- Source: http://vaultport.niessen.dev/guide/serial --> # Serial consoles Connect to network gear, single-board computers, microcontrollers and servers over a **serial console** — a USB-to-serial adapter, a USB console port or a built-in COM port. ## Opening a console 1. In the **Hosts** view, click **Serial** in the toolbar. 2. **Choose a port** from the list — USB adapters show their vendor and product — or **enter a device path** such as `/dev/ttyUSB0`, `/dev/tty.usbserial-1410` or `COM3`. On Android, pick the adapter from the list. 3. Set the line parameters and connect. | Setting | Typical value | Options | | ------------ | -------------- | --------------------------------------------- | | Baud rate | 9600 or 115200 | 300 to 921600 (115200 preselected) | | Data bits | 8 | 5, 6, 7, 8 | | Parity | None | None, Odd, Even | | Stop bits | 1 | 1, 2 | | Flow control | None | None, hardware (RTS/CTS), software (XON/XOFF) | Most Cisco, Juniper and Aruba consoles use **9600 8N1** without flow control; many Linux boards and Raspberry Pis use **115200 8N1**. ## Platforms and permissions Serial consoles are available in the **desktop** apps (Windows, macOS, Linux) and on **Android**. - **Linux:** add yourself to the `dialout` group (Debian, Ubuntu, Fedora) or `uucp` (Arch), then log in again. - **macOS:** most adapters work out of the box; some need the vendor's driver (for example for older Prolific or CH340 chips). - **Windows:** the adapter appears as `COMn` in Device Manager. - **Android:** see [below](#android). - **iOS and iPadOS:** not possible. Apple lets apps talk only to accessories certified for its MFi program (through the External Accessory framework), and USB serial adapters are not among them, so Vaultport reports serial consoles as unavailable there. ## Android Android phones and tablets with USB host support (nearly all of them; you may need a USB-C or USB OTG adapter) can open serial consoles over USB. Vaultport talks to the adapter directly through Android's USB host API, with its own drivers: | Adapter | Chips | Flow control | | ------------ | -------------------------------------------------------- | ------------------------------------------------- | | USB CDC-ACM | Native USB consoles, many microcontroller boards, CH9102 | None | | FTDI | FT232R, FT2232C/D/H, FT4232H, FT232H, FT-X series | None, hardware, software | | Silicon Labs | CP2102/CP2102N, CP2104, CP2105, CP2108, CP2109 | None, hardware, software | | WCH | CH340, CH341 | None | | Prolific | PL2303 (HX, TA, TB, HXD and the G series) | None, hardware, software (oldest chips: hardware) | - **Choosing the port:** attached adapters are listed by their USB device name, for example `/dev/bus/usb/001/002`. Adapters with several ports (FT2232, FT4232H, CP2105, CP2108) list each port with a `#n` suffix, counting from `#0`. Tap the refresh button after plugging an adapter in. - **Permission:** the first time you connect, Android asks whether Vaultport may use the USB device. The permission lasts until the adapter is unplugged. - **Settings an adapter cannot do** (for example flow control on a CH340, or 5 data bits on an FTDI chip) are refused when you connect, with a message saying why, instead of being silently ignored. Older PL2303 chips round non-standard baud rates to the nearest standard one. - **Unplugging** the adapter ends the session. - As for other sessions, keep the app open or turn off **Lock when the app is in the background** — see [Phones & tablets](http://vaultport.niessen.dev/guide/mobile.md#staying-connected-in-the-background). > **New on Android** > > USB serial on Android is new and has not yet been tested with many adapters and devices. Please [report problems](https://github.com/DavidNiessen/vaultport/issues) with the adapter's chip and your device model. ## Logging Serial sessions are recorded to [encrypted session logs](http://vaultport.niessen.dev/guide/session-logs.md), which is useful for keeping a record of console work on network equipment. --- <!-- Source: http://vaultport.niessen.dev/guide/importing --> # Importing **Hosts → Import → File** brings your existing setup into the vault. Choose a file and Vaultport **detects the format** (UTF-8 or UTF-16 with BOM), shows a summary — hosts, groups, keys and known hosts imported, plus any warnings — and you are done. Imports add to your vault; within one import, hosts are de-duplicated by address, port and username. ## Supported formats | Source | What to choose | What is imported | | --------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- | | OpenSSH `ssh_config` | `~/.ssh/config` (offered automatically when it exists) | Hosts, `Include`d files, `Host *` defaults as a group, `ProxyJump`, forwards, `IdentityFile` keys | | OpenSSH `known_hosts` | `~/.ssh/known_hosts` | Trusted host keys, including hashed entries, `@cert-authority` and `@revoked` | | PuTTY | A registry export (see below) | SSH and Telnet sessions, tunnels, `.ppk` keys, SOCKS5/HTTP proxies, SSH proxy as jump host, host keys | | MobaXterm | `.mobaconf` or `.mxtsession` | SSH and Telnet bookmarks, folders as nested groups, private key paths | | SecureCRT | XML export (_File → Export Settings_) | SSH2 and Telnet sessions, folders as nested groups, identity files | | CSV | A spreadsheet export | Hosts with label, address, port, user, password, group path, tags and protocol | ### OpenSSH config Each concrete `Host` alias becomes a host, with its settings computed the way `ssh -G` does (first value wins, `IdentityFile` and forwards accumulate). Options that apply to _every_ host (`Host *`, `Match all`, top-level options) go into one shared group, so they are [inherited](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md) exactly like before. Other wildcard blocks such as `Host *.prod.example.com` are applied to the matching hosts. Not supported, with a warning: `Match` blocks other than `Match all`, and `ProxyCommand`. Private keys referenced by `IdentityFile` are read and stored encrypted in the vault; encrypted keys stay encrypted and ask for their passphrase on first use. ### PuTTY Export your sessions on Windows with: ```powershell reg export HKCU\Software\SimonTatham\PuTTY putty.reg ``` `PortForwardings` (for example `L8080=localhost:80,R2222=localhost:22,D1080`) become [port-forwarding rules](http://vaultport.niessen.dev/guide/port-forwarding.md), PuTTY's cached `SshHostKeys` become known hosts, and a proxy password becomes an encrypted vault secret. ### MobaXterm and SecureCRT Folders become nested groups. Passwords stored by these programs are encrypted with their own master passwords and **cannot** be imported — the summary tells you how many were skipped. MobaXterm's SSH gateway (jump host) settings are not imported; add jump hosts afterwards. ### CSV The first row is a header; columns are matched by name in any order and only `address` is required: ```text label,address,port,username,password,group,tags,protocol web-01,10.0.1.11,22,deploy,,Prod/EU,web;nginx,ssh switch-core,10.0.0.2,23,admin,,Network,cisco,telnet ``` - `group` is a path nested with `/`, `tags` are separated by `;`, - `protocol` is `ssh` (default), `telnet` or `mosh`, - passwords are stored as encrypted vault secrets. ## Safety Import files are treated as untrusted input: files over 16 MiB are rejected, nesting and `Include` depth are bounded, malformed entries are skipped with a warning (which never contains secret values), and every imported host, group and forward is validated before it is stored. ## From the cloud To keep a group in sync with your AWS, DigitalOcean or Azure account instead of importing once, see [Cloud inventory](http://vaultport.niessen.dev/guide/cloud-inventory.md). --- <!-- Source: http://vaultport.niessen.dev/guide/cloud-inventory --> # Cloud inventory A **cloud integration** keeps a group of hosts in line with the machines in a cloud account. There is no service in between: Vaultport calls the provider's API **directly from your device**, with credentials that stay in your vault. ## Supported providers | Provider | Lists | Credentials | | --------------- | ------------------------------------- | ------------------------------------------------------------------------------ | | AWS | EC2 instances and Lightsail instances | Access key ID + secret access key, and a comma-separated list of regions | | DigitalOcean | Droplets | Personal access token with read scope | | Microsoft Azure | Virtual machines with a public IP | Service principal (tenant ID, client ID, client secret) with the _Reader_ role | **Use read-only credentials.** Vaultport only ever reads the inventory; a key that can do more is an unnecessary risk. ## Adding an integration 1. **Hosts → Import → Cloud**. 2. Choose the provider, give the integration a label, and enter the credentials (and, for AWS, regions such as `us-east-1,eu-central-1`; for Azure, a comma-separated list of the subscription IDs to list VMs from). 3. **Add and sync.** Vaultport creates a group named after the integration and fills it with one host per instance. In the current build the sync runs when you add the integration; the core can re-sync an existing integration, but there is no button for it in the UI yet. Cloud credentials are stored as vault secrets that **stay on this device**: they are not synced to your other devices. ## What a sync changes Hosts are matched to instances by their cloud id. Only a few fields are **provider-managed**: the label, the address, the operating system and the provider's tags. Everything else — credentials, jump hosts, notes, favorites, terminal settings — belongs to you and is never touched. - If you have not edited a provider-managed field, it follows the provider. - If you edited it (for example renamed a host), your value wins on every later sync. - Tags you add are kept; tags removed at the provider disappear. - Instances that no longer exist are removed from the group. - Hosts you added to the group by hand are never modified or removed. - Any API error aborts the sync without changing anything, so a partial listing can never delete hosts. Because the integration owns a normal group, you can put shared settings on it — a username, a key, a jump host — and every discovered host [inherits](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md) them. ## Network behaviour - TLS is provided by rustls; redirects are disabled. - Pagination links are followed only on the provider's own API origin, so tokens and signatures are never sent to another host. - AWS requests are signed with Signature Version 4 inside Vaultport; no AWS SDK or CLI is needed. - Credentials are wiped from memory after use and redacted from logs. --- <!-- Source: http://vaultport.niessen.dev/guide/sync --> # Sync, backup & pairing Vaultport has no cloud of its own. To use the same vault on several devices, you point it at **storage you already control**. That storage only ever receives encrypted, integrity-protected files. Open **Settings → Sync & backup**. ## Sync targets Choose **Add sync target** and a storage type: | Storage type | Settings | | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- | | **Synced folder** (iCloud Drive, Dropbox, Syncthing, Nextcloud desktop, a network share …) | The folder. Any folder that another app keeps in sync works | | **WebDAV** (Nextcloud, ownCloud, many NAS) | URL, username, password | | **S3-compatible** (AWS S3, MinIO, Cloudflare R2, Backblaze B2 …) | Endpoint (empty for AWS), bucket, region, optional prefix, access key ID and secret access key | | **Git repository over SSH** (GitHub, GitLab, Gitea, any SSH server with Git) | Repository, key or identity to sign in with, branch — see [Git over SSH](#git-over-ssh) | Credentials for the storage are stored as vault secrets that stay on this device. S3 endpoints must use HTTPS. Press **Sync now** to sync a target. Each sync downloads the changes of your other devices, merges them, and uploads this device's new changes. The list shows when each target last synced and any problem it found. ## Git over SSH A Git repository works as sync storage on every platform, phones included: Vaultport speaks the Git protocol itself over its own SSH connection, so no `git` program is needed. 1. **Create a repository** for the vault, e.g. a private GitHub repository `me/vault`. It can be empty. 2. **Choose a key.** Create or import one under **Keys** (a key stored in the vault; see below for security keys). Copy its public key and add it to the repository **with write access** — on GitHub: _Settings → Deploy keys → Add deploy key_, tick **Allow write access**. A deploy key only grants access to this one repository, which makes it a good fit. An account-wide key or an [identity](http://vaultport.niessen.dev/guide/keys.md) works too. 3. **Add the target:** storage type **Git repository over SSH**, then - **Repository**: the SSH address, `git@github.com:me/vault.git` or `ssh://user@host:2222/srv/vault.git`. HTTPS addresses are not supported. - **Sign in with**: the key or identity from step 2. Without one, desktop builds use the system SSH agent. - **Branch**: `vaultport-sync` by default. Sync data lives only on this branch; your other branches are never read or written, so the repository can hold other things too. 4. **Sync now.** On the first connection Vaultport shows the server's **host key** like for any new host. Compare the fingerprint with the one your provider publishes (GitHub lists them in its documentation) and trust it. The key is saved in [Known hosts](http://vaultport.niessen.dev/guide/known-hosts.md); if it ever changes, syncing stops with a warning instead of connecting. Each sync fetches the branch, merges it with this device's copy, and pushes. If another device pushed in the meantime, Vaultport fetches and merges again. The repository's history only ever contains encrypted segment files and commits by "Vaultport". A local copy of the branch is kept in the app's data folder; removing the target deletes it. Security keys (FIDO2) work on the device they are plugged into; for [pairing](#pair-a-new-device), use a key stored in the vault. ## Conflict-free by design The vault is a CRDT: every change is an operation with a timestamp from a hybrid logical clock, and every field is resolved last-writer-wins. Two devices that have seen the same operations always end up with identical data, whatever order the operations arrived in. You can edit on your laptop and phone while offline and sync later — there are no merge dialogs and no "conflicted copy" files. ## What the storage sees Only immutable **segment files**, one series per device, named by vault id, device id and counter. Each segment is encrypted with XChaCha20-Poly1305 under a key derived from your vault key, and chained to the device's previous segment by a SHA-256 hash. The storage provider therefore cannot read your data, and it cannot forge, reorder or silently drop changes either: Vaultport detects and reports missing segments (gaps), rollbacks to an older state, tampered files and forks, and stops applying that device's changes until the problem is resolved. Details are in the [sync protocol](http://vaultport.niessen.dev/security/sync.md). Conflict copies made by sync tools and unexpected files are ignored. ## Pair a new device Pairing copies the vault to a new phone, tablet or computer **directly over your local network** — no sync storage, account or server is involved. Both devices must be on the same network (the same Wi-Fi or LAN). **On the device that has the vault:** 1. **Settings → Sync & backup → Pair a device.** 2. A **QR code** and, separately, an 8-character **pairing code** such as `K7QM-2XPA` appear, with "Waiting for the other device…". They are valid for 10 minutes. Keep the window open: the device only accepts a connection while it is shown. **On the new device:** 1. On the lock screen choose **I already have a vault → Pair with another device**. 2. Scan the QR code with the camera and paste the **pairing text**, or copy the text under the QR code across. 3. Enter the pairing code, a name for the vault on this device and a master password. The new device connects to the other one, both check the code, and the vault is transferred — both screens show the progress. The new device becomes a full copy (a _replica_) of the same vault with its own master password. **Keeping the devices in sync afterwards:** if the device that has the vault has a [sync target](#sync-targets), the new device also gets the **first sync target with its credentials** and keeps syncing through it. For a Git target this includes a copy of its key (or identity password) for the first sync, and the server's trusted host keys, so the new device does not have to ask about them. Without a sync target the transfer is a **one-time copy**: changes made afterwards stay on the device where they were made until you add the same sync storage on both devices (they then merge automatically) or pair again. Data that is marked to stay on its device — for example the credentials of each device's own sync targets — is never transferred, except the sync target credentials described above. ### If the devices cannot reach each other - Both devices must be on the **same network**. Guest Wi-Fi and some company networks isolate devices from each other ("client isolation"); a phone on mobile data cannot reach a computer at home. - **Windows** may ask whether Vaultport may accept connections the first time you pair: allow it on **private networks**. The firewall rule only matters while the pairing window is open — Vaultport does not listen at any other time. - **iOS** asks for permission to find devices on the local network; allow it (Settings → Privacy & Security → Local Network → Vaultport). - A VPN on either device can route the connection elsewhere; turn it off while pairing. Copying the pairing text to a device on **another network** does not work. To set up a device elsewhere, add a [sync target](#sync-targets) on both devices, or move an [encrypted backup](#encrypted-backups) across and restore it there. > **Pair in private** > > Someone who sees _both_ the QR code and the pairing code, and is on the same network, could pair instead of your device. The QR code alone is useless: it contains no key, and every guess of the code needs a connection to your device, which stops after three wrong codes. Do not share screenshots or screen recordings of the pairing screen. See [device pairing](http://vaultport.niessen.dev/security/sync.md#device-pairing) for the protocol. ## Encrypted backups **Export** writes the whole vault to one `.vaultport` file, protected by a passphrase of its own (at least 8 characters). The file is encrypted with Argon2id and XChaCha20-Poly1305, and any modification is detected. To restore, choose **Restore from backup** on the lock screen (or **Import** in Sync & backup) and pick the file. It becomes a new vault on this device, protected by the backup passphrase, which you can change afterwards. Because the file contains the vault's own operations, a restored vault is the same replica and can keep syncing with your other devices. Keep at least one backup somewhere safe: without your master password, a backup passphrase or another device, nobody can recover your vault. --- <!-- Source: http://vaultport.niessen.dev/guide/session-logs --> # Session logs Vaultport records the output of your terminal sessions — SSH, Telnet, serial and local — into **encrypted session logs**, so you can look up what a command printed yesterday or keep a record of maintenance work. Session logging is on by default. Turn it off or on again with **Settings → Security → Record session logs**; the switch applies to sessions you open afterwards. Open **Logs** in the vault to browse them. ## What is recorded - Terminal **output**, window resizes and markers, in the open [asciicast v2](https://docs.asciinema.org/manual/asciicast/v2/) format with timing. - **Keyboard input is not recorded.** Input recording is off by default in the engine, because what you type can include secrets; even when enabled, input is never recorded while a password prompt is detected. ## Encryption and integrity Each log is a single file sealed in chunks with **XChaCha20-Poly1305**, using a key derived from your vault key. The data is DEFLATE-compressed before encryption, and chunks are sealed every 64 KiB or two seconds, so at most a few seconds are lost if the app is closed abruptly. Every chunk is bound to its log and its position, and a final chunk records the totals. Flipped bits, swapped, reordered, foreign or missing chunks and truncation are all detected when the log is read. A log whose session crashed before it finished can still be opened up to the last intact chunk. ## Retention - The **most recent session per host** is kept; older ones are deleted when a new session ends. - **Bookmark** a log (**Keep this log**), optionally with a comment, to keep it permanently. - The total size of all logs is capped at 1 GB; the oldest unbookmarked logs go first. Log metadata (host, time, size, device, bookmark) is stored in the vault. The log files themselves stay on the device that recorded them. ## Using logs - **Search logs** across sessions, or **Search in log** inside one — matching ignores colour and other escape sequences. - **Replay** a session with its original timing, and **pause** it at any point. - **Export as .cast** writes a plain, unencrypted asciicast file that tools like `asciinema play` understand. Treat exported files as sensitive. The **History** side panel and command history are separate from logs; see [Snippets & autocomplete](http://vaultport.niessen.dev/guide/snippets.md#command-history). --- <!-- Source: http://vaultport.niessen.dev/guide/local-ai --> # Local AI Vaultport can turn a plain-language request such as _"find the 10 largest files in /var/log"_ into a shell command — using a small language model that runs **entirely on your device**. It is **off by default** and completely optional; every other feature works without it. ## Turning it on 1. **Settings → Local AI → Enable local command generation.** 2. **Download model.** The model is downloaded once; afterwards everything works offline. | Device | Model | Download size | License | | ------------------ | ------------------------------------ | ------------- | ---------- | | Desktop | Qwen2.5-Coder 1.5B Instruct (Q4_K_M) | ≈ 1.1 GB | Apache-2.0 | | Phones and tablets | Qwen2.5-Coder 0.5B Instruct (Q4_K_M) | ≈ 490 MB | Apache-2.0 | **Remove model** deletes every file the feature created. > **Android** > > Android builds include the inference engine on 64-bit devices (`arm64-v8a`, and `x86_64` for emulators and Chromebooks) and use the smaller model, like iPhone and iPad. On 32-bit Android devices (`armeabi-v7a`, `x86`) the engine is not built in and Local AI reports itself as unavailable: those devices rarely have the memory for a language model. ## Using it In the terminal: - press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the **AI command bar**, or type `# what you want` at the prompt and press <kbd>Enter</kbd>; - after a command fails, click its exit-status badge and choose **Fix with AI**: the model sees the command, its exit status and the end of its output, and suggests a corrected command. <kbd>Tab</kbd> puts the suggestion on the prompt, <kbd>Mod</kbd>+<kbd>Enter</kbd> runs it — nothing runs unless you choose to. See [The terminal](http://vaultport.niessen.dev/guide/terminal.md#ai-in-the-terminal). Or open the terminal side panel (<kbd>Mod</kbd>+<kbd>.</kbd>) and choose **AI**: 1. **Describe what you want to do.** Optionally **use selected terminal text as context**, for example an error message. 2. **Generate command.** You get one command with a short explanation and a **risk rating** (low, medium, high, critical) from Vaultport's deterministic risk checker. 3. **Insert into terminal.** The command is typed at the prompt — never executed. Review it and press <kbd>Enter</kbd> yourself. The model gets the terminal's context: the operating system of the host (or this computer), the working directory and the last few commands (with [shell integration](http://vaultport.niessen.dev/guide/terminal.md#shell-integration)), and — if you choose — the selected terminal text. In the Snippets editor, **Generate script from description** drafts a multi-line snippet the same way. > **Not autocomplete** > > AI is never used for autocomplete. Completion is a separate, deterministic engine — see [Snippets & autocomplete](http://vaultport.niessen.dev/guide/snippets.md#autocomplete-deterministic-no-ai). ## Privacy - **No data leaves the device for inference.** Prompts, terminal context and generated commands stay in memory; they are not logged or stored. - The **only network traffic** is the one-time download you start: anonymous HTTPS requests to Hugging Face and its CDN, with a generic user agent, no cookies, no tokens and no telemetry. ## Security - Each model file is pinned to an immutable Hugging Face commit, with its exact size and SHA-256; a file that does not match is rejected. Downloads are HTTPS-only to an allow-list of hosts, re-checked on every redirect, and can be resumed. - Model output is constrained by a grammar to a fixed JSON shape and validated: control characters, NUL bytes, bidirectional-override characters, multiple lines in single-command mode and oversized output are rejected. - Text that comes from the remote host is treated as untrusted data — sanitized, size-capped and clearly framed as data in the prompt — to blunt prompt-injection attempts. ## Performance Inference uses [llama.cpp](https://github.com/ggml-org/llama.cpp) on the CPU; Apple silicon builds can offload to the GPU through Metal. Speed depends on your hardware, which is why phones and tablets use the smaller model. Android builds target the baseline instruction set of each ABI (ARMv8.0 on `arm64-v8a`), so they run on every device, including phones with older Cortex-A53 cores. Newer phones would be faster with the ARMv8.2 dot-product instructions, which the build does not assume. On Windows on ARM, the engine needs the ARMv8.2 dot-product instructions, which every Windows 11 ARM device has (Snapdragon 850 and later). On a processor without them, Local AI reports itself as unavailable instead of starting. --- <!-- Source: http://vaultport.niessen.dev/guide/ai-agents --> # AI agents (MCP) Vaultport can act as a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server, so AI tools such as **Claude Code**, **Claude Desktop**, **Cursor**, **VS Code** or **Codex** can list your hosts, read files and — with your approval — run commands on your servers. The agent never gets your passwords, keys or vault. It asks Vaultport to do something; Vaultport shows you what exactly will happen, opens the connection itself with your saved credentials, and returns only the result. > **Desktop only, off by default** > > Agent access is available in the desktop apps (Windows, macOS, Linux). It is **off** until you turn it on, and it only accepts connections from programs running as your user on the same computer. This is separate from [Local AI](http://vaultport.niessen.dev/guide/local-ai.md), which generates commands with an on-device model. With agent access, the AI tool you connect decides what to ask for, and its model may run in the cloud — whatever Vaultport returns to it (command output, file contents, host names) is sent wherever that tool sends its prompts. ## Turn it on 1. Open **Settings → AI agents** and switch on **Allow AI agents**. The status changes to _On: agents on this computer can connect_. 2. Choose when you want to be asked (**Ask before**), whether agents may only read (**Read-only**), and which **hosts** they can see. 3. Under **Connect a client**, pick your tool and copy the ready-made snippet. It already contains the correct path to the Vaultport executable on your computer. The MCP client starts `vaultport mcp` whenever it needs the server. That small command relays the conversation to the running app; if Vaultport is not running, it starts it. ## Connect a client The snippets below use a placeholder for the executable. Use the exact snippet shown in **Settings → AI agents**, or replace `<vaultport>` with the path for your installation: | Platform | Typical path | | ----------------------------- | ------------------------------------------------------ | | macOS | `/Applications/vaultport.app/Contents/MacOS/vaultport` | | Windows (installer, per user) | `C:\Users\<you>\AppData\Local\vaultport\vaultport.exe` | | Windows (MSI) | `C:\Program Files\vaultport\vaultport.exe` | | Linux (`.deb`, `.rpm`) | `/usr/bin/vaultport` | | Linux (AppImage) | the full path of the `.AppImage` file | Paths that contain spaces must be quoted in shell commands (`'…'` on macOS and Linux, `"…"` on Windows); the app does this for you. The JSON snippets go into `claude_desktop_config.json` for Claude Desktop (**Settings → Developer → Edit Config**), `~/.cursor/mcp.json` for Cursor, and `.vscode/mcp.json` in your workspace for VS Code. Claude Code and Codex add the server with one command. **Claude Code** ```bash claude mcp add --scope user vaultport -- <vaultport> mcp ``` **Claude Desktop** ```json { "mcpServers": { "vaultport": { "command": "<vaultport>", "args": ["mcp"] } } } ``` **Cursor** ```json { "mcpServers": { "vaultport": { "command": "<vaultport>", "args": ["mcp"] } } } ``` **VS Code** ```json { "servers": { "vaultport": { "type": "stdio", "command": "<vaultport>", "args": ["mcp"] } } } ``` **Codex** ```bash codex mcp add vaultport -- <vaultport> mcp ``` **Other clients** ```bash # Any MCP client that supports the stdio transport: <vaultport> mcp ``` In JSON files on Windows, write backslashes twice (`"C:\\Program Files\\vaultport\\vaultport.exe"`). If agent access is turned off, `vaultport mcp` still starts, but only offers a single status tool that tells the agent to ask you to turn access on — so you get a clear message instead of a broken server. ## Tools | Tool | What it does | Changes something | | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | | `list_hosts` | Lists the saved SSH hosts available to agents (id, label, address, port, username, group, tags, OS). Never includes credentials. | no | | `list_snippets` | Lists your saved command snippets with their variables. | no | | `list_port_forwards` | Lists saved port-forwarding rules and whether each is running. | no | | `list_directory` | Lists a directory on a host over SFTP (home directory by default). | no | | `read_file` | Reads a file on a host over SFTP (256 KiB by default, at most 4 MiB; text or base64). | no | | `run_command` | Runs a shell command on a host without a TTY and returns stdout, stderr and the exit status (timeout 120 s by default, at most 30 min; long output is shortened in the middle). | yes, destructive | | `run_snippet` | Runs a saved snippet on a host, filling in its variables. | yes, destructive | | `write_file` | Writes a file over SFTP: overwrite, create (fails if it exists) or append (at most 8 MiB). | yes, destructive | | `make_directory` | Creates a directory over SFTP. | yes | | `delete_path` | Deletes a file, symlink or empty directory over SFTP (not recursive). | yes, destructive | | `start_port_forward` | Starts a saved port-forwarding rule. | yes | | `stop_port_forward` | Stops a running port-forwarding rule. | yes | | `open_terminal` | Opens an interactive terminal tab for you in Vaultport. Use it to hand over. | yes | | `list_terminals` | Lists the terminals you have open (SSH, local, serial) with their working directory and last command and exit status. | no | | `read_terminal` | Reads the recent commands of one of your terminals with their output and exit status (or the last lines of output without shell integration). | no | | `type_in_terminal` | Types a command into one of your terminals, where you see it; with `run` it presses Enter and returns the output once the command finishes. | yes, destructive | Hosts are referred to by id, label or address; terminals by the id from `list_terminals` or their tab label. Connections use the host's saved settings — jump hosts, proxy, keys, [host-key verification](http://vaultport.niessen.dev/guide/known-hosts.md) — exactly as if you connected yourself. ## Terminals Agents can see what happens in the terminals you have open — for example to explain an error you just got. Copy a ready-made prompt from a failed command's badge menu (**Copy a prompt for your AI agent**) and paste it into your agent. - `read_terminal` returns the last commands of a terminal with their output (shortened in the middle when long), exit status and working directory. With [shell integration](http://vaultport.niessen.dev/guide/terminal.md#shell-integration) Vaultport knows where each command starts and ends; without it, the agent gets the last lines of output. - `type_in_terminal` always asks you first and shows exactly what will be typed. Vaultport switches to the terminal so you can watch. Without `run`, the command waits on the prompt for you to review and press Enter. - Terminals are covered by the host scope: with **Hosts → Selected**, only terminals of the selected hosts are visible, and local shells, ad-hoc connections and serial consoles are hidden. - Reading or typing into a local shell, an ad-hoc connection or a serial console **always asks**, whatever **Ask before** says, because they are not saved hosts you scoped agents to. **Allow for this session** covers only the one terminal you approved. - `type_in_terminal` refuses while a command is running in that terminal (when Vaultport can tell, with shell integration), so the text cannot end up in a password prompt, an editor or a REPL. It clears whatever is on the prompt before typing. - Output is recorded in memory only while the terminal is open (the last 30 commands), and never stored. ## Approvals When an agent wants to do something that needs approval, Vaultport comes to the front and shows **"<agent> wants to act"** with the tool, the host and the exact details: the full command, the path, or a preview of the content to write. Destructive actions are marked **Makes changes**. - **Deny** — the agent is told that you declined and not to retry unchanged. - **Allow once** — only this call. - **Allow for this session** — this tool on this host is allowed until the agent disconnects or the vault locks. If you do not answer within **5 minutes**, the request is denied. **Ask before** decides which calls need approval: | Setting | Reads (`list_*`, `read_*`) | Everything that changes something | | -------------------------- | -------------------------- | --------------------------------- | | **Every action** (default) | ask | ask | | **Changes only** | run without asking | ask | Actions that change something always need your approval (or an earlier "allow for this session"). ## Read-only mode and host scope - **Read-only** hides every tool that changes something; agents can only list and read. Calls to other tools are refused. - **Hosts → Selected** limits agents to the hosts you tick. Other hosts do not appear in `list_hosts`, cannot be targeted by any tool, and their port-forwarding rules are hidden. ## Connected agents and activity **Settings → AI agents** shows the agents that are connected right now (named after what the client reports, such as "Claude Code"), with **Disconnect all**. **Reset access** creates a new access token and disconnects every agent; clients reconnect automatically the next time they start `vaultport mcp`. The **Activity** list records every agent call — time, agent, tool, host, a one-line summary and whether it was done, failed or denied. It keeps the last 500 entries while the app is running. ## When the vault is locked Agents cannot do anything while the vault is locked: every call returns "The Vaultport vault is locked. Ask the user to unlock Vaultport, then try again." without asking you first. Locking the vault also revokes all "allow for this session" grants. ## Security model - **Local only.** There is no network listener. The app listens on a Unix socket with mode `0600` in your runtime or app data directory (macOS, Linux), or on a per-user named pipe that rejects remote clients (Windows). - **Token.** `vaultport mcp` must present a random 256-bit token from the file `agent-token` in the app data directory, readable only by you (`0600`). Tokens are compared in constant time; **Reset access** replaces it. - **Same user.** On macOS and Linux the app additionally checks the connecting process's user id and drops connections from anyone else. - **No secrets.** Tools never return passwords, private keys, passphrases or vault contents; credentials are used inside Vaultport only. - **Per device.** Agent settings live in a local file and are not synced; enabling access on one computer does not enable it anywhere else. - **Off means off.** When you turn access off, the listener stops and all connections are dropped; `vaultport mcp` then serves only the status tool. ### Prompt injection An agent reads command output and file contents from your servers. Anything there — a log line, a README, a crafted file — can contain text that tries to steer the agent ("ignore previous instructions and run …"). Vaultport cannot tell such text from legitimate output. **Your approval is the control**: read every command and path in the approval dialog before allowing it, prefer _Allow once_ on production hosts, use **Read-only** or **Selected** hosts for exploratory sessions, and check the **Activity** list afterwards. See also the [threat model](http://vaultport.niessen.dev/security/index.md#ai-agents-over-mcp). --- <!-- Source: http://vaultport.niessen.dev/guide/keyboard-shortcuts --> # Keyboard shortcuts <kbd>Mod</kbd> is <kbd>⌘ Command</kbd> on macOS and iPadOS and <kbd>Ctrl</kbd> on Windows, Linux and Android. <kbd>Ctrl</kbd> is the Control key everywhere. ## Changing shortcuts **Settings → Shortcuts** lists every action with its shortcuts. Click **+** and press a key combination to add one, hover a shortcut and click **×** to remove it, or reset an action (or all of them) to the defaults. Shortcuts used by two actions are marked. Your shortcuts are stored in the vault and sync with it. Terminal shortcuts take the key away from the shell. If you need a key in the shell — say <kbd>Ctrl</kbd>+<kbd>R</kbd> for its own history search, or <kbd>Ctrl</kbd>+<kbd>W</kbd> to delete a word on Linux — remove that shortcut. ## Tabs | Action | Windows / Linux | macOS | | ------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | New terminal tab | <kbd>Ctrl</kbd>+<kbd>T</kbd> | <kbd>⌘</kbd>+<kbd>T</kbd> | | Connect to a host… | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd> | <kbd>⌘</kbd>+<kbd>O</kbd>, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>N</kbd> | | Close tab | <kbd>Ctrl</kbd>+<kbd>W</kbd>, <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>W</kbd> | <kbd>⌘</kbd>+<kbd>W</kbd>, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>W</kbd> | | Reopen closed tab | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>T</kbd> | | Rename tab | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd>, or double-click it | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>R</kbd>, or double-click it | | Next tab | <kbd>Ctrl</kbd>+<kbd>Tab</kbd>, <kbd>Ctrl</kbd>+<kbd>PgDn</kbd> | <kbd>⌃</kbd>+<kbd>Tab</kbd>, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>]</kbd> | | Previous tab | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd>, <kbd>Ctrl</kbd>+<kbd>PgUp</kbd> | <kbd>⌃</kbd>+<kbd>⇧</kbd>+<kbd>Tab</kbd>, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>[</kbd> | | Move tab left / right | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>PgUp</kbd> / <kbd>PgDn</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>⌥</kbd>+<kbd>←</kbd> / <kbd>→</kbd> | | Go to tab 1–8 / last | <kbd>Ctrl</kbd>+<kbd>1</kbd>…<kbd>8</kbd> / <kbd>9</kbd> (also <kbd>Alt</kbd>) | <kbd>⌘</kbd>+<kbd>1</kbd>…<kbd>8</kbd> / <kbd>9</kbd> | | New tab with profile 1–9 | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>1</kbd>…<kbd>9</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>1</kbd>…<kbd>9</kbd> | The pinned Vault and SFTP tabs count as tabs 1 and 2. **New terminal tab** opens a local shell (in the directory of the current local tab) where the device has one, and the connection picker on phones and tablets. The shell is the [terminal profile](http://vaultport.niessen.dev/guide/terminal.md#terminal-profiles) you used last, or always the default profile if you choose so under **Settings → Terminal → Terminal profiles**. <kbd>Mod</kbd>+<kbd>Shift</kbd>+<kbd>1</kbd>…<kbd>9</kbd> opens the profiles in the order of that list (hidden ones left out); like <kbd>Mod</kbd>+<kbd>1</kbd>…<kbd>9</kbd> they cannot be changed. On macOS, <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>3</kbd>…<kbd>5</kbd> are taken by the system's screenshot shortcuts unless you turn those off. ## App | Action | Shortcut | | ------------------- | ------------------------------------------------------------------------- | | Command palette | <kbd>Mod</kbd>+<kbd>K</kbd>, <kbd>Mod</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> | | Jump to tab or host | <kbd>Mod</kbd>+<kbd>J</kbd> | | Toggle side panel | <kbd>Mod</kbd>+<kbd>.</kbd> | | Settings | <kbd>Mod</kbd>+<kbd>,</kbd> | | Lock vault | <kbd>Mod</kbd>+<kbd>Shift</kbd>+<kbd>L</kbd> | ## Terminal | Action | Windows / Linux | macOS | | ----------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------- | | Search command history | <kbd>Ctrl</kbd>+<kbd>R</kbd> | <kbd>⌃</kbd>+<kbd>R</kbd> | | Show suggestions | <kbd>Ctrl</kbd>+<kbd>Space</kbd> | <kbd>⌃</kbd>+<kbd>Space</kbd> | | Ask AI for a command | <kbd>Ctrl</kbd>+<kbd>`</kbd> | <kbd>⌃</kbd>+<kbd>`</kbd> | | Command editor | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>E</kbd> | | Previous / next command | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>↑</kbd> / <kbd>↓</kbd> | <kbd>⌘</kbd>+<kbd>↑</kbd> / <kbd>↓</kbd> | | Copy last output | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>O</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>O</kbd> | | Search in terminal | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd> | <kbd>⌘</kbd>+<kbd>F</kbd> | | Clear terminal | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>K</kbd> | | Larger / smaller / reset text | <kbd>Ctrl</kbd>+<kbd>=</kbd> / <kbd>-</kbd> / <kbd>0</kbd> | <kbd>⌘</kbd>+<kbd>=</kbd> / <kbd>-</kbd> / <kbd>0</kbd> | | Copy selection | <kbd>Ctrl</kbd>+<kbd>C</kbd>, <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>C</kbd> | <kbd>⌘</kbd>+<kbd>C</kbd> | | Paste | <kbd>Ctrl</kbd>+<kbd>V</kbd>, <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd> | <kbd>⌘</kbd>+<kbd>V</kbd> | While typing a command: | Key | Action | | ----------------------------------------------------------------- | ------------------------------------------ | | <kbd>Tab</kbd> | Insert the selected suggestion | | <kbd>↑</kbd> / <kbd>↓</kbd> | Choose a suggestion (while the list shows) | | <kbd>→</kbd> or <kbd>End</kbd> | Accept the grey inline suggestion | | <kbd>Ctrl</kbd>+<kbd>→</kbd> (<kbd>⌥</kbd>+<kbd>→</kbd> on macOS) | Accept its next word | | `# what you want` + <kbd>Enter</kbd> | Ask the local AI for a command | macOS also has the usual line editing keys: <kbd>⌘</kbd>+<kbd>←</kbd>/<kbd>→</kbd> (start / end of line), <kbd>⌥</kbd>+<kbd>←</kbd>/<kbd>→</kbd> (previous / next word), <kbd>⌘</kbd>+<kbd>⌫</kbd> (delete to the start of the line) and <kbd>⌥</kbd>+<kbd>⌫</kbd> (delete a word). Outside macOS, <kbd>Ctrl</kbd>+<kbd>C</kbd> works as in Windows Terminal: with text selected it copies it and clears the selection, so the next <kbd>Ctrl</kbd>+<kbd>C</kbd> goes to the program again (to interrupt it); without a selection it always goes to the program. On macOS <kbd>⌃</kbd>+<kbd>C</kbd> always interrupts. Pasting with <kbd>Ctrl</kbd>+<kbd>V</kbd> uses bracketed paste when the program supports it, so a pasted multi-line command does not run line by line. You can also enable **Copy on select** and **Right-click to paste** in **Settings → Terminal**. On macOS, **Use Option as Meta key** (on by default) sends <kbd>⌥ Option</kbd> combinations as Meta/Alt to the shell. ## SFTP With a file list focused (click an entry, or <kbd>Tab</kbd> to it): | Key | Action | | ------------------------------------------------------------- | ----------------------------------------------- | | <kbd>↑</kbd> / <kbd>↓</kbd>, <kbd>Home</kbd> / <kbd>End</kbd> | Move to the previous / next, first / last entry | | <kbd>PgUp</kbd> / <kbd>PgDn</kbd> | Move by a page | | <kbd>Shift</kbd> + any of the above | Extend the selection | | <kbd>Mod</kbd>+<kbd>A</kbd> | Select all | | <kbd>Esc</kbd> | Clear the selection (or cancel a drag) | | <kbd>Space</kbd> / <kbd>Mod</kbd>+<kbd>Space</kbd> | Select the focused entry / add or remove it | | <kbd>Enter</kbd> | Open the folder, or edit the file locally | | <kbd>Backspace</kbd>, <kbd>Alt</kbd>+<kbd>↑</kbd> | Go to the parent folder | | <kbd>F2</kbd> | Rename the focused entry | | <kbd>Delete</kbd> | Delete the selection (asks first) | With the mouse: <kbd>Mod</kbd>+click adds or removes an entry, <kbd>Shift</kbd>+click selects a range, and dragging moves or copies the selection (see [SFTP](./sftp.md#drag-and-drop)). ## Split panes & workspaces | Action | Windows / Linux | macOS | | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | Split right | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>D</kbd>, <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>=</kbd> | <kbd>⌘</kbd>+<kbd>D</kbd> | | Split down | <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>D</kbd>, <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>-</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>D</kbd> | | Focus the pane left, right, above, below | <kbd>Alt</kbd>+<kbd>←</kbd> <kbd>→</kbd> <kbd>↑</kbd> <kbd>↓</kbd> | <kbd>⌘</kbd>+<kbd>⌥</kbd>+<kbd>←</kbd> <kbd>→</kbd> <kbd>↑</kbd> <kbd>↓</kbd> | | Next / previous pane | <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>→</kbd> / <kbd>←</kbd> | <kbd>⌘</kbd>+<kbd>]</kbd> / <kbd>[</kbd> | | Move the divider | <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>←</kbd> <kbd>→</kbd> <kbd>↑</kbd> <kbd>↓</kbd> | <kbd>⌘</kbd>+<kbd>⌃</kbd>+<kbd>←</kbd> <kbd>→</kbd> <kbd>↑</kbd> <kbd>↓</kbd> | | Maximize / restore a pane | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Enter</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>Enter</kbd> | | Close pane | <kbd>Ctrl</kbd>+<kbd>W</kbd> (in a split) | <kbd>⌘</kbd>+<kbd>W</kbd> (in a split) | | Toggle broadcast | <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>B</kbd> | <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>B</kbd> | The pane keys only act in a tab with several panes: elsewhere <kbd>Alt</kbd>+arrows still reach the shell (for example for word movement). The divider keys move the nearest divider of the focused pane in the arrow's direction, 5% at a time. On a focused divider (<kbd>Tab</kbd> to it), the arrow keys move it too. See [Split panes](http://vaultport.niessen.dev/guide/workspaces.md) for the mouse. **Duplicate tab** has no shortcut by default; it is in the tab menu and the command palette. ## Mouse and touch - **Middle-click** a tab to close it; **drag** tabs to reorder them, or onto a terminal to [split it](http://vaultport.niessen.dev/guide/workspaces.md#moving-panes); **right-click** a tab for more. - **Drag** a pane by its header to move it; **double-click** a divider to make the panes equal. - **Double-click** a tab to rename it, or the title bar to maximize or restore the window. - **Click** a command's exit-status badge for its actions. - **Double-click** a port-forwarding rule to start or stop it. - <kbd>Mod</kbd>+click a link in the terminal to open it (you are asked first). --- <!-- Source: http://vaultport.niessen.dev/guide/mobile --> # Phones & tablets Vaultport on iOS, iPadOS and Android is the same app with the same Rust core and the same vault format as on desktop. The interface adapts to the screen size. ## Layouts | Width | Layout | | -------------------- | -------------------------------------------------------------------------------------------- | | Phone (< 640 px) | A bottom tab bar with **Vault**, **Connections** and **Settings**, and full-screen terminals | | Tablet (640–1023 px) | The tabbed title bar from desktop, with the vault navigation as a compact icon rail | | Desktop (≥ 1024 px) | Full layout with labelled navigation | On an iPad with a hardware keyboard, the [keyboard shortcuts](http://vaultport.niessen.dev/guide/keyboard-shortcuts.md) work with <kbd>⌘</kbd>. ## The terminal key bar On phones, a key bar sits above the on-screen keyboard with the keys that touch keyboards lack: - <kbd>esc</kbd>, <kbd>tab</kbd>, and **sticky** <kbd>ctrl</kbd> and <kbd>alt</kbd>, which apply to the next key you tap on the bar; - arrow keys; - a **symbols** page: ``| / - ~ _ * & $ > < : " ' ` { } [ ]``; - a **function keys** page: F1–F10, PgUp, PgDn, Home, End; - buttons to make the text **larger** or **smaller**. ## Locking and privacy - **Lock when the app is in the background** is on by default, so the vault is locked as soon as you switch apps. Decrypted data is wiped from memory and open sessions are closed. - **Screen privacy:** on Android the app window is marked secure (`FLAG_SECURE`), so screenshots and screen recordings show nothing and the app switcher shows a blank preview. On iOS and iPadOS the app covers itself with a blur when it leaves the foreground, so the app switcher does not show your terminal. - The vault's Argon2id parameters are tuned for phones (64 MiB) so unlocking stays quick. **Unlock with this device** works on both platforms: on iOS and iPadOS the unlock key is kept in the Keychain with "this device only" access; on Android it is encrypted with an AES-256-GCM key inside the Android Keystore (StrongBox when available). Unlike Windows Hello and Touch ID on desktop, it is not bound to a biometric prompt. A **PIN** and opt-in **auto-unlock** are available too; security keys and passkeys are desktop-only for now. See [The vault](http://vaultport.niessen.dev/concepts/vault.md#unlocking). ## Staying connected in the background Mobile systems suspend apps in the background, which drops network connections. To keep sessions and tunnels alive: - **Android:** while at least one session or port forward is open, Vaultport runs a foreground service with a persistent notification ("1 connection is open"). Tapping it returns to the app; it disappears when the last connection closes. On Android 13 and newer, allow notifications for the service to be shown. - **iOS and iPadOS:** the app asks the system for extra background time when it leaves the foreground. iOS still suspends it after a short while, so long-running work is best done in a [Mosh](http://vaultport.niessen.dev/guide/mosh.md) session, which survives suspension and network changes. This only helps when **Lock when the app is in the background** is turned off — locking closes all sessions. Decide per device which matters more to you. > **New on mobile** > > The Android Keystore integration, the keep-alive service and screen privacy are new and have not yet been tested on many real devices. Please [report problems](https://github.com/DavidNiessen/vaultport/issues) with your device model and OS version. ## Keys on mobile - Create a **device key**: on iPhone and iPad it lives in the Secure Enclave and every login asks for Face ID or Touch ID; on Android it is a P-256 key in the Android Keystore (StrongBox when available) and every login shows the system biometric prompt. See [SSH keys & hardware keys](http://vaultport.niessen.dev/guide/keys.md#device-keys). - FIDO2 security-key enrollment over USB is a desktop feature. - Regular Ed25519/ECDSA/RSA keys from the vault work everywhere, including keys created on another device and [synced](http://vaultport.niessen.dev/guide/sync.md). ## What differs from desktop | Feature | Phones & tablets | | ------------------------ | ----------------------------------------------------------------- | | Local terminal | Not available (there is no local shell to run) | | Serial consoles | Android with a USB serial adapter; not possible on iOS and iPadOS | | System SSH agent | Desktop only | | Self-update | Install new APK/IPA versions instead | | Edit-and-upload watching | Desktop only | | Local AI | Uses the smaller model; not available on 32-bit Android devices | | AI agents (MCP) | Desktop only | Everything else — SSH, SFTP, Mosh, Telnet, port forwarding, workspaces, snippets, sync and pairing, session logs and cloud inventory — works the same. ## Serial consoles on Android Plug a USB-to-serial adapter, or a device with a USB console port, into the phone or tablet (most phones need a USB-C or USB OTG adapter), then open **Hosts → Serial**. Attached adapters appear in the port list by their USB device name, for example `/dev/bus/usb/001/002`. When you connect, Android asks whether Vaultport may use the adapter; it asks again after the adapter has been unplugged. Vaultport has its own drivers for USB CDC-ACM devices and for FTDI, Silicon Labs CP210x, WCH CH340/CH341 and Prolific PL2303 adapters, so no other app is needed. See [Serial consoles](http://vaultport.niessen.dev/guide/serial.md#android) for the details. iPhone and iPad cannot use USB serial adapters: iOS lets apps talk only to accessories certified for Apple's MFi program, and serial adapters are not among them. ## Getting your vault onto the phone The quickest way is [pairing](http://vaultport.niessen.dev/guide/sync.md#pair-a-new-device): on your computer open **Settings → Sync & backup → Pair a device**, then on the phone choose **I already have a vault → Pair with another device** and scan the QR code. Both devices must be on the same Wi-Fi; the vault is copied directly between them. On iOS, allow Vaultport to find devices on the local network when asked. --- <!-- Source: http://vaultport.niessen.dev/security/ --> # Security overview & threat model Vaultport handles private keys, passwords and access to production infrastructure. This section summarizes how it protects them. The design principles: 1. **No servers.** There is no backend, no account system and no telemetry. Nothing can be breached on our side because there is nothing on our side. 2. **Secrets never leave the Rust core.** The web UI only handles opaque identifiers; private keys and passwords are decrypted inside the core, used, and wiped. 3. **Untrusted by default.** Servers, sync storage, cloud APIs, import files and model output are all treated as potentially hostile input. 4. **Secure defaults.** Strict host-key verification, post-quantum key exchange preferred, modern algorithms only unless you opt in, no input recording. ## Assets | Asset | Where it lives | | ----------------------------------- | -------------------------------------------------------------------------------- | | Private keys, passwords, API tokens | Vault secrets (encrypted), hardware tokens, Secure Enclave / Windows Hello / TPM | | Hosts, groups, snippets, settings | Vault records (encrypted) | | Trusted host keys | Vault records (encrypted) | | Session output | Encrypted session logs on the recording device | ## Threats considered | Adversary | Mitigation | | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Someone with a copy of your vault file or backup | XChaCha20-Poly1305 encryption, Argon2id (256 MiB desktop / 64 MiB mobile) against offline guessing; optional two-factor unlock (password + security key) — see [key slots](http://vaultport.niessen.dev/security/vault-crypto.md#key-slots) | | Other programs or people using your OS account | Windows Hello / Touch ID unlock bound to TPM / Secure Enclave keys; PIN attempts limited by the app; auto-unlock is opt-in and documented as unprotected — see [key slots](http://vaultport.niessen.dev/security/vault-crypto.md#key-slots) | | Your sync storage provider or anyone with access to it | Ciphertext only; per-device hash chains detect forged, reordered, rolled-back or dropped data — see [Sync protocol](http://vaultport.niessen.dev/security/sync.md) | | A network attacker (man-in-the-middle) | Host-key verification on every hop, `@revoked` and CA support, strict KEX (Terrapin mitigation) — see [Host-key policy](http://vaultport.niessen.dev/security/host-keys.md) | | A future quantum adversary recording traffic | `mlkem768x25519-sha256` hybrid key exchange preferred by default | | A malicious or compromised SSH server | Read-only in-process agent, validated SFTP file names, no symlink following on delete, OSC 52 clipboard writes need consent | | A compromised dependency in the web UI | Secrets never reach the UI; Tauri isolation pattern, strict CSP, frozen prototypes, least-privilege capabilities — see [App isolation](http://vaultport.niessen.dev/security/app-isolation.md) | | Malicious import files | Size limits, bounded nesting, panic-free parsers, validation of every entity | | Prompt injection into an AI agent via server output | Agents never see secrets; every change needs approval in the app, read-only mode and host scope, audit log — see [below](#ai-agents-over-mcp) | | Prompt injection into the local AI | Remote text framed as data, grammar-constrained output, validation, never auto-executed | | A tampered download | SHA-256 checksums, Sigstore signatures, build-provenance attestations, SBOM — see [Supply chain](http://vaultport.niessen.dev/security/supply-chain.md) | ## AI agents over MCP [Agent access](http://vaultport.niessen.dev/guide/ai-agents.md) lets local AI tools call Vaultport over the Model Context Protocol. It is off by default and desktop-only. - **Reachability:** a `0600` Unix socket or a local-only, per-user named pipe; no network listener. Connections must present a 256-bit token from a `0600` file, and on macOS and Linux the peer's user id must match. - **Secrets:** tools never return passwords, keys or vault data. Vaultport opens connections itself, with full host-key verification. - **Authority:** the agent can only use the tools you allow (read-only mode), on the hosts you allow (host scope). Every call that changes something needs your approval in the app, with the exact command, path or content shown; approvals time out (denied) after 5 minutes; session grants end when the agent disconnects or the vault locks. A locked vault refuses all calls. - **Residual risk — prompt injection:** output from your servers (logs, files, command output) flows into the agent's context and may contain instructions aimed at the model. Vaultport cannot detect this. **Approvals are the control**: review each action, prefer _Allow once_ for anything destructive, and use read-only mode or a host allow-list when exploring. Also remember that what the agent reads is sent to wherever the AI tool runs its model. ## Out of scope - Vulnerabilities in the SSH servers you connect to. - A fully compromised operating system, or a malicious application already running with the same privileges as Vaultport. Such an attacker can read process memory while the vault is unlocked. - Denial of service by the user against their own device. ## Hardening in the Rust core - `unsafe` code is denied across the workspace. - Pure-Rust cryptography (`ring` and RustCrypto); no OpenSSL. - Secret material is held in zeroizing buffers and redacted from `Debug` output and logs. - Parsers for untrusted input are written not to panic, use bounded memory, and are covered by property-based tests. ## Read more - [Vault cryptography](http://vaultport.niessen.dev/security/vault-crypto.md) - [Sync protocol](http://vaultport.niessen.dev/security/sync.md) - [Host-key policy](http://vaultport.niessen.dev/security/host-keys.md) - [App isolation](http://vaultport.niessen.dev/security/app-isolation.md) - [AI agents (MCP)](http://vaultport.niessen.dev/guide/ai-agents.md#security-model) - [Supply chain](http://vaultport.niessen.dev/security/supply-chain.md) - [Reporting a vulnerability](http://vaultport.niessen.dev/security/disclosure.md) --- <!-- Source: http://vaultport.niessen.dev/security/vault-crypto --> # Vault cryptography This page describes the `vault` crate. For a user-level introduction see [The vault](http://vaultport.niessen.dev/concepts/vault.md). ## Primitives | Purpose | Algorithm | | ----------------- | ------------------------------------------------------- | | Record encryption | XChaCha20-Poly1305, random 192-bit nonce per encryption | | Password KDF | Argon2id v1.3 | | Subkeys | HKDF-SHA256 (salt = vault id) | | Randomness | Operating-system CSPRNG | Ciphertext blobs have the layout `version (1 byte) ‖ nonce (24) ‖ ciphertext ‖ tag (16)`. All key material lives in zeroizing buffers. ## Key hierarchy ```text master password ─Argon2id─┐ PIN ─────────────Argon2id─┤ key-store secret ─────────┤ passkey PRF output ───────┼─HKDF─▶ KEK (per slot) ──wraps──▶ vault key (random, 256-bit) Windows Hello signature ──┤ │ Secure Enclave secret ────┘ ├──▶ encrypts records and ops └──HKDF──▶ subkeys: session logs, sync segments, exports ``` - The **vault key** (VK) is generated randomly when the vault is created and never stored in the clear. - It is stored **wrapped** (encrypted) once per **key slot**. Every slot wraps the same VK, so adding, removing or changing an unlock method re-wraps the VK; it never re-encrypts the data. - Slots live in the vault header on **this device only**. They are not synced: another device of the same vault (paired or restored) has its own header and its own slots. ## Key slots Each slot has an id, a kind, a label, a creation time, optional Argon2id parameters, public metadata and the wrapped VK: ```text ikm = Argon2id(password or PIN, slot salt) kinds with a password ‖ factor kinds with a factor KEK = HKDF-SHA256(salt = "vaultport/kek/v2", ikm, info = "<vault id>|<slot id>|<kind>") blob = XChaCha20-Poly1305(KEK, VK, aad = "vaultport/vk-wrap/v2|<vault id>|<slot id>|<kind>|" ‖ hex(SHA-256(json(kdf, meta)))) ``` The AAD authenticates the slot's kind, KDF parameters and metadata (credential ids, PRF inputs, public keys, challenges), so nothing in a slot can be swapped or edited without the unwrap failing. The only unauthenticated field is a PIN slot's failure counter, which is state, not key material. | Kind | Password input | Factor | Where it can be set up | | ------------------ | --------------- | ---------------------------------------------------------------------------- | ------------------------------------- | | `password` | master password | — | everywhere | | `password-passkey` | master password | FIDO2 `hmac-secret` / WebAuthn PRF output (two-factor unlock) | desktop | | `device` | — | Windows Hello signature · Secure Enclave-unwrapped secret · OS key-store key | Windows · macOS · Linux, iOS, Android | | `pin` | PIN | 32 random bytes in the OS key store | everywhere | | `passkey` | — | FIDO2 `hmac-secret` / WebAuthn PRF output | desktop | | `auto-unlock` | — | 32 random bytes in the OS key store, opened without a prompt (opt-in) | everywhere | Rules enforced by the core: - At least one slot that can **stand alone** always remains. A PIN slot deletes itself after too many wrong PINs, so it never counts: you cannot remove the last other method, and a vault cannot be created with only a PIN. - Slot changes need the unlocked vault (the VK). Removing a slot also deletes its key-store entry and its Windows Hello or Secure Enclave key. - With two-factor unlock on, the password-only slot is **replaced** by a `password-passkey` slot, so the password alone no longer opens the vault. Several security keys can be added for two-factor unlock (each its own combined slot). ### Windows Hello (`device`, Windows) A per-vault Windows Hello key is created with `KeyCredentialManager` (RSA-2048, in the TPM when one exists). The slot stores the credential name, its public key (`BCRYPT_RSAPUBLIC_BLOB`) and a random 32-byte challenge. The factor is the key's RSASSA-PKCS1-v1_5/SHA-256 signature over `"vaultport/vault-unlock/windows-hello/v1|" ‖ challenge`: - PKCS#1 v1.5 signatures are **deterministic**, so the same challenge always gives the same signature; every signature is verified with Windows CNG against the stored public key before use. - Producing the signature needs the TPM-held private key **and** a Windows Hello gesture (face, fingerprint or Hello PIN). Nothing that opens the vault is stored in Credential Manager. - Why a signature rather than decryption: `KeyCredentialManager` (the public, safe WinRT API for Hello) can only sign. NCrypt's Passport key storage provider could decrypt, but only through undocumented UI policies and raw FFI. - Setting it up shows two Hello prompts (create the key, then sign once to derive the factor). Threat model: protects against copying the vault file and against other programs reading Credential Manager. Malware running as you can still ask for a Hello signature (Windows then shows the prompt, which you would have to approve) or wait for you to unlock and read memory. If Windows Hello is reset or the TPM is cleared, the key is gone — keep another method. ### Touch ID (`device`, macOS) A Secure Enclave P-256 key with the access control `privateKeyUsage | userPresence` (Touch ID or the Mac password) wraps 32 random bytes with ECIES (`kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM`); the slot stores the key reference and the ciphertext. Only the Secure Enclave, after Touch ID or the password, can unwrap it. The app needs the `keychain-access-groups` entitlement. **This path is compiled and reviewed but has not yet been run on a Mac.** ### Linux, iOS and Android (`device`) A random 32-byte key in the OS key store: the Secret Service on Linux (GNOME Keyring, KWallet), the iOS Keychain (this device only), or on Android encrypted with an AES-256-GCM key held in the Android Keystore (StrongBox when available). There is no biometric binding on these platforms: the store's own protection (login keyring, device lock) is what guards the key. ### PIN (`pin`) The KEK combines `Argon2id(PIN)` with a random 32-byte device secret held in the OS key store (on Windows in Credential Manager: binding the PIN to Windows Hello would turn every PIN entry into a Hello prompt). PINs have at least 4 characters; digits and letters are allowed. - The **attempt limit is enforced by the app**: the failure counter is written to the header _before_ each attempt (so killing the app mid-attempt does not save a guess), reset on success, and the 5th wrong PIN deletes the slot and its device secret. - That limit protects against someone at the keyboard. Someone with full access to your user account can copy the vault file **and** the device secret before trying, and then guess offline. Against that, only Argon2id helps: PINs use 512 MiB and 4 passes on desktop (128 MiB on phones), roughly a second per guess on a fast CPU — a 4-digit PIN falls within hours, a 6-character alphanumeric PIN takes far longer. Use a longer PIN, or no PIN, if that matters to you. ### Passkeys and security keys (`passkey`) A non-resident ES256 credential is registered under the dedicated relying party id `vaultport-vault` (never `ssh:`) with the CTAP2 `hmac-secret` extension. The slot stores the credential id and a random 32-byte PRF input; the factor is `HMAC-SHA-256(CredRandom, SHA-256("WebAuthn PRF" ‖ 0x00 ‖ input))` — the WebAuthn PRF mapping, so the raw HID path and the Windows WebAuthn API give the same output. - **User verification is always required** (the key's PIN or fingerprint): `hmac-secret` derives a different value with and without UV, so a fixed choice keeps the output stable, and it adds the key's PIN as a factor. - Several passkeys can be added. At unlock, every registered credential is offered; the key you touch answers for its own. - Transports: on Windows 11 22H2 and later (WebAuthn API v4, which takes PRF inputs) always through `webauthn.dll`, which also reaches NFC/BLE keys and phones and shows its own PIN dialog; elsewhere CTAP2 over USB HID with the PIN typed in Vaultport. Unelevated processes on older Windows builds get a clear error (no PRF in the API, no raw HID access). - Registration needs two touches: one to create the credential, one to evaluate the PRF. Threat model: the PRF output never leaves the authenticator without a touch and user verification. Anyone holding the key **and** its PIN can open a copy of the vault file. Losing the key loses this method only. ### Two-factor unlock (`password-passkey`) `ikm = Argon2id(password) ‖ PRF output`, so neither the password nor the security key alone decrypts the vault — this holds for a stolen copy of the file too. TOTP codes are deliberately not offered: a code from an authenticator app cannot take part in encrypting a file, so it would only be a check the app performs, which an offline attacker simply skips. ### Auto-unlock (`auto-unlock`) An opt-in, **no-prompt** device slot: 32 random bytes in the OS key store. Anyone who can use your OS account — and on Windows any program running as you, since Credential Manager entries are readable by the user's processes — can open the vault without a password. It is off by default, and turning it off deletes the key-store entry. Auto-unlock is used only when Vaultport starts (for the last selected vault) and when you switch to a vault. A vault you lock yourself — or that locks after inactivity or sleep — stays locked until Vaultport restarts or you unlock it with another method; the lock screen never offers auto-unlock. ### Recovery Slots are per device, so recovery always goes through something you have elsewhere: the master password, another device of the same vault (pair again), or an encrypted `.vaultport` backup. Keep at least one of them. ### Format versions Format version 2 introduced key slots. Version 1 headers (one password wrap, one device wrap, AAD `vaultport/vk-wrap/v1|<method>|<vault id>`) are still read: the password wrap becomes a version 2 password slot (fresh salt) on the first unlock with the password, and the old device wrap — a key in the OS key store opened without a prompt — becomes an **auto-unlock** slot with a new key on its first use. Pairing and encrypted backups keep their own transfer wrap of the VK, unchanged. ## Argon2id parameters | Use | Memory | Iterations | Parallelism | | ------------------------ | ------- | ---------- | ----------- | | Master password, desktop | 256 MiB | 3 | 1 | | Master password, phones | 64 MiB | 3 | 1 | | PIN, desktop | 512 MiB | 4 | 1 | | PIN, phones | 128 MiB | 4 | 1 | Parameters and the random 16-byte salt are stored in each slot (and authenticated with it). When a vault is opened, parameters read from the file are checked against hard bounds (at least 19 MiB, at most 4 GiB of memory, 1–64 iterations, 1–16 lanes), so an attacker who modifies the file cannot downgrade the KDF to make guessing cheap — or upgrade it to exhaust memory. ## Records, ops and associated data Data is stored as an append-only log of **operations** plus materialized **documents**, both encrypted with the VK. Associated data binds every ciphertext to its place: ```text ops: vaultport/op/v1|<vault id>|<op id> documents: vaultport/doc/v1|<vault id>|<record id> ``` A ciphertext copied to another record, another op or another vault fails authentication. The CRDT is a per-field last-writer-wins document: every leaf path (for example `/config/ssh/port`) is a register ordered by a hybrid logical clock `(wall ms, counter, device)`, and record deletion is a tombstone. Applying the same set of operations in any order yields the same documents. ## Secrets Passwords, private keys and tokens are separate secret records. They are decrypted only when the core needs them — for example to authenticate a connection — and never cached in memory. Secrets can be marked **local-only** (sync-target and cloud credentials are), in which case they are not replicated to other devices. ## Subkeys Other components never use the VK directly. They derive domain-separated subkeys with HKDF-SHA256 (`info = "vaultport/subkey/v1|<purpose>"` or `"vaultport/sync/<purpose>/v1"`, `salt = vault id`): - **session logs** — see [Session logs](http://vaultport.niessen.dev/guide/session-logs.md), - **sync segments** and **exports** — see [Sync protocol](http://vaultport.niessen.dev/security/sync.md). [Device pairing](http://vaultport.niessen.dev/security/sync.md#device-pairing) sends the VK itself to the new device, inside a channel keyed by SPAKE2 over the pairing code (an export carries it wrapped with the passphrase). Subkeys cannot decrypt vault records. ## What is not encrypted The vault is an SQLite file. Its schema, the vault id, the key slots (their kinds, KDF parameters, public metadata such as passkey credential ids, and wrapped keys), the number of records and their record identifiers (an entity kind and a random UUID, such as `host:…`) are visible to someone who has the file. Labels, addresses, usernames, settings and all secrets are encrypted. ## Locking Locking drops the VK and all decrypted documents from memory, closes sessions, stops port forwards and closes pooled connections. The UI locks after inactivity and, on mobile, when the app goes to the background (both configurable). --- <!-- Source: http://vaultport.niessen.dev/security/sync --> # Sync protocol The `sync` crate replicates a vault through **storage the user owns** — a synced folder, WebDAV, an S3-compatible bucket, or a Git branch. The storage is treated as **untrusted**: it may read, delete, replay or modify anything it stores. ## Layers 1. **Vault ops** are already sealed with the vault key (see [Vault cryptography](http://vaultport.niessen.dev/security/vault-crypto.md)). 2. They travel in immutable **segment files** that add an outer AEAD layer and a **per-device hash chain**. 3. Because the vault is a CRDT, segments from different devices can be applied in any order. ## Segment files ```text vault-<vault-uuid>/segments/<device-hex16>/<first:016x>-<last:016x>-<random16>.seg ``` Every device numbers its segments 1, 2, 3 … on a backend. A **delta** segment has `first == last`; a **snapshot** written by compaction has `first == 0` and contains every op the device knew. The random suffix makes names collision-free, so writers never overwrite each other. ```text file = "SSHSEG01" ‖ XChaCha20-Poly1305(segment key, aad, json(body)) aad = "vaultport/segment/v1|<vault id>|<device>|<counter>|<delta|snapshot>" body = { vault, device, counter, kind, prev = SHA-256(previous file of this device), ops, covers? } ``` - The segment key is an HKDF subkey of the vault key. - The AAD is reconstructed from the **file name**, so renaming a segment to another device, counter or kind makes it fail authentication. - `prev` links each segment to the complete previous file of the same device, forming a hash chain. - Object names are restricted to `[A-Za-z0-9._-]` path segments, so a hostile listing cannot cause path traversal in any backend. ## Integrity checks For each device, the engine remembers the newest verified `(counter, hash)`. While syncing it reports — and does not apply anything suspicious from that device: | Issue | Meaning | | ------------ | ------------------------------------------------------------------------------------------------- | | **Gap** | A segment is missing in the middle of a device's chain (truncation, or a file not yet propagated) | | **Rollback** | The storage shows an older state of a device than this device has already seen | | **Tampered** | A segment fails authentication or validation | | **Fork** | Two different segments claim the same position in a device's chain (e.g. a restored backup) | Other devices continue to sync. If this device's own uploads were rolled back, its next upload is a full snapshot that re-seeds the storage. **Limitation:** hiding the newest segments of a device (tail truncation) cannot be detected by a device that has never seen them; a device that has seen them reports a rollback. ## Compaction Compaction first syncs, then writes a snapshot containing all ops this device has applied, recording for every other device the head it covers. Only after the snapshot is stored are older segments deleted: always this device's own, and other devices' only when explicitly requested, when the preceding sync reported no issue, and only up to the covered head. Readers that later meet such a gap apply the snapshot first, which keeps every chain verifiable. ## Backends | Backend | Notes | | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Folder | Atomic writes (temporary file, flush, rename); create-only writes via hard links; sync-tool conflict copies are skipped | | WebDAV | `PROPFIND`, conditional `PUT` (`If-None-Match` / `If-Match`), Basic authentication over rustls, redirects not followed | | S3 | AWS Signature V4, any S3-compatible endpoint over HTTPS, conditional writes | | Git | Pure Rust (`gix`), one branch (`refs/heads/vaultport-sync`), set-of-files three-way merge that is always conflict-free. Smart protocol v0 over an exec channel of the app's SSH engine (same authentication and host-key verification as host connections); pushes are compare-and-swap on the old branch value, so a concurrent push is detected and re-merged | ## Encrypted export (`.vaultport`) ```text "VAULTPRT" ‖ version u16 ‖ header length u32 ‖ header JSON ‖ payload header = { vaultId, kdf: { memoryKib, iterations, parallelism, salt }, createdAt, opCount, wrappedKey } payload = XChaCha20-Poly1305(export key, "vaultport/export/v1|" ‖ SHA-256(header), json([SealedOp])) ``` `wrappedKey` is the vault key wrapped with `Argon2id(passphrase)`. Any change to the header or payload is detected. Because the payload contains the vault's own sealed ops, an imported file is the same CRDT replica and can keep syncing with the original devices. ## Device pairing Pairing copies the vault from the device that has it (the **offering device**, A) to a new device (the **joining device**, B) directly over the local network. No sync storage is involved; if A has a sync target, its settings and secret travel along so B keeps syncing. ### Offer A binds a TCP listener on a random port on its LAN addresses (private IPv4 first, then IPv6 unique-local and global; loopback, link-local and container/VM adapters are left out; at most six) **only while the pairing screen is open**: it closes after one successful transfer, after 10 minutes, after three wrong codes, or when the screen is closed. A shows: - a **QR payload** (also available as copyable pairing text): `vaultport-pair:2:` ‖ base64url(JSON `{ version, vaultId, nonce, expiresAt, port, addrs }`). It contains **no key material**. - separately, an 8-character **pairing code** (40 bits of OS randomness, e.g. `K7QM-2XPA`). ### Handshake B connects to all advertised addresses at once and uses the first that answers (trying the next if a connection turns out not to be A). Every frame is `u32 length ‖ body`. ```text binding = SHA-256("vaultport/pairing/v2/offer" ‖ version ‖ vault id ‖ nonce ‖ expiry ‖ port ‖ addresses) pw = HKDF-SHA256(salt = binding, ikm = code, info = "vaultport/pairing/v2/password") B → A "VPPAIR" ‖ 0x02 ‖ nonce ‖ SPAKE2(pw) message A → B 0x00 ‖ SPAKE2(pw) message ‖ confirm_A (0x01: unknown or expired offer) B → A confirm_B th = SHA-256("vaultport/pairing/v2/transcript" ‖ binding ‖ hello ‖ A's message) keys = HKDF-SHA256(salt = th, ikm = SPAKE2 key) → confirm_A, confirm_B, key A→B, key B→A ``` SPAKE2 (Ed25519 group, RustCrypto `spake2`) is a password-authenticated key exchange: both sides derive the same key only if they used the same code and the same QR payload, and neither the transcript nor a confirmation lets anyone test other codes offline. Confirmations are compared in constant time. B stops at a wrong `confirm_A`; A reads nothing from the vault before `confirm_B` checks out. ### Transfer Every later frame is `ChaCha20-Poly1305(key of its direction, nonce = 0⁴ ‖ frame counter, type ‖ body)`: ```text A → B MANIFEST { vaultId, vaultKey, opCount, totalBytes, backend, backendSecret } A → B OPS json([SealedOp]) ≈ 512 KiB each A → B DONE B → A ACK ``` The ops are the vault's own sealed operations — the same format as sync segments and `.vaultport` exports, still encrypted with the vault key — so B becomes a replica of the same vault (same vault id, its own device id) that can sync with A through any target later. Only syncable operations are sent: data marked device-local (device-local secrets and settings, such as each device's sync targets and their credentials) never leaves A, except the sync target secret the app includes explicitly. B treats everything as untrusted, also after authentication: frames are at most 1 MiB, the manifest at most 256 KiB and the transfer at most 256 MiB (10 million ops), checked before allocating; the vault id must match the QR payload; byte and op counts must match the manifest exactly; duplicate ops are refused; the data counts only after `DONE`. Building the replica authenticates every op with the vault key, and nothing is stored if any check fails. ### Threat model | Attacker | Outcome | | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Passive, on the network (sees all traffic and the QR code) | Learns nothing: the payload has no key material, and SPAKE2 session keys cannot be computed from a transcript, even with the code | | Active, on the network or impostor (also saw the QR code) | One online guess of the 40-bit code per connection. A counts a guess whenever it answered a hello without receiving a valid `confirm_B` and stops listening after **three**; B stops at the first wrong confirmation. Success probability: a few in 2⁴⁰ (≈ 10⁻¹²) | | Edits the QR payload (addresses, expiry, nonce) | Changes the binding, so the handshake fails. Redirecting B to itself gives the attacker one guess | | Tampers with, replays, reorders or truncates frames | Detected by the AEAD with per-direction counters and the explicit end message | | Sees both the QR code and the code (shoulder surfing) | Can pair instead of your device if it reaches A first. Pair in private; codes expire after 10 minutes and A stops after one transfer | | Floods A with connections | Delays pairing (one connection at a time, 15 s handshake timeout); garbage does not count as a guess | Expiry is checked by both devices. A connection whose nonce belongs to an older offer is told so without using up a guess. --- <!-- Source: http://vaultport.niessen.dev/security/host-keys --> # Host-key policy & algorithms The `ssh-engine` crate decides; the app stores the known hosts in the vault and shows the prompts. For the user-facing description see [Known hosts](http://vaultport.niessen.dev/guide/known-hosts.md). ## Decision order For every hop of a connection: 1. Select the known-hosts entries that match the host and port, including OpenSSH hashed patterns (`|1|salt|hash`, checked by recomputing `HMAC-SHA1(salt, hostname)`). 2. If the presented key — or, for a host certificate, the certified key or the CA key — is listed under **`@revoked`**, the connection fails **without** asking. 3. A **host certificate** signed by a matching **`@cert-authority`** key is accepted when it is a host certificate, currently valid, its signature verifies, it lists the host among its principals and it carries no critical options. 4. A plain entry with the same key data → **trusted**. 5. Plain entries exist but none matches → **changed** (for any key type — see below). 6. Otherwise → **unknown**: ask the user, or refuse under the _strict_ policy. Algorithm negotiation prefers the host-key types already known for a host, so a server that suddenly presents a different type is treated as a changed key rather than a new one. ## Default algorithms Most preferred first. | Kind | Algorithms | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Key exchange | `mlkem768x25519-sha256` (post-quantum hybrid, when enabled — the default), `curve25519-sha256`, `curve25519-sha256@libssh.org`, `ecdh-sha2-nistp256/384/521`, `diffie-hellman-group-exchange-sha256`, `diffie-hellman-group16-sha512`, `diffie-hellman-group18-sha512`, `diffie-hellman-group14-sha256` | | Host key | `ssh-ed25519`, `ecdsa-sha2-nistp256/384/521`, `rsa-sha2-512`, `rsa-sha2-256`, plus the `*-cert-v01@openssh.com` variants when a `@cert-authority` is known for the host | | Cipher | `chacha20-poly1305@openssh.com`, `aes256-gcm@openssh.com`, `aes128-gcm@openssh.com`, `aes256-ctr`, `aes192-ctr`, `aes128-ctr` | | MAC | `hmac-sha2-512-etm@openssh.com`, `hmac-sha2-256-etm@openssh.com`, `hmac-sha2-512`, `hmac-sha2-256` (unused with AEAD ciphers) | | Compression | `none`, or `zlib@openssh.com`, `zlib` when compression is enabled | `mlkem768x25519-sha256` is the OpenSSH 9.9+ default. `sntrup761x25519-sha512` is not offered because the underlying `russh` library does not implement it. The **strict key exchange** marker (`kex-strict-c-v00@openssh.com`, the mitigation for the Terrapin attack) and `ext-info-c` are always sent. ## Legacy algorithms Enabling **Allow legacy algorithms** for a host appends `diffie-hellman-group14-sha1`, `diffie-hellman-group-exchange-sha1`, `ssh-rsa` (SHA-1 signatures), `aes256/192/128-cbc`, `hmac-sha1-etm@openssh.com` and `hmac-sha1` — always **after** the secure choices, so they are only used when the server offers nothing better. ## Cryptographic implementation The SSH engine is built on [`russh`](https://github.com/Eugeny/russh) with pure-Rust cryptography (`ring` and RustCrypto), without OpenSSL, so the same code runs on desktop and mobile. --- <!-- Source: http://vaultport.niessen.dev/security/app-isolation --> # App isolation Vaultport's UI is a web application (React) running in the system webview through [Tauri 2](https://v2.tauri.app/). Web UIs pull in many dependencies, so the design assumes a UI dependency _could_ be compromised and limits what it could do. ## Secrets stay in the core The most important rule: **secrets never cross the IPC boundary**. The UI works with opaque identifiers — "connect host `0190…`", "use key `0191…`" — and the Rust core resolves them, decrypts what it needs, and wipes it after use. Passwords you type into a prompt are handed to the core and not kept by the UI. Even a fully compromised UI cannot read your private keys out of the vault through IPC, because no command returns them. All IPC commands are typed: TypeScript bindings are generated from the Rust command signatures, so the UI and core agree on every payload. ## Isolation pattern The app uses Tauri's [isolation pattern](https://v2.tauri.app/concept/inter-process-communication/isolation/). Every IPC message from the UI first passes through a sandboxed iframe that runs a small hook before the message is encrypted and handed to the core. The hook rejects: - payloads that are not objects, - command names that do not match `^(plugin:[a-z0-9-]+\|)?[a-z0-9_]+$`, - JSON payloads larger than 8 MiB. ## Content Security Policy The production webview runs with a strict CSP: ```text default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: asset: http://asset.localhost; font-src 'self' data:; connect-src ipc: http://ipc.localhost; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; worker-src 'self' blob: ``` Notably, `connect-src` only allows IPC: **the UI cannot talk to the internet at all**. Every network connection — SSH, sync, cloud APIs, the model download — is made by the Rust core. Scripts can only come from the app bundle; there is no remote code. `freezePrototype` is enabled, which freezes JavaScript built-in prototypes against prototype-pollution attacks. ## Least-privilege capabilities The main window is granted only the Tauri permissions it needs: window controls (minimize, maximize, close, drag, fullscreen), OS information, opening URLs, open/save/message dialogs, clipboard text read and write, and restarting the app after an update. Desktop builds additionally get the updater and window-state permissions. There is no general file-system or shell access from the UI. ## Other safeguards - **Links** printed in the terminal open only after confirmation. - **OSC 52** clipboard writes from remote programs are _Ask_ by default. - The **local terminal** is only available on desktop and runs your own shell. - On macOS, the app is built with the **hardened runtime**. --- <!-- Source: http://vaultport.niessen.dev/security/supply-chain --> # Supply chain ## Dependencies - **Rust:** [`cargo-deny`](https://embarkstudios.github.io/cargo-deny/) runs in CI and rejects crates with known security advisories, yanked versions, licenses that are not compatible with GPL-3.0-or-later, wildcard version requirements, unknown registries and any Git dependency. OpenSSL (`openssl-sys`) is banned outright; TLS uses rustls. - **JavaScript:** dependencies are locked with `pnpm-lock.yaml`; only explicitly allowed packages may run install scripts. - **Updates:** Dependabot proposes Cargo, npm, GitHub Actions and Gradle updates weekly or monthly, grouped so they can be reviewed together. - **Toolchain:** the Rust version is pinned in `rust-toolchain.toml`; Node.js and pnpm versions are pinned in `package.json`. - **CI actions** are pinned by full commit SHA, not by mutable tags. - **Licensing:** the repository follows the [REUSE](https://reuse.software/) specification; every source file carries an SPDX license identifier. ## Code - `unsafe` Rust is denied across the workspace. - Clippy runs in pedantic mode with warnings as errors; `unwrap()` is flagged. - Protocol engines are tested against real OpenSSH servers in Docker; parsers have property-based tests. ## Optional downloads at runtime The only file Vaultport downloads on its own initiative is the [local AI model](http://vaultport.niessen.dev/guide/local-ai.md), and only after you ask for it. Each model is pinned to an immutable Hugging Face commit with its exact size and SHA-256; anything else is rejected. Updating a model is a reviewed code change. ## Releases Every release is built by GitHub Actions from a tagged commit (`.github/workflows/release.yml`). Each release ships with: | What | How to check it | | -------------------------------------- | --------------------------------------------------------------------------- | | `SHA256SUMS.txt` covering every file | `sha256sum -c SHA256SUMS.txt --ignore-missing` | | Keyless Sigstore signature of the sums | `cosign verify-blob SHA256SUMS.txt --bundle SHA256SUMS.txt.sigstore.json …` | | GitHub build provenance for every file | `gh attestation verify <file> --repo DavidNiessen/vaultport` | | SBOM | `sbom.spdx.json` (SPDX, generated with Syft) attached to the release | The full commands are on the [download page](http://vaultport.niessen.dev/download.md#verify-your-download). The desktop self-updater additionally verifies each update's signature against the project's public key before installing it. See also the [release process](http://vaultport.niessen.dev/development/releasing.md). --- <!-- Source: http://vaultport.niessen.dev/security/disclosure --> # Reporting a vulnerability **Please do not open a public issue for security problems.** Report vulnerabilities privately through [GitHub Security Advisories](https://github.com/DavidNiessen/vaultport/security/advisories/new). Include: - the affected version(s) and platform(s), - a description of the issue and its impact, - steps to reproduce or a proof of concept, - any suggested mitigation. ## What happens next | Step | Target | | ---------------------------- | ------------------- | | Acknowledgement | within **72 hours** | | Initial assessment | within **7 days** | | Fix for high/critical issues | within **30 days** | You will be kept informed and credited in the advisory unless you prefer to stay anonymous. ## Supported versions | Version | Supported | | -------------- | -------------------------------- | | Latest release | Yes | | Previous minor | Security fixes only, for 90 days | | Anything older | No | ## Scope In scope: - the desktop and mobile applications in the repository, - the Rust crates under `crates/` and native plugins, - the release pipeline (build provenance, signing, updater manifests). Out of scope: - vulnerabilities in SSH servers you connect to, - issues that require a fully compromised operating system or a malicious, already-installed application with the same privileges as Vaultport, - denial of service by the user against their own device. The canonical version of this policy is [`SECURITY.md`](https://github.com/DavidNiessen/vaultport/blob/main/SECURITY.md) in the repository. --- <!-- Source: http://vaultport.niessen.dev/development/building --> # Build from source ## Prerequisites | Tool | Version | | --------------------------------- | ------------------------------------------------------------------- | | Rust | pinned in `rust-toolchain.toml` (installed automatically by rustup) | | Node.js | 22.12 or newer | | pnpm | 10 (`corepack enable`) | | Docker | for the protocol integration tests | | CMake, a C/C++ compiler, libclang | for the on-device AI engine (llama.cpp), enabled by default | Platform build dependencies follow the [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/). On Debian or Ubuntu: ```bash sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev \ libssl-dev libayatana-appindicator3-dev librsvg2-dev libudev-dev ``` For mobile targets you additionally need Android Studio (SDK and NDK) and, on macOS, Xcode. ## Get the code and run it ```bash git clone https://github.com/DavidNiessen/vaultport.git cd vaultport pnpm install pnpm dev # desktop app with hot reload ``` Mobile development builds: ```bash pnpm --filter @vaultport/desktop tauri android dev pnpm --filter @vaultport/desktop tauri ios dev ``` A release build for your platform: ```bash pnpm build # = pnpm --filter @vaultport/desktop tauri build ``` The UI also runs in a plain browser (`pnpm --filter @vaultport/desktop dev`) against a mock backend, which is handy for UI work and screenshots. ### Without local AI The `local-ai` cargo feature (default) compiles llama.cpp from source. To build without it — for example when CMake is not available — disable the app's default features: ```bash cargo build -p vaultport --no-default-features ``` The app then reports local AI as unavailable; everything else works. On Apple silicon, the `metal` feature enables GPU offload. ## Quality gates All of these run in CI and must pass before a merge: ```bash pnpm format:check # prettier pnpm lint # eslint (zero warnings) pnpm typecheck # tsc --noEmit pnpm test # vitest cargo fmt --all --check cargo clippy --workspace --all-targets -- -D warnings cargo test --workspace cargo deny check ``` Protocol integration tests use throw-away OpenSSH servers in Docker: ```bash docker compose -f docker/test-servers/compose.yml up -d --build cargo test -p ssh-engine --features integration -- --test-threads=1 cargo test -p sftp-engine --features integration ``` ## This website The site lives in `docs/` and is built with [VitePress](https://vitepress.dev/): ```bash pnpm --filter @vaultport/docs dev # live preview pnpm --filter @vaultport/docs build # static output in docs/.vitepress/dist pnpm --filter @vaultport/docs preview # serve the build ``` The build also writes `llms.txt`, `llms-full.txt`, `robots.txt` and a Markdown copy of every page. Set `DOCS_BASE=/` to build for a custom domain instead of `/vaultport/`. --- <!-- Source: http://vaultport.niessen.dev/architecture --> # Architecture Vaultport is a monorepo with a Cargo workspace (`crates/*` and the Tauri app) and a pnpm workspace (`apps/*`, `docs`). ```text apps/desktop/ Tauri 2 app (desktop + iOS + Android) ├── src/ React 19 + TypeScript UI (Tailwind, xterm.js, i18n: English, German) ├── isolation/ Tauri isolation hook that screens every IPC message └── src-tauri/ Rust app shell: commands, sessions, key store, connection pool crates/ ├── core-model domain model and configuration inheritance (pure, no I/O) ├── vault encrypted local vault, CRDT op log on SQLite ├── ssh-engine SSH client: jump hosts, proxies, host keys, auth, forwarding ├── sftp-engine file systems, transfer queue, edit-and-upload ├── mosh-proto native Mosh client ├── telnet-proto Telnet client ├── serial-io serial console sessions ├── term-intel shell integration, history, autocomplete, risk rating ├── session-log encrypted asciicast recordings ├── sync serverless sync, export, pairing ├── importers OpenSSH, known_hosts, PuTTY, MobaXterm, SecureCRT, CSV ├── cloud-inventory AWS, DigitalOcean, Azure inventory ├── hw-keys FIDO2 and platform-bound keys ├── local-ai optional on-device command generation └── mcp-server minimal Model Context Protocol server (tools over JSON-RPC) plugins/mobile/ native Android (Kotlin) and iOS (Swift) services docs/ this website (VitePress) docker/test-servers/ OpenSSH servers for integration tests ``` ## Layers ```text ┌──────────────────────────── React UI ────────────────────────────┐ │ views, xterm.js terminals, state (zustand, TanStack Query), i18n │ └──────────────── typed IPC (tauri-specta bindings) ───────────────┘ ▲ opaque ids, never secrets ▼ ┌──────────────────────── src-tauri (app shell) ───────────────────┐ │ commands · session manager · connection pool · key store · logs │ └──────────────────────────────────────────────────────────────────┘ ▼ ┌──────────────────────────── Rust crates ─────────────────────────┐ │ vault · ssh-engine · sftp-engine · mosh · telnet · serial · sync │ │ importers · cloud-inventory · hw-keys · term-intel · local-ai │ └──────────────────────────────────────────────────────────────────┘ ``` The crates are **app-agnostic**: storage, prompts and platform services are injected through traits, so each can be tested on its own. Protocol cores are **sans-IO** state machines with a thin tokio driver on top, which makes them deterministic to test. ## Crates ### `core-model` Hosts, groups, identities, keys, snippets, port-forward rules, known hosts, cloud integrations and their validation. Groups carry a sparse `HostConfig`; `resolve` computes a host's effective configuration per parameter from the closest ancestor. Pure data and logic — no I/O, no crypto, no secrets (those are referenced through `SecretRef`). See [Groups & inheritance](http://vaultport.niessen.dev/concepts/groups-and-inheritance.md). ### `vault` Envelope encryption (XChaCha20-Poly1305, key slots: Argon2id password and PIN wraps, device, passkey and two-factor wraps), a per-field last-writer-wins CRDT ordered by hybrid logical clocks, stored as an op log plus materialized documents in SQLite. Secrets are separate records decrypted on demand. See [Vault cryptography](http://vaultport.niessen.dev/security/vault-crypto.md). ### `ssh-engine` Built on `russh` with `ring` and RustCrypto. Provides `connect` through HTTP CONNECT / SOCKS5 proxies and any number of jump hosts, strict known-hosts verification with certificates and revocation, ordered authentication with partial success, shells, exec, SFTP channels, local/remote/dynamic forwarding and a read-only in-process agent. The app plugs in `Interaction` (prompts), `KnownHosts` (storage) and `ExternalSigner` (hardware keys). ### `sftp-engine` One async `FileSystem` trait over the local disk and SFTP, a `TransferQueue` with concurrency limits, resumable part files and conflict policies, and edit-and-upload sessions with change detection. Server-supplied names are validated before use. ### `mosh-proto` A native Mosh client, wire-compatible with `mosh-server` 1.3/1.4: AES-128-OCB3 datagrams, fragmentation and zlib, the State Synchronization Protocol, RTT estimation and roaming. ### `telnet-proto` A sans-IO RFC 854 codec with RFC 1143 option negotiation (ECHO, SGA, BINARY, TERMINAL-TYPE, NAWS, NEW-ENVIRON) and a tokio session. ### `serial-io` Port enumeration with USB details, validated line settings, and sessions over native ports or app-provided transports. ### `term-intel` Deterministic terminal intelligence: shell-integration escape-sequence parsing (OSC 7, 133, 633, 1337) and password-prompt detection, command blocks recorded from the output stream (used by AI agents and the local AI), bash/zsh/fish integration scripts, history import with frecency ranking, the autocomplete engine with about 300 built-in command specs, fuzzy matching, commands found on the machine and environment variables, generators that turn small files (git refs, `package.json`, Makefiles, `/etc/passwd`, SSH config, systemd units) into argument values, and command risk rating. The app reads those files over the local disk or an SFTP channel of the terminal's SSH connection. ### `session-log` Encrypted, chunked asciicast v2 recording with tamper detection, search, export, crash recovery and retention policies. ### `sync` Serverless sync through folder, WebDAV, S3 and Git backends with encrypted, hash-chained segment files, integrity issue reporting and compaction; encrypted `.vaultport` export; QR-code pairing that copies the vault over the local network (SPAKE2 + ChaCha20-Poly1305). See [Sync protocol](http://vaultport.niessen.dev/security/sync.md). ### `importers` Pure parsers for OpenSSH `ssh_config` and `known_hosts`, PuTTY registry exports, MobaXterm, SecureCRT XML and CSV, producing validated `core-model` entities with secrets kept separate. ### `cloud-inventory` Read-only clients for AWS EC2/Lightsail (own SigV4 signer), DigitalOcean and Azure Resource Manager, plus three-way reconciliation of an inventory with a group's hosts. ### `hw-keys` FIDO2 `sk-*` keys over CTAP2/USB HID and platform-bound keys (Secure Enclave, Windows Hello, Android Keystore bridge, TPM 2.0 on Linux), all exposed as one `HardwareSigner` that returns verified SSH signatures. ### `local-ai` A pinned model catalog, a verifying resumable downloader, a llama.cpp engine behind the `llama` feature, grammar-constrained prompting and output validation. See [Local AI](http://vaultport.niessen.dev/guide/local-ai.md). ### `mcp-server` A small, dependency-light [Model Context Protocol](https://modelcontextprotocol.io) server: the lifecycle (`initialize`, `ping`), `tools/list` and `tools/call` with concurrent requests and cancellation, over newline-delimited JSON-RPC on any async stream (stdio, a Unix socket or a named pipe). The app implements the tools; see [AI agents](http://vaultport.niessen.dev/guide/ai-agents.md). ## The app shell (`src-tauri`) - **Commands** for vault lifecycle, entities, sessions, files, forwarding, keys, logs, import, cloud, sync, AI and updates. TypeScript bindings are generated with `tauri-specta`. - A **session manager** runs SSH, Mosh, Telnet, serial and local PTY sessions and streams their events to the UI. - A **connection pool** shares SSH connections between SFTP panes and port forwards. - The **unlock** module turns Windows Hello, Touch ID, PINs, security keys (hmac-secret) and the OS key store into vault key slots, and keeps the registry of vaults on the device; the **key store** module keeps PIN device secrets, auto-unlock keys and (Linux, mobile) device unlock keys in Keychain, Credential Manager or Secret Service, and on Android through the mobile plugin. - The **mobile plugin** (`plugins/mobile`, Kotlin and Swift) provides the Android Keystore secure store and hardware keys, the Android keep-alive foreground service and screen privacy. It exposes no commands to the web UI. - The **agent** module serves AI agents over the Model Context Protocol (see [AI agents](http://vaultport.niessen.dev/guide/ai-agents.md)); `vaultport mcp` is the stdio relay that MCP clients start. - **Recorders** write session logs and collect command history. ## The UI (`apps/desktop/src`) React 19 with TypeScript, Tailwind CSS 4, Radix primitives, xterm.js 6 (WebGL renderer), zustand and TanStack Query, and i18next with English and German translations. Feature folders (`features/hosts`, `features/sftp`, `features/sync`, …) map to the screens; the custom title bar adapts to macOS, Windows and Linux, and the shell switches between phone, tablet and desktop layouts. --- <!-- Source: http://vaultport.niessen.dev/development/contributing --> # Contributing Thanks for helping build a secure, serverless SSH client! The canonical guide is [`CONTRIBUTING.md`](https://github.com/DavidNiessen/vaultport/blob/main/CONTRIBUTING.md); this page summarizes it. ## Ground rules - Follow the [Code of Conduct](https://github.com/DavidNiessen/vaultport/blob/main/CODE_OF_CONDUCT.md). - Security issues go through the [private reporting process](http://vaultport.niessen.dev/security/disclosure.md), never public issues. - Every feature must work **without a server operated by this project**. - Secrets (keys, passwords, tokens) must never cross the IPC boundary into the web UI. - No telemetry. The app only talks to hosts the user configured, plus clearly disclosed, optional endpoints (update checks, model download). - Insecure options exist only as explicit, per-host opt-ins. ## Workflow 1. Fork the repository and create a topic branch. 2. Set up your environment as described in [Build from source](http://vaultport.niessen.dev/development/building.md). 3. Keep pull requests focused: one logical change per PR. 4. Add tests. New parsers and decoders also need a fuzz target. 5. Update the documentation in `docs/` when behaviour changes. 6. Fill in the pull-request template, including its security checklist. All [quality gates](http://vaultport.niessen.dev/development/building.md#quality-gates) must pass in CI. ## Commit messages Vaultport uses [Conventional Commits](https://www.conventionalcommits.org/). Releases, version bumps and the changelog are generated from them. ```text feat(sftp): resume interrupted uploads fix(vault): reject records with mismatched AAD docs: describe sync pairing flow ``` Allowed types: `feat`, `fix`, `perf`, `refactor`, `docs`, `test`, `build`, `ci`, `chore`, `style`, `revert`. Breaking changes use `!` (for example `feat(vault)!: …`) and a `BREAKING CHANGE:` footer. ## Developer Certificate of Origin By contributing you certify the [DCO](https://developercertificate.org/). Sign off each commit with `git commit -s`. ## Licensing Vaultport is licensed under **GPL-3.0-or-later**, and by contributing you agree that your contributions are licensed the same way. Source files carry an SPDX header: ```ts // SPDX-License-Identifier: GPL-3.0-or-later ``` New dependencies must use a license compatible with GPL-3.0-or-later; `cargo deny` enforces this for Rust crates. ## Governance Maintainers review and merge pull requests, triage issues, cut releases and handle security reports. Larger changes — new protocols, storage format changes, cryptography, new network-facing features — start as an Architecture Decision Record and need maintainer approval. See [`GOVERNANCE.md`](https://github.com/DavidNiessen/vaultport/blob/main/GOVERNANCE.md). --- <!-- Source: http://vaultport.niessen.dev/development/releasing --> # Release process Releases are fully automated by GitHub Actions. This page describes the workflows in `.github/workflows/` as they are. ## Workflows at a glance | Workflow | Trigger | What it does | | ----------------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ci.yml` | pushes to `main`, pull requests, merge queue | Prettier, ESLint, `tsc`, Vitest, Playwright (mocked core), `cargo fmt`/`clippy`/`test`, generated bindings check, `cargo deny`, `pnpm audit`, gitleaks, dependency review, Conventional Commits check | | `build.yml` | pushes to `main`, app pull requests | Unsigned test bundles (Linux x64, Windows x64, macOS arm64) and a debug Android APK as workflow artifacts (kept 7 days) | | `release-please.yml` | pushes to `main`, manual | Maintains the release pull request; when it is merged, tags the release and calls `release.yml` | | `release.yml` | called by release-please, or manual with an existing tag | Builds, signs and uploads all platforms, then publishes checksums, signature, SBOM and attestations | | `docs.yml` | `docs/` changes on `main`, pull requests, releases, manual, callable | Builds this website and deploys it to GitHub Pages | | `integration.yml` | protocol pull requests, nightly, manual | SSH/SFTP engine tests against OpenSSH in Docker, Telnet and Mosh protocol tests | | `fuzz.yml` | parser pull requests, nightly, manual | `cargo-fuzz` targets for the parsers | | `codeql.yml`, `scorecard.yml` | pushes, pull requests (CodeQL) and weekly | Static analysis and OpenSSF Scorecard | ## Versioning with release-please [release-please](https://github.com/googleapis/release-please) reads the [Conventional Commits](http://vaultport.niessen.dev/development/contributing.md#commit-messages) on `main` and keeps a release pull request open with the next version and a generated `CHANGELOG.md`. - Configuration: `release-please-config.json` (release type `simple`, tags `v<version>`), current version in `.release-please-manifest.json`. - Before 1.0, `feat` commits bump the minor version (`bump-minor-pre-major`) and everything else the patch version. - The version is written to the root `Cargo.toml` (`workspace.package.version`), `apps/desktop/package.json` (which `tauri.conf.json` reads) and `docs/package.json`. - Changelog sections: Features, Bug Fixes, Performance, Security and Documentation; other types are hidden. Merging the release pull request creates the tag and GitHub release, and the `release` job of `release-please.yml` calls `release.yml` with the tag and version. To rebuild an existing tag by hand, run **Actions → Release → Run workflow** with the tag (for example `v0.1.0`) and the version (`0.1.0`). ## What `release.yml` builds | Job | Runner | Output | | ------------------------------------------ | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Desktop (Linux x64) | `ubuntu-24.04` | `vaultport_<v>_amd64.AppImage`, `vaultport_<v>_amd64.deb`, `vaultport-<v>-1.x86_64.rpm` | | Desktop (Linux arm64) | `ubuntu-24.04-arm` | `vaultport_<v>_aarch64.AppImage`, `vaultport_<v>_arm64.deb`, `vaultport-<v>-1.aarch64.rpm` | | Desktop (Windows x64) | `windows-2025` | `vaultport_<v>_x64-setup.exe`, `vaultport_<v>_x64_en-US.msi`, `vaultport_<v>_x64_de-DE.msi` | | Desktop (Windows arm64) | `windows-11-arm` | `vaultport_<v>_arm64-setup.exe`, `vaultport_<v>_arm64_en-US.msi`, `vaultport_<v>_arm64_de-DE.msi` | | Desktop (macOS universal) | `macos-15` | `vaultport_<v>_universal.dmg` (built with Metal GPU support for local AI) | | Android | `ubuntu-24.04` | `vaultport_<v>_android-universal.apk`, `vaultport_<v>_android-universal.aab` (built without local AI) | | iOS | `macos-15` | `vaultport_<v>_ios.ipa` (App Store Connect export) — only when iOS signing is configured; otherwise an unsigned simulator build is compiled as a check and nothing is uploaded | | Checksums, SBOM, signatures and provenance | `ubuntu-24.04` | `SHA256SUMS.txt`, `SHA256SUMS.txt.sigstore.json`, `sbom.spdx.json`, build-provenance attestations | The desktop jobs use [`tauri-action`](https://github.com/tauri-apps/tauri-action), which uploads the bundles to the release under the names above. When updater signing is configured they also produce updater bundles with `.sig` files (for example `vaultport_universal.app.tar.gz.sig`) and a `latest.json` manifest; the Windows entries in `latest.json` point to the NSIS installer. The final job runs once the desktop builds succeed (mobile failures do not block it). It downloads every release asset, then: 1. generates an SPDX **SBOM** of the source tree with Syft (`anchore/sbom-action`) → `sbom.spdx.json`; 2. writes **`SHA256SUMS.txt`** for every asset except `latest.json`; 3. signs `SHA256SUMS.txt` **keylessly with cosign**, using the workflow's GitHub OIDC identity → `SHA256SUMS.txt.sigstore.json`; 4. creates a **build-provenance attestation** for every file listed in `SHA256SUMS.txt` (`actions/attest-build-provenance`); 5. uploads the checksums, the signature bundle and the SBOM to the release. The [download page](http://vaultport.niessen.dev/download.md) recognizes exactly these file names, so keep them stable. Users verify a download as described in [Verify your download](http://vaultport.niessen.dev/download.md#verify-your-download). ## Repository secrets Every secret is optional: without it the corresponding signing step is skipped and the artifacts are published unsigned (checksums, Sigstore signature, SBOM and attestations are always produced). Configure them under **Settings → Secrets and variables → Actions**; `release-please.yml` passes them to `release.yml` with `secrets: inherit`. | Secret | Used by | Purpose | | -------------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------- | | `TAURI_SIGNING_PRIVATE_KEY`, `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` | desktop jobs | Sign updater bundles (minisign key from `tauri signer generate`) | | `TAURI_UPDATER_PUBKEY` | desktop jobs | Optional: the matching public key, overriding the one committed in `tauri.conf.json` | | `APPLE_CERTIFICATE`, `APPLE_CERTIFICATE_PASSWORD` | macOS and iOS jobs | Base64-encoded `.p12` signing certificate and its password | | `APPLE_SIGNING_IDENTITY` | macOS job | The certificate's identity, for example `Developer ID Application: … (TEAMID)` | | `APPLE_ID`, `APPLE_PASSWORD`, `APPLE_TEAM_ID` | macOS job (and iOS) | Notarization with an app-specific password; `APPLE_TEAM_ID` also enables the iOS build | | `IOS_PROVISIONING_PROFILE` | iOS job | Provisioning profile for the App Store Connect export; with `APPLE_TEAM_ID` it enables the IPA | | `WINDOWS_CERTIFICATE`, `WINDOWS_CERTIFICATE_PASSWORD` | Windows jobs | Base64-encoded `.pfx` for Authenticode signing (SHA-256, DigiCert timestamp) | | `ANDROID_KEYSTORE`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` | Android job | Base64-encoded release keystore and its credentials | No secret is needed for Sigstore or attestations; the jobs request `id-token: write` and `attestations: write`. > **Android without a keystore** > > Android only installs signed APKs. Without the `ANDROID_KEYSTORE*` secrets the job uploads an unsigned release APK, which phones refuse to install. Configure the keystore before the first public release, and keep it safe: updates must be signed with the same key. ## Setting up the self-updater `apps/desktop/src-tauri/tauri.conf.json` already points the updater at ```text https://github.com/DavidNiessen/vaultport/releases/latest/download/latest.json ``` with an empty `pubkey` and `bundle.createUpdaterArtifacts: false`. The release workflow turns updater artifacts on when `TAURI_SIGNING_PRIVATE_KEY` is set and a public key is available, either committed in `tauri.conf.json` (preferred) or from the optional `TAURI_UPDATER_PUBKEY` secret, which overrides the committed key. To enable updates: 1. Generate a key pair once, on a trusted machine: ```bash pnpm --filter @vaultport/desktop tauri signer generate -w ~/.tauri/vaultport.key ``` 2. Store the **private key** file's content as `TAURI_SIGNING_PRIVATE_KEY` and its password as `TAURI_SIGNING_PRIVATE_KEY_PASSWORD`. 3. Commit the **public key** (the content of `~/.tauri/vaultport.key.pub`) to `plugins.updater.pubkey` in `tauri.conf.json`. It is not secret, and committing it makes every build verify updates with it. Alternatively store it as the `TAURI_UPDATER_PUBKEY` secret. 4. Back up the private key offline. If it is lost, installed apps can no longer verify updates and users must reinstall manually. Releases built without these secrets have no `latest.json`, and **Check for updates** reports that no update is available. ## Publishing the website `docs.yml` deploys this site to GitHub Pages on pushes to `main` that touch `docs/`, on manual runs and on `release: published`. Releases created by release-please with the default `GITHUB_TOKEN` do not trigger other workflows, so the workflow can also be called from another workflow (`workflow_call`) — for example as a job after `release` in `release-please.yml`. The download page fetches release data live in the browser, so it is current even without a redeploy. Enable Pages once under **Settings → Pages → Source: GitHub Actions**. ## Release checklist 1. Review and merge the release-please pull request. 2. Watch the **Release Please** run: all desktop jobs must pass; check the Android and iOS jobs. 3. Confirm the release lists the installers, `SHA256SUMS.txt`, `SHA256SUMS.txt.sigstore.json` and `sbom.spdx.json` (and `latest.json` if updater signing is configured). 4. Spot-check one artifact per platform with the [verification commands](http://vaultport.niessen.dev/download.md#verify-your-download). --- <!-- Source: http://vaultport.niessen.dev/faq --> # Frequently asked questions ## Is Vaultport free? Yes. It is free and open source under the GNU GPL v3.0 or later. There are no paid tiers, no accounts and no feature gates. ## Do I need an account? No. There is nothing to sign up for. Install the app, create a vault, connect. ## Does Vaultport collect any data? No. There is no telemetry, analytics or crash reporting, and no server operated by the project. The app only connects to the hosts you configure, the sync storage and cloud APIs you set up, GitHub Releases when you click _Check for updates_, and Hugging Face if you choose to download the local AI model. ## Where is my data stored? In an encrypted vault file in the app's data directory on each device. If you set up sync, encrypted copies of your changes are stored in the folder, WebDAV server or S3 bucket you chose. See [The vault](http://vaultport.niessen.dev/concepts/vault.md). ## I forgot my master password. Can you reset it? No — nobody can. The vault is end-to-end encrypted and the project has no copy of your keys. What still works: - **Another unlock method on this device**: Windows Hello, Touch ID, a security key / passkey, a PIN or auto-unlock. Unlock with it and set a new password in **Settings → Security**. (With two-factor unlock on, the security key alone is not enough — it only works together with the password.) - **Another device** that has the same vault: unlock it there and [pair this device](http://vaultport.niessen.dev/guide/sync.md#pair-a-new-device) again. - An **[encrypted backup](http://vaultport.niessen.dev/guide/sync.md#encrypted-backups)**, if you still know its passphrase. If none of these is available, the data cannot be recovered. Unlock methods are stored per device, so set up a second one on each device you use. ## How does sync work without a server? Your vault is a CRDT: every change is a small encrypted operation, and devices exchange these through storage you own. Because operations merge deterministically, there are no conflicts and no central server is needed. See [Sync, backup & pairing](http://vaultport.niessen.dev/guide/sync.md) and the [sync protocol](http://vaultport.niessen.dev/security/sync.md). ## Do I need sync storage to set up a second device? No. [Pairing](http://vaultport.niessen.dev/guide/sync.md#pair-a-new-device) copies the vault directly from one device to the other over your local network, end-to-end encrypted and authenticated with a one-time code. Without sync storage this is a one-time copy; to keep both devices up to date afterwards, add the same sync storage on both. Devices on different networks can use sync storage or an [encrypted backup](http://vaultport.niessen.dev/guide/sync.md#encrypted-backups) instead. ## Can my sync provider read my data? No. It only stores encrypted segment files. It also cannot forge, reorder or roll back your data unnoticed — Vaultport detects and reports such tampering. ## Can I use iCloud Drive, Dropbox, Google Drive or OneDrive? Yes, through the **synced folder** target: choose a folder that the provider's app keeps in sync. Vaultport ignores conflict copies those tools sometimes create. ## Is Git sync supported? Yes. Add a **Git repository over SSH** target (for example `git@github.com:me/vault.git`), choose the key to sign in with — on GitHub a deploy key with write access — and press **Sync now**. Vaultport speaks Git over its own SSH connection, so it also works on phones, and it only writes the dedicated `vaultport-sync` branch. See [Git over SSH](http://vaultport.niessen.dev/guide/sync.md#git-over-ssh). ## Does it support post-quantum cryptography? Yes. The hybrid `mlkem768x25519-sha256` key exchange (the OpenSSH 9.9+ default) is preferred by default and falls back automatically for servers that do not support it. ## Can I use my YubiKey? Yes, in the desktop apps on Windows, macOS and Linux. FIDO2 security keys work as `sk-ssh-ed25519@openssh.com` or `sk-ecdsa-sha2-nistp256@openssh.com` keys (servers need OpenSSH 8.4+). Vaultport creates Ed25519 keys, which need YubiKey firmware 5.2.3 or later. Older YubiKeys only support ECDSA: create the key with `ssh-keygen -t ecdsa-sk` and import the file, or import it as a resident key. You can also import resident keys already stored on the YubiKey. On Windows, Vaultport uses the Windows security key dialog, so Windows asks for the touch and PIN itself, and no administrator rights are needed. Importing resident keys from the YubiKey is the exception: it needs Vaultport to run as administrator once. See [SSH keys & hardware keys](http://vaultport.niessen.dev/guide/keys.md#windows). ## Does Vaultport use my existing `~/.ssh/config` and keys? It does not read them live, but you can [import](http://vaultport.niessen.dev/guide/importing.md) your config — including `Include` files, `ProxyJump`, forwards and `IdentityFile` keys — and your `known_hosts` in one step. On desktop, if a host has no keys configured, your system SSH agent is used. ## Is the AI feature sending my terminal to the cloud? No. Local AI is off by default, and when enabled it runs a small model entirely on your device. Nothing you type is sent anywhere, and generated commands are never run automatically. See [Local AI](http://vaultport.niessen.dev/guide/local-ai.md). ## Can Claude Code, Cursor or other AI agents use Vaultport? Yes, on desktop, if you allow it. Turn on **Settings → AI agents** and add Vaultport as an MCP server to your tool. Agents can list hosts and read files, and — after you approve each change in the app — run commands, write files and start tunnels. They never see your passwords or keys. Keep in mind that whatever the agent reads from your servers goes to the AI tool's model. See [AI agents (MCP)](http://vaultport.niessen.dev/guide/ai-agents.md). ## Is autocomplete AI-based? No. Autocomplete is a deterministic engine based on your history, snippets, the commands installed on the machine, paths, values such as git branches and npm scripts, and about 300 built-in command specs. It never uses the AI model. The AI is only used when you ask it for a command — see [The terminal](http://vaultport.niessen.dev/guide/terminal.md#ai-in-the-terminal). ## Which platforms are supported? Windows 10 and 11 (x64, ARM64), macOS 13+ (Apple silicon and Intel), Linux (x86_64 and aarch64; AppImage, deb, rpm), iOS and iPadOS 16+, and Android 8.0+. See [Installation](http://vaultport.niessen.dev/guide/installation.md). ## Why isn't Vaultport in the App Store or Play Store? Releases are published on GitHub. On iOS you can sideload the IPA or use TestFlight when a beta is offered; on Android you install the APK directly. ## Can I run it without installing anything system-wide? On Windows, the default installer installs for your user only, without administrator rights. On Linux, the AppImage runs without installation. ## How do I verify a download? Every release has SHA-256 checksums, Sigstore signatures and GitHub build-provenance attestations. See [Verify your download](http://vaultport.niessen.dev/download.md#verify-your-download). ## Can I use this documentation with an AI assistant? Yes. The site publishes [`llms.txt`](http://vaultport.niessen.dev/llms.txt) and [`llms-full.txt`](http://vaultport.niessen.dev/llms-full.txt), and every page is also available as Markdown — append `.md` to its URL (for example `/guide/sftp.md`). ## How can I contribute? See [Contributing](http://vaultport.niessen.dev/development/contributing.md). Bug reports, translations, documentation and code are all welcome; security issues go through [private reporting](http://vaultport.niessen.dev/security/disclosure.md). --- <!-- Source: http://vaultport.niessen.dev/download --> # Download Download Vaultport for Windows, macOS, Linux, iOS, iPadOS and Android, and verify the files with SHA-256 checksums, GitHub attestations and Sigstore signatures. ## Verify your download Every release is built by the [release workflow](https://github.com/DavidNiessen/vaultport/blob/main/.github/workflows/release.yml) in GitHub Actions from a tagged commit. Next to the installers, each release has: | File | What it is | | ------------------------------ | ------------------------------------------------------------------------------------- | | `SHA256SUMS.txt` | SHA-256 checksums of every file in the release | | `SHA256SUMS.txt.sigstore.json` | Keyless Sigstore (cosign) signature of `SHA256SUMS.txt`, made by the release workflow | | `sbom.spdx.json` | Software bill of materials (SPDX) of the source tree | | `*.sig`, `latest.json` | Signatures and manifest for the desktop self-updater (when updater signing is set up) | Every file listed in `SHA256SUMS.txt` also has a GitHub build-provenance attestation. All of them are on the [releases page](https://github.com/DavidNiessen/vaultport/releases). ### 1. Verify the checksum file's signature The signature is keyless: it is bound to the release workflow's GitHub identity, not to a long-lived key. With [cosign](https://docs.sigstore.dev/cosign/system_config/installation/) 2.x, download `SHA256SUMS.txt` and `SHA256SUMS.txt.sigstore.json` and run: ```bash cosign verify-blob SHA256SUMS.txt \ --bundle SHA256SUMS.txt.sigstore.json \ --certificate-identity-regexp '^https://github\.com/DavidNiessen/vaultport/\.github/workflows/release\.yml@' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com ``` ### 2. Check your file against the checksums Put `SHA256SUMS.txt` in the same folder as the installer, then: ```bash # Linux sha256sum -c SHA256SUMS.txt --ignore-missing # macOS shasum -a 256 -c SHA256SUMS.txt --ignore-missing ``` ```powershell # Windows (PowerShell): compare the output with the line in SHA256SUMS.txt Get-FileHash .\vaultport_<version>_x64-setup.exe -Algorithm SHA256 ``` Together, steps 1 and 2 prove that your file is exactly what the release workflow published. ### 3. Verify the build provenance (optional) With the [GitHub CLI](https://cli.github.com/), confirm directly that a file was built in this repository's GitHub Actions: ```bash gh attestation verify vaultport_<version>_amd64.AppImage --repo DavidNiessen/vaultport ``` ### Updates Desktop builds include a self-updater that reads `latest.json` from the latest GitHub release. It only checks when you click **Settings → About → Check for updates**, and it verifies each update's signature against the public key built into the app before installing it. On phones and tablets, install the new APK or IPA over the old one; your vault is kept. ### Prefer to build it yourself? Everything needed to build Vaultport from source is in the repository. See [Build from source](http://vaultport.niessen.dev/development/building.md).