mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-18 14:52:04 +00:00
fix(cli): correct stale hermes auth login nous hints to hermes auth add nous (#53929)
* fix(cli): correct stale `hermes auth login nous` hints to `hermes auth add nous` There is no `hermes auth login` subcommand — valid auth verbs are add/list/remove/reset/status/logout/spotify. Six user-facing strings told users to run `hermes auth login nous`, which fails with `invalid choice: 'login'` — the same broken-hint class reported in #28089 for the proxy flow (already fixed there to `hermes auth add nous`). Sites corrected to `hermes auth add nous`: - hermes_cli/dashboard_register.py (401 retry hint, not-logged-in hint) - hermes_cli/gateway_enroll.py (401 retry hint, not-logged-in hint) - cli-config.yaml.example (two provider-requirement comments) * docs(infographic): auth login nous hint fix
This commit is contained in:
parent
4626ceb747
commit
e3c9924b8b
4 changed files with 6 additions and 6 deletions
|
|
@ -13,7 +13,7 @@ model:
|
|||
# Inference provider selection:
|
||||
# "auto" - Auto-detect from credentials (default)
|
||||
# "openrouter" - OpenRouter (requires: OPENROUTER_API_KEY or OPENAI_API_KEY)
|
||||
# "nous" - Nous Portal OAuth (requires: hermes login)
|
||||
# "nous" - Nous Portal OAuth (requires: hermes auth add nous)
|
||||
# "nous-api" - Nous Portal API key (requires: NOUS_API_KEY)
|
||||
# "anthropic" - Direct Anthropic API (requires: ANTHROPIC_API_KEY)
|
||||
# "openai-codex" - OpenAI Codex (requires: hermes auth)
|
||||
|
|
@ -451,7 +451,7 @@ prompt_caching:
|
|||
# Provider options:
|
||||
# "auto" - Best available: OpenRouter → Nous Portal → main endpoint (default)
|
||||
# "openrouter" - Force OpenRouter (requires OPENROUTER_API_KEY)
|
||||
# "nous" - Force Nous Portal (requires: hermes login)
|
||||
# "nous" - Force Nous Portal (requires: hermes auth add nous)
|
||||
# "gemini" - Force Google AI Studio direct (requires: GOOGLE_API_KEY or GEMINI_API_KEY)
|
||||
# "ollama-cloud" - Ollama Cloud (requires: OLLAMA_API_KEY)
|
||||
# "codex" - Force Codex OAuth (requires: hermes model → Codex).
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ def _register_self_hosted_client(
|
|||
if exc.code == 401:
|
||||
raise RuntimeError(
|
||||
"Nous Portal rejected the access token (401). "
|
||||
"Try `hermes auth login nous` to re-authenticate."
|
||||
"Try `hermes auth add nous` to re-authenticate."
|
||||
) from exc
|
||||
if exc.code == 403:
|
||||
raise RuntimeError(
|
||||
|
|
@ -251,7 +251,7 @@ def cmd_dashboard_register(args) -> None:
|
|||
except AuthError as exc:
|
||||
if getattr(exc, "relogin_required", False):
|
||||
print("✗ You're not logged into Nous Portal.")
|
||||
print(" Run `hermes setup` (or `hermes auth login nous`) first, then retry.")
|
||||
print(" Run `hermes setup` (or `hermes auth add nous`) first, then retry.")
|
||||
else:
|
||||
print(f"✗ Could not resolve a Nous Portal access token: {exc}")
|
||||
sys.exit(1)
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ def _post_enroll(
|
|||
if exc.code == 401:
|
||||
raise RuntimeError(
|
||||
"Connector rejected the caller identity (401). Your Nous Portal "
|
||||
"token could not be verified — try `hermes auth login nous` and retry."
|
||||
"token could not be verified — try `hermes auth add nous` and retry."
|
||||
) from exc
|
||||
if exc.code == 403:
|
||||
raise RuntimeError(
|
||||
|
|
@ -185,7 +185,7 @@ def cmd_gateway_enroll(args) -> None:
|
|||
except AuthError as exc:
|
||||
if getattr(exc, "relogin_required", False):
|
||||
print("✗ You're not logged into Nous Portal.")
|
||||
print(" Run `hermes setup` (or `hermes auth login nous`) first, then retry.")
|
||||
print(" Run `hermes setup` (or `hermes auth add nous`) first, then retry.")
|
||||
else:
|
||||
print(f"✗ Could not resolve a Nous Portal access token: {exc}")
|
||||
sys.exit(1)
|
||||
|
|
|
|||
BIN
infographic/auth-login-hint-fix/infographic.png
Normal file
BIN
infographic/auth-login-hint-fix/infographic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 MiB |
Loading…
Add table
Add a link
Reference in a new issue