# chezmoi

> Manage your dotfiles across multiple diverse machines, securely.

Source: https://talira.ai/catalog/chezmoi-jg5mqkmp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / dotfiles](https://talira.ai/categories/developer-tools/dotfiles)
- Platforms: linux, macos, windows, android, cli[^5]
- Licence: MIT[^4]
- Pricing: Free and open source[^3]
- Pricing notes: chezmoi doesn't accept financial contributions.
- Free tier: yes[^3]
- Self-hostable: yes[^5]
- Creator: Tom Payne (twpayne)

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](https://talira.ai/catalog/1password-ea3fk47t.md), [Bitwarden](https://talira.ai/catalog/bitwarden-fam7t5bd.md), [KeePassXC](https://talira.ai/catalog/keepassxc-pj9vc0q3.md) or Vault or from files encrypted with [age](https://talira.ai/catalog/age-pf0sjkan.md) 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](https://talira.ai/catalog/macos-8swyggxb.md), Windows, the BSDs and Termux, and has dry-run and diff modes. Free and open source under the MIT licence, by Tom Payne.

## Links

- Website: https://www.chezmoi.io/
- GitHub: https://github.com/twpayne/chezmoi
- Docs: https://www.chezmoi.io/user-guide/command-overview/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/chezmoi>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/chezmoi>[^2]

## 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
- Linux, macOS, Windows, FreeBSD, OpenBSD and Termux builds on many architectures

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Tom Payne (twpayne)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [claude-sync](https://talira.ai/catalog/claude-sync-2fbqkagn.md): Sync your Claude Code .claude/ directory across all your devices

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://www.chezmoi.io/ (checked 20 Nov 2026)
[^4]: https://github.com/twpayne/chezmoi/blob/master/LICENSE (checked 20 Nov 2026)
[^5]: https://www.chezmoi.io/install/ (checked 20 Nov 2026)
