Add bin/op-to-bw: copy a 1Password 7 Login to Bitwarden (Vaultwarden) #644
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.42) × (1 − Review Confidence (0.86)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 536 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.81 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.376
Real PR Conversation Timeline
6 items
Approved
Approved these changes.
CodeQL / Explicit returns mixed with implicit (fall through) returns
Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.
CodeQL / Explicit returns mixed with implicit (fall through) returns
Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.
parkr
memk
Summary
op-to-bw QUERYcopies a Login from 1Password 7 to Bitwarden (Vaultwarden).Source (
--vault PATHor$OPVAULT):.opvaultvault file. It prompts for the master password (or reads$OPVAULT_PASSWORD). If no path is given, it looks for one with Spotlight..1pifexport (File > Export > 1PIF, file or folder). This covers iCloud-synced 1Password 7 vaults, which have no vault file. The export is unencrypted, so delete it afterwards.Flow
1. Searches non-trashed Login names and URLs (case-insensitive substring).
2. One match continues automatically; several prompt for a choice; none is an error.
3. Copies name, username, password, URIs, TOTP, notes and every other section field (concealed ones become hidden fields). Empty fields are skipped.
4. If a Bitwarden Login with the same name exists, it is updated in place. Several same-named entries prompt, with a "create new" option. On update:
- the folder, favorite and unrelated custom fields are kept
- URIs are merged, keeping existing ones and their match settings
- 1Password notes are appended to existing notes
- custom fields with the same name are overwritten by 1Password
--dry-runshows the plan without writing anything.Notes
bw(bitwarden-cli, added toosx/Brewfile) is needed. Runbw config server URLandbw loginonce beforehand. The script syncs before looking up existing entries and prompts to unlock if$BW_SESSIONis unset or stale.ps. Secrets are passed tobwover stdin, not argv..1pifitems are skipped with a warning.Testing
freddy), including a Login with sections and notes. A wrong password is detected..1pifexports.opensslon random inputs.mypy --strict --scripts-are-modules bin/op-to-bwand pytype (with its strict flags).bwwas stubbed (create, update, multi-match, no match, dry-run). It has not been run against a real Vaultwarden, so try--dry-runfirst.🤖 Generated with Claude Code