1password

1password is a skill for Claude Code, Codex from iamzhihuix/happy-claude-skills. It costs 62 tokens per session (836 once invoked), scanned A, original, MIT.

A command-line interface for storing, finding, and reading passwords, API keys, and other credentials in 1Password, a password manager.

In plain words
What is it for?
Use it to save API keys, search for stored credentials, read them, and inject them into a program’s environment.
Why use it?
It keeps credentials out of scripts and ordinary files while making them available to commands that need them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to save API keys, search for stored credentials, read them, and inject them into a program’s environment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iamzhihuix/happy-claude-skills/1password
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iamzhihuix/happy-claude-skills --skill 1password
Clone the repo
git clone --depth 1 https://github.com/iamzhihuix/happy-claude-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin 1password/plugin install 1password after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 1password

README.md
[![agentmods](https://agentmods.dev/badge/skills/iamzhihuix/happy-claude-skills/1password/github.svg)](https://agentmods.dev/skills/iamzhihuix/happy-claude-skills/1password)
Your own site
<a href="https://agentmods.dev/skills/iamzhihuix/happy-claude-skills/1password"><img src="https://agentmods.dev/badge/skills/iamzhihuix/happy-claude-skills/1password/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 1password

Your own site · 80×15
<a href="https://agentmods.dev/skills/iamzhihuix/happy-claude-skills/1password"><img src="https://agentmods.dev/badge/skills/iamzhihuix/happy-claude-skills/1password.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 836 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00836
Opus 5 $0.00031 $0.00418
Sonnet 5 $0.00012 $0.00167
Haiku 4.5 $0.00006 $0.00084

Measured 12d ago against content hash 4292b295dbae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

1password scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/1password/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

1Password CLI

使用 op CLI 管理 1Password vault 中的密码和 API credentials。

前置检查

使用前确认 op 已安装并已集成桌面 App:

op --version

未安装则引导安装:

brew install --cask 1password-cli

安装后需在 1Password 桌面 App 中开启集成:Settings → Developer → Integrate with 1Password CLI。


保存 API Credential

用户提供 API Key 信息时,使用以下命令保存。字段按实际提供情况填写,未提供的字段省略。

标题命名规范: {服务商} API Key - {用途标识}(如 OpenAI API Key - agent

op item create \
  --category="API Credential" \
  --title="{标题}" \
  --vault="Personal" \
  "credential={API Key}" \
  "website[url]={网站 URL}" \
  "base_url[text]={API base URL}" \
  "username[text]={邮箱或用户名}" \
  "用途说明[text]={用途描述}" \
  "过期时间[text]={YYYY-MM-DD}" \
  "创建日期[text]={YYYY-MM-DD}" \
  --tags "{服务商},{项目标签}"

最小必填字段: credential(API Key 本身)。其余字段按用户提供情况填入。


查询/搜索条目

按标题或 URL 关键词模糊查找:

op item list --format=json | python3 -c "
import json, sys
items = json.load(sys.stdin)
keyword = '{关键词}'.lower()
for i in items:
    title_match = keyword in i['title'].lower()
    url_match = any(keyword in str(u) for u in i.get('urls', []))
    if title_match or url_match:
        print('ID:', i['id'], '| Title:', i['title'], '| Updated:', i.get('updated_at', ''))
"

读取 Credential

# 读取(隐藏值)
op item get "{标题}" --fields credential

# 读取(显示明文)
op item get "{标题}" --fields credential --reveal

注入环境变量(开发工作流)

.env 文件中使用 Secret References 代替明文,可以安全提交到 git:

OPENAI_API_KEY=op://Personal/OpenAI API Key - agent/credential
DEEPSEEK_API_KEY=op://Personal/DeepSeek API Key - agent skd/credential

运行脚本时注入真实值:

op run --env-file=.env -- your-script.sh
op run --env-file=.env -- python3 main.py

Vault 管理

# 查看所有 vault
op vault list

# 查看某 vault 下所有条目
op item list --vault="Personal"

# 按 tag 筛选
op item list --tags "deepseek"

工作流示例

用户说「帮我保存 OpenAI 的 API Key:sk-xxx」时:

  1. 确认 op 已安装可用
  2. 收集信息:服务商名、API Key、网站 URL、用途、关联项目(按用户提供情况)
  3. 执行 op item create 保存
  4. 输出保存结果(ID、标题、字段列表),不显示 credential 明文

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 128 lines · 62 tokens per session scan A 4292b295dbae

Subscribe to this mod's changes

1password is a skill published in the GitHub repository iamzhihuix/happy-claude-skills (306 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 836 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens