The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(plugins): give only the Google client as an example of a plugin OAuth client
Ilya Balobanov440e32ad85c8
diff --git a/hermes_cli/plugin_oauth.py b/hermes_cli/plugin_oauth.pyindex 8974588fe78..abe812f6a01 100644--- a/hermes_cli/plugin_oauth.py+++ b/hermes_cli/plugin_oauth.py@@ -1,6 +1,6 @@"""OAuth clients a plugin declares in ``plugin.yaml``: Hermes signs in, stores and refreshes the grant.-A plugin that calls a third-party API with the user's own OAuth client (Google, Microsoft, Notion ...)+A plugin that calls a third-party API with the user's own OAuth client (a Google Cloud client, for example)declares it under ``oauth:``. ``hermes auth add <plugin>:<id>`` runs the PKCE login of:mod:`hermes_cli.auth_oauth_pkce_plugin` in a terminal, the grant lives in the active profile's``auth.json`` (section ``plugin_oauth``) and Hermes refreshes it. The plugin callsdiff --git a/plugin-catalog/README.md b/plugin-catalog/README.mdindex 4f6acefac8a..e479041c238 100644--- a/plugin-catalog/README.md+++ b/plugin-catalog/README.md@@ -88,8 +88,8 @@ meaningful:profile's key under multiplexing). A subscription sign-in (Codex / ChatGPTtoday) is used only through `credentialed_provider_request` with`requires_auth`, so Hermes attaches the token and the plugin never holds it. An- OAuth client for a third-party API (the user's own Google, Microsoft or Notion- app) is declared under `oauth:` in `plugin.yaml`, signed in with+ OAuth client for a third-party API (the user's own Google Cloud client, for+ example) is declared under `oauth:` in `plugin.yaml`, signed in with`hermes auth add <plugin>:<id>` and used through the same helper; Hermesstores and refreshes that token too. A plugin never reads `.env` files, Hermes's `auth.json`, another tool's login (avendor CLI's token file, a browser profile, a keychain) or any otherdiff --git a/website/docs/developer-guide/plugins/catalog-submission.md b/website/docs/developer-guide/plugins/catalog-submission.mdindex 1717c3d99bf..89261b832de 100644--- a/website/docs/developer-guide/plugins/catalog-submission.md+++ b/website/docs/developer-guide/plugins/catalog-submission.md@@ -146,8 +146,8 @@ the gallery. There is no separate listing to maintain.profile's key under multiplexing). A subscription sign-in (Codex / ChatGPTtoday) is used only through `credentialed_provider_request` with`requires_auth`, so Hermes attaches the token and the plugin never holds it. An- OAuth client for a third-party API (the user's own Google, Microsoft or Notion- app) is declared under `oauth:` in `plugin.yaml`, signed in with+ OAuth client for a third-party API (the user's own Google Cloud client, for+ example) is declared under `oauth:` in `plugin.yaml`, signed in with`hermes auth add <plugin>:<id>` and used through the same helper; Hermesstores and refreshes that token too. A plugin never reads `.env` files, Hermes's `auth.json`, another tool's login (avendor CLI's token file, a browser profile, a keychain) or any otherdiff --git a/website/docs/developer-guide/plugins/index.md b/website/docs/developer-guide/plugins/index.mdindex 4cff5c141c8..a1c5f7a135c 100644--- a/website/docs/developer-guide/plugins/index.md+++ b/website/docs/developer-guide/plugins/index.md@@ -469,7 +469,7 @@ returns an `AccountUsageSnapshot` (plan, session/weekly windows with### Use your own OAuth client (Google and other APIs)A plugin that calls a third-party API with the user's own OAuth client (a-Google Cloud "Desktop app" client, a Microsoft or Notion app) does not run the+Google Cloud "Desktop app" client, for example) does not run theconsent flow, store the refresh token or refresh it. Declare the client andHermes owns the grant: