1Password: multiple named accounts - #1841
Merged
Merged
Conversation
Co-authored-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>
Contributor
Cloudflare previewTorn down — the PR is closed. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | b7c8cfe | Aug 29 2026, 07:06 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | b7c8cfe | Commit Preview URL Branch Preview URL |
Aug 29 2026, 07:07 AM |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #1829 and resolves #1791. Reworks #1836 — co-authored with @Adityakk9031.
The 1Password provider now holds any number of named accounts. Each account has its own auth (desktop-app biometrics or a service-account token) and its own set of vaults. This separates work and personal credentials without one configuration overwriting the other.
Model
{ accounts: [{ id, name, auth, vaults }] }. Both older shapes (singlevaultId, and single-account multi-vault) normalize onto onedefaultaccount on read; the next save writes the current shape. Item ids (op://<vaultId>/<itemId>) are unchanged, so existing picks keep resolving.op://refs keep vault-first addressing, matching 1Password's own URI semantics. Vault ids are globally unique, so an id-qualified ref routes to whichever account owns the vault. A vault name that exists in more than one account is an explicit ambiguity error, as is a bare item ref matching several vaults — never a silent pick.API / tools
configureupserts one account (no id = create, id = replace in place) and returns the account id.removeConfigremoves one account by id, or everything without an id. Removing the last account deletes the config.getConfigreturns the redacted account list; tokens are never surfaced.UI
Account · Vaultwhen more than one account exists, vault name only otherwise.Demo (synthetic data)
Two accounts, each with its own vault set:
Add dialog with multi-select vaults:
Item picker disambiguating identical titles across accounts: