Files
skill-template/api-key-vault/SKILL.md
2026-04-04 10:35:02 +08:00

54 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: API Key管理
description: API Key统一管理工具。用于存储、读取、更新、删除各种第三方平台的API Key。当需要获取任何平台的API Key时调用本Skill。
version: 1.0.0
author: 深圳匠厂科技有限公司
metadata:
openclaw:
slug: api-key-vault
emoji: "🔐"
category: "通用"
allowed-tools:
- bash
---
# API Key 管理vault
## 用途
统一管理所有第三方平台的API Key供其他Skill调用。
Key存储在本地 `.env` 文件中,不上传任何服务器。
## 使用方式
### 读取一个Key
```bash
python3 {baseDir}/scripts/vault.py get 17track
```
### 写入/更新一个Key
```bash
python3 {baseDir}/scripts/vault.py set 17track YOUR_API_KEY_HERE
```
### 列出所有已存储的Key名称
```bash
python3 {baseDir}/scripts/vault.py list
```
### 删除一个Key
```bash
python3 {baseDir}/scripts/vault.py delete 17track
```
## 返回格式
- get成功直接返回Key的值无多余内容
- get失败返回 `ERROR:KEY_NOT_FOUND`
- set/delete/list返回操作结果说明
## 注意事项
- Key名称统一用小写+连字符,例如 `17track``ups-api``fedex-oauth`
- `.env` 文件位于 `api-key-vault/` 根目录,不要手动编辑格式
- 任何Skill需要Key时调用本Skill的get命令获取不要硬编码