Skip to content

bwenv

Sync secrets from Bitwarden or 1Password into your shell environment — beautifully.

Multi-provider support

Works with Bitwarden (bw CLI) and 1Password (op CLI). More providers can be added via a simple interface.

Beautiful interactive TUI

Provider and folder selection with arrow keys, search, and filtering — powered by Bubble Tea and Lipgloss.

Automatic .envrc generation

Creates direnv-compatible files that auto-load your secrets every time you cd into the directory.

Quick re-authentication

Session expired? bwenv login re-authenticates and updates your .envrc in one step — no need to re-init.

Smart diagnostics

bwenv status checks every dependency, session, config, and .envrc at a glance.

True cross-platform

Single static binary for Linux, macOS, and Windows (amd64 + arm64). No runtime dependencies beyond your password manager CLI + direnv.

bwenv is a cross-platform CLI tool that bridges your password manager and your shell environment using direnv. It lets you load secrets from Bitwarden or 1Password directly into environment variables — no manual copy-pasting, no .env files committed to git.

Built with Go, Bubble Tea, and Lipgloss.

Terminal window
# Install
brew tap s1ks1/bwenv && brew install bwenv
# Interactive setup — pick provider, authenticate, select folder
bwenv init
# Your secrets are now loaded as environment variables!
echo $API_KEY
# Session expired later? Re-authenticate in one step
bwenv login