Skip to content

Quick Start

Before using bwenv, make sure you have:

No jq needed! Unlike v1, bwenv v2 is a single Go binary with zero extra dependencies.

Pick your platform:

Terminal window
# Homebrew (macOS / Linux)
brew tap s1ks1/bwenv
brew install bwenv
# Scoop (Windows)
scoop bucket add bwenv https://github.com/s1ks1/scoop-bwenv
scoop install bwenv
# Go Install
go install github.com/s1ks1/bwenv@latest
# Quick Install (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/s1ks1/bwenv/main/install.sh | sh

See the full Installation Guide for all platforms and options.

Terminal window
bwenv status

This checks that direnv and your password manager CLIs are properly installed and configured.

Navigate to your project directory and run:

Terminal window
bwenv init

This launches a full interactive TUI flow:

  1. Select a provider — choose between Bitwarden, 1Password (whichever CLIs you have installed)
  2. Authenticate — unlock your vault or sign in
  3. Pick a folder — browse, search, and select the folder/vault containing your secrets
  4. Generate .envrc — a direnv-compatible file is created and auto-approved
Terminal window
cd . # Trigger direnv to reload

Your secrets are now loaded as environment variables every time you cd into this directory.

Terminal window
echo $YOUR_SECRET_VARIABLE
Terminal window
bwenv login

This detects the provider from your .envrc, re-authenticates, and updates the session token — much faster than running bwenv init again.

Terminal window
bwenv config

Toggle emoji display, direnv output visibility, export summaries, and auto-sync behavior through an interactive settings editor.