跳到正文
TakoAPI
返回技能列表

mh-1password

由 mohdalhashemi98-hue 提供

Health & Fitness
263下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Set up and use 1Password CLI (op)

描述

该技能的功能

Installs and configures the 1Password CLI (`op`) for reading, injecting, and running secrets from a 1Password vault. Handles authentication flows including desktop app integration and multi-account setups. All `op` commands run inside a dedicated tmux session to avoid TTY re-prompt failures.

`op run` and `op inject` keep secrets out of env files and shell history entirely, unlike manually exporting variables.

何时使用

  • Injecting API keys into a dev server without writing them to disk
  • Running a script with secrets via `op run` in CI-like workflows
  • Switching between multiple 1Password accounts using `--account`
  • Verifying vault access and listing available vaults after sign-in
  • Automating secret retrieval inside tmux for shell-tool environments

示例工作流

输入

User asks: run my deploy script with production secrets from 1Password

智能体
  1. 1

    Verify op --version confirms CLI is installed

  2. 2

    Create a fresh tmux session with a unique socket and session name

  3. 3

    Run op signin inside tmux and wait for desktop app authorization

  4. 4

    Confirm access with op whoami before proceeding

  5. 5

    Execute op run -- ./deploy.sh inside the tmux session to inject secrets at runtime

输出

Deploy script runs with secrets injected via `op run`, nothing written to disk or logs

前置要求

  • 1Password desktop app installed and unlocked
  • 1Password account (personal or team)
  • op CLI installed (via brew or official installer)

安装

clawhub install mohdalhashemi98-hue/mh-1password

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接