1password

Configure 1Password CLI and read or inject secrets into commands.

Updated May 3, 2026
One-click install
npx skills add https://github.com/80portisfound/vibe-learning --skill 1password-80portisfound
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: 1password
Source: https://github.com/80portisfound/vibe-learning/tree/main/packages/hermes/optional-skills/security/1password
Command: npx skills add https://github.com/80portisfound/vibe-learning --skill 1password-80portisfound

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing secrets through plaintext environment variables or config files exposes credentials and complicates rotation. This Skill sets up the 1Password CLI (op) so secrets are read, injected, or passed to commands directly from a 1Password vault. ## Core Features & Use Cases - CLI Setup and Authentication: Install op and authenticate via service account token, desktop app integration, or a self-hosted Connect server. - Secret Operations: Read secrets with op:// references, fetch one-time passwords, inject secrets into templates with op inject, and run commands with secret env vars via op run. - Stable Terminal Sessions: Use a dedicated tmux session for desktop app sign-in flows so authentication persists across non-interactive terminal calls. - Use Case: A developer needs a database password for a deployment script. Instead of pasting it into a .env file, they run the command with op run so the secret is resolved at runtime from the vault. ## Quick Start Set up the 1Password CLI with a service account token and read the database password from my app-prod vault.

Frequently Asked Questions about 1password

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read a secret with the 1Password CLI?▼

Use op read with a secret reference like op://Vault/Item/field, for example op read "op://app-prod/db/password". You must be authenticated via a service account token, desktop app integration, or a Connect server first.

How to inject secrets into a config file with op?▼

Pipe a template containing op:// references into op inject, such as echo "db_password: {{ op://app-prod/db/password }}" | op inject. You can also use op inject -i config.tpl.yml -o config.yml for file-based templates.

Can I use 1Password CLI in CI or headless environments?▼

Yes, authenticate with OP_SERVICE_ACCOUNT_TOKEN instead of interactive op signin. Service accounts require CLI v2.18.0 or later and support op read, op inject, and op run without a desktop app.

Why does op say account is not signed in?▼

Non-interactive terminal calls can lose auth context between invocations when using desktop app integration. Run op signin and subsequent commands inside the same dedicated tmux session, or switch to a service account token.

How do I get a one-time password from 1Password CLI?▼

Read the OTP attribute of the item with op read "op://Vault/Item/one-time password?attribute=otp". This returns the current TOTP code for that vault item.