← 返回 Skills 市场
cnlangzi

Aliyun Use

作者 cnlangzi · GitHub ↗ · v0.1.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
148
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aliyun-use
功能描述
Aliyun Bailian(百炼) for LLM chat, and language translation. Use when you need to generate code, generate text with LLMs, or translate between languages.
使用说明 (SKILL.md)

Aliyun Bailian(百炼) for OpenClaw

Call Alibaba Cloud Bailian (百炼) LLM models via the DashScope API.

Setup

Get your API key from: https://bailian.console.aliyun.com/

Set the environment variable:

export ALIYUN_BAILIAN_API_KEY="your-api-key"
export ALIYUN_BAILIAN_API_HOST="https://coding.dashscope.aliyuncs.com/apps/anthropic"  # optional, default provided

CLI Commands

python -m scripts chat --model qwen3.5-plus --messages '[{"role": "user", "content": "Hello"}]'
python -m scripts translate --text "Hello" --target-lang zh
python -m scripts models

Commands Overview

Command What it does
chat General-purpose chat completion with Qwen, GLM, Kimi, MiniMax models
translate Translate text between languages
models List all available models

Chat

General-purpose chat completion via DashScope Anthropic API.

Usage

python -m scripts chat --model qwen3.5-plus --messages '[{"role": "user", "content": "Hello"}]'

Parameters

  • --model (string, optional) — Model name. Default: qwen3.5-plus
  • --messages (string, required) — JSON array of {role, content}. Roles: system, user, assistant
  • --temperature (float, optional) — Sampling temperature 0-1. Default: 0.7
  • --max-tokens (integer, optional) — Max tokens to generate. Default: 2048
  • --stream (boolean, optional) — Enable streaming. Default: false

Available Models

Flagship: qwen3.5-plus, qwen3-max-2026-01-23

Coder: qwen3-coder-next, qwen3-coder-plus

Other: glm-5, glm-4.7, kimi-k2.5, MiniMax-M2.5

Translate

Translate text between languages using the LLM.

Usage

python -m scripts translate --text "Hello" --target-lang zh
python -m scripts translate --text "你好" --target-lang en --source-lang zh

Parameters

  • --text (string, required) — Text to translate
  • --target-lang (string, optional) — Target language code. Default: en
  • --source-lang (string, optional) — Source language code. Default: auto

Supported Languages

en (English), zh (Chinese), ja (Japanese), ko (Korean), es (Spanish), fr (French), de (German), ru (Russian), ar (Arabic), pt (Portuguese), it (Italian), th (Thai), vi (Vietnamese), id (Indonesian)

Python Usage

from scripts import chat, translate

# Chat
result = chat(messages=[{"role": "user", "content": "Hello"}], model="qwen3.5-plus")

# Translate
result = translate(text="Hello", target_lang="zh")

Response Format

{ "success": true, "result": {...} }
{ "success": false, "error": "error message" }

Notes

  • Default API host: https://coding.dashscope.aliyuncs.com/apps/anthropic (set via ALIYUN_BAILIAN_API_HOST)
  • The API uses Anthropic-compatible format — messages are converted to Anthropic API format internally
  • Coding Plan API key (sk-sp-xxx) is different from regular DashScope API key
  • For reasoning tasks: try qwen3-max-2026-01-23 or kimi-k2.5
  • For coding tasks: use qwen3-coder-next or qwen3-coder-plus

Learn More

  • Full API documentation: references/API.md
  • Available models: assets/models.json
安全使用建议
This skill is a straightforward client for Alibaba Cloud Bailian (DashScope) LLMs and only needs your ALIYUN_BAILIAN_API_KEY. Before installing: 1) Confirm the API key is from the Bailian/DashScope console and is scoped appropriately (use minimal permissions and region-bound keys where possible). 2) Be aware the code will send your API key to whichever ALIYUN_BAILIAN_API_HOST is set (an optional env var); if you don't set it, a default DashScope host in the code will be used — verify that host is trusted. 3) The tests print a masked preview of your key; do not run tests if you are uncomfortable exposing even the last characters. 4) If you require strict metadata correctness, ask the publisher to add ALIYUN_BAILIAN_API_HOST to requires.env and to reconcile the base-URL defaults in SKILL.md / references. Otherwise the skill appears consistent with its stated purpose.
功能分析
Type: OpenClaw Skill Name: aliyun-use Version: 0.1.0 The 'aliyun-use' skill is a legitimate wrapper for the Alibaba Cloud Bailian (DashScope) LLM API. The code in scripts/__main__.py implements standard chat and translation functions using the requests library to communicate with official Alibaba Cloud endpoints (dashscope.aliyuncs.com). No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description, SKILL.md, README, references/API.md and the included Python scripts consistently describe an Aliyun Bailian (DashScope) LLM client for chat, translate, and model listing. The single required credential (ALIYUN_BAILIAN_API_KEY) is appropriate for this purpose.
Instruction Scope
Runtime instructions and code stay within the stated purpose (call the Bailian/DashScope API). Minor inconsistencies: SKILL.md and code reference an optional ALIYUN_BAILIAN_API_HOST (used to override base URL) but that env var is not listed in requires.env metadata. There are also small mismatches in the default base URL between SKILL.md, references/API.md, and the code, but all point to DashScope endpoints. The scripts send requests only to the configured API host and do not read unrelated files or unrelated env vars.
Install Mechanism
No install spec (instruction-only install) and included code is pure Python with no network download/install steps. No external installers or archive downloads are requested.
Credentials
Only ALIYUN_BAILIAN_API_KEY is required (declared as primaryEnv), which is proportional. The SKILL.md/code also accept an optional ALIYUN_BAILIAN_API_HOST (not declared in metadata) — this is reasonable but should be declared. The code sets the API key in both Authorization Bearer and x-api-key headers (expected for some APIs).
Persistence & Privilege
Skill is not always-enabled, is user-invocable, and does not request elevated persistence or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aliyun-use
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aliyun-use 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release – provides Alibaba Cloud Bailian (百炼) LLM chat and translation features via CLI and Python. - Supports chat completion with Qwen, GLM, Kimi, and MiniMax models. - Enables language translation between major languages. - Environment-based configuration using ALIYUN_BAILIAN_API_KEY. - Simple CLI commands for chat, translation, and model listing. - Anthropic-compatible message format and response handling.
元数据
Slug aliyun-use
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Aliyun Use 是什么?

Aliyun Bailian(百炼) for LLM chat, and language translation. Use when you need to generate code, generate text with LLMs, or translate between languages. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 148 次。

如何安装 Aliyun Use?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aliyun-use」即可一键安装,无需额外配置。

Aliyun Use 是免费的吗?

是的,Aliyun Use 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Aliyun Use 支持哪些平台?

Aliyun Use 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Aliyun Use?

由 cnlangzi(@cnlangzi)开发并维护,当前版本 v0.1.0。

💬 留言讨论