bw-cli
Securely interact with Bitwarden password manager via the bw CLI.
Skill by Trompetilla
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/trompetilla-bw-cli
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/bw-cli
What's inside
- Skill name
bw-cli- Description
- Securely interact with Bitwarden password manager via the bw CLI. Covers authentication (login/unlock/logout), vault operations (list/get/create/edit/delete items, folders, attachments), password/passphrase generation, organization management, and secure session handling. Use for "bitwarden", "bw", "password safe", "vaultwarden", "vault", "password manager", "generate password", "get password", "unlock vault". Requires bw CLI installed and internet access.
- License
- MIT
- Instructions
- 330 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- _meta.json
- commands.md · references/
- create-login-item.sh · scripts/
- safe-get-field.sh · scripts/
- unlock-session.sh · scripts/
SKILL.md (first lines)
# Bitwarden CLI Skill Secure vault operations using the Bitwarden command-line interface. ## When to use **Activate this skill when the user wants to:** - Authenticate to Bitwarden (`login`, `unlock`, `logout`, `status`) - Retrieve credentials (`get password`, `get username`, `get totp`, `get item`) - Manage vault items (`list`, `create`, `edit`, `delete`, `restore`) - Generate passwords/passphrases (`generate`) - Handle attachments (`create attachment`, `get attachment`) - Manage organizations (`list organizations`, `move`, `confirm`) - Export/import vault data - Work with Vaultwarden/self-hosted instances **Do NOT use for:** - Installing Bitwarden browser extensions or mobile apps - Comparing password managers theoretically - Self-hosting Bitwarden server setup (use server administration tools) - General encryption questions unrelated to Bitwarden ## Prerequisites - `bw` CLI installed (verify with `bw --version`) - Internet access (or access to self-hosted server) - For vault operations: valid `BW_SESSION` environment variable or interactive unlock ## Authentication & Session Management Bitwarden CLI uses a two-step authentication model: 1. **Login** (`bw login`) - Authenticates identity, creates local vault copy 2. **Unlock** (`bw unlock`) - Decrypts vault, generates session key ### ⚠️ ALWAYS Sync Before Accessing Vault **CRITICAL:** The Bitwarden CLI maintains a local copy of the vault that can become stale. **Always run `bw sync` before accessing vault data** to ensure you have the latest items: ```bash # Sync vault before any retrieval operation bw sync # Then proceed with vault operations bw get item "Coda API Token" ``` **Best practice pattern for all vault operations:** 1. Check status / unlock if needed 2. **Run `bw sync`** (always!) 3. Then list, get, create, edit items This prevents working with outdated data, especially when: - Items were added/updated via other devices or browser extensions - Working with shared organization items - Recent changes haven't propagated to the local vault copy ### Quick Start: Interactive Login ```bash # Login (supports email/password, API key, or SSO) bw login # Unlock to get session key bw unlock # Copy the export command from output, then: export BW_SESSION="..." ``` ### Automated/Scripted Login Use environment variables for automation: ```bash # Method 1: API Key (recommended for automation) export BW_CLIENTID="user.xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" export BW_CLIENTSECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" bw login --apikey bw unlock --passwordenv BW_PASSWORD # if BW_PASSWORD set # Method 2: Password file bw unlock --passwordfile ~/.secrets/bw-master-password.txt ``` ### Secure Password Storage (User-Requested) If the user explicitly requests saving the master password to disk for convenience: ```bash # 1. Create secrets directory in workspace mkdir -p ~/.openclaw/workspace/.secrets chmod 700 ~/.openclaw/workspace/.secrets # 2. Store password (user enters interactively) read -s BW_MASTER_PASS echo "$BW_MASTER_PASS" > ~/.openclaw/workspace/.secrets/bw-password.txt chmod 600 ~/.openclaw/workspace/.secrets/bw-password.txt # 3. Ensure git ignores it echo ".secrets/" >> ~/.openclaw/workspace/.gitignore ``` **Security requirements:** - File must be created with mode `600` (user read/write only) - Directory must be mode `700` - Must add `.secrets/` to `.gitignore` immediately - Must inform user of risks ### Check Status ```bash bw status ``` Returns JSON with `status`: `unauthenticated`, `locked`, or `unlocked`. ### End Session ```bash # Lock (keep login, destroy session key)
From Trompetilla/Skills, MIT.
More from Trompetilla/Skills
- 0.430score
openclaw-youtube
Trompetilla
YouTube SERP Scout for agents.
SkillDFreshness: D★ 1Claude Code +9 - 0.430score
openclaw-search
Trompetilla
Intelligent search for agents.
SkillDFreshness: D★ 1Claude Code +9 - 0.430score
llm-router
Trompetilla
Unified LLM Gateway - One API for 70+ AI models.
SkillDFreshness: D★ 1Claude Code +9 - 0.430score
us-stock-analyst
Trompetilla
Professional US stock analysis with financial data, news, social sentiment, and multi-model AI.
SkillDFreshness: D★ 1Claude Code +9 - 0.427score
openclaw-media-gen
Trompetilla
Generate images & videos with AIsa.
SkillDFreshness: D★ 1Claude Code +9 - 0.426score
Twitter Command Center (Search + Post)
Trompetilla
Search X (Twitter) in real time, extract relevant posts, and publish tweets/replies instantly—perfect for social listening, engagement, and rapid content ops.
SkillDFreshness: D★ 1Claude Code +9 - 0.426score
MarketPulse
Trompetilla
Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- Feb 9, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Trompetilla/Skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Trompetilla
- 0.430score
openclaw-youtube
Trompetilla
YouTube SERP Scout for agents.
SkillDFreshness: D★ 1Claude Code +9 - 0.430score
openclaw-search
Trompetilla
Intelligent search for agents.
SkillDFreshness: D★ 1Claude Code +9 - 0.430score
llm-router
Trompetilla
Unified LLM Gateway - One API for 70+ AI models.
SkillDFreshness: D★ 1Claude Code +9 - 0.430score
us-stock-analyst
Trompetilla
Professional US stock analysis with financial data, news, social sentiment, and multi-model AI.
SkillDFreshness: D★ 1Claude Code +9 - 0.427score
openclaw-media-gen
Trompetilla
Generate images & videos with AIsa.
SkillDFreshness: D★ 1Claude Code +9 - 0.426score
Twitter Command Center (Search + Post)
Trompetilla
Search X (Twitter) in real time, extract relevant posts, and publish tweets/replies instantly—perfect for social listening, engagement, and rapid content ops.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
bw-cli skill. Agent Mart. https://agentmart.dev/skills/trompetilla-bw-cli (last updated 2026-10-24)