How sync works

Sync keeps your vault on all your devices. Everything is encrypted on the device before it's uploaded; the server stores only ciphertext and the revision numbers it needs to keep devices in step. MorphGate works fully without sync, and sync only adds to it.

Choose a server

MorphGate syncs through any server that speaks the open vault-sync/v1 protocol:

  • morphgate.com, the hosted service. Syncing your own vault is free, up to 100 items; teams need a plan. See Plans and billing.
  • Your own server, such as the free reference server. See Run your own sync server.

The app treats both the same way. A server only ever stores what your device encrypted.

Turn sync on

On a fresh install, choose New account on MorphGate's first screen. It creates your vault and your sync account in one go: pick the Sync server, enter your Email and a master password, accept the server's terms if it has them, and choose Continue. Enter the code the server mails you and choose Create account. If the account can't be made, say the code was wrong, your new vault stays: try again, or choose Use the vault without an account for now.

For a vault you already have, do this on the device whose vault you want to keep.

  1. Open Sync at the bottom of the sidebar (it reads Sync off).
  2. Under Sync server, keep morphgate.com, or choose Your own server and enter its address. Check shows the server's name and version and whether it accepts new accounts.
  3. Enter your Email, and this vault's master password under Master password (to confirm).
  4. If the server has terms of use, as morphgate.com does, tick I accept the terms of use and the privacy policy. Both links open in your browser.
  5. Choose Enable sync.
  6. If the server confirms email addresses, it mails you a six-digit code. Enter it under Code sent to your address and choose Enable sync again. The code works for 15 minutes; send a new code if it expired.

Your master password becomes the sync account's password. It isn't sent: the app sends a key derived from it, and the server stores a slow hash of that. MorphGate creates the account and uploads your vault, encrypted.

If the address already has an account, the server mails you a note saying so instead of a code. Choose sign in to it, or I have an account at the top, and join that account instead (see below).

A vault made by an early version of MorphGate gets a new recovery key at this point. The app shows it once: save it, because the old one stops working.

For an address on a plain http:// server other than your own computer, MorphGate warns that tokens would cross the network unencrypted. Use https://.

Add another device

A second device joins your sync account from a fresh install:

  1. On the first screen, choose Sign in.
  2. Pick the same server, and enter your email and master password (and a code, if two-step verification is on).
  3. Choose Sign in. Your hosts and keys download encrypted and are decrypted on this device.

A device that already has a vault of its own, never synced, can join too, and bring what it holds:

  1. Open Sync and choose I have an account.
  2. Pick the same server, and enter your Email and The account's master password (and a code, if two-step verification is on).
  3. Choose Sign in.

The device's hosts, keys and other items go into your account, and the account's come to the device. From then on the device opens with the account's master password: the password you chose on it stops working, and the account's recovery key replaces the device's. Keychain unlock keeps working; on Android, fingerprint unlock turns off, and you turn it on again under Security with Unlock with fingerprint or face.

What syncs

  • Hosts, groups, identities, SSH keys, host CAs, snippets, tunnels, VPN profiles, cloud sources and imported terminal schemes. Each device uses its own sign-in to a cloud provider.
  • Attachments and session logs, on servers that store files.
  • The shared vaults of the teams you belong to.

What doesn't sync: host keys you trusted (each device pins them itself, see SSH keys and host keys), and this device's settings: auto-lock, keychain unlock, update checks, the app theme, the terminal font and cursor, folded groups, and the commands you allowed this device to run.

When it syncs

Your changes sync within seconds. MorphGate checks for other devices' changes every minute while you use it, every 5 minutes while you don't (the window is hidden, or there was no input for 5 minutes), and at once when you come back. It only syncs while the vault is unlocked. Sync now in the Sync panel syncs at once.

The bottom of the sidebar shows the state: Sync off, Sync pending (on, not synced yet), Synced and how long ago, Syncing…, Sync problem (point at it to see why) or Sign in to sync. The Sync panel shows the server, the account, the last sync and the last error.

MorphGate works offline. Changes you make without a connection are kept and sent the next time a sync succeeds.

Conflicts

If two devices change the same item before they sync, the server keeps the change that reached it first. The other device's version isn't thrown away: it is kept as a separate item with (conflict) after its name, for example a host labelled db (conflict). Compare the two, keep the one you want, and delete the other.

An attachment's copy gets (conflict) before the extension, so it still opens. If both devices made the same change, there's no conflict copy.

If one device deletes an item while another changes it, the same rule applies. When the deletion reaches the server first, the item is deleted everywhere and the change is kept as a (conflict) copy. When the change gets there first, the item comes back on the device that deleted it.

Deleting

Deleting an item on one device deletes it on the others at their next sync. The server keeps a marker for each deletion for at least 90 days. A device that has been away longer than that downloads the whole vault again when it comes back, which happens by itself.

Limits

  • An item can be up to 64 KiB once encrypted. Hosts, keys and snippets are far smaller. Larger things, such as attachments and session logs, are stored as separate files. An item over the limit, such as a huge snippet, doesn't sync: it stays on the device where you made it.
  • morphgate.com holds up to 10,000 items per vault, and a storage limit for attachments and session logs per account and per team.
  • A server you run sets its own limits.

Limits and plans

On morphgate.com, your own vault syncs free on Personal: up to 100 items, and attachments and session logs stay on the device. Past 100, new items stay on the device that made them, and the Sync panel says so; a seat in a team with a plan lifts the limits. A team's vaults need the team's trial or plan to take changes; without one, every device can still read them and download from the server. See Plans and billing.

Turning sync off

In the Sync panel, choose Disconnect this device. This device stops syncing, and your other devices keep syncing. Then choose what stays here:

  • Keep a copy here: your personal vault stays on this device, no longer syncing.
  • Remove everything from this device: MorphGate goes back to its first screen. Your account keeps everything that has synced.

Copies of team vaults are removed either way, because they belong to the team on the server. See Devices, signing in and signing out.

To move to another server, disconnect with Keep a copy here, then turn sync on again with the new server's address. Your personal vault uploads there in full. On each of your other devices, either disconnect with Remove everything from this device and sign in to the new server, or disconnect with Keep a copy here and join the new account from Sync, I have an account. Items that are the same on both sides merge; ones that differ show up as (conflict) copies. See Run your own sync server, under moving between servers.

More: Devices, signing in and signing out and What the server can and cannot see.