Skip to main content

Module proxy_setup

Module proxy_setup 

Source

Functionsยง

cleanup_stale_proxy_env
Removes stale proxy URLs from Claude Code / Codex settings when the proxy is not enabled. Returns the number of stale URLs cleaned up.
default_port
has_stale_proxy_url
Returns true if Claude Code settings contain a local ANTHROPIC_BASE_URL while the proxy is not enabled (stale configuration).
install_proxy_env
install_proxy_env_unchecked
Install proxy env without config guard (used by lean-ctx proxy enable which has already set the flag). force_endpoint: if true, overrides even non-local custom endpoints.
is_local_lean_ctx_url
preview_proxy_cleanup
uninstall_proxy_env