sichengchen

1Password Cli For Agents

AI 智慧體v0.1.0
作者:sichengchen更新於 2026-05-111password-cli@clawhub_sichengchen/1password-cli
工具呼叫

據 AlphaMoat 統計,截至 2026-09,1Password Cli For Agents 累計下載 2,657 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 3,978 位,在「AI 智慧體」分類(969 個)中排名第 799 位。

累計安裝
106
累計下載
2657
星標
-
全站排名
#3,978
全站前 79% · 「AI 智慧體」前 83%
平台累計安裝累計下載星標評論
ClawHub ↗732601-2
SkillHub ↗1062657-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文說明可檢查認證、列出 vault、讀取條目、建立登入項或安全筆記、編輯密碼和刪除專案;所有命令都依賴 OP_SERVICE_ACCOUNT_TOKEN。服務帳戶令牌及讀取到的秘密都不得列印到控制檯。將服務帳戶許可權限制在專用 vault;建立、編輯或刪除前核對目標並取得明確批准,避免把真實秘密直接寫入命令引數或日誌。

資料釋出於 2026-10-29

可以用來做什麼

  • 列出服務帳戶可訪問的 vault
  • 讀取指定條目的單個欄位且不輸出令牌
  • 起草新增或修改條目所需的命令供使用者稽核

什麼時候用

  • 使用者明確需要管理 1Password 服務帳戶授權的 vault 時
  • 服務帳戶只擁有完成任務所需的最小 vault 許可權時
  • 寫入或刪除操作可在執行前由使用者明確批准時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查認證狀態但不要顯示服務帳戶令牌
讀取指定條目時只返回獲准欄位且隱藏秘密值
展示刪除條目的目標與影響,並等待使用者批准

月度資料趨勢

累計下載2657
1234199827622026-03 · 累計下載 13392026-05 · 累計下載 17562026-06 · 累計下載 19212026-07 · 累計下載 21872026-08 · 累計下載 23122026-09 · 累計下載 265726-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092657—-
2026-082312+5.7%-
2026-072187+13.8%-
2026-061921+9.4%-
2026-051756—-
2026-031339—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.6 KB · ClawHub v0.1.0
# 1Password CLI for Agents

This skill allows agents to securely access and manage secrets using the 1Password CLI (`op`) and a Service Account. It provides commands for reading, writing, and managing items within a dedicated vault.

## Prerequisites

1.  **Install 1Password CLI:**
    -   macOS: `brew install --cask 1password-cli`
    -   Linux/Windows: See [official docs](https://developer.1password.com/docs/cli/get-started).
2.  **Create a Service Account:**
展開全部(共 91 行)
    -   Go to [1Password Developer Portal](https://developer.1password.com/).
    -   Create a Service Account and grant it access to a specific vault (e.g., "Agent Vault").
    -   Copy the Service Account Token.
3.  **Set Environment Variable:**
    -   Set `OP_SERVICE_ACCOUNT_TOKEN` in your environment (e.g., `.env` file or export in shell).
    -   For OpenClaw, you can add `OP_SERVICE_ACCOUNT_TOKEN=...` to `.env`.

## Usage

All commands require the `OP_SERVICE_ACCOUNT_TOKEN` to be set.

### 1. Check Authentication

Verify the service account is working:

```bash
op whoami
```

### 2. List Vaults

List vaults accessible to the service account:

```bash
op vault list
```

### 3. Read an Item

Get details of an item (JSON format is best for parsing):

```bash
op item get "Item Name" --vault "Vault Name" --format json
```

Or get a specific field (e.g., password):

```bash
op read "op://Vault Name/Item Name/password"
```

### 4. Create an Item

Create a login item:

```bash
op item create --category login --title "My Service" --url "https://example.com" --vault "Vault Name" username="myuser" password="mypassword"
```

Create a secure note:

```bash
op item create --category "Secure Note" --title "API Key" --vault "Vault Name" notes="my-secret-key"
```

### 5. Edit an Item

Update a password:

```bash
op item edit "Item Name" password="newpassword" --vault "Vault Name"
```

### 6. Delete an Item

```bash
op item delete "Item Name" --vault "Vault Name"
```

## Tips for Agents

-   **Always use JSON output:** Add `--format json` to `op` commands for structured data that is easier to parse.
-   **Security:** Never print the `OP_SERVICE_ACCOUNT_TOKEN` or retrieved secrets to the console unless explicitly asked.
-   **Vaults:** If multiple vaults are available, specify the `--vault` flag to avoid ambiguity.
-   **Rate Limits:** Service accounts have rate limits. Cache results if possible or retry with backoff.

## Troubleshooting

-   **"You are not currently signed in":** Ensure `OP_SERVICE_ACCOUNT_TOKEN` is set correctly.
-   **"account is not authorized":** Check that the service account has permission for the specific vault and operation (read/write).

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。