claude-proxy / src /free_claude_code /cli /proxy_auth.py
dheraingoud's picture
feat: synchronize proxy with upstream commits up to 5305bd7 and integrate NIM key rotator
0a54372
Raw
History Blame Contribute Delete
276 Bytes
"""Shared proxy-auth policy for FCC client launchers."""
PROXY_NO_AUTH_SENTINEL = "fcc-no-auth"
def proxy_auth_token(auth_token: str) -> str:
"""Return the configured proxy token or the no-auth client marker."""
return auth_token.strip() or PROXY_NO_AUTH_SENTINEL