#3591: CLI: add OpenAI-compatible endpoint auth choice
commands
Cluster:
Model Authentication Enhancements
## Summary
- add OpenAI-compatible endpoint auth flow for base URL + bearer token
- expose the new auth choice and preferred provider mapping
- make the canvas host test create a temporary A2UI bundle if missing
## Testing
- not run (not requested)
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a new onboarding/auth selection for an OpenAI-compatible endpoint (base URL + bearer token), wires it into the OpenAI auth apply flow, and maps the choice to the `openai` provider. It also updates the canvas host test to ensure an A2UI bundle exists so the scaffold can be served during tests.
Overall, the changes fit into the existing onboarding CLI by extending `AuthChoice` and the auth-choice option/group builders, and by adding a new branch in `applyAuthChoiceOpenAI` for collecting/storing endpoint env vars.
<h3>Confidence Score: 3/5</h3>
- Mostly safe to merge, but there is at least one test-related reliability issue that could break CI in some environments.
- The main functional change is straightforward and localized to onboarding/auth selection. The primary concern is the canvas-host test writing into the repository tree, which can fail in read-only or parallelized test setups and can dirty the working tree during runs.
- src/canvas-host/server.test.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#13079: feat: Add OpenAI-compatible API option to CLI for self-hosted models
by MikeWang0316tw · 2026-02-10
82.1%
#22105: feat(auth): add refreshable Anthropic OAuth login flow
by sauerdaniel · 2026-02-20
76.2%
#15197: fix: allow OpenAI auth profiles for OpenAI-compatible providers
by bufordtjustice2918 · 2026-02-13
75.4%
#21520: feat(onboard): add Cencori provider.
by bolaabanjo · 2026-02-20
75.3%
#7796: Enable model login with OpenAI device code
by ylsung · 2026-02-03
74.8%
#19841: feat: add Amazon Bedrock as first-class onboarding provider
by elbeyf · 2026-02-18
74.4%
#12059: feat(agents): Add Azure AI Foundry credential support
by lisanyambere · 2026-02-08
74.2%
#6968: Add LM Studio onboarding option
by i3T4AN · 2026-02-02
73.8%
#13321: android/gateway: harden manual connect identity and A2UI UX
by m888m · 2026-02-10
73.3%
#7813: feat(onboard): validate Venice API keys during setup
by jonisjongithub · 2026-02-03
73.1%