1password
できること
このスキルは、1Passwordのコマンドラインツールをインストールしてサインインし、その後Vaultから秘密情報を読み取る手順を、AIエージェントに示します。1Passwordにパスワードを保存し、エージェントに安全に使わせたい人のためのものです。
使う場面
- ✓エージェントに、1Passwordに保存されたパスワードやAPIキーを読み取らせたいとき。
- ✓コンピューターやサーバーに1Password CLIをセットアップする必要があるとき。
- ✓エージェントがタスクに秘密情報を必要とするが、その値を平文で表示させたくないとき。
スキルのリンク
https://github.com/openclaw/openclaw/blob/main/skills/1password/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のコンピューターに1Passwordのコマンドラインをセットアップし、私のアプリのデータベースパスワードを読み取れることを確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは使われているサインイン方法(サービスアカウントやデスクトップアプリ連携など)を確認し、テストコマンドでアクセスを確かめます。その後にのみ、依頼された秘密情報を読み取ります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
1Password CLI
Follow the official CLI get-started steps. Don't guess install commands.
References
references/get-started.md(install + app integration + sign-in flow)references/cli-examples.md(realopexamples)
Workflow
- Check OS + shell.
- Verify CLI present:
op --version. - Detect the auth mode the user has set up:
- Service account:
OP_SERVICE_ACCOUNT_TOKENis set (typical for headless setups, CI, gateways). - Desktop app integration: the 1Password desktop app is running with CLI integration enabled (typical on macOS / Windows / Linux desktops).
- Standalone signin: neither of the above —
op signinwill prompt for an account password every session.
- Service account:
- Run
opaccording to the auth mode (see below). - Verify access:
op whoamishould succeed before any secret read. - If multiple accounts: use
--accountorOP_ACCOUNT.
Running op per auth mode
Service account (preferred for headless / gateway use)
Direct exec. No tmux, no signin step.
export OP_SERVICE_ACCOUNT_TOKEN="ops_..."
op vault list
op read op://app-prod/db/password
Desktop app integration
Direct exec. Do not wrap in tmux — the desktop app integration uses a per-user IPC channel that is established for the gateway's exec environment but is not always reliably reachable from tmux subshells, which run with a different environment context. The transport differs per platform (XPC via the 1Password Browser Helper on macOS, a Unix domain socket on Linux, a named pipe on Windows); the practical rule for an agent is the same on all three: run op directly. On macOS, a useful symptom indicator is the 1Password integration group container at ~/Library/Group Containers/2BUA8C4S2C.com.1password/t/.
op vault list # may trigger Touch ID / Windows Hello / system auth on first call
op whoami
If a call returns 1Password CLI couldn't connect to the 1Password desktop app, do not switch to tmux. Confirm the desktop app is running and unlocked, then retry direct exec.
Standalone signin (no app, interactive password)
This is the only mode where tmux helps. op signin prints an eval-style export setting an OP_SESSION_* token for POSIX shells; later commands in the same shell are authenticated by that env var. The gateway's per-command shells lose that state between calls, so a persistent tmux pane keeps the session token alive — but only if the export is actually applied with eval in a POSIX shell. Sending op signin as a plain command leaves stdout printed to the pane and op whoami will fail.
The tmux flow is only actionable on macOS/Linux hosts where the tmux skill is available. The example intentionally opens /bin/sh so the POSIX eval "$(op signin ...)" output is valid even when the user's normal shell is fish. On Windows, prefer desktop app integration or service account auth. If the user only has standalone interactive signin on Windows, stop and ask them to provide a persistent PowerShell session mechanism or switch to desktop integration/service account auth; do not translate the tmux commands directly.
SOCKET_DIR="${OPENCLAW_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/openclaw-tmux-sockets}"
mkdir -p "$SOCKET_DIR"
chmod 700 "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/openclaw-op.sock"
SESSION="op-auth-$(date +%Y%m%d-%H%M%S)"
tmux -S "$SOCKET" new -d -s "$SESSION" -n shell /bin/sh
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'eval "$(op signin --account my.1password.com)"' Enter
tmux -S "$SOCKET" capture-pane -t "$SESSION":0.0 -p -S - | tail -40
Do not queue follow-up commands while signin is prompting. Poll the pane with capture-pane
until signin has either completed and the shell prompt has returned, or it is clearly waiting for
human input. If the prompt requires a password, MFA, or account choice, pause and ask the user to
complete signin in their own terminal; give them the socket and session values so they can attach
locally. The agent should not run tmux attach from exec because attach consumes the current TTY and
prevents scripted send-keys / capture-pane control.
After the shell prompt returns, verify by sending the checks into the same pane:
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'op whoami' Enter
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'op vault list' Enter
tmux -S "$SOCKET" capture-pane -t "$SESSION":0.0 -p -S - | tail -80
Keep the tmux session running so later op read / op run
よくある質問
チャットにパスワードを表示しますか?
いいえ。このスキルは、秘密情報の値を表示せずに読み取り、注入するように作られています。
どのサインイン方法に対応していますか?
サービスアカウント、デスクトップアプリ連携、セッションごとにアカウントパスワードを求める標準のサインインに対応しています。
複数のアカウントがある場合はどうなりますか?
フラグや環境変数でアカウントを選べるため、間違ったものが選ばれることはありません。
詳細
作者による元の説明
Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.
repo: openclaw/openclaw
人気
- GitHubのスター
- 394k
- ランキング
- #41
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
graincrawl
394k保存されたGranolaのミーティングメモとトランスクリプトを検索し、その新しさを確認して、一定期間の件数を数えるようエージェントを支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
django-security
280kDjango アプリケーションのセキュリティ対策を、エージェントが実装できるよう支援します。認証、認可、一般的な攻撃への対策に重点を置き、より安全なコードを実現します。
laravel-security
280kエージェントが Laravel アプリケーションを脅威から守るよう支援します。認証、認可、一般的な攻撃への対策といったセキュリティプラクティスを実装します。