# Yet another Zig version manager (but it is context aware)

> Source: <https://ziggit.dev/t/yet-another-zig-version-manager-but-it-is-context-aware/18627#post_1>
> Published: 2026-11-28 21:39:10+00:00

**Key takeaway:** zvm resolves the Zig and zls version per directory from ZIG_VERSION, a .zig-version file (exact, master, or a semver range like ^0.17.0), or build.zig.zon's minimum_zig_version, stopping the parent search at the nearest .git.

[zvm](https://github.com/Judeadeniji/zvm) is a single native binary with no runtime dependencies that makes `zig` (and `zls`) resolve to the right version for whatever directory you’re in.

It picks a version in this order:

`ZIG_VERSION` env var`.zig-version` in the current or any parent directory (exact version, `master`, or a semver range like `^0.17.0`)` minimum_zig_version` from `build.zig.zon`` zvm use`)
The parent search stops at the nearest `.git`, so a pin in an outer repo doesn’t leak into a nested checkout.

Other things it does:

`zig`` zvm install 0.17.0 --with-zls`)
Quick start:

```
curl -fsSL https://raw.githubusercontent.com/Judeadeniji/zvm/main/install.sh | sh
zvm setup
zvm doctor
```

Built with Zig 0.17.0. I used an AI coding assistant for part of this (edge-case audits, unifying exit codes, the install lock), and everything was reviewed and tested by me.

I’d especially like feedback from people on macOS, Windows, or with multi-repo setups. Run `zvm doctor` and tell me what works or breaks. Issues and PRs are welcome on GitHub.
