From d4104214edd3cf5279a1bd90e19c5a3da110f37a Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Thu, 10 Jul 2025 05:31:55 +0800 Subject: [PATCH] Updated README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 7ca360d0..7bdaea5d 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ A proxy server that provides an OpenAI-compatible API interface for CLI. This al - Multiple account support with load balancing - Simple CLI authentication flow - Support for Generative Language API Key +- Support Gemini CLI with multiple account load balancing ## Installation @@ -172,6 +173,13 @@ debug: false api-keys: - "your-api-key-1" - "your-api-key-2" + +# API keys for official Generative Language API +generative-language-api-key: + - "AIzaSy...01" + - "AIzaSy...02" + - "AIzaSy...03" + - "AIzaSy...04" ``` ### Authentication Directory @@ -186,6 +194,20 @@ The `api-keys` parameter allows you to define a list of API keys that can be use Authorization: Bearer your-api-key-1 ``` +### Official Generative Language API + +The `generative-language-api-key` parameter allows you to define a list of API keys that can be used to authenticate requests to the official Generative Language API. + +## Gemini CLI with multiple account load balancing + +Start CLI Proxy API server, and then set the `CODE_ASSIST_ENDPOINT` environment variable to the URL of the CLI Proxy API server. + +```bash +export CODE_ASSIST_ENDPOINT="http://127.0.0.1:8317" +``` + +The server will relay the `loadCodeAssist`, `onboardUser`, and `countTokens` requests. And automatically load balance the text generation requests between the multiple accounts. + ## Contributing Contributions are welcome! Please feel free to submit a Pull Request.