fix (provider): deprecated gemini oauth provider (#11223)

This commit is contained in:
Lifei Zhou
2026-08-14 09:33:43 +00:00
committed by GitHub
parent 705f30df47
commit 433d1b3c8f
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ impl goose_providers::base::ProviderDescriptor for GeminiCliProvider {
ProviderMetadata::new(
GEMINI_CLI_PROVIDER_NAME,
"Gemini CLI",
"[Deprecated: use gemini_oauth instead] Execute Gemini models via gemini CLI tool. Requires gemini CLI installed.",
"[Deprecated: use the Google or Vertex AI provider instead] Execute Gemini models via gemini CLI tool. Requires gemini CLI installed.",
GEMINI_CLI_DEFAULT_MODEL,
GEMINI_CLI_KNOWN_MODELS.to_vec(),
GEMINI_CLI_DOC_URL,
+1 -1
View File
@@ -934,7 +934,7 @@ impl goose_providers::base::ProviderDescriptor for GeminiOAuthProvider {
ProviderMetadata::new(
GEMINI_OAUTH_PROVIDER_NAME,
"Gemini",
"Sign in with your Google account to use Gemini models — no API key needed",
"[Deprecated: use the Google provider with a Gemini API key or Vertex AI instead] Sign in with your Google account to use Gemini models — no API key needed",
GEMINI_OAUTH_DEFAULT_MODEL,
GEMINI_OAUTH_KNOWN_MODELS.to_vec(),
GOOGLE_DOC_URL,
+1 -1
View File
@@ -114,7 +114,7 @@ async fn init_registry() -> RwLock<ProviderRegistry> {
);
registry.register::<GeminiCliProvider>(false);
registry.register_with_inventory::<GeminiOAuthProvider>(
true,
false,
Some(registrations::gemini_oauth_inventory()),
);
registry.register_with_inventory::<GithubCopilotProvider>(
+2 -2
View File
@@ -8,10 +8,10 @@ description: Use Claude Code, Codex, Cursor Agent, or Gemini CLI subscriptions i
# CLI Providers
:::warning Deprecated — Use ACP Providers
The Claude Code (`claude-code`), Codex (`codex`), and Gemini CLI (`gemini-cli`) providers are deprecated. Use the [ACP providers](/docs/guides/acp-providers) (`claude-acp`, `codex-acp`) instead, which support goose extensions via MCP and use the standardized Agent Client Protocol. For Gemini, use the `Gemini` (`gemini_oauth`) provider which authenticates via OAuth. CLI providers are kept for backward compatibility only.
The Claude Code (`claude-code`), Codex (`codex`), Gemini CLI (`gemini-cli`), and Gemini OAuth (`gemini_oauth`) providers are deprecated. Use the [ACP providers](/docs/guides/acp-providers) (`claude-acp`, `codex-acp`) instead for Claude and Codex. For Gemini, use the [Google provider](/docs/getting-started/providers#google-gemini) with a Gemini API key or [Vertex AI](https://cloud.google.com/vertex-ai). Deprecated providers remain available for backward compatibility only.
:::
goose can make use of pass-through providers that integrate with existing CLI tools from Anthropic, OpenAI, Cursor, and Google. These providers allow you to use your existing Claude Code, Codex, Cursor Agent, and Google Gemini CLI subscriptions through goose's interface, adding session management, persistence, and workflow integration capabilities to these tools.
goose can make use of pass-through providers that integrate with existing CLI tools from Anthropic, OpenAI, Cursor, and Google. These providers allow you to use your existing Claude Code, Codex, Cursor Agent, and Google Gemini CLI subscriptions through goose's interface, adding session management, persistence, and workflow integration capabilities to these tools. The Gemini OAuth provider is deprecated because Google no longer supports the underlying Code Assist login flow for some account types. See Google's [announcement](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/) and [deprecation notice](https://developers.google.com/gemini-code-assist/docs/deprecations/code-assist-individuals).
:::warning Limitations
These providers dont fully support all goose features, may have platform or capability limitations, and can sometimes require advanced debugging if issues arise. Theyre included here purely as a convenience.