Aliyun Bailian(百炼) for OpenClaw
name: aliyun-use
by cnlangzi · published 2026-03-22
$ claw add gh:cnlangzi/cnlangzi-aliyun-use---
name: aliyun-use
version: 0.1.0
description: "Aliyun Bailian(百炼) for LLM chat, and language translation. Use when you need to generate code, generate text with LLMs, or translate between languages."
metadata:
openclaw:
requires:
env:
- ALIYUN_BAILIAN_API_KEY
primaryEnv: ALIYUN_BAILIAN_API_KEY
os:
- linux
- darwin
- win32
---
# 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 providedCLI 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 modelsCommands 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
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 zhParameters
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
Learn More
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...