Th0rgal avatar

bitwarden-secrets

Retrieve and manage secrets using Bitwarden Secrets Manager CLI (bws). Trigger terms: bitwarden, sec

作者 Th0rgal|オープンソース

Use when

  • Retrieving API keys, passwords, or credentials for a task
  • Listing available secrets or projects
  • Creating or updating secrets

Don't use when

  • Storing secrets in code or config files (use bws instead)
  • Managing Bitwarden vault items (use bw CLI, not bws)

Prerequisites

  • bws CLI installed
  • BWS_ACCESS_TOKEN environment variable set

Quick Reference

ActionCommand
Get secretbws secret get <SECRET_ID>
List secretsbws secret list
List in projectbws secret list <PROJECT_ID>
List projectsbws project list
Create secretbws secret create <KEY> <VALUE> <PROJECT_ID>
Edit secretbws secret edit <SECRET_ID> --value <VALUE>
Delete secretbws secret delete <SECRET_ID>

Outputs

Use --output flag: json, yaml, table, tsv, env

bws secret get <ID> --output json
bws secret list --output table

Templates or Examples

  • Use the bws secret list --format json output when a structured list is required.
  • Use the bws secret get --format json output when the user needs an exact payload.

Procedure

  1. List projects to find where secrets are stored
  2. List secrets in the relevant project
  3. Get secret by ID to retrieve the value
  4. Use the secret value in your task (don't log it)

Checks & Guardrails

  • Never echo or log secret values
  • Don't commit secrets to git
  • Use --output json for parsing in scripts
bitwarden-secrets - Claude Code・Cursor 対応の AIエージェント Skill | Agent Skills