Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 75
  • 342 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/2password

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install 2password in Claude Code

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

A

No 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 →

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.

2password Install

Add to stack

Loading.