github s1ks1/bwenv v2.0.0
bwenv 2.0.0

11 hours ago

bwenv v2.0.0 - Go Rewrite

A complete rewrite in Go with multi-provider support!

What's New

  • Multi-provider support — Works with Bitwarden & 1Password

  • Beautiful interactive TUI — Provider and folder selection with Bubble Tea + Lipgloss

  • Quick re-authentication — re-authenticates and updates in one step

  • Built-in config system — ╭───────────────────────────────────────────────────────────╮
    │ 🔐 bwenv v2.0.0 │
    │ Sync secrets from your password manager into your shell │
    ╰───────────────────────────────────────────────────────────╯

    ● Config file: /Users/s1ks1/.config/bwenv/config.json for preferences (emoji, direnv output, export summary, auto-sync)

  • Smart diagnostics — ╭───────────────────────────────────────────────────────────╮
    │ 🔐 bwenv v2.0.0 │
    │ Sync secrets from your password manager into your shell │
    ╰───────────────────────────────────────────────────────────╯

    📂 Current Directory
    ────────────────────────────────────
    Directory ~/Developement/Temp/bwenv
    ✗ .envrc not found — run 'bwenv init' to create one

    📦 Dependencies
    ────────────────────────────────────
    ✓ direnv /opt/homebrew/bin/direnv
    ✓ direnv hook found in ~/.zshrc

    🔑 Providers
    ────────────────────────────────────
    ✓ 1Password installed, no active session
    ✓ Bitwarden installed, no active session

    ● No active sessions — run 'bwenv init' to authenticate

    🌍 Environment
    ────────────────────────────────────
    ● BW_SESSION not set
    ● OP_SERVICE_ACCOUNT_TOKEN not set
    ✓ DIRENV_LOG_FORMAT silenced (empty)
    ✓ DIRENV_WARN_TIMEOUT 10m

    ⚙ Preferences
    ────────────────────────────────────
    ● Config file ~/.config/bwenv/config.json
    Emoji ON
    Direnv Output OFF
    Export Summary ON
    Auto Sync ON

    Run 'bwenv config' to change preferences or 'bwenv examples' for usage examples. checks everything at a glance

  • True cross-platform — Single binary for Linux, macOS, Windows (amd64 + arm64)

  • Zero runtime dependencies — Only Go binary + password manager CLI + direnv (no !)

Installation

# Homebrew
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
curl -fsSL https://raw.githubusercontent.com/s1ks1/bwenv/main/install.sh | sh

Migration from v1

If upgrading from v1 (Bash):

  1. brew uninstall bwenv (if installed via Homebrew)
  2. Install v2 via your preferred method above
  3. cd to your project and run bwenv init again
  4. bwenv login when sessions expire (instead of bwenv init)

Full Changelog

See the release notes for all changes since v1.1.1.

Don't miss a new bwenv release

NewReleases is sending notifications on new releases.