Skip to content

Cross-machine sync

agentsync is deliberately single-machine. It manages one machine’s agents from one canonical directory. To carry that directory across machines, use a dotfile manager — chezmoi is the natural fit, but any will do.

Terminal window
chezmoi add ~/.agentsync

Now ~/.agentsync/ lives in your dotfiles repo and syncs like the rest of your config.

ItemSync it?Why
~/.agentsync/** (TOML, markdown, skills)Hand-editable source, no secrets in cleartext.
secrets/secrets.age (the encrypted vault)Encrypted to your recipient; safe to commit.
The age identity (private key)Per-machine. Distribute via your existing secret-sharing flow.
~/.agentsync/.state/❌ (gitignored)Machine-local bookkeeping; not portable as-is.

agentsync stores its last-applied hashes ${HOME}-relative rather than with absolute paths, so the .state/targets.json bookkeeping is portable across machines if you ever do choose to carry it. On a fresh machine, the first apply simply re-establishes ownership of any pre-existing native files (backing them up first).