Skip to content

Proxy defined in environment broken: "TypeError: HttpsProxyAgent is not a constructor" when using proxy options #24471

Description

@ashleyghooper

What happened?

I upgraded to Gemini CLI 0.36.0 and immediately found it was failing with the below error:

TypeError: HttpsProxyAgent is not a constructor

What did you expect to happen?

Gemini CLI would be able to reach the Gemini API via the proxy server configured in my environment, as it did with 0.35.3 and previous versions.

Client information

Client Information

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.36.0 │
│ Git Commit 8b1e649
│ Model Auto (Gemini 3) │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method vertex-ai │
│ GCP Project <> │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Login information

Google account/Vertex AI

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityeffort/small1 day or less: trivial logic, UI adjustments, docskind/bugpriority/p1Important and should be addressed in the near term.status/bot-triaged

    Type

    Projects

    Status
    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions