News for hackers. Stuff that matters.
Re:Show HN: A MitM proxy to see what your LLM tools are sending by tkp-415 on Wednesday January 28, 2026 @05:03PM (#46802191)
Curious to see how you can get Gemini fully intercepted.

I've been intercepting its HTTP requests by running it inside a docker container with:

-e HTTP_PROXY=http://127.0.0.1:8080 -e HTTPS_PROXY=http://host.docker.internal:8080 -e NO_PROXY=localhost,127.0.0.1

It was working with mitmproxy for a very brief period, then the TLS handshake started failing and it kept requesting for re-authentication when proxied.

You can get the whole auth flow and initial conversation starters using Burp Suite and its certificate, but the Gemini chat responses fail in the CLI, which I understand is due to how Burp handles HTTP2 (you can see the valid responses inside Burp Suite).

Re:Show HN: A MitM proxy to see what your LLM tools are sending by paulirish on Wednesday January 28, 2026 @06:18PM (#46803144)
Gemini CLI is open source. Don't need to intercept at the network when you can just add inspectGeminiApiRequest() in the source. (I suggest it because I've been maintaining a personal branch with exactly that :)
Re:Show HN: A MitM proxy to see what your LLM tools are sending by tkp-415 on Thursday January 29, 2026 @11:27AM (#46812402)
Ahh, that seems much simpler. Dump the request / response directly. Now I'm wondering if I can use Gemini to patch Gemini.
Re:Show HN: A MitM proxy to see what your LLM tools are sending by paulirish on Thursday January 29, 2026 @04:02PM (#46816540)
Yup. It does a great job in there.
Re:Show HN: A MitM proxy to see what your LLM tools are sending by jmuncor on Wednesday January 28, 2026 @05:30PM (#46802548)
Tried with gemini and gave more headaches than anything else, would love if you can help me adding it to sherlock... I use claude and gemini, claude mainly for coding, so wanted to set it up first. With gemini, ran into the same problem that you did...