diff --git a/packages/coding-agent/src/config/models-config.ts b/packages/coding-agent/src/config/models-config.ts index d9e4fd47b..1c6e7b26d 100644 --- a/packages/coding-agent/src/config/models-config.ts +++ b/packages/coding-agent/src/config/models-config.ts @@ -66,7 +66,7 @@ export function validateProviderConfiguration( const requiresAuth = mode === "runtime-register" ? !config.apiKey && !config.oauthConfigured - : !config.apiKey && (config.auth ?? "apiKey") !== "none"; + : !config.apiKey && (config.auth ?? "apiKey") !== "none" && (config.auth ?? "apiKey") !== "oauth"; if (requiresAuth) { throw new Error( mode === "runtime-register"