2password
Skill by kitlangton
Lets an AI assistant find, inject and save passwords, API keys and other secrets in 1Password using the 1Password CLI, without printing the values. Built for developers and agents who work with credentials.
Install 2password
Built from the published package, never by AI.
git clone --depth 1 https://github.com/kitlangton/2password /tmp/2password && mkdir -p ~/.claude/skills && cp -r /tmp/2password/skills/2password ~/.claude/skills/2passwordRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/kitlangton/2password /tmp/2password && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/2password/skills/2password ~/.gemini/antigravity-cli/skills/2passwordAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
2password is an agent skill that wraps the 1Password CLI (op) so an assistant can work with secrets without seeing them. It finds credentials by title, injects them into commands or env files, and saves new API keys. It can also check or update login passwords and audit a vault for duplicate, untagged or old items. The skill asks the assistant to batch queries to limit 1Password approval prompts and to pass op:// references instead of values. All output is JSON.
The skill is for developers and AI agents that need API keys, tokens and logins during tasks. For unattended use, it can set up a service account on macOS or Windows that stores its token in the system keychain or a DPAPI-encrypted file. Raw op remains the fallback for other item categories, editing, sharing and vault management.
Written from the project's SKILL.md and checked against it.
What it can do
- Find credentialsSearches 1Password for many queries in one lookup and returns references, never values.
- Use credentialsRuns commands or env templates with secrets injected from op:// references.
- Save a new API keyCreates an API Credential item from a clipboard or stdin value and verifies it.
- Check or update a login passwordCompares or updates a login password in a vault, then verifies the change.
- Audit a vaultReports duplicate titles, untagged machine credentials, old logins and transient URLs.
- Inventory a vaultLists item and field metadata for a vault without values or URL query strings.
- Service account setupSets up a service account so commands run without desktop approval prompts on macOS or Windows.
- Report issuesHelps draft a GitHub issue for the skill's maintainer after user approval.
What you need
- 1Password CLI (op)
- 1Password desktop app for approval prompts
- macOS or Windows for service account setup
- OP_SERVICE_ACCOUNT_TOKEN for Linux or CI
Try asking
- Find my OpenAI and Stripe API keys in 1Password.
- Run my dev server with the secrets from my .env.tpl template.
- Audit my Work vault for duplicate and old logins.
Good to know
- Each new shell can trigger a fresh 1Password approval prompt.
- Service account setup is described for macOS and Windows only.
- Login passwords with passkeys or unnamed imported fields are refused unless the user approves a repair.
- On Windows, any process running as the user can decrypt the saved service account token file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/2password/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to 2password
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
2password: common questions
Does the assistant ever see my secret values?
The skill says never to print, log or repeat secret values and to pass op:// references instead. Commands that run with injected credentials give the child process plaintext in its environment.
Can it save a new API key to 1Password?
Yes, through the create api-credential command, which needs a vault and refuses duplicate titles. It reports success only when the item is verified.
Does it need a service account?
No. The desktop login works by default, and a service account is optional for silent access. The source says to set one up only when the user asks.
How do I install 2password?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is 2password free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is 2password safe to use?
It scores 75 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to 2password?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
