Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs gemini cli

Ishaan Jaffbca94535da3f
diff --git a/docs/my-website/docs/tutorials/litellm_gemini_cli.md b/docs/my-website/docs/tutorials/litellm_gemini_cli.md
new file mode 100644
index 00000000000..df484b9df55
--- /dev/null
+++ b/docs/my-website/docs/tutorials/litellm_gemini_cli.md
@@ -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.
diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.js
index 2539b7af510..7d487b5102c 100644
--- a/docs/my-website/sidebars.js
+++ b/docs/my-website/sidebars.js
@@ -69,6 +69,7 @@ const sidebars = {
items: [
"tutorials/openweb_ui",
"tutorials/openai_codex",
+ "tutorials/litellm_gemini_cli",
"tutorials/claude_responses_api",
]
},