Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(skills): add provider skill for LLM provider management
Jiang Bohan307b381e6caf
diff --git a/skills/provider/SKILL.md b/skills/provider/SKILL.mdnew file mode 100644index 0000000000..5d90fbfe4f--- /dev/null+++ b/skills/provider/SKILL.md@@ -0,0 +1,116 @@+---+name: Provider Manager+description: View and switch LLM providers (Claude Code, Kimi, OpenAI, etc.)+version: 1.0.0+metadata:+ emoji: "π"+ tags:+ - provider+ - settings+ - oauth+---++## Instructions++When the user invokes `/provider`, help them manage their LLM provider settings.++### Available Providers++Display the current provider status using this format:++```+Current Provider: [provider-name]++Available Providers:+β Kimi Code [API Key] (current)+β Claude Code [OAuth] - logged in+β Anthropic [API Key] - not configured+β OpenAI [API Key] - not configured+β Codex [OAuth] - not logged in+...+```++### Provider Types++**API Key Providers** (require manual configuration):+- `anthropic` - Anthropic (console.anthropic.com)+- `openai` - OpenAI (platform.openai.com)+- `kimi-coding` - Kimi Code (kimi.moonshot.cn)+- `google` - Google AI (aistudio.google.com)+- `groq` - Groq (console.groq.com)+- `mistral` - Mistral (console.mistral.ai)+- `xai` - xAI/Grok (console.x.ai)+- `openrouter` - OpenRouter (openrouter.ai)++**OAuth Providers** (login via CLI):+- `claude-code` - Uses credentials from Claude Code CLI (`claude login`)+- `openai-codex` - Uses credentials from Codex CLI (`codex login`)++### Switching Providers++When user wants to switch provider:++1. **For OAuth providers** (claude-code, openai-codex):+ - Check if credentials exist in `~/.claude/.credentials.json` or `~/.codex/auth.json`+ - If not logged in, instruct user to run the appropriate login command:+ - Claude Code: `claude login`+ - Codex: `codex login`+ - After login, user needs to restart the session++2. **For API Key providers**:+ - Check if API key is configured in `~/.super-multica/credentials.json5`+ - If not configured, show the URL where they can get an API key+ - Instruct them to add the key to credentials.json5++### Example Session++User: `/provider`++Response:+```+π Provider Status++Current: kimi-coding (Kimi Code)+Model: kimi-k2-thinking++Available Providers:+β kimi-coding Kimi Code [API Key] (current)+β claude-code Claude Code [OAuth] ready+β anthropic Anthropic [API Key] not configured+β openai OpenAI [API Key] not configured+β openai-codex Codex [OAuth] not logged in++To switch provider:+- OAuth: Run login command, then restart session+- API Key: Add key to ~/.super-multica/credentials.json5++Which provider would you like to use?+```++User: "Switch to Claude Code"++Response:+```+Switching to Claude Code...++β Found valid OAuth credentials from Claude Code CLI+ Expires in: 23h 45m++To use Claude Code as your default provider, update ~/.super-multica/credentials.json5:++{+ llm: {+ provider: "claude-code",+ // No API key needed - uses OAuth from Claude Code CLI+ }+}++Or restart with: multica chat --provider claude-code+```++### Important Notes++- OAuth credentials are read-only (we read from Claude Code/Codex, don't write)+- Session provider can be changed with `--provider` flag+- Default provider is set in `~/.super-multica/credentials.json5`+- OAuth tokens may expire and require re-login