Comment by Havoc

21 hours ago

You don't need to mess with certificates - you can point CC at a HTTP endpoint and it'll happily play along.

If you build a DIY proxy you can also mess with the prompt on the wire. Cut out portions of the system prompt etc. Or redirect it to a different endpoint based on specific conditions etc.

Have you tried this with Gemini? or Codex?

  • I personally switched to opencode. The prompt I wanted to mess with - search - I don’t need to intercept there so less need for a proxy

  • Have tried with gemini-cli and claude-code both, it works, honestly, it should work with most if not all cli clients

    • Working on this feature right now!! Thank you for the suggestion, will start the branch for it... Whent think of improving the context window usage, now that with an http relay we can start thinking of intercepting the context window, anything that you think could be cool to implement?

      1 reply →