The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(portal): name the exact per-profile sign-in path and fix the guide page too
teknium1b9d3c703038a
diff --git a/website/docs/guides/run-hermes-with-nous-portal.md b/website/docs/guides/run-hermes-with-nous-portal.mdindex e4928ef6df3..b100f1592b9 100644--- a/website/docs/guides/run-hermes-with-nous-portal.md+++ b/website/docs/guides/run-hermes-with-nous-portal.md@@ -172,7 +172,7 @@ The cron job runs unattended, calls the model + web search + summarization all t## Profiles and multi-user setups-If you use [Hermes profiles](/user-guide/profiles) (e.g. a separate config per project), the Portal refresh token is automatically shared across all profiles via a shared token store. Sign in once on any profile, and the rest pick it up automatically.+If you use [Hermes profiles](/user-guide/profiles) (e.g. a separate config per project), each profile is an independent credential island: a profile that has never signed in to the Portal fails closed instead of adopting another profile's session. Sign in once per profile with `hermes -p <name> portal` — when a shared Portal session already exists on the machine it offers to import it without a browser round-trip, and from then on the shared token store keeps that profile's token current. See [Profile setup](/integrations/nous-portal#profile-setup).For team setups where multiple humans share a machine, each human has their own Portal account → each home directory holds its own `~/.hermes/auth.json` → no token sharing across users. This is the right boundary.diff --git a/website/docs/integrations/nous-portal.md b/website/docs/integrations/nous-portal.mdindex 2ce924baa45..c0095af0bfe 100644--- a/website/docs/integrations/nous-portal.md+++ b/website/docs/integrations/nous-portal.md@@ -122,11 +122,11 @@ Your existing providers stay configured. You can switch between them with `/modeOAuth needs a browser, but the loopback callback runs on the machine where Hermes is running. For remote hosts, see [OAuth over SSH / Remote Hosts](/guides/oauth-over-ssh) — the same patterns work for the Portal as for any other OAuth-based provider (`ssh -L` port forwarding).-### Profile setup+### Profile setup {#profile-setup}-If you use [Hermes profiles](/user-guide/profiles), the Portal refresh token is shared across profiles via a shared token store — but the store **refreshes an existing login, it does not create one**. Profiles are independent islands ([#111724](https://github.com/NousResearch/hermes-agent/issues/111724)), so a profile that has never signed in to the Portal has no Nous credentials of its own: at boot it fails closed and asks you to set one up (`hermes -p <name> portal`) rather than silently adopting another profile's session.+If you use [Hermes profiles](/user-guide/profiles), the Portal refresh token is shared across profiles via a shared token store — but the store **refreshes an existing login, it does not create one**. Profiles are independent islands ([#111724](https://github.com/NousResearch/hermes-agent/issues/111724)), so a profile that has never signed in to the Portal has no Nous credentials of its own: at boot it fails closed with `Profile '<name>' is not connected to any AI provider yet` rather than silently adopting another profile's session.-Sign in **once per profile**. After a profile has completed the OAuth flow, the shared store keeps its token current whenever any profile re-logs in — you don't repeat the interactive OAuth flow to stay signed in, but you do run it once on each profile you want connected.+Sign in **once per profile** with `hermes -p <name> portal` (alias for `hermes -p <name> auth add nous --type oauth`). When a shared Portal session already exists on the machine, that command offers to import it — one confirmation, no browser round-trip. After that first import the profile keeps its own state, and the shared store keeps its token current whenever any profile refreshes or re-logs in. `hermes profile create <name> --clone-all` from a signed-in profile also carries the Portal login (only single-use grants such as Anthropic/Codex are stripped from clones).## Using the Portal day-to-daydiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/run-hermes-with-nous-portal.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/run-hermes-with-nous-portal.mdindex 0b50318e8e5..c9b9c1b3b05 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/run-hermes-with-nous-portal.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/run-hermes-with-nous-portal.md@@ -169,7 +169,7 @@ hermes cron add "Daily AI news summary" "every day at 9am" \## Profiles 与多用户配置-如果你使用 [Hermes profiles](/user-guide/profiles)(例如每个项目单独一套配置),Portal refresh token 会通过共享 token 存储自动在所有 profiles 之间共享。在任意 profile 上登录一次,其余 profiles 会自动获取。+如果你使用 [Hermes profiles](/user-guide/profiles)(例如每个项目单独一套配置),每个 profile 都是独立的凭证孤岛:从未登录过 Portal 的 profile 会直接失败,而不会采用其他 profile 的会话。请在每个 profile 上用 `hermes -p <name> portal` 登录一次——如果机器上已有共享的 Portal 会话,它会提示导入且无需再走浏览器流程;此后共享 token 存储会让该 profile 的令牌保持最新。参见 [Profile 配置](/integrations/nous-portal#profile-setup)。对于多人共用一台机器的团队场景,每个人有自己的 Portal 账号 → 每个 home 目录保存各自的 `~/.hermes/auth.json` → 用户之间不共享 token。这是正确的边界划分。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/nous-portal.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/nous-portal.mdindex 0019fc3a168..ac0776acda8 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/nous-portal.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/nous-portal.md@@ -118,11 +118,11 @@ hermes modelOAuth 需要浏览器,但回调的 loopback 运行在 Hermes 所在的机器上。对于远程主机,请参阅 [OAuth over SSH / 远程主机](/guides/oauth-over-ssh)——与其他基于 OAuth 的提供商相同的方式同样适用于 Portal(`ssh -L` 端口转发)。-### Profile 配置+### Profile 配置 {#profile-setup}-如果你使用 [Hermes profiles(配置文件)](/user-guide/profiles),Portal 的 refresh token 会通过共享令牌存储在各 profile 间共享——但该存储**只刷新已有的登录,不会创建新登录**。各 profile 是相互独立的孤岛([#111724](https://github.com/NousResearch/hermes-agent/issues/111724)),因此从未登录过 Portal 的 profile 没有自己的 Nous 凭证:启动时它会失败并提示你先完成设置(`hermes -p <name> portal`),而不会静默采用其他 profile 的会话。+如果你使用 [Hermes profiles(配置文件)](/user-guide/profiles),Portal 的 refresh token 会通过共享令牌存储在各 profile 间共享——但该存储**只刷新已有的登录,不会创建新登录**。各 profile 是相互独立的孤岛([#111724](https://github.com/NousResearch/hermes-agent/issues/111724)),因此从未登录过 Portal 的 profile 没有自己的 Nous 凭证:启动时它会直接失败,提示 `Profile '<name>' is not connected to any AI provider yet`,而不会静默采用其他 profile 的会话。-**每个 profile 都需登录一次。** 某个 profile 完成 OAuth 流程后,只要任一 profile 重新登录,共享存储便会让它的令牌保持最新——你无需为维持登录而重复交互式 OAuth 流程,但确实需要在每个想连接的 profile 上各运行一次。+**每个 profile 都需登录一次**,命令为 `hermes -p <name> portal`(即 `hermes -p <name> auth add nous --type oauth` 的别名)。如果机器上已有共享的 Portal 会话,该命令会提示导入——确认一次即可,无需再走浏览器流程。首次导入后该 profile 保留自己的状态,只要任一 profile 刷新或重新登录,共享存储便会让它的令牌保持最新。从已登录的 profile 执行 `hermes profile create <name> --clone-all` 也会一并带上 Portal 登录(克隆时只会剥离 Anthropic/Codex 这类一次性授权)。## 日常使用 Portal