Set up and use Bitwarden CLI (bw). Use when installing the CLI, unlocking vault, or reading/generating secrets via bw. Handles session management with BW_SESSION.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install openclaw-bitwarden或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install openclaw-bitwarden⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/openclaw-bitwarden/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: bitwarden description: Set up and use Bitwarden CLI (bw). Use when installing the CLI, unlocking vault, or reading/generating secrets via bw. Handles session management with BW_SESSION. homepage: https://bitwarden.com/help/cli/ metadata: {"openclaw":{"emoji":"🔐","requires":{"bins":["bw","tmux"]},"install":[{"id":"brew-bw","kind":"brew","formula":"bitwarden-cli","bins":["bw"],"label":"Install Bitwarden CLI (brew)"},{"id":"brew-tmux","kind":"brew","formula":"tmux","bins":["tmux"],"label":"Install tmux (brew)"}]}} ---
Manage passwords and secrets via the Bitwarden CLI.
references/get-started.md (install + login + unlock flow)references/cli-examples.md (real bw examples)bw --version.bw status (returns JSON with status field).bw login (stores API key, prompts for master password).bw commands.bw unlock (outputs session key).export BW_SESSION="" .bw sync then bw list items --search test.The Bitwarden CLI requires the BW_SESSION environment variable for authenticated commands. To persist the session across commands, always run bw inside a dedicated tmux session.
Example (see tmux skill for socket conventions):
SOCKET_DIR="${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/openclaw-tmux-sockets}"
mkdir -p "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/openclaw-bw.sock"
SESSION="bw-auth-$(date +%Y%m%d-%H%M%S)"
tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
# Unlock and capture session key
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'export BW_SESSION=$(bw unlock --raw)' Enter
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'bw sync' Enter
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'bw list items --search github' Enter
# Capture output
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200
# Cleanup when done
tmux -S "$SOCKET" kill-session -t "$SESSION"
| Command | Description | |---------|-------------| | bw status | Check login/lock status (JSON) | | bw login | Login with email/password or API key | | bw unlock | Unlock vault, returns session key | | bw lock | Lock vault | | bw sync | Sync vault with server | | bw list items | List all items | | bw list items --search | Search items | | bw get item | Get specific item (JSON) | | bw get password | Get just the password | | bw get username | Get just the username | | bw get totp | Get TOTP code | | bw generate -ulns --length 32 | Generate password |
bw get password over parsing full item JSON when only password needed.bw unlock inside tmux.bw commands outside tmux; the session won't persist.bw lock.This skill includes a Docker Compose setup for local testing with Vaultwarden (self-hosted Bitwarden-compatible server).
# Install mkcert and generate local certs (one-time)
brew install mkcert
mkcert -install
cd /path/to/openclaw-bitwarden
mkdir -p certs && cd certs
mkcert localhost 127.0.0.1 ::1
cd ..
# Start Vaultwarden + Caddy
docker compose up -d
# Configure bw CLI to use local server
bw config server https://localhost:8443
# Create a test account via web UI at https://localhost:8443
# Or run the setup script:
./scripts/setup-test-account.sh
# Test the skill workflow
./scripts/test-skill-workflow.sh
test-admin-token-12345)The bw CLI requires the mkcert CA to be trusted. Export before running bw commands:
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
Or add to your shell profile for persistence.
docker compose down -v # Remove container and data安装 Bitwarden 后,可以对 AI 说这些话来触发它
Help me get started with Bitwarden
Explains what Bitwarden does, walks through the setup, and runs a quick demo based on your current project
Use Bitwarden to set up and use Bitwarden CLI (bw)
Invokes Bitwarden with the right parameters and returns the result directly in the conversation
What can I do with Bitwarden in my ai agent & automation workflow?
Lists the top use cases for Bitwarden, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/openclaw-bitwarden/ 目录(个人级,所有项目可用),或 .claude/skills/openclaw-bitwarden/(项目级)。重启 AI 客户端后,用 /openclaw-bitwarden 主动调用,或让 AI 根据上下文自动发现并使用。
Bitwarden 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Bitwarden 可免费安装使用。请查阅仓库了解许可证信息。
Set up and use Bitwarden CLI (bw). Use when installing the CLI, unlocking vault, or reading/generating secrets via bw. Handles session management with BW_SESSION.
Bitwarden 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Bitwarden
Identifies repetitive steps in your workflow and sets up Bitwarden to handle them automatically