Expand description
Install / uninstall LLM-client proxy environment wiring.
Submodules hold per-client setup (Claude, Codex, Grok, Pi, shell). This
facade keeps the public API stable as crate::proxy_setup::*.
Functionsยง
- anthropic_
api_ key_ available - Returns true when an Anthropic API key is available for the proxy to forward upstream.
- 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 - grok_
session_ auth_ available - True when
~/.grok/auth.jsonholds a session/OIDC access token (subscription). - has_
stale_ proxy_ url - install_
proxy_ env - install_
proxy_ env_ unchecked - Install proxy env without config guard (used by
lean-ctx proxy enablewhich has already set the flag).force_endpoint: if true, overrides even non-local custom endpoints. - is_
local_ lean_ ctx_ url - preview_
proxy_ cleanup - proxy_
timeout - Proxy reachability timeout. Priority: env var > config.toml > 200ms default.
- uninstall_
proxy_ env - xai_
api_ key_ available - True when an xAI API key is available for the API-key rail.