qwencloud-ops-auth
БесплатноБез исполняемых скриптовНе проверенConfigure authentication (API keys, endpoints). TRIGGER when: setting up QWEN_API_KEY, troubleshooting 401/auth errors, when another skill reports missing…
от QwenCloud★ 44 звезды на GitHubОб этом скилле
QwenCloud Authentication Setup
Configure and verify authentication for QwenCloud APIs. This skill is part of qwencloud/qwencloud-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 Coding Plan vs PAYG; CDN model catalog, endpoint mapping, pricing, User-Agent |
references/codingplan.md |
Coding Plan vs standard key: model list, endpoint mapping, error codes, cost risks |
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 QwenCloud 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(orQWEN_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) |
QWEN_API_KEY |
Alias for DASHSCOPE_API_KEY. If both are set, QWEN_API_KEY takes priority. |
QWEN_BASE_URL |
Override default endpoint (optional; for custom deployments) |
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
QwenCloud has three mutually exclusive key/plan types:
| Key Type | Format | Purpose | Endpoint |
|---|---|---|---|
| Standard (Pay-as-you-go) | sk-xxxxx |
API calls from scripts, apps, and tools | dashscope-intl.aliyuncs.com |
| Token Plan | sk-sp-xxxxx |
Interactive AI tools with User-Agent header | token-plan.ap-southeast-1.maas.aliyuncs.com |
| Coding Plan | sk-sp-xxxxx |
Interactive AI coding tools only (Cursor, Claude Code, Qwen Code) | coding-intl.dashscope.aliyuncs.com |
All qwencloud/qwencloud-ai scripts require a standard key (sk-). Coding Plan keys (sk-sp-) produce 401 invalid_api_key on standard endpoints. Token Plan keys (sk-sp-) are auto-routed to the Token Plan endpoint by scripts. Before a Token Plan request, fetch and read the current Token Plan model catalog and pass an exact listed model; if CDN access fails, use the local fallback. Coding Plan details remain in codingplan.md.
If the user's key starts with sk-sp-, first check tokenplan.md for Token Plan details and the CDN catalog above for model coverage, then codingplan.md f
Установить qwencloud-ops-auth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл qwencloud-ops-auth?
Configure authentication (API keys, endpoints). TRIGGER when: setting up QWEN_API_KEY, troubleshooting 401/auth errors, when another skill reports missing credentials, or user explicitly invokes this skill by name (e.g. use qwencloud-ops-auth). DO NOT TRIGGER when: non-auth Qwen tasks, general API usage questions.
Как установить скилл qwencloud-ops-auth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qwencloud-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