Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lambertjosh
Copy link
Contributor

This PR removes the Gemini CLI provider. It does not work well, and is not a Google supported use of Gemini CLI as well.

@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2026

πŸ¦‹ Changeset detected

Latest commit: 654f04f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 21, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
webview-ui/src/components/ui/hooks/useSelectedModel.ts 566 Incorrect type assertion - kilocode has its own case handler (line 416) so it will never reach the default case. Should be removed from the satisfies assertion.
Files Reviewed (72 files)

Deleted Files (provider removal):

  • src/api/providers/gemini-cli.ts
  • src/api/providers/__tests__/gemini-cli.spec.ts
  • packages/types/src/providers/gemini-cli.ts
  • webview-ui/src/components/settings/providers/GeminiCli.tsx
  • webview-ui/src/components/settings/providers/__tests__/GeminiCli.spec.tsx
  • webview-ui/src/components/settings/providers/__tests__/GeminiCli.tsx

Modified Files:

  • .changeset/remove-gemini-cli-provider.md - Changeset for the removal
  • cli/docs/PROVIDER_CONFIGURATION.md - Documentation update
  • cli/src/config/mapper.ts - Remove gemini-cli case
  • cli/src/config/schema.json - Remove gemini-cli schema
  • cli/src/config/types.ts - Remove gemini-cli exports
  • cli/src/constants/providers/labels.ts - Remove label
  • cli/src/constants/providers/models.ts - Remove model imports and mappings
  • cli/src/constants/providers/settings.ts - Remove settings
  • cli/src/constants/providers/validation.ts - Remove validation
  • packages/core-schemas/src/config/provider.ts - Remove schema
  • packages/types/src/provider-settings.ts - Remove provider type
  • packages/types/src/providers/index.ts - Remove exports
  • src/api/index.ts - Remove handler
  • src/api/providers/index.ts - Remove export
  • webview-ui/src/components/kilocode/hooks/useProviderModels.ts - Remove case
  • webview-ui/src/components/settings/ApiOptions.tsx - Remove component usage
  • webview-ui/src/components/settings/constants.ts - Remove constant
  • webview-ui/src/components/settings/providers/index.ts - Remove export
  • webview-ui/src/components/ui/hooks/useSelectedModel.ts - Remove case (⚠️ has issue)
  • webview-ui/src/utils/validate.ts - Remove validation case
  • Multiple i18n locale files (21 files) - Remove translations
  • Multiple test files (2 files) - Remove test cases

Fix these issues in Kilo Cloud

@lambertjosh
Copy link
Contributor Author

Seems like it generally works:
image

@ltastr
Copy link

ltastr commented Jan 21, 2026

This PR removes the Gemini CLI provider. It does not work well, and is not a Google supported use of Gemini CLI as well.

I don’t fully agree that removing the Gemini CLI provider is the right conclusion here.

Gemini CLI did work in previous KiloCode versions, so this looks more like a regression than an inherently broken integration. Most of the reported issues seem to be concentrated around tool / function calling, not basic text generation or the provider concept itself.

Instead of removing the provider entirely, I’d suggest:

keeping Gemini CLI support at its current (basic) level;

clearly documenting any limitations;

focusing fixes specifically on the tool invocation / response parsing issues.

β€œNot officially supported by Google” doesn’t necessarily mean it cannot be supported at all β€” many CLI-based integrations live in that gray area. Even minimal, best-effort support would be better than a hard removal, especially for users who already rely on it.

@kevinvandijk
Copy link
Collaborator

What happens when people have this provider selected and update? Can you make sure to test that they won't go into some kind of locked up state?

@lambertjosh
Copy link
Contributor Author

lambertjosh commented Jan 22, 2026

β€œNot officially supported by Google” doesn’t necessarily mean it cannot be supported at all β€” many CLI-based integrations live in that gray area. Even minimal, best-effort support would be better than a hard removal, especially for users who already rely on it.

@ltastr - we understand that this will impact some users, and hope that most will be able to move over to one of the other methods (Google AI Studio BYOK or Gemini provider) that uses a Google-supported integration mechanism.

@lambertjosh
Copy link
Contributor Author

I have validated that if you have a provider other than Gemini CLI (in my case anthropic) it will be preserved when you start the extension host.

When I had gemini cli set as my settings, then launched the extension host, it reverted to kilo gateway. So I think we are OK, this seems like a good fallback.

"qwen-code",
"minimax",
]
const excludedProviders = ["moonshot", "chutes", "cerebras", "litellm", "zai", "qwen-code", "minimax"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note - it seems like with the shorter line length prettier enforces this style.

@tazztone
Copy link

move over to one of the other methods (Google AI Studio BYOK or Gemini provider)

which both are not included in AI pro plan? need paid API key right?

@lambertjosh
Copy link
Contributor Author

which both are not included in AI pro plan? need paid API key right?

@tazztone - unfortunately there is not a Google supported way to integrate today with the AI plans. If one becomes available, we would add support. We do have official support for ChatGPT subscriptions, support BYOK for Z.AI plans among others, and now also allow anonymous access to free models.

Here is the current free model list:
image

@tazztone
Copy link

tazztone commented Jan 28, 2026

well i use v4.145 and it works (for my purposes of creating commit messages and ask questions). so it seems there is no need for google to "support" it for it to work.
ig i will just not update kilo for now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants