docs: update Anthropic console URLs to platform.claude.com

Anthropic migrated their developer console from console.anthropic.com
to platform.claude.com. Two user-facing display URLs were still pointing
to the old domain:

- hermes_cli/main.py — API key prompt in the Anthropic model flow
- run_agent.py — 401 troubleshooting output

The OAuth token refresh endpoint was already migrated in PR #3246
(with fallback).

Spotted by @LucidPaths in PR #3237.

(Salvage of #3758 — dropped the setup.py hunk since that section was
refactored away and no longer contains the stale URL.)
This commit is contained in:
Teknium 2026-04-18 18:55:21 -07:00 committed by Teknium
parent 2a2e5c0fed
commit 1e5f0439d9
2 changed files with 2 additions and 2 deletions

View file

@ -3973,7 +3973,7 @@ def _model_flow_anthropic(config, current_model=""):
elif choice == "2":
print()
print(" Get an API key at: https://console.anthropic.com/settings/keys")
print(" Get an API key at: https://platform.claude.com/settings/keys")
print()
try:
import getpass

View file

@ -10151,7 +10151,7 @@ class AIAgent:
_dhh = _dhh_fn()
print(f"{self.log_prefix} • Check ANTHROPIC_TOKEN in {_dhh}/.env for Hermes-managed OAuth/setup tokens")
print(f"{self.log_prefix} • Check ANTHROPIC_API_KEY in {_dhh}/.env for API keys or legacy token values")
print(f"{self.log_prefix} • For API keys: verify at https://console.anthropic.com/settings/keys")
print(f"{self.log_prefix} • For API keys: verify at https://platform.claude.com/settings/keys")
print(f"{self.log_prefix} • For Claude Code: run 'claude /login' to refresh, then retry")
print(f"{self.log_prefix} • Legacy cleanup: hermes config set ANTHROPIC_TOKEN \"\"")
print(f"{self.log_prefix} • Clear stale keys: hermes config set ANTHROPIC_API_KEY \"\"")