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

Skip to content

Conversation

@Ashwinhegde19
Copy link
Contributor

Context

Fixes #2972. The CLI was making network requests to ALL providers (requesty, deepinfra, glama, etc.) on startup, even when the user hadn't configured them.

Implementation

In webviewMessageHandler.ts, restructured the requestRouterModels handler to add providers conditionally based on configured credentials:

  • Each provider now checks for its API key/token before being added to the fetch candidates list
  • Providers without configured credentials are skipped entirely
  • Reduces unnecessary network requests at startup

Providers with new conditional checks:

  • gemini, requesty, glama, unbound, kilocode, ollama, deepinfra, nano-gpt, ovhcloud, inception, synthetic, roo, chutes

Always included:

  • openrouter – works without API key for public models
  • vercel-ai-gateway – public endpoint

How to Test

  1. Start CLI/extension with only one provider configured (e.g., kilocode)
  2. Observe startup logs/network requests
  3. Verify no requests to unconfigured providers (glama, requesty, deepinfra, etc.)

Get in Touch

Available on Discord as needed.

Added conditional API key checks for all providers in the requestRouterModels
handler. Providers without configured credentials are now skipped, preventing
unnecessary network requests at startup.

Fixes Kilo-Org#2972
@changeset-bot
Copy link

changeset-bot bot commented Jan 27, 2026

🦋 Changeset detected

Latest commit: 72fb98d

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 Patch

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

@Ashwinhegde19
Copy link
Contributor Author

The test-extension (ubuntu-latest) failure appears to be unrelated to my changes - all other CI checks pass (compile, build-cli, test-cli, test-webview, etc.). Happy to investigate further if needed.

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.

kilocode CLI makes requests for non-configured providers

1 participant