Skip to content

Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models via OpenAI-compatible API shim

TypeScript

fix: skip auth and onboarding for OpenAI provider in interactive mode

Kevin651335f682ba
diff --git a/src/interactiveHelpers.tsx b/src/interactiveHelpers.tsx
index b88dbbf..ca3e427 100644
--- a/src/interactiveHelpers.tsx
+++ b/src/interactiveHelpers.tsx
@@ -103,6 +103,7 @@ export async function renderAndRun(root: Root, element: React.ReactNode): Promis
}
export async function showSetupScreens(root: Root, permissionMode: PermissionMode, allowDangerouslySkipPermissions: boolean, commands?: Command[], claudeInChrome?: boolean, devChannels?: ChannelEntry[]): Promise<boolean> {
if ("production" === 'test' || isEnvTruthy(false) || process.env.IS_DEMO // Skip onboarding in demo mode
+ || isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI) // Skip onboarding for OpenAI provider
) {
return false;
}
diff --git a/src/utils/auth.ts b/src/utils/auth.ts
index ebae9f9..27098c0 100644
--- a/src/utils/auth.ts
+++ b/src/utils/auth.ts
@@ -115,7 +115,8 @@ export function isAnthropicAuthEnabled(): boolean {
const is3P =
isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) ||
isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) ||
- isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY)
+ isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) ||
+ isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)
// Check if user has configured an external API key source
// This allows externally-provided API keys to work (without requiring proxy configuration)