← Back to PRs

#3591: CLI: add OpenAI-compatible endpoint auth choice

by surak open 2026-01-28 21:54 View on GitHub →
commands
## 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