Skip to content

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.md
new file mode 100644
index 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