Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. 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.
  2. Help create a .env file 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-here with your actual API key from the QwenCloud Console."
  3. Or explain how to configure the environment variable: export DASHSCOPE_API_KEY='sk-...' + provide the console URL.
  4. Only write the actual key value into .env if 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):

  1. Environment variable — DASHSCOPE_API_KEY (or QWEN_API_KEY alias)
  2. .env file — in current working directory, then repo root (detected via .git or skills/ 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

Полный SKILL.md на GitHub

Установить qwencloud-ops-auth в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

cdn/references/qwencloud-token-plan-models.mdreferences/codingplan.mdreferences/custom-oss.mdreferences/sources.mdreferences/tokenplan.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить qwencloud-ops-auth с