mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-04 16:26:30 +00:00
docs gemini cli
This commit is contained in:
@@ -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.
|
||||
@@ -69,6 +69,7 @@ const sidebars = {
|
||||
items: [
|
||||
"tutorials/openweb_ui",
|
||||
"tutorials/openai_codex",
|
||||
"tutorials/litellm_gemini_cli",
|
||||
"tutorials/claude_responses_api",
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user