1password-sdk
Skill by MadAppGang
Teaches an assistant to load secrets and environment variables from 1Password in JavaScript or TypeScript using the official @1password/sdk. Built for developers wiring 1Password into Node, Bun or TypeScript apps.
Install 1password-sdk
Built from the published package, never by AI.
git clone --depth 1 https://github.com/MadAppGang/claudish /tmp/claudish && mkdir -p ~/.claude/skills && cp -r /tmp/claudish/.claude/skills/1password-sdk ~/.claude/skills/1password-sdkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/MadAppGang/claudish /tmp/claudish && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claudish/.claude/skills/1password-sdk ~/.gemini/antigravity-cli/skills/1password-sdkAntigravity 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
The 1password-sdk skill explains how to use the official @1password/sdk to read secrets from 1Password in-process, without the op CLI. It covers authenticating with a service account token or the desktop app, and resolving op:// references one at a time or in batches. It also covers reading 1Password Environments with the beta SDK and discovering the fields of an item for bulk imports.
It is aimed at developers who need credentials at runtime in Node, Bun or TypeScript apps. The skill says to prefer this SDK over shelling out to the op CLI unless the task needs an interactive op signin session. Resolved secrets should stay in memory and never be logged or written to disk.
Written from the project's SKILL.md and checked against it.
What it can do
- Resolve secretsResolves a single op:// reference with secrets.resolve.
- Batch resolveResolves many references in one round-trip with secrets.resolveAll, with per-reference errors.
- Validate referencesChecks an op:// reference syntactically with Secrets.validateSecretReference, without network access.
- List vaults and itemsLists vaults and items by ID using client.vaults.list and client.items.list.
- Get item fieldsFetches an item's fields and sections with client.items.get for bulk imports.
- Read EnvironmentsReads 1Password Environment variables with environments.getVariables, in the beta SDK.
What you need
- 1Password service account token or the 1Password desktop app with SDK integration enabled
- Node.js, Bun or another TypeScript runtime
- npm or Bun to install @1password/sdk
Try asking
- Load the database password from 1Password and use it in my Node app.
- Resolve these op:// references in one batch and show any that fail.
- Import all API keys from my 1Password item into process.env.
Good to know
- Reading 1Password Environments requires the beta SDK, version 0.4.1-beta.1.
- Service account tokens cannot read Private or Personal vaults, only shared vaults.
- The SDK cannot reuse an existing op signin session and needs its own auth.
- items.get returns decrypted values for every field, with no names-only mode.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/1password-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to 1password-sdk
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
1password-sdk: common questions
Should I use the 1Password SDK or the op CLI?
The skill recommends the in-process SDK over the op CLI unless the task needs the user's interactive op signin session. The SDK avoids a separate binary and batches resolution.
Can a service account read my Private vault?
No. The skill says service account tokens can only read shared vaults. The DesktopAuth option uses the running desktop app and can read the Private vault.
Which SDK version do I need for 1Password Environments?
The stable release does not include the environments API. The skill says to install @1password/sdk@0.4.1-beta.1.
How do I install 1password-sdk?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is 1password-sdk free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is 1password-sdk safe to use?
It scores 72 of 100. Grades: maintenance A, licence F, quality A. 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 1password-sdk?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
