Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hermes_cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class ProviderConfig:
name="Anthropic",
auth_type="api_key",
inference_base_url="https://api.anthropic.com",
api_key_env_vars=("ANTHROPIC_API_KEY", "ANTHROPIC_TOKEN", "CLAUDE_CODE_OAUTH_TOKEN"),
api_key_env_vars=("ANTHROPIC_API_KEY", "ANTHROPIC_TOKEN"),
base_url_env_var="ANTHROPIC_BASE_URL",
),
"alibaba": ProviderConfig(
Expand Down
2 changes: 1 addition & 1 deletion hermes_cli/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class HermesOverlay:
),
"anthropic": HermesOverlay(
transport="anthropic_messages",
extra_env_vars=("ANTHROPIC_TOKEN", "CLAUDE_CODE_OAUTH_TOKEN"),
extra_env_vars=("ANTHROPIC_TOKEN",),
),
"zai": HermesOverlay(
transport="openai_chat",
Expand Down
2 changes: 1 addition & 1 deletion hermes_cli/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ def _anthropic_oauth_status() -> Dict[str, Any]:
"has_refresh_token": bool(cc_creds.get("refreshToken")),
}

env_token = os.getenv("ANTHROPIC_TOKEN") or os.getenv("CLAUDE_CODE_OAUTH_TOKEN")
env_token = os.getenv("ANTHROPIC_TOKEN")
if env_token:
return {
"logged_in": True,
Expand Down