qianwen-ops-auth
БесплатноБез исполняемых скриптовНе проверенConfigure authentication (API keys, endpoints). TRIGGER when: setting up QIANWEN_API_KEY, troubleshooting 401/auth errors, when another skill reports missing…
от QianWen-AI★ 130 звёзд на GitHubОб этом скилле
QianWen Authentication Setup
Configure and verify authentication for QianWen APIs. This skill is part of QianWen-AI/qianwen-ai.
Skill directory
Use this skill's internal files for learning. Load references only when the user needs console or documentation links.
| Location | Purpose |
|---|---|
references/tokenplan.md |
Token Plan vs standard key; points to the CDN catalog for supported models and retains Credits, policy, and error guidance |
references/custom-oss.md |
Custom OSS bucket setup for production file uploads (replaces 48h temp storage) |
references/sources.md |
Console URLs, auth guide (manual lookup only) |
Security
NEVER output any API key, OSS credential in plaintext.
This applies equally to DASHSCOPE_API_KEY and custom OSS AccessKey pairs. Any check or detection of credentials in this skill must be non-plaintext: report only status (e.g. "set" / "not set", "valid" / "invalid", HTTP status code), never the key value.
API Key Handling (MANDATORY)
When the API key is not configured or a script reports missing credentials:
- NEVER ask the user to provide their API key directly. Do not prompt "please paste your API key" or similar. Do not request the key value in any form.
- Help create a
.envfile with a placeholder, then instruct the user to fill in their own key:- Run:
echo 'DASHSCOPE_API_KEY=sk-your-key-here' >> .env - Tell the user: "Please replace
sk-your-key-herewith your actual API key from the QianWen Console."
- Run:
- Or explain how to configure the environment variable:
export DASHSCOPE_API_KEY='sk-...'+ provide the console URL. - Only write the actual key value into
.envif the user explicitly insists on having the agent do it for them.
Credential Priority Chain
Credentials are loaded in the following order (first match wins):
- Environment variable —
DASHSCOPE_API_KEY(orQIANWEN_API_KEYalias) .envfile — in current working directory, then repo root (detected via.gitorskills/directory). Existing environment variables are not overwritten.
Environment Variables
| Variable | Purpose |
|---|---|
DASHSCOPE_API_KEY |
API key (required) |
QIANWEN_API_KEY |
Alias for DASHSCOPE_API_KEY. If both are set, QIANWEN_API_KEY takes priority. |
QWEN_BASE_URL |
Override the endpoint (optional; for custom deployments or plan-specific Base URLs) |
QWEN_TMP_OSS_BUCKET |
Custom OSS bucket for file uploads (replaces 48h temp storage). See custom-oss.md. |
QWEN_TMP_OSS_REGION |
OSS region (required when QWEN_TMP_OSS_BUCKET is set). |
QWEN_TMP_OSS_AK_ID / AK_SECRET |
OSS credentials (use RAM user with least-privilege: oss:PutObject + oss:GetObject). Falls back to OSS_ACCESS_KEY_ID / OSS_ACCESS_KEY_SECRET if not set. |
API Key Types
QianWen has two mutually exclusive key types:
| Key Type | Format | Purpose |
|---|---|---|
| Standard (Pay-as-you-go) | sk-ws-xxxxx (legacy sk-xxxxx) |
API calls from scripts, apps, and tools |
| Token Plan | sk-sp-xxxxx |
Interactive AI tools and the Skill/Agent extensions they invoke for the current user |
The bundled execution Skills accept both key types and route sk-sp- requests to the Token Plan
endpoint. Before a Token Plan request, fetch and read the current Token Plan model catalog and pass an exact supported model. Do not probe models or automatically fall back. If CDN access fails, use the local fallback.
Detecting Key Type (non-plaintext)
To determine the calling mode from the API key without exposing it in full, check the prefix (first 6 characters):
echo ${DASHSCOPE_API_KEY:0:6}
| Prefix output | Key type | Billing mode |
|---|---|---|
sk-sp- |
Token Plan | Credits-based; limited model catalog |
sk-ws- or other sk-... |
Standard (PAYG) | Per-token; full model catalog |
If shell access is unavailable, ask the user whether their key starts with sk-sp-.
Viewing Bills
Use the qianwen-usage skill to query usage, free tier quota, and billing directly.
Установить qianwen-ops-auth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл qianwen-ops-auth?
Configure authentication (API keys, endpoints). TRIGGER when: setting up QIANWEN_API_KEY, troubleshooting 401/auth errors, when another skill reports missing credentials, or user explicitly invokes this skill by name (e.g. use qianwen-ops-auth). DO NOT TRIGGER when: non-auth Qwen tasks, general API usage questions.
Как установить скилл qianwen-ops-auth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qianwen-ops-auth запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic