rbw-bitwarden
by @sxhoio
Unofficial Bitwarden CLI written in Rust. Manage passwords, TOTP codes, and secure notes from the terminal with a background agent for stateful sessions.
Set options via rbw config. Available keys:
| Key | Description | Default |
|-----|-------------|---------|
| email | Bitwarden account email | Required |
| base_url | Bitwarden API server URL | https://api.bitwarden.com/ |
| identity_url | Identity server URL | Inferred from base_url or https://identity.bitwarden.com/ |
| ui_url | Vault web UI URL | https://vault.bitwarden.com/ |
| notifications_url | Notifications server URL | Inferred from base_url or https://notifications.bitwarden.com/ |
| lock_timeout | Seconds to keep master keys in memory | 3600 |
| sync_interval | Auto-sync interval in seconds (0 to disable) | 3600 |
| pinentry | Path to pinentry executable | pinentry |
| sso_id | SSO organization ID | None (regular login) |
Example Setup
rbw config set email your@email.com
rbw config set base_url https://api.bitwarden.com/
rbw config set lock_timeout 3600
Profiles
Use RBW_PROFILE to switch between multiple vaults (work/personal). Each profile uses separate config, local database, and agent.
RBW_PROFILE=work rbw config set email work@company.com
RBW_PROFILE=work rbw login
RBW_PROFILE=work rbw list
View current config:
rbw config show
rbw ls is an alias for rbw listrbw gen is an alias for rbw generaterbw rm is an alias for rbw removerbw totp is an alias for rbw coderbw get to target an exact entry by UUIDclawhub install rbw-bitwarden