🎯 Goal
Convert the kdm auth command from flag-based CLI operations into an interactive credential manager dashboard with a provider list, multi-step configuration wizard, and inline editing.
📌 Current Behavior
kdm auth manages credentials, models, and endpoints for AI backend providers. KDM supports 10+ AI providers.
Subcommands:
| Subcommand |
Description |
kdm auth add |
Register credentials for a provider |
kdm auth list |
List all configured providers (API keys masked) |
kdm auth default <backend> |
Set the active default AI provider |
kdm auth remove <backend> |
Remove configured settings for a provider |
kdm auth update <backend> |
Update settings on a registered provider |
Example usage:
kdm auth add -b openai -m gpt-4o -p sk-...
kdm auth default ollama
kdm auth list
🚀 Proposed Interactive Dashboard
Layout
AI Provider Manager
──────────────────────────────────
Provider Model Status
─────────────────────────────────────
> OpenAI gpt-4o ✔ Default
Ollama llama3.1 ✔ Configured
Anthropic — ✖ Not configured
Gemini — ✖ Not configured
──────────────────────────────────
[A] Add [E] Edit [D] Set Default [R] Remove [Q] Quit
Add Provider Wizard (press A)
┌─ Add AI Provider ─────────────────────┐
│ │
│ Step 1/4 — Provider: openai │
│ Step 2/4 — Model: gpt-4o │
│ Step 3/4 — API Key: ************ │
│ Step 4/4 — Temp: 0.7 │
│ │
│ [ENTER] Next [ESC] Cancel │
└───────────────────────────────────────┘
User Flow
- User runs
kdm auth → provider list loads.
- Use
↑ / ↓ to highlight a provider.
- Press
a to open the Add Provider Wizard — a step-by-step form overlay.
- Press
e to edit the selected provider's settings.
- Press
d to set the selected provider as default.
- Press
r to remove the selected provider (with confirmation prompt).
Keyboard Shortcuts
| Key |
Action |
↑ / ↓ |
Navigate providers |
a |
Add new provider (wizard) |
e |
Edit selected provider |
d |
Set as default |
r |
Remove provider |
Enter |
Next step in wizard |
Esc |
Cancel wizard |
Q |
Quit |
Recommended Libraries
📋 Contribution Workflow
- Fork the repo and create a feature branch (e.g.,
feature/interactive-kdm-auth).
- Implement the interactive TUI for
kdm auth using the layout and flow described above.
- Submit a PR explicitly linked to this issue (e.g.,
Closes #140).
- 📸 Include a screenshot or recording of the implemented UI in your PR to verify the new dashboard experience.
🎯 Goal
Convert the
kdm authcommand from flag-based CLI operations into an interactive credential manager dashboard with a provider list, multi-step configuration wizard, and inline editing.📌 Current Behavior
kdm authmanages credentials, models, and endpoints for AI backend providers. KDM supports 10+ AI providers.Subcommands:
kdm auth addkdm auth listkdm auth default <backend>kdm auth remove <backend>kdm auth update <backend>Example usage:
🚀 Proposed Interactive Dashboard
Layout
Add Provider Wizard (press
A)User Flow
kdm auth→ provider list loads.↑/↓to highlight a provider.ato open the Add Provider Wizard — a step-by-step form overlay.eto edit the selected provider's settings.dto set the selected provider as default.rto remove the selected provider (with confirmation prompt).Keyboard Shortcuts
↑/↓aedrEnterEscQRecommended Libraries
ink-text-inputwithmask="*"useState/useReducerink-select-input📋 Contribution Workflow
feature/interactive-kdm-auth).kdm authusing the layout and flow described above.Closes #140).