Overview

jitenv holds your secrets in an encrypted on-disk config and injects them only into the process tree of the file you actually want to run — never into the parent shell. A per-user agent keeps the master key in memory; a shell hook intercepts mapped commands and re-execs them through jitenv run.

jitenv unlock
./scripts/deploy.sh        # mapped — env vars appear inside the script
echo "$DATABASE_URL"       # empty in your shell — it never saw the value

Features

Highlights

Download

Stable release: v0.14.1. Pre-built, cosign-signed binaries are published on every tag by goreleaser.

Pre-built binaries

Available on the GitHub Releases page for:

macOS — Homebrew

brew install Galvill/jitenv/jitenv

A Homebrew cask that downloads the notarized tarball for your arch. It ships from a separate post-publish workflow (Apple's notarization latency never blocks the Linux/Windows artifacts), so it typically lands within ~30 minutes of a new release.

Windows — Chocolatey

choco install jitenv

Fetches the official windows_amd64 release zip, SHA256-verifies it, and shims both jitenv.exe and jitenv-tui.exe onto %PATH%. PowerShell 7+ is required for the hook.

Windows — Scoop

scoop bucket add jitenv https://github.com/Galvill/scoop-jitenv
scoop install jitenv

Adds a dedicated Scoop bucket and shims jitenv.exe, jitenv-hook.exe, and jitenv-tui.exe onto %PATH%. PowerShell 7+ is required for the hook.

Windows — winget

winget install Galvill.jitenv

Installs Galvill.jitenv from the winget-pkgs community repository. PowerShell 7+ is required for the hook.

Activate the shell hook (once)

jitenv hook install
exec $SHELL

Install with go install

go install github.com/gv/jitenv/cmd/jitenv@latest

Build from source

git clone https://github.com/Galvill/jitenv
cd jitenv
make install

Requires Go 1.22 or later. make install places the binary in $PREFIX/bin (default ~/.local/bin).

Contact