The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(providers): finish the keyless cleanup
kshitijk4poordebfc7420b61
diff --git a/hermes_cli/auth.py b/hermes_cli/auth.pyindex 0205bfd5d33..ed63ed45800 100644--- a/hermes_cli/auth.py+++ b/hermes_cli/auth.py@@ -1746,10 +1746,6 @@ def get_api_key_provider_status(provider_id: str) -> Dict[str, Any]:pconfig = PROVIDER_REGISTRY.get(provider_id)if not pconfig or pconfig.auth_type != "api_key":return {"configured": False}- status = {- "configured": True, "provider": provider_id, "name": pconfig.name, "key_source": "",- "base_url": pconfig.inference_base_url, "logged_in": True}-api_key, key_source = _resolve_api_key_provider_secret(provider_id, pconfig)env_url = _provider_env_base_url(pconfig)if provider_id in {"kimi-coding", "kimi-coding-cn"}:@@ -1761,10 +1757,10 @@ def get_api_key_provider_status(provider_id: str) -> Dict[str, Any]:base_url = normalize_actual_base_url(base_url)actual_local_noauth = not api_key and is_actual_local_base_url(base_url)configured = bool(api_key) or actual_local_noauth- status.update( # logged_in mirrors configured for compat with the OAuth status shape- configured=configured, base_url=base_url, logged_in=configured,- key_source=key_source or ("local-offline" if actual_local_noauth else ""))- return status+ return { # logged_in mirrors configured for compat with the OAuth status shape+ "configured": configured, "provider": provider_id, "name": pconfig.name,+ "key_source": key_source or ("local-offline" if actual_local_noauth else ""),+ "base_url": base_url, "logged_in": configured}def _external_process_auth_evidence(provider_id: str) -> tuple[bool, Optional[str]]:diff --git a/hermes_cli/models.py b/hermes_cli/models.pyindex da2da355c6b..37f8a85f4bb 100644--- a/hermes_cli/models.py+++ b/hermes_cli/models.py@@ -1433,9 +1433,10 @@ _PROVIDER_CATALOG_FETCHERS: dict[str, Any] = {"bedrock": _bedrock_catalog}-# ``-free`` slugs the relay still LISTS but no longer serves (or that are keyed twins, not-# anonymous-servable). The live-first keyed Zen/Go pickers filter through this so a stale live-# listing can never route into a 400/403 (#111749).+# ``-free`` slugs the relay still LISTS but no longer serves: the Go-only twin (``ox-alpha-free``)+# and the promo it delisted without removing from ``/models`` (``deepseek-v4-flash-free``). The+# live-first keyed Zen/Go pickers filter through this so a stale live listing can never route+# into a 400/403 (#111749)._OPENCODE_FREE_EXCLUDED_MODELS = frozenset({"ox-alpha-free", "deepseek-v4-flash-free"})