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
累计下载
2,657
星标
-
全站排名
#3,978
全站前 79% · 「AI 智能体」前 83%
平台累计安装累计下载星标评论
ClawHub ↗732,601-2
SkillHub ↗1062,657-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文说明可检查认证、列出 vault、读取条目、创建登录项或安全笔记、编辑密码和删除项目;所有命令都依赖 OP_SERVICE_ACCOUNT_TOKEN。服务账户令牌及读取到的秘密都不得打印到控制台。将服务账户权限限制在专用 vault;创建、编辑或删除前核对目标并取得明确批准,避免把真实秘密直接写入命令参数或日志。

资料发布于 2026-10-29

可以用来做什么

  • 列出服务账户可访问的 vault
  • 读取指定条目的单个字段且不输出令牌
  • 起草新增或修改条目所需的命令供用户审核

什么时候用

  • 用户明确需要管理 1Password 服务账户授权的 vault 时
  • 服务账户只拥有完成任务所需的最小 vault 权限时
  • 写入或删除操作可在执行前由用户明确批准时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查认证状态但不要显示服务账户令牌
读取指定条目时只返回获准字段且隐藏秘密值
展示删除条目的目标与影响,并等待用户批准

月度数据趋势

累计下载2,657
1,2341,9982,7622026-03 · 累计下载 1,3392026-05 · 累计下载 1,7562026-06 · 累计下载 1,9212026-07 · 累计下载 2,1872026-08 · 累计下载 2,3122026-09 · 累计下载 2,65726-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,657—-
2026-082,312+5.7%-
2026-072,187+13.8%-
2026-061,921+9.4%-
2026-051,756—-
2026-031,339—-

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),按月更新。口径说明见数据方法。