A local MCP server that gives AI agents composable NixOS / Home Manager operations: build, diff, switch, and generations for the operational core, plus eval, locate, and check for config introspection.

It pairs with mcp-nixos. nix-agent operates on your actual configuration, mcp-nixos handles package and option discovery. Responses report raw vs returned bytes so token savings are visible per call, not just claimed.

Experimental and a work in progress. Feedback and contributions welcome.

Install

Paste this to a coding agent (Codex, Claude Code, opencode, ...) and it does the install:

Read https://raw.githubusercontent.com/JEFF7712/nix-agent/main/docs/agent-install.md and follow every step to install nix-agent on this NixOS system, install the companion skills, and register nix-agent in my MCP settings for this machine.

Or do it by hand, see docs/usage.md.

Docs


The nix-agent logo adapts the Nix snowflake from NixOS/nixos-artwork, licensed CC-BY 4.0.