Bitwarden Skill
Interact with Bitwarden or Vaultwarden vaults using the rbw CLI.
Usage & Configuration
1. Setup (First Run)
rbw config set email <your_email>
rbw config set baseurl <vault_url> # Optional, defaults to bitwarden.com
rbw login
Note: Login requires the Master Password and potentially 2FA (email/TOTP).
2. Unlock
rbw unlock
Note: rbw caches the session key in the agent. If interactive input is required (pinentry), see if you can setup pinentry-curses (CLI-based pinentry) as the pinentry provider.
3. Management
- - List items: INLINECODE3
- Get item: INLINECODE4
- Get JSON: INLINECODE5
- Search: INLINECODE6
- Add: INLINECODE7
- Sync:
rbw sync (Refresh vault)
Note: Always sync before getting details to ensure accuracy.
Tools
The agent uses exec to run rbw commands.
- - For unlocking, use
tmux if rbw prompts for a password via pinentry-curses. - For adding items,
rbw add may require EDITOR configuration or tmux.
Bitwarden 技能
使用 rbw 命令行工具与 Bitwarden 或 Vaultwarden 密码库进行交互。
使用与配置
1. 初始设置(首次运行)
bash
rbw config set email <你的邮箱>
rbw config set baseurl <密码库地址> # 可选,默认为 bitwarden.com
rbw login
注意:登录需要主密码,可能还需要双重认证(邮箱/TOTP)。
2. 解锁
bash
rbw unlock
注意:rbw 会在代理中缓存会话密钥。如果需要交互式输入(pinentry),请尝试将 pinentry-curses(基于命令行的 pinentry)设置为 pinentry 提供程序。
3. 管理
- - 列出项目: rbw list
- 获取项目: rbw get 名称
- 获取 JSON: rbw get --full 名称
- 搜索: rbw search 查询内容
- 添加: rbw add ...
- 同步: rbw sync(刷新密码库)
注意:在获取详细信息前务必先同步,以确保准确性。
工具
代理使用 exec 来执行 rbw 命令。
- - 解锁时,如果 rbw 通过 pinentry-curses 提示输入密码,请使用 tmux。
- 添加项目时,rbw add 可能需要配置 EDITOR 环境变量或使用 tmux。