Original issue tinyhumansai#2366 by @Al629176 on 2026-05-20T19:11:19Z
Summary
OpenRouter can be enabled with a random invalid API key, so users think the provider is connected even though it was never validated.
Problem
In the custom/cloud provider setup flow, entering a random API key for OpenRouter is accepted and the OpenRouter provider toggle becomes enabled. The app does not appear to validate the key or endpoint before marking the provider usable.
Expected behavior: OpenRouter should only be enabled after the key and endpoint are validated, or it should clearly show an unverified/pending state until validation succeeds.
Actual behavior: a random key is accepted and OpenRouter appears enabled.
Impact: users can configure a broken provider and only discover the failure later in chat or routing, where the cause is much harder to understand.
Steps to reproduce:
- Open Settings → AI → LLM.
- Add a cloud provider.
- Select OpenRouter.
- Enter a random invalid API key.
- Save the provider.
- Observe that OpenRouter is enabled despite the invalid key.
Version / platform: macOS desktop app, screenshot captured May 21, 2026. Exact app version unknown.
Solution (optional)
Validate provider credentials before enabling the provider. For OpenRouter, use the correct OpenRouter endpoint and a lightweight validation call. If offline validation is not possible, mark the provider as “saved but unverified” rather than enabled.
Acceptance criteria
Related
- Screenshot:
Screenshot 2026-05-21 at 12.34.59 AM.png
Summary
OpenRouter can be enabled with a random invalid API key, so users think the provider is connected even though it was never validated.
Problem
In the custom/cloud provider setup flow, entering a random API key for OpenRouter is accepted and the OpenRouter provider toggle becomes enabled. The app does not appear to validate the key or endpoint before marking the provider usable.
Expected behavior: OpenRouter should only be enabled after the key and endpoint are validated, or it should clearly show an unverified/pending state until validation succeeds.
Actual behavior: a random key is accepted and OpenRouter appears enabled.
Impact: users can configure a broken provider and only discover the failure later in chat or routing, where the cause is much harder to understand.
Steps to reproduce:
Version / platform: macOS desktop app, screenshot captured May 21, 2026. Exact app version unknown.
Solution (optional)
Validate provider credentials before enabling the provider. For OpenRouter, use the correct OpenRouter endpoint and a lightweight validation call. If offline validation is not possible, mark the provider as “saved but unverified” rather than enabled.
Acceptance criteria
.github/workflows/coverage.yml).Related
Screenshot 2026-05-21 at 12.34.59 AM.png