Xpersona
L

Lynse Cli

CLAWHUB · Unverified

Lynse CLI 工具,调用 lynse.ai 后端服务的 API。当用户需要查询 lynse 账户信息、管理文件/转写/总结、操作设备、管理 AI 模型、团队协作、发送消息时使用此技能。即使只是简单查个积分或看个文件列表,也应使用此技能。 Skill: Lynse Cli Owner: johneyzhao-lynse Summary: Lynse CLI 工具,调用 lynse.ai 后端服务的 API。当用户需要查询 lynse 账户信息、管理文件/转写/总结、操作设备、管理 AI 模型、团队协作、发送消息时使用此技能。即使只是简单查个积分或看个文件列表,也应使用此技能。 Tags: latest:1.2.3 Version history: v1.2.3 | 2026-04-17T05:24:45.851Z | auto lynse-cli 1.2.3 - No file changes detected for this release. - Behavior and features remain identical to version 1.2.1. - No user or integration action is required. v1.2.2

62
Rank
84
Safety
955
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 955 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17c796j47gg0rdwcbqqxfxnjs84fqqa:lynse-cli
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-johneyzhao-lynse-lynse-cli/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

157,357 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: lynse-cli
description: Lynse CLI 工具,调用 lynse.ai 后端服务的 API。当用户需要查询 lynse 账户信息、管理文件/转写/总结、操作设备、管理 AI 模型、团队协作、发送消息时使用此技能。即使只是简单查个积分或看个文件列表,也应使用此技能。
version: 1.2.1
metadata:
  openclaw:
    requires:
      env:
        - LYNSE_API_HOST
        - LYNSE_API_KEY
      bins:
        - curl
        - bash
    primaryEnv: LYNSE_API_KEY
    homepage: https://www.lynse.ai
    emoji: "\U0001F4CB"
---

# Lynse CLI Skill

## ⚠️ Agent 必读约束

### 🌐 Base URL
```
$LYNSE_API_HOST
```
Base URL 通过环境变量配置,不硬编码。所有 API 请求必须使用此变量,不要猜测或自行构造地址。

### 🔑 认证
Lynse 使用 **API Key + 临时 Token** 双层认证:

```
第一步:用 API Key 换取 Token
POST $LYNSE_API_HOST/api/auth/apikey/token
Header: X-API-Key: $LYNSE_API_KEY

第二步:用 Token 调用业务接口
Header: Authorization: <accessToken>    (不带 Bearer 前缀)
Header: X-API-Key: $LYNSE_API_KEY
```

- **API Key 格式**:`dk_xxx`(从系统控制台获取)
- **Token 有效期**:2 小时,过期自动刷新
- **Token 缓存**:本地文件,权限 600(仅所有者可读写)

**每次调用前检查 `$LYNSE_API_KEY` 和 `$LYNSE_API_HOST` 是否存在**。若不存在,提示用户完成配置:
```bash
# 方式一:环境变量
export LYNSE_API_HOST="https://your-api-host/api"
export LYNSE_API_KEY="dk_your_api_key_here"

# 方式二:配置文件(复制模板后填入)
cp .env.example .env
```

配置完成后再继续执行用户原本的请求。

### 🔐 Scope 权限
不同操作需要对应权限,权限由 API Key 绑定的角色决定:

| Scope | 说明 | 典型操作 |
|-------|------|----------|
| `customer.read` | 读取用户信息 | getCurrentCustomer, getUserInfo |
| `customer.write` | 编辑用户 | addUser, editUser, removeUser |
| `file.read` | 读取文件/转写/总结 | listFiles, getFileInfo, getConclusion, getOutline |
| `file.write` | 编辑文件内容 | editConclusion, editOutline, editTransRecord |
| `device.read` | 读取设备信息 | getDeviceInfo, getDevicePage |
| `device.manage` | 管理设备 | unbindDevice |
| `ai.read` | 查看 AI 模型 | getAiModels |
| `ai.manage` | 管理 AI 模型 | addModel, editModel, deleteModel, enableModel |
| `message.send` | 发送消息 | sendSms, sendEmail |
| `team.read` | 查看团队 | listMyTeam |
| `team.manage` | 管理团队 | createTeam, editTeam, removeTeamMember |

权限不足时 API 返回 HTTP 403,引导用户联系管理员升级权限。

### 🔒 安全规则

