Summary
When attempting to use Gemini models (gemini-2.5-flash) routed through the OpenAI provider compatibility layer, the application crashes immediately with an API Error 400.
The Google API returns Multiple authentication credentials received. Please pass only one.. This indicates that OpenClaude is likely attaching the API key in both the HTTP headers (e.g., Authorization: Bearer or x-goog-api-key) AND as a query parameter in the URL (?key=...) simultaneously, causing the Google endpoint to reject the request.
Steps to Reproduce
- Clean OS installation (no previous global keys configured).
- Configured the key by provider configuration.
- Set the configuration as follows:
- Provider:
Google Gemini
- Model:
gemini-2.5-flash
- Endpoint:
https://generativelanguage.googleapis.com/v1beta/openai/
- Type any prompt in the chat (e.g., "a").
- The request instantly fails with the 400 error.
Expected Behavior
The application should pass the authentication credential using only one method (preferably following the specific endpoint's standard) so the Google API accepts the request.
Actual Behavior
The execution immediately aborts with the following error:
API Error: 400 [{"error":{"code":400,"message":"Multiple authentication credentials received. Please pass only one.","status":"INVALID_ARGUMENT"}}]
Environment
- OpenClaude version: v0.3.0
- OS: WSL (Ubuntu) on Windows
- Terminal: Bash
- Provider Configured: Google Gemini
- Model:
gemini-2.5-flash
Logs / Screenshots

Summary
When attempting to use Gemini models (
gemini-2.5-flash) routed through theOpenAIprovider compatibility layer, the application crashes immediately with an API Error 400.The Google API returns
Multiple authentication credentials received. Please pass only one.. This indicates that OpenClaude is likely attaching the API key in both the HTTP headers (e.g.,Authorization: Bearerorx-goog-api-key) AND as a query parameter in the URL (?key=...) simultaneously, causing the Google endpoint to reject the request.Steps to Reproduce
Google Geminigemini-2.5-flashhttps://generativelanguage.googleapis.com/v1beta/openai/Expected Behavior
The application should pass the authentication credential using only one method (preferably following the specific endpoint's standard) so the Google API accepts the request.
Actual Behavior
The execution immediately aborts with the following error:
API Error: 400 [{"error":{"code":400,"message":"Multiple authentication credentials received. Please pass only one.","status":"INVALID_ARGUMENT"}}]Environment
gemini-2.5-flashLogs / Screenshots