feat(cli): multi-provider LLM setup wizard#64
Merged
robotlearning123 merged 4 commits intoagent-next:mainfrom Mar 16, 2026
Merged
feat(cli): multi-provider LLM setup wizard#64robotlearning123 merged 4 commits intoagent-next:mainfrom
robotlearning123 merged 4 commits intoagent-next:mainfrom
Conversation
Redesign the setup wizard to support OpenAI, OpenRouter, Google Gemini, and Grok (xAI) as LLM providers instead of hardcoding OpenAI+Deepgram. The doctor command and _check_env are now provider-aware, reading CALL_USE_LLM_PROVIDER from the environment to determine which API keys to validate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Sanitize \r in _prompt_key and defensively strip \r\n in .env write - Add _check_env tests for grok/openrouter dual-key requirement - Add doctor test for google provider key checking - Add setup verification test for google provider - Refactor optional key loop to reuse _prompt_key(required=False) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Set restrictive permissions on the generated .env file since it contains API keys and secrets. Addresses L3 (Gemini) review finding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The validator field in key_def dicts is typed as `object` which mypy correctly flags as not callable. Add explicit `callable()` check. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
call-use setupwizard to support 4 LLM providers: OpenAI, OpenRouter, Google Gemini, and Grok (xAI)_check_env()anddoctorare now provider-aware viaCALL_USE_LLM_PROVIDERenv var.envfile hardened to0600permissions (contains secrets)Design
Providers:
Test plan
cli.py_check_envdual-key requirement tested for grok and openrouterdoctortested with non-default provider (google).envfile permission test (0600).envoverwrite protection🤖 Generated with Claude Code