Skip to content

Proxy support for LLM API calls #5454

@kshitijk4poor

Description

@kshitijk4poor

Problem

Only the Telegram adapter respects HTTP_PROXY / HTTPS_PROXY env vars. The main LLM API client (OpenAI SDK) does not have explicit proxy configuration. Users behind corporate proxies or VPNs cannot route API calls through their proxy.

Proposed Solution

The OpenAI SDK uses httpx under the hood, which respects standard proxy env vars by default. Verify this works end-to-end, and add explicit proxy support via agent.proxy config key for cases where env vars are not sufficient (e.g. different proxy for API vs web tools). Also ensure the Anthropic native client path respects the same proxy config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/configConfig system, migrations, profilescomp/agentCore agent loop, run_agent.py, prompt buildertype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions