The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(env): OPENAI_API_KEY selects openai-api; OpenRouter only for sk-or- keys
kshitijk4poorc92364506198
diff --git a/hermes_cli/setup.py b/hermes_cli/setup.pyindex e69ef58d7de..ca86f1839df 100644--- a/hermes_cli/setup.py+++ b/hermes_cli/setup.py@@ -94,7 +94,7 @@ def print_noninteractive_setup_guidance(reason: str | None = None) -> None:" hermes config set model.provider custom"," hermes config set model.base_url http://localhost:8080/v1"," hermes config set model.default your-model-name", None,- "Or set OPENROUTER_API_KEY / OPENAI_API_KEY in your environment.",+ "Or set OPENROUTER_API_KEY (OpenRouter) / OPENAI_API_KEY (OpenAI) in your environment.","Run 'hermes setup' in an interactive terminal to use the full wizard.", None)diff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.mdindex 1e01e81322d..de81c258257 100644--- a/website/docs/reference/environment-variables.md+++ b/website/docs/reference/environment-variables.md@@ -21,7 +21,7 @@ Hermes reads environment variables from the process environment and, for user-ma| `NOUS_INFERENCE_BASE_URL` | Override Nous inference endpoint directly || `AI_GATEWAY_API_KEY` | Vercel AI Gateway API key ([ai-gateway.vercel.sh](https://ai-gateway.vercel.sh)) || `AI_GATEWAY_BASE_URL` | Override AI Gateway base URL (default: `https://ai-gateway.vercel.sh/v1`) |-| `OPENAI_API_KEY` | API key for custom OpenAI-compatible endpoints (used with `OPENAI_BASE_URL`) |+| `OPENAI_API_KEY` | OpenAI API key (`openai-api` provider), or the key for a custom OpenAI-compatible endpoint when `OPENAI_BASE_URL` is set. Counts as an OpenRouter key only when it starts with `sk-or-`; put OpenRouter keys in `OPENROUTER_API_KEY` || `OPENAI_BASE_URL` | Base URL for custom endpoint (VLLM, SGLang, etc.) || `HERMES_CODEX_BASE_URL` | Route the `openai-codex` (ChatGPT subscription) provider through a proxy instead of the default Codex backend. Applies everywhere the credential is used: pool resolution, auxiliary/raw clients, and 401/429 credential rotation. `model.base_url` under `model.provider: openai-codex` is the secondary override when this is unset. || `LM_API_KEY` | API key for LM Studio (`lmstudio` provider). Often a placeholder for local servers |