**敏感信息保护:**
- 用户数据属于隐私,不在群聊/公开场合主动展示用户手机号、积分等敏感字段
- 查询用户信息时,默认只展示非敏感字段(如昵称、ID),除非用户明确要求查看积分或手机号
- 在群聊中展示用户信息时,自动隐藏敏感字段(手机号显示为 `138****1234`,积分不展示)
- 若配置了 `LYNSE_OWNER_ID`,检查当前操作用户 ID 是否匹配;不匹配时回复「抱歉,这是私密账户,我无法操作」

**认证安全:**
- Token 失效时自动刷新,刷新失败则提示用户检查 API Key 配置
- Token 缓存文件权限必须为 600(仅所有者可读写)

**输入安全:**
- 所有用户输入参数经过转义后才传入 curl 命令,防止注入
- 创建/编辑操作建议间隔 1 分钟以上,避免触发服务端限流

### ⚠️ 错误处理规则

| 状态码 / 场景 | HTTP 代码 | 处理方式 |
|---------------|-----------|----------|
| Token 过期 | 401 | 自动用 API Key 刷新 Token 后重试 |
| 权限不足 | 403 | 提示「您的账户权限不足,请联系管理员升级权限」 |
| 请求限流 | 429 | 等待 60 秒后重试,提示「请求过于频繁,请稍后再试」 |
| 资源不存在 | 404 | 提示「请求的资源不存在」 |
| 服务器错误 | 500/502/503 | 提示「服务器暂时不可用,请稍后重试」 |
| Token 刷新失败 | - | 提示检查 `LYNSE_API_KEY` 是否正确或已过期 |
| 接口返回 `code != 200` | - | 展示错误信息,不静默忽略,给出可能的解决建议 |

**错误响应示例:**
```json
{"code": 403, "message": "权限不足", "data": null}
```

遇到错误时,回复格式:
1. 说明发生了什么错误
2. 给出可能的原因
3. 提供解决建议或下一步操作

### 📦 CLI 版本路由
技能同时支持两个 CLI 版本:
- **lynse-cli-a**(基础版):核心认证功能(login, register, token 管理等)
- **lynse-cli-b**(增强版):完整业务功能(文件、团队、AI、设备等)

统一入口 `lynse_unified.sh` 自动检测并路由到

_meta.json

{
  "ownerId": "kn7cq7fk8ptprtqb0p6a2g7dpn84fb19",
  "slug": "lynse-cli",
  "version": "1.2.3",
  "publishedAt": 1776403485851
}

compatibility.md

# Lynse CLI 兼容性对照表

## 📋 命令映射关系

### 基础认证命令(双向兼容)
| 命令 | CLI A 支持 | CLI B 支持 | 备注 |
|------|------------|------------|------|
| `bind` | ✅ | ✅ | |
| `exchangeToken` | ✅ | ✅ | CLI B 中有增强实现 |
| `generateApiKey` | ✅ | ✅ | |
| `isLogin` | ✅ | ✅ | |
| `login` | ✅ | ✅ | CLI B 支持更多登录方式 |
| `logout` | ✅ | ✅ | |
| `refreshToken` | ✅ | ✅ | |
| `register` | ✅ | ✅ | CLI B 支持更多注册选项 |
| `render` | ✅ | ✅ | |
| `revokeApiKey` | ✅ | ✅ | |
| `terminate` | ✅ | ✅ | |
| `updatePhone` | ✅ | ✅ | |
| `updatePwd` | ✅ | ✅ | |
| `verifyWechatSignature` | ✅ | ✅ | |
| `getPoolStatus` | ✅ | ✅ | |
| `smsCode` | ✅ | ✅ | |

