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):
- View current configuration — Run
cc-claude configto display the redacted configuration - Reset configuration — Run
cc-claude resetto go through the first-time configuration flow again - Add model — After the user selects it,ask directly in the conversationfor the model name, then call
cc-claude add-model <模型名> - 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:
- API address — the vendor-compatible Anthropic API endpoint
- Options: ["https://api.deepseek.com/anthropic", Custom URL]
- API Key — the key assigned by the vendor
- Options: ["sk-****86f2c", Custom Key]
- Model list — comma-separated model names
- Options: ["deepseek-v4-pro, deepseek-v4-flash", Custom list]
- 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 scriptdocs/env-vars.md: complete reference for Claude Code environment variables