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 0000000000..df484b9df5 --- /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 2539b7af51..7d487b5102 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", ] },