1password Skill

Set up op CLI, sign in, and read or inject secrets.

Install
npx skills add 'https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/security/1password'
Download bundle ↓

references/cli-examples.md

references/cli-examples.mdBrowse 3 files
View on GitHub
← Back to SKILL.md

op CLI examples

Sign-in and identity

op signin
op signin --account my.1password.com
op whoami
op account list

Read secrets

op read "op://app-prod/db/password"
op read "op://app-prod/npm/one-time password?attribute=otp"

Inject secrets

echo "api_key: {{ op://app-prod/openai/api key }}" | op inject
op inject -i config.tpl.yml -o config.yml

Run command with secrets

export DB_PASSWORD="op://app-prod/db/password"  # example op:// reference, resolved by `op run`
op run -- sh -c '[ -n "$DB_PASSWORD" ] && echo "DB_PASSWORD is set"'
Referenced from SKILL.md