SuperAPI AI Directory

bitwarden

General & other

View repository

Updated 10-16 09:31

About this skill

Bitwarden Password Management

Securely access the vault via the Bitwarden CLI (bw).

Use Cases

  • The user says "Help me look up the Netflix password" or "What is my WiFi password?"
  • The user says "Generate a strong password"

Prerequisites

Install the Bitwarden CLI:

# macOS
brew install bitwarden-cli
# Windows
winget install Bitwarden.CLI
# npm
npm install -g @bitwarden/cli

Log in is required for first-time use:bw login

Execution Method

Unlock the vault

export BW_SESSION=$(bw unlock --raw)

Search for passwords

bw list items --search "netflix" --session $BW_SESSION | python3 -c "
import json,sys
for item in json.load(sys.stdin):
    login = item.get('login', {})
    print(f\"Name: {item['name']}\")
    print(f\"Username: {login.get('username', 'N/A')}\")
    print(f\"Password: {login.get('password', 'N/A')}\")
    print('---')
"

Generate a password

bw generate --length 20 --uppercase --lowercase --number --special

Security Rules

  • Never keep plaintext passwords in the chat history—immediately after displaying, remind the user that it has been retrieved
  • Do not record passwords in logs or MEMORY.md
  • After displaying a password, suggest the user copy it using the clipboard and then clear it

Output Specifications

  • Search results should only show the account name and username; the password should be displayed only after the user confirms
  • When displaying a password, remind the user: "The password has been displayed, please copy it promptly and close the conversation"
  • When the vault is locked, guide the user to run bw unlock