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

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.

  • Score 67
  • 196 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-session

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

Step-by-step: install op-session in Claude Code

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

A

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

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.

op-session Install

Add to stack

Loading.