1password
Skill2 starsChanged 7 days agoMITView on GitHub
Use 1Password with Claude Code without secrets ever entering the chat, the transcript, the command line or shell history. Trigger when the user wants to store an API key, token, password or credential; when a tool, MCP server, hook or script needs a secret; when the user mentions 1Password, `op`, `op://`, secret references, .env files with secrets, "where do I put my key", or asks how to launch Claude Code with secrets loaded. Provides: `op-store` (native hidden dialog with an eye/reveal toggle → straight into 1Password), `op-env` (launch any command with secrets injected, TTY preserved, one biometric prompt) and `secret-dialog`.
- Reads credentials
- Installs packages
43 other projects use a version of this.
Adopted by
Most recently taken up by
- QVerisAI/QVerisBottheir own version, first seen Nov 1, 2026
- EtanHey/golemstheir own version, first seen Oct 28, 2026
- OpenClawAndroid/openclaw-android-assistanttheir own version, first seen Oct 17, 2026
- HybridAIOne/hybridclawtheir own version, first seen Oct 13, 2026
- bighamx/openclaw-android-node-apktheir own version, first seen Oct 9, 2026
- molt-bot/clawdbottheir own version, first seen Oct 8, 2026
Used with
Projects with it also use openclaw-performance, plugin-sdk-impact and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
clawdbotSkillopenclaw-performance
Performance work in OpenClaw: a slow or heavy flow (latency, CPU, memory, SQL, RPC, renders), writing or reviewing a perf PR, or adding a cache. Count the work, delete waste first, cache last.
Also in 7 projects that use this
clawdbotSkillplugin-sdk-impact
Count Plugin SDK consumers across live ClawHub releases and bundled OpenClaw plugins before deprecation, removal, or behavior changes; supports public release-date filters.
Also in 7 projects that use this
hkyutongSkillnode-connect
Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale, or plugins.entries.device-pair.config.publicUrl.
Also in 18 projects that use this
molt-botSkilldiscord-e2e
Test Discord with Convex-leased QA bots: check credentials without a Gateway, exercise owned messages, or prove OpenClaw replies, files, threads, reactions, streaming, and typing. Distinguish API and Gateway evidence from manual user interactions.
Also in 10 projects that use this
molt-botSkillopenclaw-repair-sweep
Run scoped OpenClaw issue/PR repair campaigns: coordinate workers, prove root causes, and land or close verified work under the requested authority.
Also in 10 projects that use this
AtomicBot-aiSkilltaskflow-inbox-triage
Also in 6 projects that use this
- +2 more from molt-bot
Other versions43 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 43
- moltbot/clawdbot★ 394ksame name
- steipete/warelay★ 394ksame name
- steipete/clawdis★ 394ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- openclaw/openclaw★ 394ksame name
- molt-bot/clawdbot★ 391ksame name
- spinabot/brigade★ 11ksame name
- the-open-agent/openagent★ 5.7ksame name
- casibase/casibase★ 5.7ksame name
33 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
When installed as a plugin, hooks/guard.py catches the common mistakes: secrets pasted by the user (erased before you see them), op read / …
- Very specific: line 32
If a hook blocks you, do what its message says: run op-store <title> and use the op:// reference or $VAR.
- Very specific: line 52
Run op-store <title> (or --login for user+password).
- Very specific: line 55
Never verify by printing the value.
- Very specific: line 59
If the variable is missing, check op-env --list, then ask the user to add it with op-store and restart with op-env claude.
- Very specific: line 106
Delete the duplicate in 1Password, or reference the item by ID in the template: VAR=op://Vault/<item id>/field (the IDs are in that same …
“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
1Password for Claude Code
The one rule
Never ask the user to paste a secret into the chat. Anything typed in the chat or shown in a
tool result is in the transcript forever. Instead run op-store <title>: a native dialog opens
outside Claude's view, the user pastes there, the value goes straight into 1Password, and only the
op:// reference comes back.
Also never: print a secret value, op read inside every Bash call (biometric prompt fatigue),
source <(op run ... env) or eval (values with shell metacharacters execute as code),
bash -x any script that handles a value (the trace prints it).
The guard hooks back this up
When installed as a plugin, hooks/guard.py catches the common mistakes: secrets pasted by the
user (erased before you see them), op read / op item get / op run / printenv / echo $TOKEN
/ reading .env* or credential files (Bash, Read, Grep) / op item create ...=value, literal
secrets in Write/Edit, and any final message of yours that asks the user to paste a secret.
If a hook blocks you, do what its message says: run op-store <title> and use the op://
reference or $VAR. Do not look for a way around it, and do not call secret-dialog yourself:
its output is the secret.
Commands (installed by install.sh into ~/.local/bin)
| Command | What it does |
op-store <title> | Opens the native dialog (hidden field + eye). Saves an API Credential item, field credential, in vault Claude. Prints OK op://Claude/<title>/credential. Single-line values only. |
op-store --login <title> [--url URL] | Asks username (visible) then password (hidden). Saves a Login item. |
op-store --update <title> | Replaces the value of an existing item. |
op-store --vault V --field F <title> | Other vault / field name. |
op-env <command> | Resolves every op:// line of ~/.claude/.env.tpl in ONE op call, exports them, then execs the command. TTY preserved. Use op-env claude to start Claude Code. |
op-env --check | Shows op version, template, account, and how many keys resolve. Run this first when anything fails. |
op-env --list | Key names only, never values. |
Workflows
User wants to store a secret (key, token, password):
- Choose a short item title (e.g.
Apify,GitHub PAT,UniFi). - Run
op-store <title>(or--loginfor user+password). Tell the user a dialog opened and to paste there. - On
OK op://..., appendVAR_NAME=op://...to~/.claude/.env.tplif a tool needs it as an env var. - Tell the user to restart Claude Code with
op-env claudeso the new variable is loaded. Never verify by printing the value;op-storealready confirmed the field exists.
A tool / script / hook needs a secret and Claude was started with op-env:
the variable is already in the environment. Use $VAR_NAME in the command. Do not op read again.
If the variable is missing, check op-env --list, then ask the user to add it with op-store
and restart with op-env claude.
MCP server needs a token (.mcp.json): use ${VAR_NAME} expansion, inherited from op-env:
{ "mcpServers": { "x": { "command": "npx", "args": ["-y", "x-mcp"], "env": { "X_TOKEN": "${X_TOKEN}" } } } }HTTP servers with a bearer header: claude mcp add-json with a headersHelper that runs
op read once at connect time (see README).
One-off value outside a session: op read "op://Claude/Item/credential" — fine in the
user's own terminal, avoid inside Claude's Bash tool (each call is a new shell → new prompt).
Setup check (run before the first use)
op-env --checkop not found→ macOSbrew install --cask 1password-cli; other OS: https://developer.1password.com/docs/cli/get-started/NOT connected→ 1Password app > Settings > Developer > "Integrate with 1Password CLI" (Touch ID / Windows Hello / PolKit). Or exportOP_SERVICE_ACCOUNT_TOKEN(no app needed, scoped to chosen vaults).resolved: N of Mwith N < M → a reference in the template is wrong (vault/item/field name).
Security model (tell the user when relevant)
- With the desktop-app integration,
opcan read every vault of the account while the app is unlocked, not onlyClaude. The vault is organisation, not isolation. For real isolation use a service account scoped to one vault (op service-account create name --vault Claude:read_items,write_items;write_itemsis needed forop-store) and turn the app integration off.op-envremovesOP_SERVICE_ACCOUNT_TOKENfrom the launched session on purpose (OP_ENV_KEEP_SA=1keeps it). - Injected env vars protect the disk and the transcript. Every subprocess, hook and stdio MCP server
started by Claude Code inherits all of them, and a process can still
printenv. Do not print environments; do not runenv/printenv/setwithout filtering. op://references reveal vault, item and field names. Keep them non-sensitive.- Claude Code's own login token lives in the OS keychain and is readable by same-user processes (reported by Silverfort, 2026-07). Unrelated to 1Password; nothing here changes it.
Troubleshooting
- Claude starts in
--printmode / "No terminal detected": you usedop run -- claude. Useop-env claude. op whoamisays "account is not signed in" but everything works: known with app integration; ignore.- Repeated biometric prompts: something calls
opper command. Move the secret to the template and useop-env. - macOS 26: "«iTerm/Terminal» would like to access data from other apps" pops up again and again, even after Allow:
optalks to the desktop app through a socket inside 1Password's group container, and macOS keeps that answer only for the current terminal session and program. Fix: System Settings → Privacy & Security → Full Disk Access → add the terminal app, restart it.op-env --checkprints amacOS:line while this is missing. op-envloads 0 keys andop-env --checksays "More than one item matches": two items share a title. Delete the duplicate in 1Password, or reference the item by ID in the template:VAR=op://Vault/<item id>/field(the IDs are in that same error message).- MCP server fails after
/mcpreconnect: reconnect spawns non-interactively,opcannot prompt. Prefer${VAR}fromop-env. - Dialog never appears (macOS): the binary
secret-dialog-macosis missing → runinstall.sh(needsswiftc); falls back to AppleScript (no eye). - Linux: KDE uses
kdialog --password(eye built in, KDE Frameworks ≥ 5.84); GNOME uses GTK4Gtk.PasswordEntryviapython3-gi; elsezenity(no eye); elseread -sin a TTY. - Windows: PowerShell + WinForms dialog. Claude Code runs in Git Bash; the scripts run there. Windows and Linux backends are not yet verified by the author.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

