op-session
Skill by sd0xdev
Initializes a 1Password CLI session for Claude Code so op calls stop triggering a biometric prompt on every command. It is for developers whose sessions need 1Password secrets.
Install op-session
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sd0xdev/sd0x-harness /tmp/sd0x-harness && mkdir -p ~/.claude/skills && cp -r /tmp/sd0x-harness/skills/op-session ~/.claude/skills/op-sessionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sd0xdev/sd0x-harness /tmp/sd0x-harness && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sd0x-harness/skills/op-session ~/.gemini/antigravity-cli/skills/op-sessionAntigravity 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
op-session sets up a 1Password CLI session for Claude Code. Claude Code runs each Bash tool call in a new subprocess without a TTY, and the 1Password app integration then asks for biometric auth on every op call. The skill auto-detects one of two modes. In token mode, it caches a session token in a file owned by the user. In App Integration mode, it stores no token and the op CLI talks to the desktop app directly.
A helper script handles later op calls. It reads the auth mode from the session file, passes the right flags, checks that the session is valid, and reports when the session is missing, expired, or the app is locked. The skill is aimed at developers who use 1Password secrets during Claude Code sessions and want fewer biometric prompts.
Written from the project's SKILL.md and checked against it.
What it can do
- Initialize sessionRuns op-session-init.sh to detect the auth mode and write a session file, with an optional account flag.
- List accountsLists available 1Password accounts using the --list option of op-session-init.sh.
- Check session statusReports the current session state using the --check option of op-session-init.sh.
- Clear sessionRemoves the session file using the --clear option of op-session-init.sh.
- Run op calls with sessionUses op-with-session.sh to run read, item list and whoami commands with the stored session.
What you need
- 1Password CLI (op) installed and configured
- 1Password desktop app running
- An account signed in to the 1Password app
Try asking
- Set up a 1Password session for this project.
- Check whether my 1Password session is still active.
- Read op://vault/item/field using my 1Password session.
Good to know
- In App Integration mode, op calls fail until the 1Password desktop app is unlocked.
- In token mode, the session token is stored on disk in a file owned by the user.
- The Bash tool permission cannot be narrowed to specific script paths yet.
- The context check shown in the UI is best-effort, so use the --check command for authoritative status.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/op-session/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(bash:*)
Alternatives to op-session
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
op-session: common questions
Why does 1Password keep asking for biometric auth in Claude Code?
Claude Code runs each Bash tool call in a new subprocess without a TTY, and 1Password CLI's app integration binds auth to the terminal session. The skill configures a session so op calls can run without a prompt on every call.
What is the difference between token mode and App Integration mode?
Token mode caches a session token in ~/.op-claude-session and passes it with the --session flag. App Integration mode stores no token and the op CLI communicates with the desktop app.
Does the session expire?
Yes. Token mode expires after 30 minutes idle or 12 hours hard limit. App Integration mode expires after 10 minutes idle, with auto-refresh on use, and also has a 12 hour hard limit.
How do I install op-session?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is op-session free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is op-session safe to use?
It scores 67 of 100. Grades: maintenance A, 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 op-session?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
