The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Cfgd listing page.
Declare your entire machine (packages, dotfiles, system settings, secrets) with composable profiles and shareable, cross-platform modules.
A bare ubuntu:24.04 container with no Neovim, no Homebrew and no config. One cfgd init later, nvim opens a fully configured LazyVim. Recorded with VHS.
Status: Alpha. APIs may change.
Most dotfile managers track files. cfgd manages your entire machine. You declare packages, files, secrets, and system settings in version-controlled YAML. cfgd diffs what you want against what you have, builds a plan, and reconciles continuously. If something drifts, it is detected and corrected.
Profiles declare your machine's desired state: packages, files, system settings. They compose via inheritance: share a common base across machines, then specialize per context. See docs/profiles.md.
Modules are shareable, self-contained config packages. Install someone else's dev environment or publish your own. Cross-platform package resolution picks the right manager automatically. See docs/modules.md.
Reconciliation continuously ensures machines match their declared state. Drift is detected, reported, and optionally auto-corrected. Failed actions don't abort; they're logged and skipped. See docs/reconciliation.md, or watch two machines converge through the daemon.
I recently switched jobs, and spent the last week of my old job backing up scripts and dotfiles, parsing out company-specific info, and composing a tarball to transfer. At the new job, I spent another few days getting my new machine reconfigured. Over time I kept discovering things I'd forgotten, and things (System Settings, for one) I wished the backup had covered. It all felt manual and incomplete: I should be able to clone a repo and have my entire workstation (packages, scripts, dotfiles, system settings) feel familiar again. Better still, to keep parts of that feeling in sync between my home and work laptops.
The other inspiration was devcontainers. At my previous company I had set up custom scripts to inject dotfiles into the devcontainer so a user could replicate their dev environment once they shell in. At minimum, I wanted my full Neovim setup available in any ephemeral container without modifying the devcontainer config in every team's repository to accommodate it. I needed something that could bootstrap my config into any environment from the outside, regardless of whose repo I was working in. Plus, I had some coworkers in need of education about the superiority of vim-motions, and wanted a quick way to share my exact setup, down to the alias.
cfgd borrows from the best ideas across practices:
This is my favorite feature: a single packaged config for a tool that works anywhere.
A module declares packages with cross-platform resolution, config files, shell environment variables and aliases, and lifecycle scripts:
See docs/modules.md for the full spec including git file sources, registries, and dependency resolution.
| cfgd | chezmoi | Nix Home Manager | Ansible | Puppet | |
|---|---|---|---|---|---|
| Focus | Full machine state | Dotfiles | Dotfiles + packages (Nix) | General automation | Server/infra state |
| Packages | 18 managers | None | Nix only | Any (via tasks) | Any (via providers) |
| Drift detection | Continuous (daemon) | Manual | On rebuild | Manual | Continuous (agent) |
| Cross-platform resolution | Per-package manager mapping | N/A | Nix-only | Per-task conditionals | Per-OS Hiera data |
| Shareable modules | First-class | Templates only | Flakes | Roles (Galaxy) | Forge (server-oriented) |
| Team config | Policy tiers + Crossplane | N/A | Flake inputs | N/A | Puppet Enterprise |
| Infrastructure | Single binary, zero servers | Single binary | Nix daemon | SSH (or AWX) | PuppetServer + PuppetDB + CA |
| Learning curve | YAML + CLI | Go templates | Nix language | YAML + Jinja2 | Puppet DSL (Ruby) |
Puppet is the closest philosophical match: declarative state, continuous enforcement, module ecosystem. If that model clicked for you but standing up a JVM server and writing a Ruby-era DSL to manage your dotfiles in 2026 doesn't, cfgd is what that idea looks like rebuilt from scratch for developer workstations.
cfgd is a good fit when you want: one-liners for cross-platform machine bootstrapping, shareable dev environment modules, continuous reconciliation between machines or subscribed sources, or team config distribution with policy enforcement.
For developers:
cfgd init --from <repo> --apply on a new machinecfgd generate scans your system and builds profiles/modules; MCP server for AI editor integrationcfgd mcp serves the CLI itself as tools, so an assistant can reconcile a machine, not only write config for onecfgd skill install teaches your coding agent (Claude Code, Gemini, Copilot, Codex, Cursor) to author high-quality cfgd resourcesFor platform & infrastructure engineers:
kubectl cfgd debug/exec/inject/status for node inspectionFor security & compliance:
| Document | Description |
|---|---|
| Configuration | Root config (cfgd.yaml), file strategies, aliases, themes |
| Profiles | Profile YAML, inheritance, merge rules, variables |
| Modules | Module spec, cross-platform packages, dependencies, git file sources, registries |
| Reconciliation | Phase ordering, failure handling, state store |
| Packages | All package managers, skip behavior, dry-run |
| Templates | Tera template system, context variables, custom functions |
| Secrets | SOPS/age backends, 1Password, Bitwarden, Vault |
| System Configurators | Shell, macOS defaults, systemd, sysctl, kubelet, and more |
| Sources | Multi-source config, policy tiers, composition, subscriptions |
| Daemon | File watching, reconciliation loop, sync, notifications, service install |
| Operator | CRD-based machine management, device gateway, DaemonSet node agent |
| Team Config | Crossplane-powered team config distribution |
| Safety | Atomic writes, backups, rollback, apply locking, path safety |
| Declarative Backups | spec.backups[] snapshots, hook ordering, retention, restoring |
| CLI Reference | Complete command reference with flags and examples |
| Installation | Every install channel, verifying signed downloads, self-upgrade |
| Bootstrap | cfgd init flow, apply options, install script |
| AI Generate | AI-guided config generation, both MCP servers (mcp-server for authoring, mcp for driving the CLI) |
| Authoring Skills | cfgd skill installer, supported agent providers, choosing between generate and skills |
| Releasing | CI-cut release pipeline, pre-release checklist, failure recovery |
| Image Pack | Packing a directory into an OCI image volume, signing, pinning deployments |
| Multi-Tenancy | Namespace isolation and tenant boundaries for the operator |
| Lifecycle Scripts | run: resolution, hook phases, timeouts, interactive scripts |
In addition to publishing binaries to GitHub Releases (Linux, macOS, Windows on amd64 + arm64; FreeBSD on amd64), each release also publishes to:
| Channel | Artifact |
|---|---|
| Homebrew | brew install tj-smith47/tap/cfgd |
| crates.io | cargo install cfgd (or cargo binstall cfgd for the pre-built binary) |
| AUR | yay -S cfgd (Arch Linux; builds from source) |
| winget | winget install --id TJSmith.cfgd |
| Scoop | scoop bucket add tj-smith47 https://github.com/tj-smith47/scoop-bucket; scoop install cfgd |
| Chocolatey | choco install cfgd |
| Nix | nix profile install github:tj-smith47/nix-pkgs#cfgd |
| deb / rpm / apk | Static-binary native packages, also mirrored to CloudSmith |
| GHCR | Docker images: cfgd, cfgd-operator, cfgd-csi |
| Helm | helm install cfgd oci://ghcr.io/tj-smith47/charts/cfgd |
| Krew | kubectl krew install cfgd (the kubectl plugin for node debugging and fleet inspection) |
| OLM | Operator bundle for OLM-managed clusters |
| Crossplane | function-cfgd composition function for team config distribution |
| MCP Registry | io.github.tj-smith47/cfgd: the cfgd mcp-server stdio server, for AI agents and editors |
CI/CD integrations:
| Integration | Description |
|---|---|
| cfgd Setup | GitHub Action: bootstrap a runner with a module from your config repo |
| cfgd Plan | GitHub Action: run cfgd plan on PRs, post the diff as a comment |
| GitLab CI | Includable .cfgd-ci.yml template with .cfgd-plan and .cfgd-apply jobs |
| Tekton | cfgd-apply Task for Tekton Pipelines |
Modules can also be exported as DevContainer Features for injection into devcontainers:
Building from source:
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.