SuperAPI AI Directory

cc-claude

Agents & models

View repository

Updated 10-15 21:52

About this skill

Custom Channel Claude

Process Flow

When the user requests cc-claude, first check whether a configuration already exists:

ls -la ~/.claude/skills/cc-claude/config/auth

If the file exists (permissions 600), enter the existing configuration flow; otherwise enter first-time configuration.

Existing Configuration

Use AskUserQuestion to provide the following options (selection-only, requiring ≥2 items):

  1. View current configuration — Run cc-claude configto display the redacted configuration
  2. Reset configuration — Run cc-claude resetto go through the first-time configuration flow again
  3. Add model — After the user selects it,ask directly in the conversationfor the model name, then call cc-claude add-model <模型名>
  4. Change API Key — After the user selects it,request directly in the conversation to pastethe new Key, then call cc-claude change-token <新Key>

First-Time Configuration

Use AskUserQuestion to collect the following information,strictly follow the options:

  1. API address — the vendor-compatible Anthropic API endpoint
  1. API Key — the key assigned by the vendor
  • Options: ["sk-****86f2c", Custom Key]
  1. Model list — comma-separated model names
  • Options: ["deepseek-v4-pro, deepseek-v4-flash", Custom list]
  1. Shortcut command name — default cc-claude
  • Options: ["cc-claude", Custom command]

After collection is complete, call:

bash scripts/cc-claude.sh configure --url <URL> --token <TOKEN> --models <MODELS> --name <NAME>

After configuration is complete, prompt the user to run it in anew terminal windowRun cc-claude。

Subcommands

Command Description
cc-claude fzf/select a model and launch Claude
cc-claude config View current configuration (displayed redacted)
cc-claude reset Reconfigure
cc-claude configure --url .. --token .. --models .. Non-interactive configuration
cc-claude add-model <模型名> Add a new model to the existing model list
cc-claude change-token <新Key> Replace the API Key (automatically encrypted)

Security Notes

All configuration is stored in the local skill directory under the config/auth file (permissions 600, readable and writable only by the file owner). AUTH_TOKEN is encrypted using openssl enc -aes-256-cbc -pbkdf2 before storage; the password is bound to hostname + whoami and cannot be directly decrypted across machines.cc-claude config Output is automatically redacted (first 5 + **** + last 5).

Script Files

  • scripts/cc-claude.sh: main script
  • docs/env-vars.md: complete reference for Claude Code environment variables