Quick Start
Prerequisites
Section titled “Prerequisites”Before using bwenv, make sure you have:
- direnv installed and hooked into your shell
- At least one password manager CLI:
- Bitwarden CLI (
bw) - 1Password CLI (
op)
- Bitwarden CLI (
No
jqneeded! Unlike v1, bwenv v2 is a single Go binary with zero extra dependencies.
Install bwenv
Section titled “Install bwenv”Pick your platform:
# Homebrew (macOS / Linux)brew tap s1ks1/bwenvbrew install bwenv
# Scoop (Windows)scoop bucket add bwenv https://github.com/s1ks1/scoop-bwenvscoop install bwenv
# Go Installgo install github.com/s1ks1/bwenv@latest
# Quick Install (macOS / Linux)curl -fsSL https://raw.githubusercontent.com/s1ks1/bwenv/main/install.sh | shSee the full Installation Guide for all platforms and options.
First Use
Section titled “First Use”1. Verify Your Setup
Section titled “1. Verify Your Setup”bwenv statusThis checks that direnv and your password manager CLIs are properly installed and configured.
2. Initialize Secrets for Your Project
Section titled “2. Initialize Secrets for Your Project”Navigate to your project directory and run:
bwenv initThis launches a full interactive TUI flow:
- Select a provider — choose between Bitwarden, 1Password (whichever CLIs you have installed)
- Authenticate — unlock your vault or sign in
- Pick a folder — browse, search, and select the folder/vault containing your secrets
- Generate
.envrc— a direnv-compatible file is created and auto-approved
3. Load Your Secrets
Section titled “3. Load Your Secrets”cd . # Trigger direnv to reloadYour secrets are now loaded as environment variables every time you cd into this directory.
echo $YOUR_SECRET_VARIABLE4. Re-authenticate When Sessions Expire
Section titled “4. Re-authenticate When Sessions Expire”bwenv loginThis detects the provider from your .envrc, re-authenticates, and updates the session token — much faster than running bwenv init again.
Configure Preferences (Optional)
Section titled “Configure Preferences (Optional)”bwenv configToggle emoji display, direnv output visibility, export summaries, and auto-sync behavior through an interactive settings editor.
Next Steps
Section titled “Next Steps”- Learn about all Installation options
- Explore Usage examples
- See the full CLI Reference
- Read about Configuration