feat(wizard): set agents.defaults.auth during onboarding (#417)#431
Merged
alexey-pelykh merged 1 commit intomainfrom Mar 8, 2026
Merged
feat(wizard): set agents.defaults.auth during onboarding (#417)#431alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
Wire the per-agent auth config field into the onboarding wizard so that
credential choices are reflected in `agents.defaults.auth`:
- API key / auth token provided → `auth: "{profile-id}"`
- Credential skipped → `auth: false` (CLI-native auth)
Applies to both interactive (`promptRuntimeCredential`) and
non-interactive (`applyNonInteractiveRuntimeAuth`) flows. Updates skip
hint text and guidance messages to clarify CLI-native auth semantics.
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
agents.defaults.authinto onboarding wizard — credential choices now set the auth config fieldauth: "{profile-id}"(e.g.,"anthropic:default","claude:oauth-token")auth: false(CLI handles its own authentication)promptRuntimeCredential) and non-interactive (applyNonInteractiveRuntimeAuth) flowsauth: falseexplanationCloses #417
Test plan
agents.defaults.auth: falsein written configagents.defaults.auth: "anthropic:default"in written configagents.defaults.auth: "claude:oauth-token"in written config--anthropic-api-key→auth: "anthropic:default"--gemini-api-key→auth: "google:default"--codex-api-key→auth: "codex:default"--openai-api-key→auth: "openai:default"--auth-token→auth: "claude:oauth-token"--runtime claude(no key) →auth: falseauth: undefined🤖 Generated with Claude Code