What problem does it solve?
Managing credentials securely and efficiently across development and automation workflows often leads to insecure practices or manual overhead. The Bitwarden CLI with API-key authentication provides a centralized, auditable vault that can be accessed from scripts and CI without exposing secrets.
Core Features & Use Cases
- Secure vault access: Authenticate with Bitwarden using API keys and unlock sessions to retrieve credentials on demand.
- Automation-ready: Scripted login, item retrieval, and storage of service credentials for local development, CI pipelines, and automation tasks.
- Use Case: A developer uses a CI job to fetch a service's API key and inject it into the build environment without hard-coding secrets.
Quick Start
Install the Bitwarden CLI, configure BW_CLIENTID and BW_CLIENTSECRET in a local .env file or environment, then login and unlock the vault:
- npm install -g @bitwarden/cli
- source .env
- bw login --apikey
- export BW_SESSION=$(bw unlock --raw)
- bw list items --search "SERVICE"