1password

Configure the 1Password op CLI to read, inject, and run commands with secrets.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill 1password-vivekgoquest
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: 1password
Source: https://github.com/vivekgoquest/hermes-agent-stable/tree/main/optional-skills/security/1password
Command: npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill 1password-vivekgoquest

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing secrets as plaintext environment variables or files is risky and hard to maintain. This Skill sets up the 1Password CLI (op) so secrets are read, injected, or passed to commands directly from 1Password vaults without exposing raw values. ## Core Features & Use Cases - CLI Setup and Authentication: Install op and sign in via desktop app integration, service account token (OP_SERVICE_ACCOUNT_TOKEN), or a self-hosted Connect server. - Secret Operations: Read secret references like op://Vault/Item/field, fetch one-time passwords, inject secrets into templates with op inject, and run commands with secret env vars via op run. - Headless and CI Support: Use service account tokens for non-interactive environments, or a dedicated tmux session to preserve desktop-app auth across terminal calls. - Use Case: You need a database password in a deployment script. Instead of hardcoding it, set DB_PASSWORD to an op:// reference and run the script with op run so the secret is resolved at runtime. ## 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 from 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 signed in via desktop app integration, a service account token, or a Connect server first.

How to inject secrets into config files with 1Password?▼

Use op inject to resolve op:// references inside templates, such as echo "db_password: {{ op://app-prod/db/password }}" | op inject. You can also run op inject -i config.tpl.yml -o config.yml for file-based templating.

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 the desktop app.

Why does op fail with account is not signed in?▼

Non-interactive terminal calls can lose auth context between commands. Run op signin again in the same tmux session for desktop app flows, or switch to a service account token which persists automatically.

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

Run op read with the OTP attribute, for example op read "op://app-prod/npm/one-time password?attribute=otp". This returns the current TOTP code for the item.