Files
hermes-agent/hermes_cli/data/plugin_api.json
Teknium 1ca3abd431 feat(credential-pool): agent-CLI providers can pool several logins per profile
A model-provider plugin that runs an agent CLI (auth_type external_process,
e.g. the Claude Subscription DirectSDK plugin running Claude Code) keeps its
login outside Hermes, so a profile could hold only one. Pool rows for such a
provider half-worked: the main runtime came from the generic pool rung, which
dropped the launch command and args (background review reads rt["command"]
and raised KeyError; a generic ACP client launched with no command), the
auxiliary client (titles, compression, vision) was handed the placeholder key
and so ran on the CLI's default login - another account, or none - and a row
the pool had taken out of rotation for good (DEAD) printed as healthy in
`hermes auth list`.

- resolve_external_process_provider_credentials() hands the row the pool is
  on as api_key (new public agent.credential_pool_plugin.
  external_process_pool_key), so the main runtime, its rotation rebuild and
  the auxiliary client all spawn the CLI with the same login; the
  external-process rung carries the pool for usage-limit rotation and keeps
  command/args. An empty pool keeps the placeholder: nothing changes.
- The generic pool rung skips external-process providers (their rung owns it).
- `hermes auth list` shows a dead row as "signed out (left rotation; sign in
  again)".
- Docs: model-provider plugin guide section for pooled agent-CLI logins,
  user-guide credential-pools note, public-api table.

For NousResearch/hermes-official-plugins#441, #499 and #37.
2026-11-29 14:06:50 -08:00

324 lines
13 KiB
JSON

