docs gemini cli

This commit is contained in:
Ishaan Jaff
2025-06-25 22:31:47 -07:00
parent 5ebdb58115
commit bca94535da
2 changed files with 31 additions and 0 deletions
@@ -0,0 +1,30 @@
# Use LiteLLM with Gemini CLI
Quickstart
### 1. Install Gemini CLI
```bash
git clone https://github.com/ishaan-jaff/gemini-cli.git
cd gemini-cli
```
### 2. Point Gemini CLI to LiteLLM Proxy
Set `BASE_URL` to the LiteLLM Proxy URL and set `GEMINI_API_KEY` to your LiteLLM Proxy API key.
```bash
export BASE_URL=http://localhost:4000
export GEMINI_API_KEY=sk-1234567890
```
### 3. Run Gemini CLI
```bash
npm run build && npm start
```
### 4. Test it
Send a test request on Gemini CLI, this will get routed to LiteLLM Proxy and then to Gemini.
+1
View File
@@ -69,6 +69,7 @@ const sidebars = {
items: [
"tutorials/openweb_ui",
"tutorials/openai_codex",
"tutorials/litellm_gemini_cli",
"tutorials/claude_responses_api",
]
},