Gemini CLI
Gemini CLI configuration depends on the client version and compatibility mode. bus4ai provides one API Base URL that you can use with the protocol your client supports.
Base URL
https://bus4ai.comCommon OpenAI-compatible prefix:
https://bus4ai.com/v1Environment Variable Example
If your Gemini CLI supports OpenAI-compatible mode:
export OPENAI_API_KEY="your bus4ai API Key"
export OPENAI_BASE_URL="https://bus4ai.com/v1"PowerShell:
$env:OPENAI_API_KEY="your bus4ai API Key"
$env:OPENAI_BASE_URL="https://bus4ai.com/v1"If your tool requires Gemini-native variable names, still use your bus4ai API Key and set the endpoint or base URL to the bus4ai address.
Recommendations
- Create a separate
gemini-clikey - Verify with a small request before running long tasks
- If requests fail, first check whether the Base URL has an extra path segment