Command Palette

Search for a command to run...

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

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

  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 QianWen 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 QIANWEN_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)
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.

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

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

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

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

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

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

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

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

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

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

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

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

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