{
"_comment": [
"The modules and names a plugin may import from Hermes core. `hermes plugins validate` warns on any other",
"Hermes import (hermes_cli/plugin_validate_private_imports.py), and scripts/gen_plugin_api_docs.py renders",
"website/docs/developer-guide/plugins/public-api.md from this file.",
"A `module` entry allows the module and its non-underscore names; `module:Name` allows that one name.",
"Harvested from the Hermes-module imports in the developer-guide and plugin docs, what PluginContext hands",
"out, and the names those pages tell authors to call, raise, return or subclass. Re-harvest when they change."
],
"groups": [
{
"source": "developer-guide / plugins docs",
"entries": [
"agent.account_usage",
"agent.acp_client",
"agent.browser_page_backend:BrowserPageBackend",
"agent.browser_provider",
"agent.context_engine",
"agent.credential_pool",
"agent.credential_pool_plugin:external_process_pool_key",
"agent.delegation_backends",
"agent.delegation_provider",
"hermes_cli.auth_model_picker:prompt_model_selection",
"hermes_cli.auth:resolve_external_process_provider_credentials",
"hermes_cli.model_setup",
"agent.image_gen_provider",
"agent.memory_manager",
"agent.memory_provider",
"agent.secret_scope",
"agent.secret_sources.base",
"agent.subagent_lifecycle",
"agent.terminal_env_provider",
"agent.transports",
"agent.transports.chat_completions",
"agent.vault_backends.base:LoginBackend",
"agent.vault_store:VaultItemMeta",
"agent.video_gen_provider",
"agent.web_search_provider",
"cli",
"gateway.config",
"gateway.platform_registry",
"gateway.platforms._shared",
"gateway.platforms.base",
"gateway.platforms.event",
"gateway.platforms.helpers",
"gateway.status",
"hermes_cli.auth_oauth_pkce_plugin",
"hermes_cli.config",
"hermes_cli.plugin_events",
"hermes_cli.plugin_provider_requests",
"hermes_constants",
"hermes_platform",
"hermes_state:AsyncSessionDB",
"hermes_state:DEFAULT_DB_PATH",
"hermes_state:DeletedWalGenerationError",
"hermes_state:SessionCompressionInProgressError",
"hermes_state:SessionDB",
"hermes_state:SessionExportTooLargeError",
"hermes_state:SessionResumeTooLargeError",
"hermes_state:StateDbCorruptError",
"hermes_state:StateDbReplacedError",
"hermes_state:WriterMutexTimeout",
"hermes_state:apply_database_pragmas",
"hermes_state:apply_wal_with_fallback",
"hermes_state:classify_persistence_error",
"hermes_state:divert_session_transcript_jsonl",
"hermes_state:format_session_db_unavailable",
"hermes_state:get_hermes_home",
"hermes_state:get_last_init_error",
"hermes_state:holder_pid_checkable",
"hermes_state:is_malformed_db_error",
"hermes_state:is_sqlite_lock_error",
"hermes_state:maintain_after_commit",
"hermes_state:make_user_dir",
"hermes_state:mkdir_under_hermes_home",
"hermes_state:note_read_pool_exhausted",
"hermes_state:preflight_db_writability",
"hermes_state:read_only_db_uri",
"hermes_state:resolved_max_export_messages",
"hermes_state:resolved_max_resume_messages",
"hermes_state:storage_corrupt_reason",
"hermes_state:storage_state",
"hermes_state:write_site",
"hermes_state:writer_mutex_until",
"hermes_state_registry:acquire",
"hermes_state_registry:release",
"hermes_state_registry:release_or_close",
"hermes_time:deadline_clock",
"plugins.plugin_storage",
"plugins.plugin_utils",
"pm",
"providers",
"providers.base",
"tools.browser_supervisor",
"tools.browser_supervisor_capture",
"tools.computer_use.backend",
"tools.registry"
]
},
{
"source": "developer-guide/plugins/index.md § `hermes_state` deprecated: the storage interface replacements",
"entries": [
"persistence",
"persistence.conversation.messages",
"persistence.conversation.search",
"persistence.conversation.sessions",
"persistence.housekeeping.maintenance",
"persistence.housekeeping.state_meta",
"persistence_assembly",
"sqlite_support:apply_wal_with_fallback",
"sqlite_support:apply_database_pragmas",
"sqlite_support:preflight_db_writability",
"sqlite_support:read_only_db_uri",
"storage_errors:classify_persistence_error",
"storage_errors:is_sqlite_lock_error",
"storage_errors:is_malformed_db_error",
"session_rescue:divert_session_transcript_jsonl",
"storage_user_copy:format_session_db_unavailable",
"storage_user_copy:get_last_init_error",
"storage_limits:resolved_max_export_messages",
"storage_limits:resolved_max_resume_messages",
"process_identity:holder_pid_checkable",
"hermes_dir_acl:make_user_dir"
]
},
{
"source": "PluginContext (hermes_cli/plugins_context.py)",
"entries": [
"agent.context_references",
"agent.plugin_llm",
"agent.transcription_provider",
"agent.tts_provider",
"cron.execution_identity",
"hermes_cli.dashboard_auth",
"hermes_cli.platform_actions",
"hermes_cli.plugins:PluginContext",
"hermes_cli.plugins_ledger:PluginRegistration",
"hermes_cli.plugins_state:PluginState"
]
},
{
"source": "prose in memory-provider / model-provider / terminal-environment plugin pages (tools.environments:BaseEnvironment is the package's `__all__` re-export)",
"entries": [
"agent.runtime_cwd:resolve_agent_cwd",
"agent.usage_pricing:CostResult",
"hermes_cli.auth_constants:AuthError",
"tools.environments.base:BaseEnvironment",
"tools.environments:BaseEnvironment",
"utils:atomic_json_write",
"utils:read_json_or_empty"
]
},
{
"source": "adding-platform-adapters.md § Public helpers for platform plugins",
"entries": [
"gateway.platforms.access_policy_mixin:OwnAccessPolicyMixin",
"tools.approval:resolve_gateway_approval",
"tools.approval:resolve_gateway_approval_card",
"gateway.approval_actor:approval_refusal",
"gateway.approval_actor:approval_is_list_only",
"gateway.approval_actor:refusal_text",
"gateway.approval_actor:slash_confirm_refusal",
"gateway.approval_actor:clarify_refusal",
"gateway.approval_actor:picker_refusal",
"gateway.approval_actor:update_prompt_refusal",
"tools.clarify_gateway:get_pending",
"tools.clarify_gateway:resolve_gateway_clarify",
"tools.clarify_gateway:mark_awaiting_text",
"tools.clarify_gateway:SKIPPED",
"tools.url_safety:is_safe_url",
"tools.url_safety:create_ssrf_safe_async_client",
"tools.url_safety:create_ssrf_safe_client",
"gateway.platforms._http_client_limits:platform_httpx_limits",
"hermes_cli.gateway_setup_wizard:print_setup_header",
"hermes_cli.gateway_setup_wizard:confirm_reconfigure",
"hermes_cli.gateway_setup_wizard:offer_home_channel",
"hermes_cli.gateway_setup_wizard:save_env_values",
"hermes_cli.gateway_setup_wizard:prompt_csv",
"hermes_cli.setup:prompt",
"hermes_cli.setup:prompt_choice",
"hermes_cli.setup:prompt_yes_no",
"hermes_cli.cli_output",
"gateway.response_filters:is_autonomous_silence_response",
"gateway.response_filters:is_intentional_silence_response",
"gateway.response_filters:strip_trailing_silence_marker"
]
},
{
"source": "adding-platform-adapters.md § Conversation model settings and picker providers (BasePlatformAdapter)",
"entries": [
"gateway.platforms.session_model:SessionModelPickerProvider",
"gateway.platforms.session_model:SessionModelSettings"
]
},
{
"source": "plugins/index.md § Read the skill catalog",
"entries": [
"tools.skills_tool:find_all_skills",
"tools.skills_tool:sort_skills",
"tools.skills_tool:skill_search_dirs",
"tools.skills_tool:locate_skill",
"tools.skills_tool:skill_lookup_path_error",
"tools.skills_sync:dir_hash",
"tools.skill_usage:read_skill_name"
]
},
{
"source": "plugins/index.md § platform plugins: read session identity through the task-local context",
"entries": [
"gateway.session_context:get_session_env"
]
},
{
"source": "plugin-llm-access.md § From the plugin's frontend: a plugin RPC method (`force=True` where secrets must never leave)",
"entries": [
"agent.redact:redact_sensitive_text"
]
},
{
"source": "user-guide/features/plugins.md § Plugin code inside the gateway: which client created the session",
"entries": [
"hermes_cli.plugin_session:session_client"
]
},
{
"source": "user-guide/features/plugins.md § Plugin code inside the gateway: which client sent the turn and who is attached",
"entries": [
"hermes_cli.plugin_session:turn_client",
"hermes_cli.plugin_session:turn_origin",
"hermes_cli.plugin_session:session_viewers"
]
},
{
"source": "user-guide/features/plugins.md § Plugin code inside the gateway: how the session was created, delegated children and forks",
"entries": [
"hermes_cli.plugin_session:session_source",
"hermes_cli.plugin_session:in_delegated_child",
"hermes_cli.plugin_session:fork_origin"
]
},
{
"source": "plugins/index.md § Check file paths and read YAML with Hermes's own helpers",
"entries": [
"agent.file_safety:get_read_block_error",
"agent.file_safety:raise_if_read_blocked",
"agent.file_safety:is_write_denied",
"agent.file_safety:get_write_denied_error",
"hermes_yaml:safe_load",
"hermes_yaml:safe_dump"
]
},
{
"source": "plugins/index.md § Send a credentialed HTTP request without leaking it on redirect",
"entries": [
"hermes_cli.urllib_security:open_credentialed_url"
]
},
{
"source": "plugins/index.md § Read a Retry-After header the way Hermes does",
"entries": [
"agent.retry_utils:parse_retry_after_seconds"
]
},
{
"source": "plugins/index.md § Price a main-endpoint call with the key Hermes uses",
"entries": [
"agent.aux_accounting:main_endpoint_pricing_key"
]
},
{
"source": "plugins/index.md § Send the Hermes User-Agent header",
"entries": [
"hermes_cli.version_info:hermes_user_agent"
]
},
{
"source": "user-guide/features/plugins.md § A plugin with its own chat client",
"entries": [
"hermes_cli.chat_launch:hermes_command",
"hermes_cli.chat_launch:print_exit_summary",
"hermes_cli.gateway_chat:shell_client_env",
"hermes_cli.session_worktree:create",
"hermes_cli.session_worktree:restore",
"hermes_cli.session_worktree:finish"
]
},
{
"source": "user-guide/multi-profile-gateways.md § Profiles a plugin runs elsewhere",
"entries": [
"hermes_cli.profiles_run_elsewhere:mark_profile_run_elsewhere",
"hermes_cli.profiles_run_elsewhere:clear_profile_run_elsewhere",
"hermes_cli.profiles_run_elsewhere:run_elsewhere"
]
},
{
"source": "plugins/index.md § Schedule a job once and read where cron delivers it",
"entries": [
"cron.plugin_api"
]
},
{
"source": "model-provider-plugin.md § Public helpers for native Gemini reasoning",
"entries": [
"agent.bounded_response:read_streaming_error_body",
"agent.gemini_model_family",
"agent.gemini_urls",
"agent.output_budget_timeout",
"agent.process_bootstrap:build_keepalive_http_client",
"agent.reasoning_effort:bare_gemini_model_id",
"agent.reasoning_effort:clamp_effort",
"agent.reasoning_effort:gemini_thinking_config",
"agent.reasoning_effort:gemini_top_thinking_level",
"agent.ssl_verify:resolve_httpx_verify",
"hermes_cli.auth:default_httpx_verify",
"hermes_cli.auth:get_provider_auth_state",
"hermes_cli.auth:nous_portal_base_url",
"hermes_cli.auth:resolve_nous_access_token",
"hermes_cli.config_providers:get_custom_provider_tls_settings",
"tools.schema_sanitizer:normalize_type_array"
]
}
]
}