Manage your dotfiles across multiple diverse machines, securely.
open sourceMITself-hostablefree
chezmoi manages dotfiles (shell, editor and tool configuration) from one source directory, usually a git repository, and applies them to every machine with one command. Templates handle the differences between machines, secrets come from password managers such as 1Password, Bitwarden, KeePassXC or Vault or from files encrypted with age or gpg, so the repository can even be public, and scripts and external archives cover setup that plain files can't. It's a single statically linked Go binary with no dependencies (not even git), runs without root on Linux, macOS, Windows, the BSDs and Termux, and has dry-run and diff modes. Free and open source under the MIT licence, by Tom Payne.
Ways to install
Package managers
Problems it solves
- keep my shell, git and editor config in sync between my work laptop, home Mac and Linux servers
- my dotfiles need slightly different settings on each machine and I'm tired of per-machine git branches
- set up a brand new laptop with all my config in one command
- keep API keys and tokens out of my dotfiles repo by pulling them from 1Password or Bitwarden
- encrypt the private parts of my config so my dotfiles repository can be public
- my symlink script for dotfiles breaks on Windows and on machines without Python
- preview exactly what will change in my home directory before applying my config
- install my shell and editor plugins from archives as part of syncing my config
- run a setup script only once per machine, or whenever a config file changes
- manage dotfiles in throwaway containers and Codespaces where I can't install much
- a dotfiles manager that doesn't need root or git installed on the target machine
Features
- templates for per-machine differences
- secrets from 1Password, Bitwarden, Dashlane, Keeper, LastPass, Proton Pass, KeePassXC, pass, gopass and passhole
- secrets from AWS Secrets Manager, Azure Key Vault, Doppler, Vault, ejson, the macOS Keychain, Windows Credentials Manager or a custom command
- whole-file encryption with age, gpg, git-crypt or transcrypt
- scripts that run once, on change or every time
- import files from archives, for shell and editor plugins
- dry-run and diff modes, conflict resolution
- install and apply a dotfiles repository from GitHub with one command; chezmoi update
- single statically linked binary with no dependencies, not even git or Python
- no root needed
View 1 more
- Linux, macOS, Windows, FreeBSD, OpenBSD and Termux builds on many architectures
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what chezmoi does.
- claude-sync Sync your Claude Code .claude/ directory across all your devices
