1password
Skill này làm gì
Skill hướng dẫn một agent AI cài đặt và đăng nhập công cụ dòng lệnh 1Password, rồi đọc thông tin bí mật từ kho. Dành cho người lưu mật khẩu trong 1Password và muốn agent dùng chúng một cách an toàn.
Khi nào nên dùng
- ✓Khi bạn muốn agent đọc mật khẩu hoặc khóa API được lưu trong 1Password.
- ✓Khi bạn cần cài CLI của 1Password trên máy tính hoặc máy chủ.
- ✓Khi agent cần một thông tin bí mật cho một việc mà thông tin đó không được hiển thị dưới dạng văn bản thuần.
Liên kết skill
https://github.com/openclaw/openclaw/blob/main/skills/1password/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập công cụ dòng lệnh 1Password trên máy tính của tôi và kiểm tra xem bạn có đọc được mật khẩu cơ sở dữ liệu của ứng dụng tôi không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra phương thức đăng nhập đang dùng, chẳng hạn tài khoản dịch vụ hoặc ứng dụng máy tính, rồi xác nhận quyền truy cập bằng một lệnh thử. Chỉ sau đó nó mới đọc thông tin bí mật mà bạn yêu cầu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có hiển thị mật khẩu của tôi trong cuộc trò chuyện không?
Không. Skill được thiết kế để đọc và đưa thông tin bí mật vào mà không in giá trị của chúng.
Nó hỗ trợ những phương thức đăng nhập nào?
Nó hỗ trợ tài khoản dịch vụ, tích hợp ứng dụng máy tính và đăng nhập thông thường yêu cầu mật khẩu tài khoản mỗi phiên.
Nếu tôi có nhiều tài khoản thì sao?
Bạn có thể chọn tài khoản bằng một cờ hoặc biến môi trường, để không chọn nhầm tài khoản.
Chi tiết
Mô tả gốc của tác giả
Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.
repo: openclaw/openclaw
Độ phổ biến
- Sao GitHub
- 394k
- Vị trí xếp hạng
- #41
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
graincrawl
394kCho phép agent của bạn tìm trong ghi chú cuộc họp và bản chép lời Granola đã lưu, kiểm tra độ mới và đếm số cuộc họp trong một khoảng thời gian.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
django-security
280kGiúp agent của bạn triển khai các thực hành bảo mật trong ứng dụng Django. Tập trung vào xác thực, phân quyền và phòng chống các tấn công phổ biến.
laravel-security
280kGiúp agent của bạn bảo mật ứng dụng Laravel trước các mối đe dọa. Triển khai thực hành bảo mật cho xác thực, phân quyền và phòng chống tấn công phổ biến.