Skip to content

Conversation

@tomek-labuk
Copy link
Contributor

@tomek-labuk tomek-labuk commented Jan 12, 2026

Description

Fixes #3402

Preview Links

https://deploy-preview-3887--kongdeveloper.netlify.app/how-to/use-gemini-cli-with-ai-gateway/

Checklist

  • Tested how-to docs. If not, note why here.
  • All pages contain metadata.
  • Any new docs link to existing docs.
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager).
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter.
  • Add new pages to the product documentation index (if applicable).

@tomek-labuk tomek-labuk requested a review from a team as a code owner January 12, 2026 13:08
@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit d3e21f2
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/696760ee992a490008421ba0
😎 Deploy Preview https://deploy-preview-3887--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@cloudjumpercat cloudjumpercat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some suggestions! Main things:

  • Left a comment where I got stuck in the validate section and I couldn't get it to work for me.
  • A few suggestions to make the copy/paste flow smoother.
  • Add a sentence to the File Log and AI Proxy sections explaining the why/use case/what it's doing.

2. Run a test command to test the connection:

```text
Tell me about prisoner's dilemma.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got stuck here, it detected I had exported the API key, so I hit enter like it said. Took me to the prompt window, I ran the prompt and got:

> Tell me about prisoner's dilemma.

✕ [API Error: Invalid URL]


> Tell me about prisoner's dilemma.

✕ [API Error: Invalid URL]

Copy link
Contributor Author

@tomek-labuk tomek-labuk Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird. I've just retested this and it works for me. Let me check again

---
## Configure the AI Proxy plugin

First, let's configure the [AI Proxy](/plugins/ai-proxy/) plugin. The Gemini CLI expects to communicate with Google's Gemini API using the chat endpoint. The plugin handles authentication using a query parameter and forwards requests to the specified model.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like a sentence here about the use case. Why not just route it through regular Gemini? Why use the Gemini CLI? Does this just ensure requests are handled by Gemini instead of another provider and you have to use the CLI to configure this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gemini CLI is a coding agent, just like Claude Code, or Codex. Let me add some explanation here.

tomek-labuk and others added 2 commits January 14, 2026 06:51
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare a how-to guide for Using Gemini CLI with AI Gateway

3 participants