Skip to content

feat(wizard): set agents.defaults.auth during onboarding (#417)#431

Merged
alexey-pelykh merged 1 commit intomainfrom
feat/417-onboard-unified-auth
Mar 8, 2026
Merged

feat(wizard): set agents.defaults.auth during onboarding (#417)#431
alexey-pelykh merged 1 commit intomainfrom
feat/417-onboard-unified-auth

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Wire agents.defaults.auth into onboarding wizard — credential choices now set the auth config field
  • API key / auth token provided → auth: "{profile-id}" (e.g., "anthropic:default", "claude:oauth-token")
  • Credential skipped → auth: false (CLI handles its own authentication)
  • Applies to both interactive (promptRuntimeCredential) and non-interactive (applyNonInteractiveRuntimeAuth) flows
  • Update skip hint text to say "CLI handles its own authentication" and prepend guidance messages with auth: false explanation

Closes #417

Test plan

  • Interactive wizard: skip → agents.defaults.auth: false in written config
  • Interactive wizard: API key → agents.defaults.auth: "anthropic:default" in written config
  • Interactive wizard: auth token → agents.defaults.auth: "claude:oauth-token" in written config
  • Non-interactive: --anthropic-api-keyauth: "anthropic:default"
  • Non-interactive: --gemini-api-keyauth: "google:default"
  • Non-interactive: --codex-api-keyauth: "codex:default"
  • Non-interactive: --openai-api-keyauth: "openai:default"
  • Non-interactive: --auth-tokenauth: "claude:oauth-token"
  • Non-interactive: --runtime claude (no key) → auth: false
  • Non-interactive: no runtime/key → auth: undefined
  • All 107 onboarding tests pass
  • Type-check, lint, format clean

🤖 Generated with Claude Code

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>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 08:38
@alexey-pelykh alexey-pelykh merged commit 2b10b69 into main Mar 8, 2026
5 checks passed
@alexey-pelykh alexey-pelykh deleted the feat/417-onboard-unified-auth branch March 8, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adapt onboarding wizard for unified auth system

1 participant