### CLI B 新增高级命令
| 命令分类 | 新增命令 |
|----------|----------|
| **用户管理** | `claim`, `claimByActivityId`, `list4`, `chatStream`, `listChatFiles`, `bindVocabulary`, `getBoundVocabulary`, `listEnabledVocabularies`, `unbindVocabulary`, `auditText`, `list3`, `changeTeam`, `current`, `detail`, `edit2`, `edit3`, `grantMonthlyReward`, `grantTeamUpgrade`, `list2`, `outPutLanguage`, `recharge1` |
| **设备管理** | `isBound`, `listMyBindingDeviceList`, `unbind`, `update`, `updateConnectTime` |
| **文件处理** | `addEvaluation`, `changeFolder`, `cleanBin`, `cleanBinAll`, `countByCategory`, `delete`, `edit`, `getAvailableAIModelList`, `getEvaluationList`, `getStsToken`, `getSupportLanguage`, `handleAudioMergeCallback`, `info1`, `list`, `listByCategory`, `listByCategoryV1`, `listByTimeRange`, `markFileAsRead`, `notify`, `page`, `pageByCategory`, `presign4Download`, `presign4Upload`, `presign4UploadForPublic`, `queryAudioMergeStatus`, `recover`, `removeOss`, `submitAudioMerge`, `testAudioMerge`, `aiModelProcessText`, `batchGetConclusions`, `deleteConclusion`, `editConclusion`, `editMindMap`, `editOutline`, `editSpeakerInfo`, `editTransRecord`, `exportHtmlToPdf`, `exportOutline`, `exportTransRecord`, `getAiTaskResult`, `getConclusion`, `getConclusionList`, `getMindMap`, `getOutline`, `getTranscribeStatus`, `handleTransCallback`, `listTranscriptionRecord`, `transferFile`, `updateFeedback` |
| **团队协作** | `createTeam`, `deleteTeam`, `editTeam`, `info`, `leaveTeam`, `listMyTeam`, `recharge`, `removeTeamMember`, `editTeamFile`, `getFileInfo`, `listTeamFile`, `moveOrCopy`, `removeTeamFile`, `createInvitation`, `handleInvite`, `listMyInvitation` |
| **推送服务** | `init`, `testAndroidPush`, `testIosPush` |
| **翻译服务** | `getLatestSpeakerNames`, `getPromptTemplateCategories`, `getRegenerateSelectList`, `getTranscriptionLanguageList`, `getTranslateHistory`, `getTranslateResult` |
| **其他功能** | `add`, `batchUpdateSort`, `edit1`, `list1`, `selectOne`, `checkApkUpdate`, `checkVersion`, `getFunctionList`, `presignUrl`, `queryPointsLog`, `generateShareLink`, `getSharedInfo`, `allocatePointsToTeam`, `assignRole`, `checkTeamAdminOrOwner` |

## 🚀 迁移建议

1. **逐步迁移策略**
   - 先统一使用 `lynse_unified.sh` 作为入口
   - 对于复杂功能,逐步迁移到CLI B的专属实现

2. **兼容层优势**
   - 自动检测可用的CLI版本
   - 对于不支持的命令给出清晰错误提示
   - 保留对旧版本的向下兼容

3. **推荐做法**
   - 新开发的功能优先使用CLI B的高级命令
   - 旧有代码可以继续使用,由统一层自动路由

skill-card.md

## Description:

Lynse CLI lets agents call Lynse.ai APIs to query account information, manage files, transcripts, summaries, devices, AI models, teams, and send messages.

This skill is ready for commercial/non-commercial use.

## Publisher:

[johneyzhao-lynse](https://clawhub.ai/user/johneyzhao-lynse)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this skill to connect an assistant to Lynse.ai account and workspace workflows, including account lookup, file transcription and summary management, device and team administration, AI model management, and outbound messaging.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can use a Lynse API key for powerful account, file, device, AI model, team, and message-sending actions.

Mitigation: Install only in a private, trusted agent environment with a least-privileged Lynse API key and require explicit confirmation before delete, unbind, team-management, or message-sending actions.

Risk: A misconfigured API host could route credentials or actions to an unintended endpoint.

Mitigation: Set LYNSE_API_HOST only to the legitimate HTTPS Lynse endpoint before use.

Risk: Private account data such as phone numbers, points, files, transcripts, and summaries may be exposed in shared contexts.

Mitigation: Configure owner binding where available and redact sensitive fields unless the user explicitly requests them in a private context.

## Reference(s):

- [Lynse homepage](https://www.lynse.ai)
- [Lynse CLI compatibility table](artifact/compatibility.md)
- [ClawHub skill listing](https://clawhub.ai/johneyzhao-lynse/skills/lynse-cli)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, JSON]

**Output Format:** [Markdown with inline shell commands and JSON API responses]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires LYNSE_API_HOST and LYNSE_API_KEY; uses curl and bash.]

## Skill Version(s):

1.2.3 (source: server release evidence; artifact frontmatter lists 1.2.1)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Lynse Cli and adjacent AI workflows.