1password

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

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill 1password-kaminocorp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: 1password
Source: https://github.com/kaminocorp/hermes-alpha-hunter/tree/main/optional-skills/security/1password
Command: npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill 1password-kaminocorp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing secrets through plaintext environment variables or files is risky and hard to maintain. This Skill sets up the 1Password CLI (op) so secrets stay in your vault and are read, injected, or passed to commands only at runtime. ## Core Features & Use Cases - CLI Setup and Authentication: Install the op CLI 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. - Headless and CI Support: Use OP_SERVICE_ACCOUNT_TOKEN for non-interactive environments, or a dedicated tmux session to preserve desktop-app sign-in across terminal calls. - Use Case: You need a database password inside a deployment script without storing it in a file. Set the env var to an op:// reference and run the script through op run so the secret is resolved only at execution time. ## Quick Start Set up the 1Password CLI with a service account token and read the database password from my app-prod vault without printing it to the console.

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 an op:// secret reference, for example op read "op://app-prod/db/password". You must be authenticated first via op signin, a service account token, or a Connect server.

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

Place op:// references inside a template, then pipe it through op inject, for example 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 a service account by setting OP_SERVICE_ACCOUNT_TOKEN instead of interactive op signin. Service accounts require CLI version 2.18.0 or later and work with op read, op inject, and op run.

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

This happens when the authentication session expired or was lost between terminal calls. Run op signin again in the same tmux session for desktop app flows, or switch to OP_SERVICE_ACCOUNT_TOKEN which persists automatically.

What is the difference between op run and op inject?▼

op run executes a command with secret env vars resolved at runtime, while op inject substitutes op:// references into templates or stdin. Prefer these over writing secrets into files.