The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(browser): browser_exec is the only browser path; Camofox is a plugin
Teknium0b69853adf64
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 4f0cc8b0ca2..9ac4b7744df 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -286,7 +286,7 @@ hermes-agent/│ ├── delegate_tool.py # Subagent spawning and parallel task execution│ ├── code_execution_tool.py # Sandboxed Python with RPC tool access (env allowlists in code_execution_env.py)│ ├── mcp_tool.py # MCP client (facade + mcp_tool_*.py siblings: config, discovery, transport, ...)-│ ├── browser_tool.py # Browser automation (facade + browser_tool_*.py siblings)+│ ├── browser_use_cli.py # browser_exec (Python over CDP); sessions in browser_session*.py, launcher in browser_launcher.py│ ├── session_search_tool.py # Search past conversations with FTS5 + anchored windows│ ├── cronjob_tools.py # Scheduled task management│ ├── skill_tools.py # Skill search, load, manage@@ -619,7 +619,7 @@ Every new or modernized skill — bundled, optional, or contributed — must meeGood: `Search arXiv papers by keyword, author, category, or ID.`Bad: `A powerful and comprehensive skill that allows the agent to search arXiv for relevant academic papers using various criteria including keywords, authors, and categories.`-2. **Tools referenced in SKILL.md prose must be native Hermes tools or MCP servers the skill explicitly expects.** When the skill needs a capability, point at the proper tool by name in backticks: `` `terminal` ``, `` `web_extract` ``, `` `web_search` ``, `` `read_file` ``, `` `write_file` ``, `` `patch` ``, `` `search_files` ``, `` `vision_analyze` ``, `` `browser_navigate` ``, `` `delegate_task` ``, `` `image_generate` ``, `` `text_to_speech` ``, `` `cronjob` ``, `` `memory` ``, `` `skill_view` ``, `` `todo` ``, `` `execute_code` ``.+2. **Tools referenced in SKILL.md prose must be native Hermes tools or MCP servers the skill explicitly expects.** When the skill needs a capability, point at the proper tool by name in backticks: `` `terminal` ``, `` `web_extract` ``, `` `web_search` ``, `` `read_file` ``, `` `write_file` ``, `` `patch` ``, `` `search_files` ``, `` `vision_analyze` ``, `` `browser_exec` ``, `` `delegate_task` ``, `` `image_generate` ``, `` `text_to_speech` ``, `` `cronjob` ``, `` `memory` ``, `` `skill_view` ``, `` `todo` ``, `` `execute_code` ``.Do NOT name shell utilities the agent already has wrapped:@@ -834,10 +834,10 @@ that touches the OS, assume *any* platform can hit your code path.implementation.10. **`subprocess.Popen` with `.cmd` or `.bat` shims needs `shutil.which`- to resolve.** Passing `"agent-browser"` to `Popen` on Windows finds- the extensionless POSIX shebang shim in `node_modules/.bin/`, which+ to resolve.** Passing `"npm"` to `Popen` on Windows finds the+ extensionless POSIX shebang shim next to `npm.cmd`, which`CreateProcessW` can't execute — you'll get `WinError 193 "not a valid- Win32 application"`. Use `shutil.which("agent-browser", path=local_bin)`+ Win32 application"`. Use `shutil.which("npm", path=node_bin)`which honors PATHEXT and picks the `.CMD` variant on Windows.11. **Don't use shell shebangs as a way to run Python.** `#!/usr/bin/envdiff --git a/skills/AGENTS.md b/skills/AGENTS.mdindex 7e71a19a402..0664eeb3317 100644--- a/skills/AGENTS.md+++ b/skills/AGENTS.md@@ -31,7 +31,7 @@ Every new or modernised skill — bundled, optional, or contributed — meets alCheck: `len(re.search(r'^description: (.*)$', text, re.M).group(1)) <= 60`.2. **Prose references native Hermes tools or the MCP servers the skill expects, in backticks**(`terminal`, `web_extract`, `read_file`, `patch`, `search_files`, `vision_analyze`,- `browser_navigate`, `delegate_task`). Never name shell utilities the agent has wrapped: `grep` →+ `browser_exec`, `delegate_task`). Never name shell utilities the agent has wrapped: `grep` →`search_files`, `cat`/`head`/`tail` → `read_file`, `sed`/`awk` → `patch`, `find`/`ls` →`search_files target='files'`. MCP dependencies are named with setup in `## Prerequisites`.Third-party CLIs and pipelines are fine inside script files, not as the headline surface.diff --git a/website/docs/developer-guide/browser-provider-plugin.md b/website/docs/developer-guide/browser-provider-plugin.mdindex 465e43e61f0..72a1a342ca0 100644--- a/website/docs/developer-guide/browser-provider-plugin.md+++ b/website/docs/developer-guide/browser-provider-plugin.md@@ -6,7 +6,7 @@ description: "How to build a cloud browser backend plugin for Hermes Agent"# Building a Browser Provider Plugin-Browser provider plugins register a **cloud browser backend** that services cloud-mode `browser_*` tool calls (navigate, click, screenshot, …). Built-in providers — Browserbase, Browser Use, and Firecrawl — all ship as plugins under `plugins/browser/<name>/`. You can add a new one, or override a bundled one, by dropping a directory next to them.+Browser provider plugins register a **cloud browser backend**: when `browser.cloud_provider` selects it, `browser_exec` (and the CDP tools `browser_cdp`, `browser_dialog`, `browser_vault`) drive a remote browser session it creates instead of a local Chromium. Built-in providers — Browserbase, Browser Use, and Firecrawl — all ship as plugins under `plugins/browser/<name>/`. You can add a new one, or override a bundled one, by dropping a directory next to them.:::tipBrowser backends are one of several **backend plugins** Hermes supports. The others (with their own ABCs) are [Web Search Provider Plugins](./web-search-provider-plugin.md) (which this ABC deliberately mirrors), [Image Generation](./image-gen-provider-plugin.md), [Video Generation](./video-gen-provider-plugin.md), [Memory Providers](./memory-provider-plugin.md), [Context Engines](./context-engine-plugin.md), [Secret Sources](./secret-source-plugin.md), and [Model Providers](./model-provider-plugin.md). General tool/hook/CLI plugins live in [Build a Hermes Plugin](./plugins/index.md).@@ -14,9 +14,9 @@ Browser backends are one of several **backend plugins** Hermes supports. The oth## How it fits together-A browser provider does **not** implement browsing. It implements **session lifecycle**: create a remote browser session, hand back a CDP websocket URL, and tear the session down. Hermes' own browser stack (`agent-browser` + `tools/browser_tool.py`) connects to whatever CDP URL you return and drives the page from there — every provider gets the full `browser_*` toolset for free.+A browser provider does **not** implement browsing. It implements **session lifecycle**: create a remote browser session, hand back a CDP websocket URL, and tear the session down. Hermes hands the CDP URL you return to `browser_exec`, which drives the page from there — every provider gets the full browser toolset (`browser_exec`, `browser_cdp`, `browser_dialog`, `browser_vault`) for free.-The active provider is selected by `browser.cloud_provider` in `config.yaml`; the dispatcher in `tools/browser_tool.py` is a pure registry lookup with no per-provider conditionals.+The active provider is selected by `browser.cloud_provider` in `config.yaml`; the resolver in `tools/browser_session_cloud.py` is a pure registry lookup with no per-provider conditionals.## Discovery@@ -86,7 +86,7 @@ class MyBackendProvider(BrowserProvider):"""Create a remote browser session; return the session-metadata contract."""session = my_api.create_browser(...)return {- "session_name": f"my-backend-{task_id}", # unique agent-browser session name+ "session_name": f"my-backend-{task_id}", # unique session name"bb_session_id": session.id, # provider session ID (for cleanup)"cdp_url": session.cdp_ws_url, # CDP websocket URL"features": {"stealth": True}, # feature flags you enabled@@ -106,14 +106,14 @@ class MyBackendProvider(BrowserProvider):`create_session()` must return at least `session_name`, `bb_session_id`, `cdp_url`, and `features`. Two quirks worth knowing:-- **`bb_session_id` is a legacy key name** kept verbatim for backward compatibility with `tools/browser_tool.py` — it holds *your* provider's session ID regardless of vendor. Don't rename it.+- **`bb_session_id` is a legacy key name** kept verbatim for backward compatibility with the browser session code — it holds *your* provider's session ID regardless of vendor. Don't rename it.- `create_session()` **may raise** — `ValueError` for missing credentials, `RuntimeError` for network/API failures. The dispatcher surfaces these to the user. This differs from `close_session`/`emergency_cleanup`, which must never raise.An optional `external_call_id` key supports managed-gateway billing.### `get_setup_schema()` — the `hermes tools` picker row-Override this to appear as a first-class option in the Browser Automation picker with API-key prompts and an install hook:+Override this to appear as a first-class option in the Browser Automation picker with API-key prompts (an optional `post_setup` key names an install hook to run after selection):```pythondef get_setup_schema(self) -> dict:@@ -126,7 +126,6 @@ def get_setup_schema(self) -> dict:"prompt": "My Backend API key","url": "https://mybackend.example"},],- "post_setup": "agent_browser", # ensures local Chromium is installed (agent-browser itself resolves via npx)}```diff --git a/website/docs/developer-guide/browser-supervisor.md b/website/docs/developer-guide/browser-supervisor.mdindex 8dfcee65f7f..198ebe66cc6 100644--- a/website/docs/developer-guide/browser-supervisor.md+++ b/website/docs/developer-guide/browser-supervisor.md@@ -12,22 +12,20 @@ The CDP supervisor closes two long-standing gaps in Hermes' browser tooling:page's JS thread. Without supervision, the agent has no way to know adialog is open — subsequent tool calls hang or throw opaque errors.2. **Cross-origin iframes (OOPIFs)** are invisible to top-level- `Runtime.evaluate`. The agent can see iframe nodes in the DOM snapshot but+ `Runtime.evaluate`. The agent can see iframe nodes in the DOM butcan't click, type, or eval inside them without a CDP session attached tothe child target.The supervisor solves both by holding a persistent WebSocket to the backend's-CDP endpoint per browser task, surfacing pending dialogs and frame structure-into `browser_snapshot`, and exposing a `browser_dialog` tool for explicit-responses.+CDP endpoint per browser task, tracking pending dialogs and frame structure+in its snapshot, and exposing a `browser_dialog` tool for explicit responses.## Backend support| Backend | Dialog detect | Dialog respond | Frame tree | OOPIF `Runtime.evaluate` via `browser_cdp(frame_id=...)` ||---|---|---|---|---|-| Local Chrome (`--remote-debugging-port`) / `/browser connect` | ✓ | ✓ full workflow | ✓ | ✓ |+| Local Chromium (launched by Hermes for `browser_exec`) / `/browser connect` | ✓ | ✓ full workflow | ✓ | ✓ || Browserbase | ✓ (via bridge) | ✓ full workflow (via bridge) | ✓ | ✓ |-| Camofox | ✗ no CDP (REST-only) | ✗ | partial via DOM snapshot | ✗ |**Browserbase quirk.** Browserbase's CDP proxy uses Playwright internally andauto-dismisses native dialogs within ~10ms, so `Page.handleJavaScriptDialog`@@ -43,7 +41,8 @@ From the page's perspective, `prompt()` still returns the agent-suppliedstring. From the agent's perspective, it's the same `browser_dialog(action=...)`API either way.-Camofox is unsupported — no CDP surface, REST-only.+The Camofox catalog plugin (`hermes plugins install camofox`) drives a REST-only+browser with no CDP surface, so the supervisor does not apply to it.## Architecture@@ -68,9 +67,9 @@ frozen snapshot without awaiting.### Lifecycle-- **Start:** `SupervisorRegistry.get_or_start(task_id, cdp_url)` — called by- `browser_navigate`, Browserbase session create, `/browser connect`.- Idempotent.+- **Start:** `SupervisorRegistry.get_or_start(task_id, cdp_url)` — called when+ `browser_exec` attaches to a session (local, cloud provider or CDP override)+ and on `/browser connect`. Idempotent.- **Stop:** session teardown or `/browser disconnect`. Cancels the asynciotask, closes the WebSocket, discards state.- **Dropped endpoint:** after a successful attach the supervisor reconnects with@@ -86,12 +85,12 @@ frozen snapshot without awaiting.Configurable via `config.yaml` under `browser.dialog_policy`:-- **`must_respond`** (default) — capture, surface in `browser_snapshot`, wait+- **`must_respond`** (default) — capture, surface in `pending_dialogs`, waitfor explicit `browser_dialog(action=...)` call. After a 300s safety timeoutwith no response, auto-dismiss and log. Prevents a buggy agent from stallingforever.-- `auto_dismiss` — record and dismiss immediately; agent sees it after the- fact via `browser_state` inside `browser_snapshot`.+- `auto_dismiss` — record and dismiss immediately; it shows up after the+ fact in `recent_dialogs`.- `auto_accept` — record and accept (useful for `beforeunload` where theworkflow wants to navigate away cleanly).@@ -157,13 +156,12 @@ browser_dialog(action, prompt_text=None, dialog_id=None)- `prompt_text=...` → text to supply to a `prompt()` dialog- `dialog_id=...` → disambiguate when multiple dialogs are queued (rare)-Tool is response-only. The agent reads pending dialogs from `browser_snapshot`-output before calling.+Tool is response-only. With a single pending dialog, `dialog_id` can be+omitted.-### `browser_snapshot` extension+### Supervisor snapshot-Adds three optional fields to the existing snapshot output when a supervisor-is attached:+`CDPSupervisor.snapshot()` carries three fields while a supervisor is attached:```json{@@ -200,22 +198,19 @@ is attached:pages. `truncated: true` surfaces when limits were hit; agents needingthe full tree can use `browser_cdp` with `Page.getFrameTree`.-No new tool schema surface for any of these — the agent reads the snapshot it-already requests.-### Availability gating-Both surfaces gate on `_browser_cdp_check` (supervisor can only run when a CDP-endpoint is reachable). On Camofox / no-backend sessions, the dialog tool is-hidden and the snapshot omits the new fields — no schema bloat.+`browser_dialog` and `browser_cdp` gate on CDP reachability (the supervisor+can only run when a CDP endpoint is reachable). Without one, the dialog tool is+hidden — no schema bloat.## Cross-origin iframe interaction`browser_cdp(frame_id=...)` routes CDP calls (notably `Runtime.evaluate`)through the supervisor's already-connected WebSocket using the OOPIF's child-`sessionId`. Agents pick frame_ids out of-`browser_snapshot.frame_tree.children[]` where `is_oopif=true` and pass them-to `browser_cdp`. For same-origin iframes (no dedicated CDP session), the+`sessionId`. Agents pick frame_ids out of the supervisor's+`frame_tree.children[]` where `is_oopif=true` (or from `Page.getFrameTree` via+`browser_cdp`) and pass them to `browser_cdp`. For same-origin iframes (no dedicated CDP session), theagent uses `contentWindow`/`contentDocument` from a top-level`Runtime.evaluate` instead — the supervisor surfaces an error pointing at thatfallback when `frame_id` belongs to a non-OOPIF.@@ -229,13 +224,13 @@ expiry, while the supervisor's long-lived connection keeps a valid session.- `tools/browser_supervisor.py` — `CDPSupervisor`, `SupervisorRegistry`, `PendingDialog`, `FrameInfo`- `tools/browser_supervisor_capture.py` — `CapturedCDP` / `CapturedCDPInvalid`, the trusted-plugin CDP seam behind `SUPERVISOR_REGISTRY.capture`- `tools/browser_dialog_tool.py` — `browser_dialog` tool handler-- `tools/browser_tool.py` — `browser_navigate` start-hook, `browser_snapshot` merge, `/browser connect` reattach, `_cleanup_browser_session` teardown+- `tools/browser_session_cdp.py` — `ensure_cdp_supervisor` / `stop_cdp_supervisor`, `/browser connect` reattach, dialog-policy config+- `tools/browser_session_lifecycle.py` — per-session teardown (supervisor stopped first)- `toolsets.py` — registers `browser_dialog` in `browser`, `hermes-acp`, `hermes-api-server`, and core toolsets (gated on CDP reachability)- `hermes_cli/config.py` — `browser.dialog_policy` and `browser.dialog_timeout_s` defaults## Non-goals-- Detection/interaction for Camofox (upstream gap; tracked separately)- Streaming dialog/frame events live to the user (would require gateway hooks)- Persisting dialog history across sessions (in-memory only)- Per-iframe dialog policies (agent can express this via `dialog_id`)diff --git a/website/docs/developer-guide/contributing.md b/website/docs/developer-guide/contributing.mdindex f0253fe0a0f..f8767accc25 100644--- a/website/docs/developer-guide/contributing.md+++ b/website/docs/developer-guide/contributing.md@@ -135,7 +135,7 @@ Choose the highest (least-footprint) rung that correctly solves the problem:core-schema footprint, reusable by any MCP host, reached via the built-in MCP client.6. **New core tool** — only when fundamental, broadly useful to nearly every user, andunreachable via terminal + file or an MCP server (terminal, read_file, web_search,- browser_navigate).+ browser_exec).## Common contribution pathsdiff --git a/website/docs/developer-guide/creating-skills.md b/website/docs/developer-guide/creating-skills.mdindex 2b8edca03db..8e2f5506302 100644--- a/website/docs/developer-guide/creating-skills.md+++ b/website/docs/developer-guide/creating-skills.md@@ -60,7 +60,7 @@ metadata:requires_toolsets: [web] # Optional — only show when these toolsets are activerequires_tools: [web_search] # Optional — only show when these tools are availablefallback_for_toolsets: [browser] # Optional — hide when these toolsets are active- fallback_for_tools: [browser_navigate] # Optional — hide when these tools exist+ fallback_for_tools: [browser_exec] # Optional — hide when these tools existconfig: # Optional — config.yaml settings the skill needs- key: my.settingdescription: "What this setting controls"@@ -120,7 +120,7 @@ metadata:requires_toolsets: [web] # Hide if the web toolset is NOT activerequires_tools: [web_search] # Hide if web_search tool is NOT availablefallback_for_toolsets: [browser] # Hide if the browser toolset IS active- fallback_for_tools: [browser_navigate] # Hide if browser_navigate IS available+ fallback_for_tools: [browser_exec] # Hide if browser_exec IS available```| Field | Behavior |diff --git a/website/docs/developer-guide/plugins/index.md b/website/docs/developer-guide/plugins/index.mdindex 16170694ef2..35faa9e1f11 100644--- a/website/docs/developer-guide/plugins/index.md+++ b/website/docs/developer-guide/plugins/index.md@@ -1434,17 +1434,16 @@ ctx.register_tool(### Overriding a built-in tool-To replace a built-in tool with your own implementation (e.g. swap the-default browser tool for a headed-Chrome CDP backend, or replace+To replace a built-in tool with your own implementation (e.g. replace`web_search` with a custom corporate index), pass `override=True`:```pythondef register(ctx):ctx.register_tool(- name="browser_navigate", # same name as the built-in- toolset="plugin_my_browser", # your own toolset namespace+ name="web_search", # same name as the built-in+ toolset="plugin_my_search", # your own toolset namespaceschema={...},- handler=my_custom_navigate,+ handler=my_corporate_search,override=True, # explicit opt-in)```diff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.mdindex 147cc683c12..38c859ae195 100644--- a/website/docs/developer-guide/relay-shared-metrics.md+++ b/website/docs/developer-guide/relay-shared-metrics.md@@ -477,7 +477,7 @@ itself ships.| `hermes.memory.op.count` | op (`add`/`replace`/`remove`/`read`/`search`/`other`), provider (`builtin`, a bundled memory plugin, else `plugin`), origin (`foreground`/`background_review`), outcome (`success`/`failed`/`rejected`), failure class | Is the learning loop writing memory, who asks for it (the user's turn or the background review), and how often writes are refused or fail, and why. Since package schema v4 `failure_class` names the reason from a closed list mapped from each refusal/failure return of the built-in store: `no_match` (old_text matched no entry), `ambiguous` (it matched several), `over_budget` (the write would pass the char limit), `would_empty` (a batch would remove the last entry), `drift` (the file holds text the store cannot round-trip), `read_failed` (the file exists but cannot be read), `retry_cap` (the per-turn retry budget is spent), `scan_blocked` (the content matched a threat pattern), `missing_content`, `missing_old_text`, `invalid_args`, `stale_entry` (a staged write's entry changed), `disabled` (that target is off in config), `staged` (held for the user's approval), `gate_refused` (the write-approval gate blocked it); `provider_error` / `exception` for a plugin provider's tool that returned an error or raised; `none` on success; `other`/`unknown` otherwise. A batch applies all or none, so every op row of a refused batch carries the class of the op that stopped it. Never the memory text, the old_text or the error message. || `hermes.curator.run.count` | trigger (`scheduled`/`manual`), outcome (`success`/`failed`/`skipped`), archived/merged/patched/created buckets | Does the skill curator run, and does it actually consolidate anything. Dry runs report `skipped`; a scheduled check that finds another process already running the pass records nothing. Never skill names. || `hermes.delegation.run.count` | subagent-count bucket, depth (`1`–`3`, `gte_4`), mode (`foreground`/`background`), outcome (`success`/`partial`/`failed`/`cancelled`) | How wide and deep delegate_task fan-outs go and how often every child finishes. One row per call, however many completion units it splits into. |-| `hermes.execution_backend.count` | kind (`terminal`/`browser`/`code`), backend, outcome, error class | Which sandboxes carry real work and how reliable each is. Terminal backends are the `terminal.backend` values (else `other`); browser backends are `local`, `lightpanda`, `cdp`, `camofox`, `extension` or a bundled cloud provider (else `other`); execute_code is `local` or `remote`. A command's own nonzero exit is still a backend success, but a foreground command that hits its timeout is `failed`/`timeout`; terminal and execute_code calls a guard refuses before they reach the backend, Hermes' own listings for TUI/Desktop path completion, and calls made by the background review and curator forks are not counted. |+| `hermes.execution_backend.count` | kind (`terminal`/`browser`/`code`), backend, outcome, error class | Which sandboxes carry real work and how reliable each is. Terminal backends are the `terminal.backend` values (else `other`); browser backends are `local`, `lightpanda`, `cdp`, `extension` or a bundled cloud provider (else `other`; `camofox` stays in the schema as a legacy label); execute_code is `local` or `remote`. A command's own nonzero exit is still a backend success, but a foreground command that hits its timeout is `failed`/`timeout`; terminal and execute_code calls a guard refuses before they reach the backend, Hermes' own listings for TUI/Desktop path completion, and calls made by the background review and curator forks are not counted. || `hermes.platform.health` | platform, event (`connect_ok`/`connect_failed`/`reconnect`/`disconnect`), error class (`auth`/`network`/`rate_limited`/`config`/`other`) | Which messaging platforms fail to connect or drop, and why. `connect_failed` counts a failed-connect episode once per profile, platform and UTC day (the reconnect watcher's retries are not new rows; the next success ends the episode, and a platform still failing the next day counts again), with the error class of the episode's first failure. Classified from exception types, HTTP statuses and Hermes's own fatal codes, never error text. || `hermes.platform.delivery` | platform, outcome (`sent`/`failed`), failure class (`rate_limited`/`too_long`/`auth`/`network`/`forbidden`/`other`) | How often replies fail to reach the user per platform (one count per logical reply, retries included). || `hermes.gateway.reply_latency` | platform, first-response bucket (`lt_2s` … `gte_60s`) | Time from an accepted inbound message to the first visible reply text (stream first chunk or final message). |@@ -684,7 +684,14 @@ field sets of `hermes.model_route.count`, `hermes.tool_call.count` and the taskcounters, so counters recorded before an upgrade drain safely.Vocabularies derived from in-repo registries (tool names, platforms, memoryproviders, error classes) are bounded by pattern in the JSON schema; the-authoritative allowlist is `shared_metrics_contract.py`.+authoritative allowlist is `shared_metrics_contract.py`. Values Hermes no longer+emits stay accepted as legacy values so counters recorded by an older version+still drain: the removed built-in browser tools (`browser_navigate`,+`browser_snapshot`, `browser_click`, `browser_type`, `browser_scroll`,+`browser_back`, `browser_press`, `browser_console`, `browser_get_images`,+`browser_vision`) remain valid tool names, and `camofox` remains a valid browser+backend label. Camofox now ships as the `camofox` catalog plugin, so its tools+report `plugin`.Each package contains an `install_id` generated as a random UUID. Despite theschema field name, its current scope is one `HERMES_HOME`, so it is morediff --git a/website/docs/developer-guide/tools-runtime.md b/website/docs/developer-guide/tools-runtime.mdindex 606fd221c98..54da8906603 100644--- a/website/docs/developer-guide/tools-runtime.md+++ b/website/docs/developer-guide/tools-runtime.md@@ -74,7 +74,7 @@ Each tool can optionally provide a `check_fn` — a callable that returns `True`- **API key present** — e.g., `lambda: bool(os.environ.get("SERP_API_KEY"))` for web search- **Service running** — e.g., checking if the Honcho server is configured-- **Binary installed** — e.g., verifying `playwright` is available for browser tools+- **Dependency installed** — e.g., verifying `browser-harness` is importable for `browser_exec`When `registry.get_definitions()` builds the schema list for the model, it runs each tool's `check_fn()`:@@ -115,7 +115,7 @@ The main entry point is `model_tools.get_tool_definitions(enabled_toolsets, disa4. **Registry filtering** — the resolved tool name set is passed to `registry.get_definitions()`, which applies `check_fn` filtering and returns OpenAI-format schemas.-5. **Dynamic schema patching** — after filtering, `execute_code` and `browser_navigate` schemas are dynamically adjusted to only reference tools that actually passed filtering (prevents model hallucination of unavailable tools).+5. **Dynamic schema patching** — after filtering, schemas such as `execute_code`, `browser_cdp` and `delegate_task` are dynamically adjusted to only reference tools that actually passed filtering (prevents model hallucination of unavailable tools).### Legacy toolset namesdiff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.mdindex 550f867a20d..7f9b2b2ac26 100644--- a/website/docs/getting-started/installation.md+++ b/website/docs/getting-started/installation.md@@ -72,12 +72,14 @@ The desktop/server scripts are not the Termux installation path.The scripts clone the source, bootstrap uv, and delegate dependency preparationto PM. PM provides pinned Python, Node.js, npm, ripgrep, and FFmpeg. The sourceinstallation selects the `all` Python extra, not every optional extra.-PM also installs the browser and computer-use tools by default: `agent-browser`-and its pinned Chromium, and `cua-driver` (the computer-use driver, on macOS,-Windows and glibc Linux). If a download fails, the install still completes and-prints the command to retry. The default browser driver (browser-harness, the-engine of the Browser Use CLI) is a regular Python dependency, so every install,-the Desktop app included, already has it.+PM also installs the browser and computer-use tools by default: a pinned+Chromium (Chrome for Testing) that Hermes launches for local browsing, and+`cua-driver` (the computer-use driver, on macOS, Windows and glibc Linux). If a+download fails, the install still completes and prints the command to retry.+The browser driver behind `browser_exec` (browser-harness, the engine of the+Browser Use CLI) is a regular Python dependency, so every install, the Desktop+app included, already has it. Where PM has no Chromium build (Android/Termux,+musl Linux), Hermes uses a system `chromium` on `PATH` instead.Other optional tools use their feature-specific installation paths.A new install lands on the latest stable release, the channel `hermes update`@@ -88,7 +90,7 @@ follows from then on (see [Updating](./updating.md)). To install the tip ofTo leave the browser tools out, pass `--skip-browser` on POSIX or `-SkipBrowser`on Windows; for the computer-use driver, `--skip-computer-use` /`-SkipComputerUse`. Hermes remembers these choices: later installs and-`hermes update` do not add them back. Run `hermes pm install agent-browser` or+`hermes update` do not add them back. Run `hermes pm install chromium` or`hermes pm install cua-driver` to install them and undo the choice.The scripts create a launcher and prepare the data directory. Interactive runs@@ -206,7 +208,7 @@ Run the source installer as the intended service user. Its home, tool store,configuration, and launcher must belong to that user.1. As an administrator, install the source-build prerequisites and any Linux- libraries needed by the selected browser backend.+ libraries Chromium needs (only if the service will browse locally).2. As the service user, run the regular installer:```bashdiff --git a/website/docs/getting-started/termux.md b/website/docs/getting-started/termux.mdindex cd6ccc8c246..4862ec51f6a 100644--- a/website/docs/getting-started/termux.md+++ b/website/docs/getting-started/termux.md@@ -142,8 +142,10 @@ Battery optimization exemptions and `termux-wake-lock` can help, but do not guarThe package does not include the `nemo-relay` exporter. Its vendored buildtoolchain does not support this target.-The package does not include Electron, local Chromium, or desktop computer-use-tools. A local Docker daemon is not part of the Termux environment. Remote+The package does not include Electron, a bundled Chromium, or desktop+computer-use tools. The browser tool launches a system `chromium` when one is on+`PATH` (`pkg install chromium`, where your repository provides it); without one,+browsing is unavailable and the browser tool says so. A local Docker daemon is not part of the Termux environment. Remoteservices have their own requirements and connectivity limits.Phone-native Termux:API microphone and clipboard adapters are not provided bydiff --git a/website/docs/integrations/index.md b/website/docs/integrations/index.mdindex 4dedd4eba85..373c6c64904 100644--- a/website/docs/integrations/index.md+++ b/website/docs/integrations/index.md@@ -49,12 +49,14 @@ If `web.backend` is not set, the backend is auto-detected from whichever API key## Browser Automation-Hermes includes full browser automation with multiple backend options for navigating websites, filling forms, and extracting information:+Hermes includes full browser automation through `browser_exec` (Python over CDP) for navigating websites, filling forms, and extracting information, with several places the browser can run:- **Browser Use Cloud** — Managed Chromium with stealth, residential proxies, CAPTCHA solving, and reusable browser profiles- **Browserbase** — Alternative cloud browser provider with managed browsers, anti-bot tooling, CAPTCHA solving, and residential proxies- **Local Chromium-family CDP** — Connect to your running Chrome, Brave, Chromium, or Edge browser using `/browser connect`-- **Local Chromium** — Headless local browser via the `agent-browser` CLI+- **Local Chromium** — Headless local Chromium that Hermes launches itself (the default)++The Camofox anti-detection browser is a catalog plugin: `hermes plugins install camofox`.See [Browser Automation](../user-guide/features/browser.md) for setup and usage.diff --git a/website/docs/integrations/nous-portal.md b/website/docs/integrations/nous-portal.mdindex 40868778f37..f820099af7d 100644--- a/website/docs/integrations/nous-portal.md+++ b/website/docs/integrations/nous-portal.md@@ -57,7 +57,7 @@ The same subscription unlocks the [Tool Gateway](../user-guide/features/tool-gat| **Web search & extract** | Nous-managed | Agent-grade search and full-page extraction. No search API key, no rate limit babysitting. || **Image generation** | FAL | Nine models under one endpoint: FLUX 2 Klein 9B, FLUX 2 Pro, Z-Image Turbo, Nano Banana Pro (Gemini 3 Pro Image), GPT Image 1.5, GPT Image 2, Ideogram V3, Recraft V4 Pro, Qwen Image. || **Text-to-speech** | OpenAI TTS | High-quality TTS without a separate OpenAI key. Enables [voice mode](../user-guide/features/voice-mode.md) across messaging platforms. |-| **Cloud browser automation** | Browser Use | Headless Chromium sessions for `browser_navigate`, `browser_click`, `browser_type`, `browser_vision`. No Browserbase account needed. |+| **Cloud browser automation** | Browser Use | Headless cloud Chromium sessions that `browser_exec` drives over CDP. No Browserbase account needed. || **Cloud terminal sandbox** | Modal | Serverless terminal sandboxes for code execution (optional add-on). |Without the gateway, hooking each of those up means a web search account, a FAL account, a Browser Use account, an OpenAI key, and a Modal account — five separate signups, five separate dashboards, five separate top-up flows. With the gateway, all of it routes through one subscription.diff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.mdindex d3711e79fa1..aecf6c5001c 100644--- a/website/docs/reference/environment-variables.md+++ b/website/docs/reference/environment-variables.md@@ -164,15 +164,10 @@ For native Anthropic auth, Hermes prefers Claude Code's own credential files whe| `BROWSERBASE_PROJECT_ID` | Browserbase project ID || `BROWSER_USE_API_KEY` | Browser Use cloud browser API key ([browser-use.com](https://browser-use.com/)) || `FIRECRAWL_BROWSER_TTL` | Firecrawl browser session TTL in seconds (default: 300) |-| `BROWSER_CDP_URL` | Chrome DevTools Protocol URL for local browser (set via `/browser connect`, e.g. `ws://localhost:9222`) |-| `CAMOFOX_URL` | Camofox local anti-detection browser server address (default: `http://localhost:9377`). Address only — it does not select Camofox as the backend; pick Camofox in `hermes tools` (`browser.cloud_provider: camofox`) |-| `CAMOFOX_API_KEY` | Optional bearer token sent as Authorization header to a remote/authenticated Camofox server |-| `CAMOFOX_USER_ID` | Optional externally managed Camofox user ID for shared visible sessions |-| `CAMOFOX_SESSION_KEY` | Optional Camofox session key used when creating tabs for `CAMOFOX_USER_ID` |-| `CAMOFOX_ADOPT_EXISTING_TAB` | Set to `true` to reuse an existing Camofox tab before creating a new one |+| `BROWSER_CDP_URL` | Chrome DevTools Protocol endpoint the browser tools attach to instead of launching Chromium (set via `/browser connect`, e.g. `ws://localhost:9222`; same as `browser.cdp_url`) |+| `CAMOFOX_*` | Read only by the Camofox plugin (`hermes plugins install camofox`); core Hermes ignores them. || `BROWSER_INACTIVITY_TIMEOUT` | Browser session inactivity timeout in seconds |-| `AGENT_BROWSER_ARGS` | Extra Chromium launch flags (comma- or newline-separated). Hermes auto-injects `--no-sandbox,--disable-dev-shm-usage` when running as root or on AppArmor-restricted unprivileged user namespaces (Ubuntu 23.10+, DGX Spark, many container images); set this manually only to override or add other flags. |-| `AGENT_BROWSER_ENGINE` | Local browser engine: `auto` (default — Chromium-family via CDP), `lightpanda` (Browser Use mode spawns `lightpanda serve`; the built-in tools pass `--engine lightpanda` to agent-browser), or `chrome`. Same as `browser.engine` in config.yaml. |+| `AGENT_BROWSER_*` | No longer read. On update, values in the profile's `.env` are copied into config when the key is unset: `AGENT_BROWSER_EXECUTABLE_PATH` → `browser.executable_path`, `AGENT_BROWSER_PROFILE` → `browser.user_data_dir`, `AGENT_BROWSER_ARGS` → `browser.chromium_args`, `AGENT_BROWSER_HEADED` → `browser.headed`, `AGENT_BROWSER_ENGINE` → `browser.engine`. || `FAL_KEY` | Image generation ([fal.ai](https://fal.ai/)) || `KREA_API_KEY` | Krea API key for Krea 3 and Krea 2 image generation ([krea.ai](https://krea.ai/)) || `GROQ_API_KEY` | Groq Whisper STT API key ([groq.com](https://groq.com/)) |@@ -944,7 +939,7 @@ Older configs with `compression.summary_model`, `compression.summary_provider`,| `AUXILIARY_VISION_API_KEY` | API key paired with `AUXILIARY_VISION_BASE_URL` |:::note-`AUXILIARY_WEB_EXTRACT_*` variables are obsolete: `web_extract` and browser snapshots no longer use an auxiliary LLM. Long pages and snapshots are truncated deterministically with the full text stored on disk for `read_file` paging.+`AUXILIARY_WEB_EXTRACT_*` variables are obsolete: `web_extract` no longer uses an auxiliary LLM. Long pages are truncated deterministically with the full text stored on disk for `read_file` paging.:::For task-specific direct endpoints, Hermes uses the task's configured API key or `OPENAI_API_KEY`. It does not reuse `OPENROUTER_API_KEY` for those custom endpoints.diff --git a/website/docs/reference/package-management.md b/website/docs/reference/package-management.mdindex e4d8c81cc98..3869064302e 100644--- a/website/docs/reference/package-management.md+++ b/website/docs/reference/package-management.md@@ -531,8 +531,8 @@ hermes pm install chromium| Command | Effect ||---|---|-| `pm install [names...]` | Install named packages. With no names, provision required tools plus Python, put those tools on PATH, and then sync the `all` extra. A bare install also installs the default optional tools (`agent-browser` and Chromium, `cua-driver`); a failed download of these prints a warning and does not fail the install. Naming a package you declined earlier undoes that choice. |-| `pm install --without NAME` | Do a bare install without the default optional package `NAME` (`agent-browser` or `cua-driver`), and record that choice. Later bare installs and `hermes update` also leave it out. The installers' `--skip-browser` / `-SkipBrowser` and `--skip-computer-use` / `-SkipComputerUse` use this. |+| `pm install [names...]` | Install named packages. With no names, provision required tools plus Python, put those tools on PATH, and then sync the `all` extra. A bare install also installs the default optional tools (`chromium`, the browser Hermes launches, and `cua-driver`); a failed download of these prints a warning and does not fail the install. Naming a package you declined earlier undoes that choice. |+| `pm install --without NAME` | Do a bare install without the default optional package `NAME` (`chromium` or `cua-driver`), and record that choice. Later bare installs and `hermes update` also leave it out. The installers' `--skip-browser` / `-SkipBrowser` (`--without chromium`) and `--skip-computer-use` / `-SkipComputerUse` (`--without cua-driver`) use this. A choice recorded as the legacy `--without agent-browser` still skips `chromium`. || `pm install --tools-only` | Install that tool closure and put it on PATH, then stop. The venv sync does not run. || `pm env [names...]` | Print installed packages' PM-contributed environment values as JSON. It does not install missing packages, though a cold Hermes launch may prepare its own Python runtime first. || `pm doctor` | Check installed tool identities, files, and digests against the lock. |diff --git a/website/docs/reference/tools-reference.md b/website/docs/reference/tools-reference.mdindex 2b56f18270d..26968322e76 100644--- a/website/docs/reference/tools-reference.md+++ b/website/docs/reference/tools-reference.md@@ -8,7 +8,7 @@ description: "Authoritative reference for Hermes built-in tools, grouped by toolThis page documents Hermes' built-in tools, grouped by toolset. Availability varies by platform, credentials, and enabled toolsets.-**Quick counts (current registry):** ~100 tools — 10 browser tools (core) + 2 CDP-gated browser tools + 5 browser-vault tools + `browser_exec`, 4 file tools, 2 terminal tools (`terminal`, `process_manage`), 11 desktop-GUI tools (`read_terminal`, `close_terminal`, `desktop_preview`, `drive_preview`, `annotate_preview`, `read_window_below`, `focus_pane`, `react_to_message`, `gui_tour`, `show_tip`, `set_theme` — desktop-app sessions only), 2 web tools, 5 Feishu tools, 5 Yuanbao tools, 14 kanban tools (registered when the kanban dispatcher spawns the agent), 1 project tool (`desktop_project`; desktop/GUI sessions), 2 Discord tools, 3 video tools (`video_generate`, `xai_video_edit`, `xai_video_extend`), and a handful of standalone tools (`memory`, `clarify`, `delegate_task`, `execute_code`, `cronjob_manage`, `session_search`, `skill_view`/`skill_manage`/`skills_list`, `text_to_speech`, `image_generate`, `vision_analyze`, `video_analyze`, `todo_list`, `computer_use`, `x_search`).+**Quick counts (current registry):** ~85 tools — 4 browser tools (`browser_exec`, `browser_cdp`, `browser_dialog`, `browser_vault`), 4 file tools, 2 terminal tools (`terminal`, `process_manage`), 11 desktop-GUI tools (`read_terminal`, `close_terminal`, `desktop_preview`, `drive_preview`, `annotate_preview`, `read_window_below`, `focus_pane`, `react_to_message`, `gui_tour`, `show_tip`, `set_theme` — desktop-app sessions only), 2 web tools, 5 Feishu tools, 5 Yuanbao tools, 14 kanban tools (registered when the kanban dispatcher spawns the agent), 1 project tool (`desktop_project`; desktop/GUI sessions), 2 Discord tools, 3 video tools (`video_generate`, `xai_video_edit`, `xai_video_extend`), and a handful of standalone tools (`memory`, `clarify`, `delegate_task`, `execute_code`, `cronjob_manage`, `session_search`, `skill_view`/`skill_manage`/`skills_list`, `text_to_speech`, `image_generate`, `vision_analyze`, `video_analyze`, `todo_list`, `computer_use`, `x_search`).:::tip MCP ToolsIn addition to built-in tools, Hermes can load tools dynamically from MCP servers. MCP tools appear with the prefix `mcp__<server>__` (e.g., `mcp__github__create_issue` for the `github` MCP server). See [MCP Integration](../user-guide/features/mcp.md) for configuration.@@ -16,27 +16,14 @@ In addition to built-in tools, Hermes can load tools dynamically from MCP server## `browser` toolset-| Tool | Description | Requires environment |-|------|-------------|----------------------|-| `browser_back` | Navigate back to the previous page in browser history. Requires browser_navigate to be called first. | — |-| `browser_click` | Click on an element identified by its ref ID from the snapshot (e.g., '@e5'). The ref IDs are shown in square brackets in the snapshot output. Requires browser_navigate and browser_snapshot to be called first. | — |-| `browser_console` | Get browser console output and JavaScript errors from the current page. Returns console.log/warn/error/info messages and uncaught JS exceptions. Use this to detect silent JavaScript errors, failed API calls, and application warnings. Requi… | — |-| `browser_get_images` | Get a list of all images on the current page with their URLs and alt text. Useful for finding images to analyze with the vision tool. Requires browser_navigate to be called first. | — |-| `browser_navigate` | Navigate to a URL in the browser. Initializes the session and loads the page. Must be called before other browser tools. For simple information retrieval, prefer a lightweight retrieval tool when one is available (faster, cheaper). Use browser tools when you need… | — |-| `browser_press` | Press a keyboard key. Useful for submitting forms (Enter), navigating (Tab), or keyboard shortcuts. Requires browser_navigate to be called first. | — |-| `browser_scroll` | Scroll the page in a direction. Use this to reveal more content that may be below or above the current viewport. Requires browser_navigate to be called first. | — |-| `browser_snapshot` | Get a text-based snapshot of the current page's accessibility tree. Returns interactive elements with ref IDs (like @e1, @e2) for browser_click and browser_type. full=false (default): compact view with interactive elements. full=true: comp… | — |-| `browser_type` | Type text into an input field identified by its ref ID. Clears the field first, then types the new text. Requires browser_navigate and browser_snapshot to be called first. | — |-| `browser_vision` | Take a screenshot of the current page so you can inspect it visually. Use this when you need to understand what the page looks like — especially for CAPTCHAs, visual verification challenges, complex layouts, or cases where the text snapshot misses important visual information. On native-vision models the screenshot is attached directly; otherwise falls back to an auxiliary vision mo… | — |--## `browser` toolset (CDP-gated tools)--These two tools live in the `browser` toolset but only register when a Chrome DevTools Protocol endpoint is reachable at session start — via `/browser connect`, `browser.cdp_url` config, a Browserbase session, or Camofox.+All four tools drive the same browser session — the Chromium Hermes launches, a cloud browser, or the browser attached with `/browser connect`. See [Browser Automation](../user-guide/features/browser.md).| Tool | Description | Requires environment ||------|-------------|----------------------|-| `browser_cdp` | Send a raw Chrome DevTools Protocol command. Escape hatch for browser operations not covered by the higher-level `browser_*` tools. See https://chromedevtools.github.io/devtools-protocol/ | CDP endpoint |-| `browser_dialog` | Respond to a native JavaScript dialog (alert / confirm / prompt / beforeunload). Call `browser_snapshot` first — pending dialogs appear in its `pending_dialogs` field. Then call `browser_dialog(action='accept'\|'dismiss')`. | CDP endpoint |+| `browser_exec` | Drive a real web browser by running Python with pre-imported helpers (`new_tab`, `goto_url`, `wait_for_load`, `page_info`, `js`, `fill_input`, `click_at_xy`, `capture_screenshot`, `cdp`, `ensure_real_tab`). Browser state persists across calls; Python variables do not. `session` isolates concurrent work; `timeout_s` defaults to 300 (max 1800). | `terminal` toolset |+| `browser_cdp` | Send a raw Chrome DevTools Protocol command. Escape hatch for browser operations the `browser_exec` helpers don't cover. See https://chromedevtools.github.io/devtools-protocol/ | — |+| `browser_dialog` | Respond to a native JavaScript dialog (alert / confirm / prompt / beforeunload) blocking the page: `browser_dialog(action='accept'\|'dismiss')`, with `prompt_text` for `prompt()` and `dialog_id` when several are queued. | — |+| `browser_vault` | Use saved logins, passwords, cards, addresses and one-time codes on the current page without secrets entering the conversation. Actions: `list`, `fill`, `save_login`, `enter_code`, `unlock`. | — |## `clarify` toolsetdiff --git a/website/docs/reference/toolsets-reference.md b/website/docs/reference/toolsets-reference.mdindex 330c0537c1d..4173fd7ec6f 100644--- a/website/docs/reference/toolsets-reference.md+++ b/website/docs/reference/toolsets-reference.md@@ -52,7 +52,7 @@ Or in-session:| Toolset | Tools | Purpose ||---------|-------|---------|-| `browser` | `browser_back`, `browser_cdp`, `browser_click`, `browser_console`, `browser_dialog`, `browser_exec`, `browser_get_images`, `browser_navigate`, `browser_press`, `browser_scroll`, `browser_snapshot`, `browser_type`, `browser_vault`, `browser_vision` | Core browser automation. `browser_cdp` and `browser_dialog` are gated at runtime — registered only when a CDP endpoint is reachable at session start (via `/browser connect`, `browser.cdp_url` config, Browserbase, or Camofox). `browser_dialog` works together with the `pending_dialogs` and `frame_tree` fields that `browser_snapshot` adds when a CDP supervisor is attached. `browser_exec` replaces the other browser tools when `browser.backend` is `browser-use`; `browser_vault` rides with the browser for credential forms and is deferred behind tool search by default. Quick lookups belong to the `web`/`search` toolsets — `web_search` is deliberately NOT a member, so `disabled_toolsets: [browser]` cannot strip it (#64503). |+| `browser` | `browser_cdp`, `browser_dialog`, `browser_exec`, `browser_vault` | Core browser automation. `browser_exec` drives the browser by running Python with pre-imported helpers (offered only to sessions that also have `terminal`); `browser_cdp`, `browser_dialog` and `browser_vault` operate on the same browser session. `browser_vault` rides with the browser for credential forms and is deferred behind tool search by default. Disabling this toolset is how you turn browsing off. Quick lookups belong to the `web`/`search` toolsets — `web_search` is deliberately NOT a member, so `disabled_toolsets: [browser]` cannot strip it (#64503). || `clarify` | `clarify` | Ask the user a question when the agent needs clarification. || `code_execution` | `execute_code` | Run Python scripts that call Hermes tools programmatically. || `connections` | `manage_connections` | Connect the user to apps: managed connector accounts through the Nous gateway, and local MCP servers from the catalog. It can add a second named account of an app and rename accounts. On the desktop every action is a card that blocks until the user settles it; off the desktop managed actions return a connect link per app. |diff --git a/website/docs/user-guide/configuration.md b/website/docs/user-guide/configuration.mdindex 4468904026f..5f99fc2bd8a 100644--- a/website/docs/user-guide/configuration.md+++ b/website/docs/user-guide/configuration.md@@ -2145,7 +2145,7 @@ tool_loop_guardrails:Hard stops are designed to catch **replays** — the same call, unchanged, with nothing happening in between — not legitimate iteration:- **Edit → re-run is never a loop.** Any successful mutating call (`write_file`, `patch`, a green `terminal`/`execute_code`, a browser action, a job/message/cron mutation) marks progress for every failing call still being counted. The next identical retry (re-running a red test after a fix, re-snapshotting after a click) starts a fresh streak instead of accumulating toward a block.-- **Distinct red commands are diagnosis, not a loop.** For tools whose non-zero exit is ordinary output (`terminal`, `execute_code`, process pollers, `browser_navigate`, `web_extract`) the `same_tool_failure` threshold only warns and never halts. Only an exact-args replay with no intervening change, or an identical-result streak, can stop them.+- **Distinct red commands are diagnosis, not a loop.** For tools whose non-zero exit is ordinary output (`terminal`, `execute_code`, process pollers, `browser_exec`, `web_extract`) the `same_tool_failure` threshold only warns and never halts. Only an exact-args replay with no intervening change, or an identical-result streak, can stop them.- **A halt ends the turn, not the session.** The agent replies with which guardrail fired and why; replying "continue" resumes with fresh per-turn counters.### Per-turn runaway-loop caps@@ -2815,37 +2815,61 @@ web:## Browser-Configure browser automation behavior:+Configure browser automation behavior. Every browser key lives under `browser:`;+see the [Browser feature page](./features/browser.md) for how the browser sources+(local Chromium, cloud providers, Lightpanda, `/browser connect`, real profile) fit together.```yamlbrowser:- inactivity_timeout: 120 # Seconds before auto-closing idle sessions- command_timeout: 30 # Timeout in seconds for browser commands (screenshot, navigate, etc.)- record_sessions: false # Auto-record browser sessions as WebM videos to ~/.hermes/browser_recordings/- # Optional CDP override — when set, Hermes attaches directly to your own- # Chromium-family browser (via /browser connect) rather than starting a headless browser.+ inactivity_timeout: 120 # Seconds before an idle browser is closed+ command_timeout: 30 # Chromium launch timeout floor (seconds)+ headed: false # true = visible Chromium window (local); keeps the browser open between turns+ engine: auto # auto (Chromium) | lightpanda ("chrome" is accepted as auto)+ # Local Chromium launched by Hermes+ executable_path: "" # Chromium binary override; "" = the packaged Chromium+ user_data_dir: "" # Persistent profile shared by every session; "" = fresh profile per session+ chromium_args: [] # Extra Chromium command-line flags, e.g. ["--lang=de-DE"]+ # Cloud browser selection (written by `hermes tools` → Browser Automation)+ cloud_provider: local # local | browserbase | browser-use | firecrawl | nous | <provider plugin>; unset = autodetect from credentials+ auto_local_for_private_urls: true # With a cloud provider, open LAN/localhost URLs in a local Chromium+ allow_private_urls: false # Allow private/internal addresses (localhost, 192.168.x.x, ...)+ # Optional CDP override — when set, the browser tools attach to your own+ # Chromium-family browser (as /browser connect does) instead of launching one.cdp_url: ""- # Dialog supervisor — controls how native JS dialogs (alert / confirm / prompt)- # are handled when a CDP backend is attached (Browserbase, local Chromium-family- # browser via /browser connect). Ignored on Camofox and default local agent-browser mode.+ use_real_profile: false # Browse on a managed copy of your real browser profile (opt-in)+ # Dialog supervisor — how native JS dialogs (alert / confirm / prompt / beforeunload) are handleddialog_policy: must_respond # must_respond | auto_dismiss | auto_acceptdialog_timeout_s: 300 # Safety auto-dismiss under must_respond (seconds)- camofox:- managed_persistence: false # When true, Camofox sessions persist cookies/logins across restarts- user_id: "" # Optional externally managed Camofox userId- session_key: "" # Optional session key sent when Hermes creates a tab- adopt_existing_tab: false # Reuse an existing tab for this identity before creating one```+**Executable resolution.** Hermes launches the first Chromium it finds:+`browser.executable_path` → the Chromium installed by Hermes's package manager+(`hermes pm install chromium`) → `/etc/hermes/chromium-executable-path` (official+Docker image) → a system `chromium` / `chromium-browser` on `PATH` (Termux and+platforms without a packaged build). With none, the browser tool reports a hint+instead of failing silently.++**Turning browsing off.** There is no browser config switch: disable the `browser`+toolset with `hermes tools` (or `hermes tools disable browser [--platform NAME]`).+**Dialog policies:**-- `must_respond` (default) — capture the dialog, surface it in `browser_snapshot.pending_dialogs`, and wait for the agent to call `browser_dialog(action=...)`. After `dialog_timeout_s` seconds with no response, the dialog is auto-dismissed to prevent the page's JS thread from stalling forever.-- `auto_dismiss` — capture, dismiss immediately. The agent still sees the dialog record in `browser_snapshot.recent_dialogs` with `closed_by="auto_policy"` after the fact.+- `must_respond` (default) — capture the dialog and wait for the agent to call `browser_dialog(action=...)`. After `dialog_timeout_s` seconds with no response, the dialog is auto-dismissed to prevent the page's JS thread from stalling forever.+- `auto_dismiss` — capture, dismiss immediately.- `auto_accept` — capture, accept immediately. Useful for pages with aggressive `beforeunload` prompts.See the [browser feature page](./features/browser.md#browser_dialog) for the full dialog workflow.-The browser toolset supports multiple providers. See the [Browser feature page](./features/browser.md) for details on Browserbase, Browser Use, and local Chromium-family CDP setup.+**Removed keys (migrated automatically).** `browser.backend` is gone — `browser_exec` is the+only browser path. An old `backend: "off"` is removed on update with a one-time notice to+disable the `browser` toolset instead; any other value is removed silently.+`snapshot_threshold`, `record_sessions`, `allow_unsafe_evaluate` and `restrict_evaluate`+belonged to the removed built-in browser tools and no longer have an effect. The+`browser.camofox.*` keys are read by the Camofox plugin (`hermes plugins install camofox`), not by core.+The old `AGENT_BROWSER_*` environment variables are no longer read; on update their values+are copied from the profile's `.env` into the matching keys when those keys are unset+(`AGENT_BROWSER_EXECUTABLE_PATH` → `executable_path`, `AGENT_BROWSER_PROFILE` → `user_data_dir`,+`AGENT_BROWSER_ARGS` → `chromium_args`, `AGENT_BROWSER_HEADED` → `headed`, `AGENT_BROWSER_ENGINE` → `engine`).## Timezone@@ -2911,7 +2935,7 @@ security:- "/etc/hermes/blocked-sites.txt"```-When enabled, any URL matching a blocked domain pattern is rejected before the web or browser tool executes. This applies to `web_search`, `web_extract`, `browser_navigate`, and any tool that accesses URLs.+When enabled, any URL matching a blocked domain pattern is rejected before the web or browser tool executes. This applies to `web_search`, `web_extract`, browser navigation, and any tool that accesses URLs.Domain rules support:- Exact domains: `admin.example.com`diff --git a/website/docs/user-guide/docker.md b/website/docs/user-guide/docker.mdindex dff97a0364a..5517c3ff95c 100644--- a/website/docs/user-guide/docker.md+++ b/website/docs/user-guide/docker.md@@ -537,7 +537,8 @@ The image uses Debian 13.4 and includes:- s6-overlay for supervision and zombie-process cleanup.Chromium is staged through PM, not `npx playwright install`. The build records-its resolved executable in `/etc/hermes/agent-browser-executable-path`.+its resolved executable in `/etc/hermes/chromium-executable-path`, which Hermes+reads when it launches the browser.`PLAYWRIGHT_BROWSERS_PATH` names `/opt/hermes/tools`, outside the data mount.Every image, including the unsuffixed (non-`-desktop`) tags, carries the full@@ -922,7 +923,7 @@ docker exec -u root hermes chmod 0755 /opt/hermes### Browser tools not working-Playwright needs shared memory. Add `--shm-size=1g` to your Docker run command:+Chromium needs shared memory. Add `--shm-size=1g` to your Docker run command:```shdocker run -d \diff --git a/website/docs/user-guide/features/acp.md b/website/docs/user-guide/features/acp.mdindex 4c235539e83..8bcb68b08a2 100644--- a/website/docs/user-guide/features/acp.md+++ b/website/docs/user-guide/features/acp.md@@ -120,9 +120,9 @@ hermes acp --check### Browser tools (optional)-Browser tools (`browser_navigate`, `browser_click`, etc.) depend on the-`agent-browser` npm package and Chromium, which aren't part of the Python-wheel. Install them with:+Browser tools (`browser_exec` and the CDP tools `browser_cdp`,+`browser_dialog`, `browser_vault`) need a local Chromium, which isn't part of+the Python wheel. Install it with:```bashhermes acp --setup-browser # interactive (prompts before ~400 MB download)@@ -133,9 +133,8 @@ This is the standalone command. The terminal-auth flow (`hermes acp --setup`) alWhat it does:-- Installs Node.js 26 into `~/.hermes/node/` if missing-- `npm install -g agent-browser @askjo/camofox-browser` into that prefix (no sudo needed — `npm`'s `--prefix` points at the user-writable Hermes-managed Node)-- Installs Playwright Chromium, or uses a detected system Chrome/Chromium when available+- Installs Hermes' pinned Chromium (the `chromium` package) through the package manager; no Node.js or npm involved+- Hermes launches that Chromium itself when `browser_exec` first needs a browserThe bootstrap is idempotent — re-running it is fast and skips work that's already done.diff --git a/website/docs/user-guide/features/api-server.md b/website/docs/user-guide/features/api-server.mdindex 2d920eb64d9..5d55e741677 100644--- a/website/docs/user-guide/features/api-server.md+++ b/website/docs/user-guide/features/api-server.md@@ -413,7 +413,9 @@ browser_tabsbrowser_type```-Requested capabilities outside that list are filtered out. Raw CDP, arbitrary+These are controller-protocol action names, not the agent's tool names (the+agent's browser tools are `browser_exec`, `browser_cdp`, `browser_dialog` and+`browser_vault`). Requested capabilities outside that list are filtered out. Raw CDP, arbitraryscript evaluation, console access, uploads, image extraction, and vision are notpart of the controller protocol.diff --git a/website/docs/user-guide/features/bot-screen.md b/website/docs/user-guide/features/bot-screen.mdindex d71cc779591..de65327fbf4 100644--- a/website/docs/user-guide/features/bot-screen.md+++ b/website/docs/user-guide/features/bot-screen.md@@ -28,7 +28,7 @@ running as that user — another bot on the same host, and the bot's own`terminal` tool included — can reach them directly, bypassing the pane and thelease. The lease is a tool-level fence on `computer_use` and the browser tools,not an OS one. One boundary is wider than the OS user: Chromium's DevTools-port (the dock's Browser and every agent-browser launch advertise one on+port (the dock's Browser and every Chromium Hermes launches advertise one onloopback so the agent can attach) is reachable by **any** local user on thehost, and Chromium offers no per-user restriction for it. Running each bot asits own OS user is out of scope; if that isolation matters to you, or the host@@ -178,9 +178,9 @@ controller drops back to watching.## Browser sessions that survive the handoffWhile the screen runs, the bot's browser tool and the dock's **Browser** icon are-the same browser: the Chromium agent-browser drives, with one persistent+the same browser: the Chromium `browser_exec` drives, with one persistentuser-data-dir per bot (`<HERMES_HOME>/bot-desktop/browser-profile`; set-`AGENT_BROWSER_PROFILE` to pin your own — `~` expands, and a relative path such+`browser.user_data_dir` to pin your own — `~` expands, and a relative path suchas `pin` resolves against that bot's `HERMES_HOME`, i.e. `<HERMES_HOME>/pin`).Click Browser during a takeover and youare in the bot's own windows and cookie jar; what you sign in to is what the bot@@ -191,28 +191,28 @@ The dock is seeded **once**, the first time the screen starts for a profile.The guard is the panel layout file`<HERMES_HOME>/bot-desktop/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml`:while it exists the launcher leaves the panel alone, so changing-`AGENT_BROWSER_EXECUTABLE_PATH` or `AGENT_BROWSER_PROFILE` and restarting the+`browser.executable_path` or `browser.user_data_dir` and restarting thescreen does not re-pin the Browser icon. Delete that file and the dock isrebuilt on the next `screen start` from whatever is installed then.Which Chromium the dock and the bot use: an explicit-`AGENT_BROWSER_EXECUTABLE_PATH` wins; otherwise Hermes uses the PM-managed+`browser.executable_path` wins; otherwise Hermes uses the PM-managedChromium and falls back to a system `chromium` / `google-chrome`. A non-rootuser on a host with `kernel.apparmor_restrict_unprivileged_userns=1` (Ubuntu23.10 and later) gets the reverse order, because there the managed build cannotset up its sandbox and exits with `FATAL: No usable sandbox!`, while thedistro's Chromium ships with an AppArmor profile that allows it. If the pick is-wrong for your host, set `AGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium` (or-your Chrome path) in the gateway's environment. The official Docker image-points `AGENT_BROWSER_EXECUTABLE_PATH` at PM's pinned full Chromium, which can-draw a window, so the dock's Browser icon uses it; the `-desktop` tags also-carry the distro `chromium` — set-`AGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium` on hosts that refuse the-pinned build's sandbox. A Playwright *headless shell* is never used for the+wrong for your host, set `browser.executable_path: /usr/bin/chromium` (or+your Chrome path) in the bot's `config.yaml`. The official Docker image+records PM's pinned full Chromium in `/etc/hermes/chromium-executable-path`;+that build can draw a window, so the dock's Browser icon uses it. The+`-desktop` tags also carry the distro `chromium` — set+`browser.executable_path: /usr/bin/chromium` on hosts that refuse the pinned+build's sandbox. A Playwright *headless shell* is never used for theicon: when it is the only browser, the pane / `screen status` report **noheaded browser** until you install a headed one (`apt-get install chromium`).-The dock icon starts the browser with the same sandbox settings agent-browser-uses in that container, so the human's Browser and the bot's browser are one+The dock icon starts the browser with the same sandbox settings Hermes's+Chromium launcher uses in that container, so the human's Browser and the bot's browser are oneand the same.## CLI@@ -259,7 +259,7 @@ it, so the restarted gateway re-attaches to a still-running sandbox, andThe sandbox needs the desktop stack. `nousresearch/hermes-sandbox:desktop` isthe default image for every container backend (Docker, Modal, Daytona,Singularity): the `nikolaik/python-nodejs` base (Python 3.13 / Node 26) plus-TigerVNC, the Xfce components, a headed Chromium, `agent-browser`, `cua-driver`+TigerVNC, the Xfce components, a headed Chromium, `cua-driver`and the everyday tools that base lacked (jq, ripgrep, fd, tmux, rsync, sudo forthe image's `pn` user). Its default user is root, like the old default, soshell workflows do not change. An image you pinned yourself is left alone, and@@ -284,13 +284,13 @@ admin raised `sessiondir max size`. This path is verified against the Apptainerdocumentation, not exercised live.An SSH host is whatever you point the backend at, so it carries the stack-itself: the same binaries (TigerVNC, Xfce, `cua-driver`, `agent-browser` with a-Chromium it can find), reachable from a **non-interactive login session**. That+itself: the same binaries (TigerVNC, Xfce, `cua-driver`, a headed Chromium),+reachable from a **non-interactive login session**. Thatlast part is where a host built from the desktop image differs from `docker exec`:a Dockerfile `ENV` never reaches an ssh session, so the image also writes`PLAYWRIGHT_BROWSERS_PATH` to `/etc/environment` for PAM to apply. A host of-your own needs the equivalent, or `agent-browser` reports "Chrome not found"-over ssh while working in a local shell.+your own needs the equivalent, or the browser finds no Chromium over ssh+while working in a local shell.**Upgrading from the previous default.** A Docker sandbox you already have iskept, not replaced: when `docker_image` is unset and a persisted container runsdiff --git a/website/docs/user-guide/features/browser.md b/website/docs/user-guide/features/browser.mdindex ea41675bdd1..dddf411c28d 100644--- a/website/docs/user-guide/features/browser.md+++ b/website/docs/user-guide/features/browser.md@@ -1,131 +1,248 @@---title: Browser Automation-description: Control browsers with multiple providers, local Chromium-family browsers via CDP, or cloud browsers for web interaction, form filling, scraping, and more.+description: Drive a real browser with browser_exec — Hermes-launched Chromium, cloud browsers, Lightpanda, or your own Chrome via CDP — for web interaction, form filling, scraping, and more.sidebar_label: Browsersidebar_position: 5---# Browser Automation-Hermes Agent includes a full browser automation toolset with multiple backend options:+The `browser` toolset gives the agent a real web browser. One tool does the+driving — **`browser_exec`**, which runs model-written Python against the+browser over the Chrome DevTools Protocol (CDP) — and three companion tools+work on the same browser session:-- **Browser Use cloud mode** via [Browser Use](https://browser-use.com) for managed Chromium with stealth, residential proxies, CAPTCHA solving, and reusable browser profiles-- **Browserbase cloud mode** via [Browserbase](https://browserbase.com) as an alternative cloud browser provider with anti-bot tooling-- **Browser Use mode** via the [Browser Use CLI 3.0](https://github.com/browser-use/browser-use), the default browser driver for local Chrome and Browser Use cloud browsers-- **Firecrawl cloud mode** via [Firecrawl](https://firecrawl.dev) for cloud browsers with built-in scraping-- **Camofox local mode** via [Camofox](https://github.com/jo-inc/camofox-browser) for local anti-detection browsing (Firefox-based fingerprint spoofing)-- **Lightpanda local engine** via [Lightpanda](https://lightpanda.io) — a headless browser built from scratch in Zig for machines; instant start up, 16x lower memory and 9x faster than Chrome. Works in Browser Use mode (Hermes spawns it, no Chromium or Node needed) and with the built-in tools (automatic Chrome fallback for actions it doesn't support yet)-- **Local Chromium-family CDP** — connect browser tools to your own Chrome, Brave, Chromium, or Edge instance using `/browser connect`-- **Local browser mode** via the `agent-browser` CLI and a local Chromium installation+| Tool | Purpose |+|------|---------|+| `browser_exec` | Navigate, read, click, type, scrape and screenshot by running Python with pre-imported browser helpers. |+| `browser_cdp` | Send one raw CDP command (cookies, network control, iframe-scoped evaluation, anything the helpers don't cover). |+| `browser_dialog` | Accept or dismiss a native JavaScript dialog (`alert` / `confirm` / `prompt` / `beforeunload`) blocking the page. |+| `browser_vault` | Fill saved logins, cards, addresses and 2FA codes into the current page without the secrets entering the conversation. |-In all modes, the agent can navigate websites, interact with page elements, fill forms, and extract information.+Where the browser comes from is a separate choice:-## Overview+- **Local Chromium (default)** — Hermes launches its own packaged Chromium, headless, one browser per session. No API key, no setup.+- **Cloud browsers** — the [Nous subscription](tool-gateway.md), [Browserbase](https://browserbase.com), [Browser Use](https://browser-use.com) cloud, [Firecrawl](https://firecrawl.dev), or a browser-provider plugin.+- **[Lightpanda](https://lightpanda.io)** — a lightweight headless engine for text-first browsing on small machines.+- **Your own browser** — attach to a running Chrome, Brave, Chromium or Edge with `/browser connect`.+- **Your real profile** — a managed copy of your everyday browser profile, logins included (opt-in).-Pages are represented as **accessibility trees** (text-based snapshots), making them ideal for LLM agents. Interactive elements get ref IDs (like `@e1`, `@e2`) that the agent uses for clicking and typing.--Key capabilities:--- **Multi-provider cloud execution** — Browser Use, Browserbase, or Firecrawl — no local browser needed-- **Local Chromium-family integration** — attach to your running Chrome, Brave, Chromium, or Edge browser via CDP for hands-on browsing-- **Cloud anti-bot support** — Browser Use Cloud includes stealth, residential proxies, and CAPTCHA solving-- **Persistent cloud profiles** — Browser Use Cloud can reuse cookies, localStorage, and saved passwords across sessions-- **Session isolation** — each task gets its own browser session-- **Automatic cleanup** — inactive sessions are closed after a timeout-- **Vision analysis** — screenshot + AI analysis for visual understanding+:::tip+For simple information retrieval, prefer `web_search` or `web_extract` — they are faster and cheaper. Use the browser when the agent needs to **interact** with a page (click buttons, fill forms, handle dynamic content).+:::-## Setup+## How `browser_exec` works++Each call sends a block of Python (`code`) that runs with browser helpers+already imported; whatever the code prints comes back as the result. The+browser session persists across calls (open tabs, cookies, the current page),+Python variables do not — every call starts a fresh interpreter. A per-session+workspace directory (`$BH_AGENT_WORKSPACE`, also returned as `workspace`)+survives between calls, so long extractions can append batches to a file and+aggregate them at the end.++The helpers:++| Helper | Does |+|--------|------|+| `new_tab(url)` | Open a URL (use for the first navigation). |+| `goto_url(url)` | Navigate the current tab (later navigations). |+| `wait_for_load()` | Wait for the page to finish loading. |+| `page_info()` | Summarize the current page state. |+| `js(expr)` | Evaluate JavaScript and return the value (wrap function bodies as `js('(() => {...})()')`). |+| `fill_input(selector, text)` | Type into an input. |+| `click_at_xy(x, y)` | Click viewport coordinates. |+| `capture_screenshot()` | Save a screenshot and print its path. |+| `cdp('Domain.method', **kwargs)` | Raw CDP — e.g. `cdp('Accessibility.getFullAXTree')` for the accessibility tree, `cdp('DOM.getBoxModel', backendNodeId=n)` for click coordinates. |+| `ensure_real_tab()` | Recover from a stale or internal tab. |++The model batches a whole sub-procedure (navigate, wait, extract, act) into one+call instead of spending a call per action:++```python+# Searching GitHub trending for Python repos+new_tab("https://github.com/trending/python")+wait_for_load()+print(js("[...document.querySelectorAll('article h2 a')].slice(0, 10).map(a => a.textContent.trim())"))+```++**Screenshots.** On a model with native vision, an image saved by+`capture_screenshot()` is attached to the tool result and the model inspects it+directly. Text-only models are told to work text-first (`page_info()`, `js()`,+`fill_input()`); they can still hand a saved path to `vision_analyze`. On+messaging platforms you can ask the agent to send you a screenshot — it arrives+as a native photo attachment.++**Parameters.** Besides `code`, the tool takes `timeout_s` (default 300, max+1800) and `session`. Each `session` name gets its own driver process and its+own browser (a separate Chromium locally, a separate cloud browser on cloud+providers), so parallel subagents or simultaneous chats don't clobber one+shared browser. Omitting `session` uses the shared default session, which is+fine for one-at-a-time browsing. When [real-profile browsing](#real-profile-browsing-use-your-own-logins)+is on, the tool also exposes a `local` flag (see that section).-:::tip Nous Subscribers-If you have a paid [Nous Portal](https://portal.nousresearch.com) subscription, you can use browser automation through the **[Tool Gateway](tool-gateway.md)** without any separate API keys. New installs can run `hermes setup --portal` to log in and turn on every gateway tool at once; existing installs can pick **Nous Subscription** as the browser provider via `hermes model` or `hermes tools`.+:::note+`browser_exec` executes model-written Python on your machine, so it is only+offered to sessions that also have the `terminal` toolset. A platform+configured without terminal access (for example a locked-down messaging+surface) gets no browser.:::-### Browser Use cloud mode+The driver is [browser-harness](https://github.com/browser-use/browser-use), the+engine of the Browser Use CLI. It is a regular Python dependency of Hermes, so+every install — the Desktop app included — ships it with no separate download.-To use Browser Use as your cloud browser provider, add:+## Local Chromium (default)-```bash-# Add to ~/.hermes/.env-BROWSER_USE_API_KEY=***-```+With no cloud provider, `/browser connect` endpoint or real-profile toggle+configured, Hermes starts a Chromium for the session itself and points+`browser_exec` at it. Your installed Chrome is never touched — there is no+`chrome://inspect` toggle to enable and no "Allow remote debugging?" popup —+and it works on headless servers with no desktop browser at all.-Get your API key at [browser-use.com](https://browser-use.com).+- **One browser per session**, with a fresh, throwaway profile by default: the+ agent starts logged into nothing, and nothing persists after the session.+- **Headless by default.** Set `browser.headed: true` for a visible window (see+ [below](#headed-mode-visible-browser-window)).+- **Automatic cleanup.** The browser is closed after `browser.inactivity_timeout`+ seconds idle (default 120), when Hermes exits, and by an orphan sweep if a+ process crashed.-Browser Use Cloud runs managed Chromium with [stealth](https://docs.browser-use.com/cloud/browser/stealth) and [residential proxies](https://docs.browser-use.com/cloud/browser/proxies) enabled by default, includes CAPTCHA solving, and supports [persistent profiles](https://docs.browser-use.com/cloud/guides/authentication) for cookies, localStorage, and saved passwords.+**Which Chromium.** Hermes picks the first that exists:-### Browserbase cloud mode+1. `browser.executable_path`, when set.+2. The Chromium (Chrome for Testing) installed by Hermes's package manager — the+ installers and `hermes update` install it by default.+3. `/etc/hermes/chromium-executable-path` in the official Docker image.+4. A system `chromium` / `chromium-browser` on `PATH` (Android/Termux, and+ platforms the package manager has no Chromium build for).-To use Browserbase-managed cloud browsers, add:+If none is found, the browser tool reports a clear hint instead of failing+silently. If you installed with `--skip-browser` / `-SkipBrowser`, or the+download failed, install it with:```bash-# Add to ~/.hermes/.env-BROWSERBASE_API_KEY=***-BROWSERBASE_PROJECT_ID=your-project-id-here+hermes pm install chromium```-Get your credentials at [browserbase.com](https://browserbase.com).--:::note Selecting the provider-The `.env` keys above supply **credentials only**. The active cloud browser is chosen by the `browser.cloud_provider` selection written by `hermes tools` → Browser Automation (`browserbase`, `browser-use`, `camofox`, or `nous` for the Nous Subscription). Once a selection exists, adding or removing a key does not switch providers — and a selected provider with a missing key errors with guidance to run `hermes tools` instead of silently rerouting. Never-configured setups still autodetect from available credentials.-:::--### Browser Use mode (default)--Browser Use mode uses the [Browser Use CLI 3.0](https://github.com/browser-use/browser-use) instead of the built-in browser tools. The agent writes and executes Python in the browser to click, type, drag, scrape, and interact with webpages.--**This is the default browser mode**: when `browser.backend` is unset, the agent gets the single `browser_exec` tool. Its engine is browser-harness (the Browser Use CLI is a thin wrapper around it), a regular Python dependency of Hermes, so every install ships it, including the Desktop app, with no separate download. If it is ever missing from Hermes's environment, Hermes falls back to the built-in browser tools and `hermes update` restores it.+This also undoes an earlier `--skip-browser` choice, so updates keep the+browser current. On Linux, Chromium may also need distribution system+libraries (`npx playwright install-deps chromium` installs them on+Debian/Ubuntu). On Android/Termux, run `pkg install chromium` where your+repository provides it; without a system Chromium, browsing is unavailable on+that device.-The mode is a **driver** that composes with your configured browser backend: it drives Hermes' own headless Chromium, a Nous-subscription cloud browser, Browserbase, Firecrawl, or Browser Use cloud browsers — whichever browser source is selected in `hermes tools` → Browser Automation. The one exception is Camofox, which has no CDP endpoint for the harness to attach to; Camofox setups automatically keep the built-in browser tools.+**Local options** (`~/.hermes/config.yaml`):-**Local browsing uses the packaged Chromium, not your own Chrome.** With no cloud provider or `/browser connect` endpoint configured, Hermes launches the same Chromium that the built-in tools use (installed via `hermes tools` → Browser Automation, driven through agent-browser) and points the Browser Use CLI at it. Your installed Chrome is never touched, so there is no `chrome://inspect` remote-debugging toggle to enable and no "Allow remote debugging?" popup — and it works on headless hosts with no Chrome at all. The browser is shared with the built-in stack's lifecycle: it is closed after `browser.inactivity_timeout`, at exit, and by the orphan sweep. To drive a browser you're signed in to, use `/browser connect` or the [real-profile toggle](#real-profile-browsing-use-your-own-logins).+```yaml+browser:+ executable_path: "" # Chromium binary to launch instead of the packaged one+ user_data_dir: "" # persistent profile directory; "" = fresh profile per session+ chromium_args: [] # extra Chromium command-line flags, e.g. ["--lang=de-DE"]+ headed: false # true = visible window+ command_timeout: 30 # Chromium launch timeout floor (seconds)+ inactivity_timeout: 120 # close an idle browser after N seconds+```-**Concurrent sessions:** `browser_exec` accepts a `session=<name>` argument that isolates browser work per name on every backend. Each name gets its own harness daemon (its own IPC socket, log, and state) and its own browser (a separate packaged Chromium locally, a separate cloud browser on cloud backends) — so parallel subagents or simultaneous chats no longer clobber a single shared connection. Omitting `session` uses the shared default daemon, which is fine for one-at-a-time browsing.+`browser.user_data_dir` keeps cookies and logins across sessions: every session+then shares that one profile directory. Leave it empty for isolated, throwaway+browsing.-To opt out and force the built-in browser tools, use `/browser use off`, or:+### Headed mode (visible browser window)```yaml-# Add to ~/.hermes/config.yamlbrowser:- backend: "off"+ headed: true # default: false```-(`backend: "browser-use"` remains valid to force the mode explicitly.)+Headed mode does two things:-Browser Use's own cloud browsers need `BROWSER_USE_API_KEY`; other browser sources use their existing credentials unchanged.+1. **Launches Chromium with a visible window**, so you can watch the agent work+ and step in manually (sign-in challenges, CAPTCHAs).+2. **Keeps the browser open between turns.** Normally the browser is cleaned up+ after every agent reply; in headed mode the per-turn cleanup is skipped so+ login state stays warm across the conversation.-:::note-Because Browser Use mode executes model-written Python on your machine, the-`browser_exec` tool is only offered to sessions that also have terminal-access. Platforms configured without the terminal toolset (e.g. a locked-down-messaging surface) keep the default browser tools instead.+Idle browsers are still reaped after `browser.inactivity_timeout`, and all of+them close on shutdown. On a display-less host (servers, CI) the browser always+runs headless. Headed mode only affects local browsers — cloud sessions are+unaffected.++## Cloud browsers++:::tip Nous Subscribers+If you have a paid [Nous Portal](https://portal.nousresearch.com) subscription, you can use a cloud browser through the **[Tool Gateway](tool-gateway.md)** without any separate API keys. New installs can run `hermes setup --portal` to log in and turn on every gateway tool at once; existing installs can pick **Nous Subscription** as the browser provider via `hermes model` or `hermes tools`.:::-### Firecrawl cloud mode+Pick a provider in `hermes tools` → Browser Automation. `browser_exec` then+drives that provider's browser exactly as it drives local Chromium.-To use Firecrawl as your cloud browser provider, add:+### Browser Use cloud```bash# Add to ~/.hermes/.env-FIRECRAWL_API_KEY=fc-***+BROWSER_USE_API_KEY=***+```++Get your API key at [browser-use.com](https://browser-use.com). Browser Use Cloud runs managed Chromium with [stealth](https://docs.browser-use.com/cloud/browser/stealth) and [residential proxies](https://docs.browser-use.com/cloud/browser/proxies) enabled by default, includes CAPTCHA solving, and supports [persistent profiles](https://docs.browser-use.com/cloud/guides/authentication) for cookies, localStorage, and saved passwords.++### Browserbase++```bash+# Add to ~/.hermes/.env+BROWSERBASE_API_KEY=***+BROWSERBASE_PROJECT_ID=your-project-id-here```-Get your API key at [firecrawl.dev](https://firecrawl.dev). Then select Firecrawl as your browser provider:+Get your credentials at [browserbase.com](https://browserbase.com). Optional settings:```bash-hermes setup tools-# → Browser Automation → Firecrawl+# Residential proxies for better CAPTCHA solving (default: "true")+BROWSERBASE_PROXIES=true++# Advanced stealth with custom Chromium — requires Scale Plan (default: "false")+BROWSERBASE_ADVANCED_STEALTH=false++# Session reconnection after disconnects — requires paid plan (default: "true")+BROWSERBASE_KEEP_ALIVE=true++# Custom session timeout in seconds (max 21600 = 6 hours) (default: project default)+BROWSERBASE_SESSION_TIMEOUT=1800```-Optional settings:+Browserbase stealth features:++| Feature | Default | Notes |+|---------|---------|-------|+| Basic Stealth | Always on | Random fingerprints, viewport randomization, CAPTCHA solving |+| Residential Proxies | On | Routes through residential IPs for better access |+| Advanced Stealth | Off | Custom Chromium build, requires Scale Plan |+| Keep Alive | On | Session reconnection after network hiccups |++If paid features aren't available on your plan, Hermes automatically falls back — first disabling `keepAlive`, then proxies — so browsing still works on free plans.++### Firecrawl```bash-# Self-hosted Firecrawl instance (default: https://api.firecrawl.dev)+# Add to ~/.hermes/.env+FIRECRAWL_API_KEY=fc-***++# Optional: self-hosted Firecrawl instance (default: https://api.firecrawl.dev)FIRECRAWL_API_URL=http://localhost:3002-# Session TTL in seconds (default: 300)+# Optional: session TTL in seconds (default: 300)FIRECRAWL_BROWSER_TTL=600```+Get your API key at [firecrawl.dev](https://firecrawl.dev), then select **Firecrawl** in `hermes tools` → Browser Automation.++:::note Selecting the provider+The `.env` keys above supply **credentials only**. The active browser is chosen by the `browser.cloud_provider` selection written by `hermes tools` → Browser Automation (`local`, `browserbase`, `browser-use`, `firecrawl`, or `nous` for the Nous Subscription; provider plugins add their own names). Once a selection exists, adding or removing a key does not switch providers — and a selected provider with a missing key errors with guidance to run `hermes tools` instead of silently rerouting. Never-configured setups still autodetect from available credentials.+:::++Cloud sessions consume provider credits. Hermes releases them when the+conversation ends, after `browser.inactivity_timeout`, and on process exit.+### Hybrid routing: cloud for public URLs, local for LAN/localhostWhen a cloud provider is configured, Hermes auto-spawns a **local Chromium sidecar**@@ -140,7 +257,7 @@ the agent can screenshot your dashboard at `http://localhost:3000` AND scrapeThe cloud provider never sees the private URL.The feature is **on by default**. To disable it (all URLs go to the configured-cloud provider, as before):+cloud provider):```yaml# ~/.hermes/config.yaml@@ -154,13 +271,12 @@ With auto-routing disabled, private URLs are rejected with`browser.allow_private_urls: true` (which lets the cloud provider attempt them —usually won't work since Browserbase etc. can't reach your LAN).-Requirements: the local sidecar uses the same `agent-browser` CLI as pure local-mode, so you need it installed (`hermes setup tools → Browser Automation`-auto-installs it). Post-navigation redirects from a public URL onto a private-address are still blocked (you can't use a redirect-to-internal trick to reach-your LAN through the public path).+The sidecar is the same local Chromium described [above](#local-chromium-default),+so it needs that Chromium installed. Post-navigation redirects from a public URL+onto a private address are still blocked (you can't use a redirect-to-internal+trick to reach your LAN through the public path).-### Real profile browsing (use your own logins)+## Real profile browsing (use your own logins)By default, local browsing runs in a clean, throwaway profile — the agent islogged into nothing. Turn on **real profile browsing** to let the agent browse@@ -195,8 +311,7 @@ working while the agent tweets, fills forms, or scrapes on your behalf.(Headless here uses Chrome's *new* headless mode, which reads your normalcookie store, so your logins still load.) If you'd rather watch it work, thesame [headed-mode](#headed-mode-visible-browser-window) toggle applies —-`browser.headed: true` (or `AGENT_BROWSER_HEADED=1`) opens a visible window for-real-profile browsing too. On a display-less host (servers, CI) it always runs+`browser.headed: true` opens a visible window for real-profile browsing too. On a display-less host (servers, CI) it always runsheadless regardless.If your browser has several profiles (say a work profile and a personal one)@@ -254,11 +369,11 @@ up your profile.- **Supported browsers:** Chrome, Edge, Brave, Brave Origin, Chromium (whichever is your OSdefault). A non-Chromium default (e.g. Firefox) gets a fresh browser and a clearmessage rather than a guess at which profile to use.-- **Works on any backend.** On a local backend it's automatic once the toggle- is on. Under a **cloud** browser backend, the agent can still open a+- **Works with any browser source.** Locally it's automatic once the toggle+ is on. Under a **cloud** browser provider, the agent can still open areal-profile local session on demand via the `browser_exec` tool's `local`argument (the tool only exposes that argument when this toggle is on) — the- cloud backend keeps serving everything else.+ cloud provider keeps serving everything else.- **Security framing:** this is a consent-gated convenience, not an isolationboundary. A page the agent visits runs with your real logins, so only enableit when you want the agent acting as you. Off by default.@@ -266,7 +381,7 @@ up your profile.Browser Profile** (the switch sits above the backend options), or inSettings → Config under the `browser` section.-#### Scheduled and unattended runs+### Scheduled and unattended runsA real-profile session lets a `cronjob` drive a site you're already signed into.The snapshot runs headless by default, and the auth files (`Cookies`,@@ -300,219 +415,28 @@ shape — a JSON watch contract written during setup, then one scheduled tick thre-reads it, compares, and alerts on change — though it covers the schedulinghalf, not logins.-### Camofox local mode--[Camofox](https://github.com/jo-inc/camofox-browser) is a self-hosted Node.js server wrapping Camoufox (a Firefox fork with C++ fingerprint spoofing). It provides local anti-detection browsing without cloud dependencies.--```bash-# Clone the Camofox browser server first-git clone https://github.com/jo-inc/camofox-browser-cd camofox-browser--# Build and start with Docker using the default container settings-# (auto-detects arch: aarch64 on M1/M2, x86_64 on Intel)-make up--# Stop and remove the default container-make down--# Force a clean rebuild (for example, after upgrading VERSION/RELEASE)-make reset--# Just download binaries without building-make fetch--# Override arch or version explicitly-make up ARCH=x86_64-make up VERSION=135.0.1 RELEASE=beta.24-```--`make up` starts the default container immediately. If you want custom runtime settings such as a larger Node heap, VNC, or a persistent profile directory, build the image first and then run it yourself:--```bash-# Build the image without starting the default container-make build--# Start with persistence, VNC live view, and a larger Node heap-mkdir -p ~/.camofox-docker-docker run -d \- --name camofox-browser \- --restart unless-stopped \- -p 9377:9377 \- -p 6080:6080 \- -p 5901:5900 \- -e CAMOFOX_PORT=9377 \- -e ENABLE_VNC=1 \- -e VNC_BIND=0.0.0.0 \- -e VNC_RESOLUTION=1920x1080 \- -e MAX_OLD_SPACE_SIZE=2048 \- -v ~/.camofox-docker:/root/.camofox \- camofox-browser:135.0.1-aarch64-```--With VNC enabled, the browser runs in headed mode and can be watched live in your browser at `http://localhost:6080` (noVNC). You can also connect a native VNC client to `localhost:5901`.--If you already ran `make up`, stop and remove that default container before starting the custom one:--```bash-make down-# then run the custom docker run command above-```--Then set in `~/.hermes/.env`:--```bash-CAMOFOX_URL=http://localhost:9377-```--If Camofox is running in Docker and you want it to open web apps served from the host machine, enable loopback rewriting. `CAMOFOX_URL` should still point at the host-published control API, but page URLs such as `http://127.0.0.1:3000` must be opened from inside the container as `http://host.docker.internal:3000`:--```yaml-# ~/.hermes/config.yaml-browser:- camofox:- rewrite_loopback_urls: true- loopback_host_alias: host.docker.internal # default; use a LAN IP if needed-```--Equivalent env vars:--```bash-CAMOFOX_REWRITE_LOOPBACK_URLS=true-CAMOFOX_LOOPBACK_HOST_ALIAS=host.docker.internal-```--The rewrite only applies to page navigation URLs with loopback hosts (`localhost`, `127.0.0.1`, `::1`). It does not change `CAMOFOX_URL`. Leave it disabled for non-Docker Camofox installs, where the browser already runs on the host and loopback URLs are correct.--Or configure via `hermes tools` → Browser Automation → Camofox.--Camofox is selected like any other browser backend: pick **Camofox** in `hermes tools` → Browser Automation, which writes `browser.cloud_provider: camofox` to `config.yaml`. `CAMOFOX_URL` is only the server address — setting it no longer selects the backend by itself once a browser selection exists (never-configured setups still autodetect it).--#### Persistent browser sessions--By default, each Camofox session gets a random identity — cookies and logins don't survive across agent restarts. To enable persistent browser sessions, add the following to `~/.hermes/config.yaml`:--```yaml-browser:- camofox:- managed_persistence: true-```--Then fully restart Hermes so the new config is picked up.--:::warning Nested path matters-Hermes reads `browser.camofox.managed_persistence`, **not** a top-level `managed_persistence`. A common mistake is writing:--```yaml-# ❌ Wrong — Hermes ignores this-managed_persistence: true-```--If the flag is placed at the wrong path, Hermes silently falls back to a random ephemeral `userId` and your login state will be lost on every session.-:::--##### What Hermes does-- Sends a deterministic profile-scoped `userId` to Camofox so the server can reuse the same Firefox profile across sessions.-- Skips server-side context destruction on cleanup, so cookies and logins survive between agent tasks.-- Scopes the `userId` to the active Hermes profile, so different Hermes profiles get different browser profiles (profile isolation).--##### What Hermes does not do-- It does not force persistence on the Camofox server. Hermes only sends a stable `userId`; the server must honor it by mapping that `userId` to a persistent Firefox profile directory.-- If your Camofox server build treats every request as ephemeral (e.g. always calls `browser.newContext()` without loading a stored profile), Hermes cannot make those sessions persist. Make sure you are running a Camofox build that implements userId-based profile persistence.--##### Verify it's working--1. Start Hermes and your Camofox server.-2. Open Google (or any login site) in a browser task and sign in manually.-3. End the browser task normally.-4. Start a new browser task.-5. Open the same site again — you should still be signed in.--If step 5 logs you out, the Camofox server isn't honoring the stable `userId`. Double-check your config path, confirm you fully restarted Hermes after editing `config.yaml`, and verify your Camofox server version supports persistent per-user profiles.--##### Where state lives--Hermes derives the stable `userId` from the profile-scoped directory `~/.hermes/browser_auth/camofox/` (or the equivalent under `$HERMES_HOME` for non-default profiles). The actual browser profile data lives on the Camofox server side, keyed by that `userId`. To fully reset a persistent profile, clear it on the Camofox server and remove the corresponding Hermes profile's state directory.--#### Externally managed Camofox sessions--When another app drives the visible Camofox browser (a desktop assistant, a custom integration, another agent), configure Hermes to operate inside that same identity instead of spawning its own isolated profile.--Three knobs control the behavior:--| Setting | Env var | Effect |-|---------|---------|--------|-| `browser.camofox.user_id` | `CAMOFOX_USER_ID` | Camofox `userId` Hermes uses when creating tabs. Setting this opts the session into "externally managed" mode. |-| `browser.camofox.session_key` | `CAMOFOX_SESSION_KEY` | `sessionKey` (a.k.a. `listItemId`) sent on tab creation. Used to match an existing tab during adoption. Defaults to a per-task value if unset. |-| `browser.camofox.adopt_existing_tab` | `CAMOFOX_ADOPT_EXISTING_TAB` | When true, Hermes calls `GET /tabs?userId=<user_id>` on first use and reuses an existing tab before creating a new one. |--Env vars take precedence over `config.yaml`. Either form works:--```yaml-browser:- camofox:- user_id: shared-camofox- session_key: visible-tab- adopt_existing_tab: true-```--```bash-CAMOFOX_USER_ID=shared-camofox-CAMOFOX_SESSION_KEY=visible-tab-CAMOFOX_ADOPT_EXISTING_TAB=true-```--**What changes when `user_id` is set:**--- Hermes skips destructive cleanup at task end (same as `managed_persistence: true`). The other app's tab/cookies/profile survive.-- Hermes does **not** call `DELETE /sessions/<user_id>` — that endpoint wipes all user data, so it would nuke the external app's session if it fired.--**How tab adoption works (when `adopt_existing_tab: true`):**--1. On the first browser tool call after a process start, Hermes issues `GET /tabs?userId=<user_id>` (5-second timeout).-2. If any tab in the response has `listItemId == session_key`, Hermes adopts the most recently created one in that group.-3. Otherwise, Hermes adopts the most recently created tab for the user (any `listItemId`).-4. If no tabs exist or the request fails, Hermes falls back to creating a new tab on the next operation.--Adoption only fires until `tab_id` is populated for the session. If the external app closes the adopted tab mid-run, the next browser tool call will surface a Camofox error — Hermes does not re-poll for a fresh tab on every call.--**Picking `session_key`:** if you want Hermes to reliably attach to a *specific* existing tab, set `session_key` to the `listItemId` the external app used when creating it. If you leave `session_key` unset and only set `user_id`, Hermes generates a per-task `session_key` (`task_<id>`) — Hermes will share cookies and the profile with the external app, but will open its own tab alongside instead of reusing one.--**Concurrency note:** the external app and Hermes can drive the same Camofox `userId` simultaneously, but Camofox does not coordinate per-tab focus between clients. Coordinate ownership at the application layer (e.g. the external app pauses while Hermes runs).--#### VNC live view--When Camofox runs in headed mode (with a visible browser window), it exposes a VNC port in its health check response. Hermes automatically discovers this and includes the VNC URL in navigation responses, so the agent can share a link for you to watch the browser live.--### Lightpanda local engine+## Lightpanda local engine[Lightpanda](https://lightpanda.io) is an open-source headless browser written from scratch. It starts instantly, runs 9x faster and uses 16x less memory than Chrome, which matters for agents that live on small VMs for long stretches.-Lightpanda is a **local engine** (a browser source, like "Local Browser"), not a cloud provider. Install the binary and put it on your `PATH` (see the [Lightpanda installation guide](https://lightpanda.io/docs/run-locally/installation/one-liner)), then pick **Lightpanda** in `hermes tools` → Browser Automation, or set:+Lightpanda is a **local engine** (a browser source, like local Chromium), not a cloud provider. Install the binary and put it on your `PATH` (see the [Lightpanda installation guide](https://lightpanda.io/docs/run-locally/installation/one-liner)), then pick **Lightpanda** in `hermes tools` → Browser Automation, or set:```yaml# Add to ~/.hermes/config.yamlbrowser:cloud_provider: local- engine: lightpanda-```--Or via environment variable:--```bash-AGENT_BROWSER_ENGINE=lightpanda+ engine: lightpanda # auto (default, Chromium) | lightpanda```-The engine works with both browser drivers:+Hermes launches `lightpanda serve --host 127.0.0.1 --port <free>` itself — one process per `browser_exec` session name (or per task) — and points `browser_exec` at it. No Chromium or Node.js is needed. The process is reaped after `browser.inactivity_timeout`, on exit, and by the orphan sweep if Hermes crashes. All of these processes share one on-disk HTTP cache at `$HERMES_HOME/cache/browser-use/lightpanda/http-cache`, so repeat visits skip re-downloading assets. Hermes passes the cache flag only when the installed Lightpanda supports it (0.3.x+); older binaries simply run without a cache. To clear it, stop your Lightpanda sessions first, then delete that directory.-- **Browser Use mode (the default).** Hermes launches `lightpanda serve --host 127.0.0.1 --port <free>` itself — one process per `browser_exec` session name (or per task) — and points the Browser Use CLI at it. No Chromium, Playwright or Node.js is needed. The process is reaped after `browser.inactivity_timeout`, on exit, and by the orphan sweep if Hermes crashes. All of these processes share one on-disk HTTP cache at `$HERMES_HOME/cache/browser-use/lightpanda/http-cache`, so repeat visits skip re-downloading assets. Hermes passes the cache flag only when the installed Lightpanda supports it (0.3.x+); older binaries simply run without a cache. To clear it, stop your Lightpanda sessions first, then delete that directory. Lightpanda has no graphical renderer, so `capture_screenshot()` is unavailable and the tool description tells the model to work text-first; it also holds one page per session, so the model is told to call `new_tab()` once and `goto_url()` afterwards (tracked upstream in [lightpanda-io/browser#1962](https://github.com/lightpanda-io/browser/issues/1962)).-- **Built-in browser tools** (`/browser use off`). Hermes drives Lightpanda through `agent-browser --engine lightpanda` over CDP, the same way it drives local Chrome, with **automatic Chrome fallback**: Lightpanda handles the actions it supports (navigate, snapshot, click, type, scroll, back, press, eval) and Hermes transparently retries on Chrome for anything it doesn't. Screenshots and `browser_vision` are routed straight to Chrome.+Lightpanda has no graphical renderer, so `capture_screenshot()` is unavailable and the tool description tells the model to work text-first; it also holds one page per session, so the model is told to call `new_tab()` once and `goto_url()` afterwards (tracked upstream in [lightpanda-io/browser#1962](https://github.com/lightpanda-io/browser/issues/1962)).-**When the engine is ignored.** `browser.engine` is the lowest-precedence browser setting: a cloud provider (including the Nous subscription browser — and on never-configured setups, any `BROWSERBASE_API_KEY` / `BROWSER_USE_API_KEY` in `~/.hermes/.env` auto-selects one), Camofox, a `browser.cdp_url` / `/browser connect` override, or `browser.use_real_profile` all take precedence. Picking Lightpanda in `hermes tools` writes `cloud_provider: local` for you; `/browser status` and `hermes doctor` report when the engine is configured but shadowed, and by what.+**When the engine is ignored.** `browser.engine` is the lowest-precedence browser setting: a cloud provider (including the Nous subscription browser — and on never-configured setups, any `BROWSERBASE_API_KEY` / `BROWSER_USE_API_KEY` in `~/.hermes/.env` auto-selects one), a `browser.cdp_url` / `/browser connect` override, or `browser.use_real_profile` all take precedence. Picking Lightpanda in `hermes tools` writes `cloud_provider: local` for you; `/browser status` and `hermes doctor` report when the engine is configured but shadowed, and by what.-### Local Chromium-family browser via CDP (`/browser connect`)+## Your own browser via CDP (`/browser connect`)-Instead of a cloud provider, you can attach Hermes browser tools to your own running Chrome, Brave, Chromium, or Edge instance via the Chrome DevTools Protocol (CDP). This is useful when you want to see what the agent is doing in real-time, interact with pages that require your own cookies/sessions, or avoid cloud browser costs.+Instead of the Chromium Hermes launches or a cloud provider, you can attach the browser tools to your own running Chrome, Brave, Chromium, or Edge instance via the Chrome DevTools Protocol (CDP). This is useful when you want to see what the agent is doing in real-time, interact with pages that require your own cookies/sessions, or avoid cloud browser costs.:::note`/browser connect` is an **interactive-CLI slash command** — it is not dispatched by the gateway. If you try to run it inside a WebUI, Telegram, Discord, or other gateway chat, the message will be sent to the agent as plain text and the command will not execute. Start Hermes from the terminal (`hermes` or `hermes chat`) and issue `/browser connect` there.@@ -571,7 +495,7 @@ Then launch the Hermes CLI and run `/browser connect`.A dedicated profile starts out signed out of everything. If you want the agent to browse with your existing logins *and* no approval dialog, use [`browser.use_real_profile`](#real-profile-browsing-use-your-own-logins) instead: it snapshots your active profile into a copy and drives that, which is a non-default user-data-dir and so never triggers either mechanism.:::-When connected via CDP, all browser tools (`browser_navigate`, `browser_click`, etc.) operate on your live browser instance instead of spinning up a cloud session.+When connected, `browser_exec`, `browser_cdp`, `browser_dialog` and `browser_vault` all drive your live browser instead of launching their own. The endpoint can also be set persistently with `browser.cdp_url` in `config.yaml` or the `BROWSER_CDP_URL` environment variable.### WSL2 + Windows Chrome: prefer MCP over `/browser connect`@@ -589,178 +513,26 @@ See the MCP guide for the practical setup:- [Use MCP with Hermes](../../guides/use-mcp-with-hermes.md#wsl2-bridge-hermes-in-wsl-to-windows-chrome)-### Local browser mode--If you do **not** set any cloud credentials and don't use `/browser connect`, Hermes can still use the browser tools through a local Chromium install driven by `agent-browser`.--### Optional Environment Variables--```bash-# Residential proxies for better CAPTCHA solving (default: "true")-BROWSERBASE_PROXIES=true--# Advanced stealth with custom Chromium — requires Scale Plan (default: "false")-BROWSERBASE_ADVANCED_STEALTH=false--# Session reconnection after disconnects — requires paid plan (default: "true")-BROWSERBASE_KEEP_ALIVE=true--# Custom session timeout in seconds (max 21600 = 6 hours) (default: project default)-# Examples: 600 (10min), 1800 (30min), 21600 (6h max)-BROWSERBASE_SESSION_TIMEOUT=1800--# Inactivity timeout before auto-cleanup in seconds (default: 120)-BROWSER_INACTIVITY_TIMEOUT=120--# Local browser engine. Equivalent to browser.engine in config.yaml. In-# Browser Use mode (default) "lightpanda" makes Hermes spawn `lightpanda serve`;-# with the built-in tools it is passed to agent-browser as --engine.-# auto — Chrome (default)-# lightpanda — Lightpanda-# chrome — force Chrome explicitly-AGENT_BROWSER_ENGINE=auto--# Extra Chromium launch flags (comma- or newline-separated). Hermes auto-injects-# `--no-sandbox,--disable-dev-shm-usage` when it detects root or AppArmor-restricted-# unprivileged user namespaces (Ubuntu 23.10+, DGX Spark, many container images),-# so most users don't need to set this. Set it manually only if you need a flag-# Hermes doesn't add automatically; setting it disables the auto-injection.-AGENT_BROWSER_ARGS=--no-sandbox-```--### Install agent-browser CLI--The installers and `hermes update` install `agent-browser` and its pinned-Chromium through Hermes's package manager by default. If you installed with-`--skip-browser` / `-SkipBrowser`, or the download failed, install them with:--```bash-hermes pm install agent-browser-```--This also undoes an earlier `--skip-browser` choice, so updates keep the-browser tools current. An `agent-browser` already on your `PATH` also works.-On Linux, Chromium may also need system libraries-(`npx playwright install-deps chromium`). On Android/Termux, run-`npm install -g agent-browser && agent-browser install` instead.--:::info-The `browser` toolset must be included in your config's `toolsets` list or enabled via `hermes config set toolsets '["hermes-cli", "browser"]'`.-:::--## Available Tools--### `browser_navigate`--Navigate to a URL. Must be called before any other browser tool. Initializes the Browserbase session.--```-Navigate to https://github.com/NousResearch-```--:::tip-For simple information retrieval, prefer `web_search` or `web_extract` — they are faster and cheaper. Use browser tools when you need to **interact** with a page (click buttons, fill forms, handle dynamic content).-:::--### `browser_snapshot`--Get a text-based snapshot of the current page's accessibility tree. Returns interactive elements with ref IDs like `@e1`, `@e2` for use with `browser_click` and `browser_type`.--- **`full=false`** (default): Compact view showing only interactive elements-- **`full=true`**: Complete page content--Snapshots larger than `browser.snapshot_threshold` (default 15,000 characters — the same per-page budget as `web_extract`) are automatically truncated at line boundaries; no LLM summarization is involved. When that happens, the complete snapshot is saved to `~/.hermes/cache/web/` and the tool output includes the file path plus a ready-to-use `read_file` call, so the agent can page through the full accessibility tree — including element refs beyond the cut — without re-snapshotting.+## Bot Desktop screen-Increase the threshold for long pages where more source content should reach the agent inline:--```yaml-# ~/.hermes/config.yaml-browser:- snapshot_threshold: 30000-```--You can also run `hermes config set browser.snapshot_threshold 30000`. The setting applies to both explicit `browser_snapshot` calls and the automatic snapshot returned after navigation, including the Camofox backend (minimum 1000). Restart the current Hermes session after changing it so the browser config cache reloads.--### `browser_click`--Click an element identified by its ref ID from the snapshot.--```-Click @e5 to press the "Sign In" button-```--### `browser_type`--Type text into an input field. Clears the field first, then types the new text.--```-Type "hermes agent" into the search field @e3-```--### `browser_scroll`--Scroll the page up or down to reveal more content.--```-Scroll down to see more results-```+On a gateway with the [Bot Desktop screen](bot-screen.md) running, the bot's+browser and the dock's **Browser** icon are the same headed Chromium with one+persistent profile per bot, so you can take over, sign in to a site, and hand+the session back to the agent. See that page for the profile location and how+`browser.executable_path` / `browser.user_data_dir` apply there.-### `browser_press`+## Companion tools-Press a keyboard key. Useful for submitting forms or navigation.--```-Press Enter to submit the form-```--Supported keys: `Enter`, `Tab`, `Escape`, `ArrowDown`, `ArrowUp`, and more.--### `browser_back`--Navigate back to the previous page in browser history.--### `browser_get_images`--List all images on the current page with their URLs and alt text. Useful for finding images to analyze.--### `browser_vision`--Take a screenshot and analyze it with vision AI. Use this when text snapshots don't capture important visual information — especially useful for CAPTCHAs, complex layouts, or visual verification challenges.--The screenshot is saved persistently and the file path is returned alongside the AI analysis. On messaging platforms (Telegram, Discord, Slack, WhatsApp), you can ask the agent to share the screenshot — it will be sent as a native photo attachment via the `MEDIA:` mechanism.--```-What does the chart on this page show?-```--Screenshots are stored in `~/.hermes/cache/screenshots/` and automatically cleaned up after 24 hours.--### `browser_console`--Get browser console output (log/warn/error messages) and uncaught JavaScript exceptions from the current page. Essential for detecting silent JS errors that don't appear in the accessibility tree.--```-Check the browser console for any JavaScript errors-```--Use `clear=True` to clear the console after reading, so subsequent calls only show new messages.--`browser_console` also evaluates JavaScript when called with an `expression` argument — same shape as DevTools console, the result comes back parsed (JSON-serialized objects become dicts; primitive values stay primitive).--```-browser_console(expression="document.querySelector('h1').textContent")-browser_console(expression="JSON.stringify(performance.timing)")-```--When a CDP supervisor is active for the current session (typical for any session that's run `browser_navigate` against a CDP-capable backend), evaluation runs over the supervisor's persistent WebSocket — no subprocess startup cost. Falls through to the standard agent-browser CLI path otherwise. Behaviour is identical either way; only latency changes.--Evaluation is unrestricted by default — the agent can use `fetch`, read storage, query form values, and run any DOM extraction. Requests targeting private/internal addresses are still blocked on non-local backends (the SSRF guard is independent of this setting). If you browse hostile pages with a logged-in profile and want a strict denylist over sensitive JS primitives (cookies, storage, clipboard, network calls, form values), opt in with `browser.restrict_evaluate: true` in `config.yaml`. Note the denylist matches primitive *names*, so it also blocks legitimate expressions that merely contain words like `fetch` or `cookie`.+`browser_cdp`, `browser_dialog` and `browser_vault` operate on the same browser+session `browser_exec` drives — local Chromium, a cloud browser, or the browser+attached with `/browser connect`.### `browser_cdp`-Raw Chrome DevTools Protocol passthrough — the escape hatch for browser operations not covered by the other tools. Use for native dialog handling, iframe-scoped evaluation, cookie/network control, or any CDP verb the agent needs.--**Only available when a CDP endpoint is reachable at session start** — meaning `/browser connect` has attached to a running Chrome, Brave, Chromium, or Edge browser, or `browser.cdp_url` is set in `config.yaml`. The default local agent-browser mode, Camofox, and cloud providers (Browserbase, Browser Use, Firecrawl) do not currently expose CDP to this tool — cloud providers have per-session CDP URLs but live-session routing is a follow-up.+Raw Chrome DevTools Protocol passthrough — the escape hatch for one-off+operations: native dialog handling, iframe-scoped evaluation, cookie/network+control, or any CDP verb the agent needs. (Inside `browser_exec`, the `cdp()`+helper covers the same ground for multi-step work.)**CDP method reference:** https://chromedevtools.github.io/devtools-protocol/ — the agent can `web_extract` a specific method's page to look up parameters and return shape.@@ -786,132 +558,89 @@ browser_cdp(method="Network.getAllCookies")Browser-level methods (`Target.*`, `Browser.*`, `Storage.*`) omit `target_id`. Page-level methods (`Page.*`, `Runtime.*`, `DOM.*`, `Emulation.*`) require a `target_id` from `Target.getTargets`. Each stateless call is independent — sessions do not persist between calls.-**Cross-origin iframes:** pass `frame_id` (from `browser_snapshot.frame_tree.children[]` where `is_oopif=true`) to route the CDP call through the supervisor's live session for that iframe. This is how `Runtime.evaluate` inside a cross-origin iframe works on Browserbase, where stateless CDP connections would hit signed-URL expiry. Example:--```-browser_cdp(- method="Runtime.evaluate",- params={"expression": "document.title", "returnByValue": True},- frame_id="<frame_id from browser_snapshot>",-)-```--Same-origin iframes don't need `frame_id` — use `document.querySelector('iframe').contentDocument` from a top-level `Runtime.evaluate` instead.+**Cross-origin iframes:** pass the `frame_id` of an out-of-process (cross-origin) iframe to route the call through the CDP supervisor's live session for that frame. This is how `Runtime.evaluate` inside a cross-origin iframe works on Browserbase, where stateless CDP connections would hit signed-URL expiry. Same-origin iframes don't need `frame_id` — use `document.querySelector('iframe').contentDocument` from a top-level `Runtime.evaluate` instead.### `browser_dialog`-Responds to a native JS dialog (`alert` / `confirm` / `prompt` / `beforeunload`). Before this tool existed, dialogs would silently block the page's JavaScript thread and subsequent `browser_*` calls would hang or throw; now the agent sees pending dialogs in `browser_snapshot` output and responds explicitly.--**Workflow:**-1. Call `browser_snapshot`. If a dialog is blocking the page, it shows up as `pending_dialogs: [{"id": "d-1", "type": "alert", "message": "..."}]`.-2. Call `browser_dialog(action="accept")` or `browser_dialog(action="dismiss")`. For `prompt()` dialogs, pass `prompt_text="..."` to supply the response.-3. Re-snapshot — `pending_dialogs` is empty; the page's JS thread has resumed.--**Detection happens automatically** via a persistent CDP supervisor — one WebSocket per task that subscribes to Page/Runtime/Target events. The supervisor also populates a `frame_tree` field in the snapshot so the agent can see the iframe structure of the current page, including cross-origin (OOPIF) iframes.--**Availability matrix:**+Responds to a native JS dialog (`alert` / `confirm` / `prompt` / `beforeunload`). An open dialog blocks the page's JavaScript thread, so browser work on that page stalls until it is answered.-| Backend | Detection via `pending_dialogs` | Response (`browser_dialog` tool) |-|---|---|---|-| Local Chrome via `/browser connect` or `browser.cdp_url` | ✓ | ✓ full workflow |-| Browserbase | ✓ | ✓ full workflow (via injected XHR bridge) |-| Camofox / default local agent-browser | ✗ | ✗ (no CDP endpoint) |+A persistent **CDP supervisor** — one WebSocket per task subscribed to Page/Runtime/Target events — detects dialogs as they open. The agent answers with `browser_dialog(action="accept")` or `browser_dialog(action="dismiss")`; for `prompt()` dialogs it passes `prompt_text="..."`, and when more than one dialog is queued it passes the `dialog_id` to pick one. The page's JS thread then resumes.-**How it works on Browserbase.** Browserbase's CDP proxy auto-dismisses real native dialogs server-side within ~10ms, so we can't use `Page.handleJavaScriptDialog`. The supervisor injects a small script via `Page.addScriptToEvaluateOnNewDocument` that overrides `window.alert`/`confirm`/`prompt` with a synchronous XHR. We intercept those XHRs via `Fetch.enable` — the page's JS thread stays blocked on the XHR until we call `Fetch.fulfillRequest` with the agent's response. `prompt()` return values round-trip back into page JS unchanged.+**How it works on Browserbase.** Browserbase's CDP proxy auto-dismisses real native dialogs server-side within ~10ms, so `Page.handleJavaScriptDialog` can't be used. The supervisor injects a small script via `Page.addScriptToEvaluateOnNewDocument` that overrides `window.alert`/`confirm`/`prompt` with a synchronous XHR, and intercepts those XHRs via `Fetch.enable` — the page's JS thread stays blocked on the XHR until the supervisor calls `Fetch.fulfillRequest` with the agent's response. `prompt()` return values round-trip back into page JS unchanged.**Dialog policy** is configured in `config.yaml` under `browser.dialog_policy`:| Policy | Behavior ||--------|----------|-| `must_respond` (default) | Capture, surface in snapshot, wait for explicit `browser_dialog()` call. Safety auto-dismiss after `browser.dialog_timeout_s` (default 300s) so a buggy agent can't stall forever. |-| `auto_dismiss` | Capture, dismiss immediately. Agent still sees the dialog in `browser_state` history but doesn't have to act. |+| `must_respond` (default) | Capture the dialog and wait for an explicit `browser_dialog()` call. Safety auto-dismiss after `browser.dialog_timeout_s` (default 300s) so a buggy agent can't stall forever. |+| `auto_dismiss` | Capture, dismiss immediately. The agent doesn't have to act. || `auto_accept` | Capture, accept immediately. Useful when navigating pages with aggressive `beforeunload` prompts. |-**Frame tree** inside `browser_snapshot.frame_tree` is capped to 30 frames and OOPIF depth 2 to keep payloads bounded on ad-heavy pages. A `truncated: true` flag surfaces when limits were hit; agents needing the full tree can use `browser_cdp` with `Page.getFrameTree`.+### `browser_vault`-## Practical Examples+Uses saved logins, passwords, cards, addresses and one-time codes on the+current page without the secrets ever entering the conversation. The agent+calls `browser_vault(action="list")` to see saved items as handles, then `fill`,+`save_login`, `enter_code` or `unlock` (1Password / Bitwarden). Fills are+refused unless the page origin matches the saved item. See the+[credential vault](credential-vault.md) page for setup, password-manager+backends, and headless use.-### Filling Out a Web Form+## Turning browsing off-```-User: Sign up for an account on example.com with my email [email protected]+There is no config switch for the browser — disable the `browser` toolset+instead. Run `hermes tools` and untick **Browser Automation** for the platforms+that shouldn't browse, or from a script:-Agent workflow:-1. browser_navigate("https://example.com/signup")-2. browser_snapshot() → sees form fields with refs-3. browser_type(ref="@e3", text="[email protected]")-4. browser_type(ref="@e5", text="SecurePass123")-5. browser_click(ref="@e8") → clicks "Create Account"-6. browser_snapshot() → confirms success+```bash+hermes tools disable browser # CLI+hermes tools disable browser --platform telegram # one gateway platform```-### Researching Dynamic Content+`browser_exec` also disappears from any session without the `terminal` toolset.-```-User: What are the top trending repos on GitHub right now?+## Camofox-Agent workflow:-1. browser_navigate("https://github.com/trending")-2. browser_snapshot(full=true) → reads trending repo list-3. Returns formatted results-```+Camofox moved to a plugin: `hermes plugins install camofox`. Existing Camofox+setups are migrated automatically on update.-## Session Recording+## Practical examples-Automatically record browser sessions as WebM video files:+### Filling out a web form-```yaml-browser:- record_sessions: true # default: false```+User: Sign up for an account on example.com with my email [email protected]-When enabled, recording starts automatically on the first `browser_navigate` and saves to `~/.hermes/browser_recordings/` when the session closes. Works in both local and cloud (Browserbase) modes. Recordings older than 72 hours are automatically cleaned up.--## Headed Mode (Visible Browser Window)--By default, the local browser runs headless. Enable headed mode to get a visible Chromium window you can watch and interact with:--```yaml-browser:- headed: true # default: false+Agent: browser_exec(code="""+# Opening the signup form+new_tab("https://example.com/signup")+wait_for_load()+fill_input("input[name=email]", "[email protected]")+js("document.querySelector('button[type=submit]').click()")+wait_for_load()+print(page_info())+""")```-Or via environment variable: `AGENT_BROWSER_HEADED=1`.--Headed mode does two things:--1. **Launches Chromium with a visible window** (passes `--headed` to agent-browser in local mode).-2. **Keeps the window open between turns.** Normally the browser session is cleaned up after every agent reply; in headed mode the per-turn cleanup is skipped so you can watch the agent work, intervene manually (sign-in challenges, CAPTCHAs), and keep login state warm across the conversation.--Idle sessions are still reaped after `browser.inactivity_timeout` (default 120s of no browser activity), and all sessions are closed on shutdown. Headed mode only affects the local browser — cloud sessions (Browserbase) are unaffected.--## Stealth Features+For the password, the agent uses `browser_vault` (`save_login` prompts you in a+masked field) instead of typing a secret itself.-Browserbase provides automatic stealth capabilities:+### Researching dynamic content-| Feature | Default | Notes |-|---------|---------|-------|-| Basic Stealth | Always on | Random fingerprints, viewport randomization, CAPTCHA solving |-| Residential Proxies | On | Routes through residential IPs for better access |-| Advanced Stealth | Off | Custom Chromium build, requires Scale Plan |-| Keep Alive | On | Session reconnection after network hiccups |--:::note-If paid features aren't available on your plan, Hermes automatically falls back — first disabling `keepAlive`, then proxies — so browsing still works on free plans.-:::--## Session Management+```+User: What are the top trending repos on GitHub right now?-- Each task gets an isolated browser session via Browserbase-- Sessions are automatically cleaned up after inactivity (default: 2 minutes)-- A background thread checks every 30 seconds for stale sessions-- Emergency cleanup runs on process exit to prevent orphaned sessions-- Sessions are released via the Browserbase API (`REQUEST_RELEASE` status)+Agent: browser_exec(code="""+# Reading GitHub trending+new_tab("https://github.com/trending")+wait_for_load()+print(js("[...document.querySelectorAll('article h2 a')].map(a => a.textContent.replace(/\\s+/g, ' ').trim())"))+""")+```## Limitations-- **Text-based interaction** — relies on accessibility tree, not pixel coordinates-- **Snapshot size** — large pages are truncated at `browser.snapshot_threshold` (default 15,000 characters, matching `web_extract`; no LLM summarization); the complete snapshot is saved to `~/.hermes/cache/web/` and the output points at it for `read_file` paging-- **Session timeout** — cloud sessions expire based on your provider's plan settings-- **Cost** — cloud sessions consume provider credits; sessions are automatically cleaned up when the conversation ends or after inactivity. Use `/browser connect` for free local browsing.-- **No file downloads** — cannot download files from the browser+- **Session timeout** — cloud sessions expire based on your provider's plan settings.+- **Cost** — cloud sessions consume provider credits; sessions are cleaned up when the conversation ends or after inactivity. Local Chromium and `/browser connect` are free.+- **Lightpanda** — no screenshots and one page per session.+- **No terminal, no browser** — `browser_exec` runs Python, so sessions without the `terminal` toolset don't get it.diff --git a/website/docs/user-guide/features/codex-app-server-runtime.md b/website/docs/user-guide/features/codex-app-server-runtime.mdindex 60b865ace05..db80c5d40b4 100644--- a/website/docs/user-guide/features/codex-app-server-runtime.md+++ b/website/docs/user-guide/features/codex-app-server-runtime.md@@ -18,7 +18,7 @@ Not using OpenAI Codex? `hermes setup --portal` configures a non-Codex backend w- Run OpenAI agent turns against your **ChatGPT subscription** (no API key required) using the same auth flow Codex CLI uses.- Use **Codex's own toolset and sandbox** — `shell` for terminal/read/write/search, `apply_patch` for structured edits, `update_plan` for planning, all running inside seatbelt/landlock sandboxing.- **Native Codex plugins** — Linear, GitHub, Gmail, Calendar, Canva, etc. — installed via `codex plugin` are auto-migrated and active in your Hermes session.-- **Hermes' richer tools come along** — web_search, web_extract, browser automation, vision, image generation, skills, and TTS work via an MCP callback. Codex calls back into Hermes for tools it doesn't have built in.+- **Hermes' richer tools come along** — web_search, web_extract, vision, image generation, skills, and TTS work via an MCP callback. Codex calls back into Hermes for tools it doesn't have built in.- **Memory and skill nudges keep working** — Codex's events are projected into Hermes' message shape so the self-improvement loop sees a normal-looking transcript.- **Your Hermes persona rides along** — the composed system prompt (SOUL.md, MEMORY.md/USER.md, per-channel `system_prompt` overrides) is sent to the codex thread once as developer instructions when the thread starts, and Codex's built-in personality is disabled so it cannot compete with yours.@@ -61,7 +61,6 @@ What's NOT migrated:Hermes registers itself as an MCP server so codex can call back for tools codex doesn't ship with. Available via the callback:- **`web_search`** / **`web_extract`** — Firecrawl-backed; tends to be cleaner than scraping for structured content.-- **`browser_navigate` / `browser_click` / `browser_type` / `browser_press` / `browser_snapshot` / `browser_scroll` / `browser_back` / `browser_get_images` / `browser_console` / `browser_vision`** — full browser automation via Camofox or Browserbase.- **`vision_analyze`** — call a separate vision model to inspect an image (different from codex's `view_image` which loads it into the conversation).- **`image_generate`** — image generation through Hermes' image_gen plugin chain.- **`skill_view` / `skills_list`** — read from Hermes' skill library.@@ -93,7 +92,7 @@ These four Hermes tools require the running AIAgent context (mid-loop state) toWhat works inside a codex-runtime worker:- Codex's full toolset (shell, apply_patch, update_plan, view_image, web_search) — the worker does its actual task work natively- The migrated codex plugins — Linear, GitHub, etc.-- The Hermes tool callback for browser_*, vision, image_gen, skills, TTS+- The Hermes tool callback for web, vision, image_gen, skills, TTSWhat also works because the MCP callback exposes them:- **`kanban_complete` / `kanban_request_review` / `kanban_request_changes` / `kanban_block` / `kanban_comment` / `kanban_heartbeat`** — the worker handoff tools. These read `HERMES_KANBAN_TASK` from env (set by the dispatcher), gate access correctly, and write to the per-board SQLite DB pinned by `HERMES_KANBAN_DB`. Without these in the callback, a worker on this runtime could do its task but couldn't report back, hanging until the dispatcher's timeout.@@ -113,7 +112,7 @@ The kanban tools are gated by `HERMES_KANBAN_TASK` env var the dispatcher sets| `delegate_task` subagents | yes | not available — needs agent loop context || `memory`, `session_search`, `todo` | yes | not available — needs agent loop context || `web_search`, `web_extract` | yes | yes (via MCP callback) |-| Browser automation (Camofox/Browserbase) | yes | yes (via MCP callback) |+| Browser automation (`browser_exec`, `browser_cdp`, `browser_dialog`, `browser_vault`) | yes | not available — not exposed through the MCP callback || `vision_analyze`, `image_generate` | yes | yes (via MCP callback) || Image attachments in the user turn (screenshots, pasted images, `/image`) | yes (native multimodal) | yes — sent natively as app-server image inputs (data/http URLs) or local-image paths, never flattened to a text marker || `skill_view`, `skills_list` | yes | yes (via MCP callback) |@@ -425,7 +424,7 @@ What's NOT migrated:## Hermes tool callback (the new MCP server)-Codex's built-in toolset covers shell/file ops/patches but doesn't have web search, browser automation, vision, image generation, etc. To keep those usable in a codex turn, Hermes registers itself as an MCP server in `~/.codex/config.toml`:+Codex's built-in toolset covers shell/file ops/patches but doesn't have web search, vision, image generation, etc. To keep those usable in a codex turn, Hermes registers itself as an MCP server in `~/.codex/config.toml`:```toml[mcp_servers.hermes-tools]@@ -438,9 +437,9 @@ tool_timeout_sec = 600.0When the model calls `web_search` (or another exposed Hermes tool), codex spawns the `hermes_tools_mcp_server` subprocess via stdio, the request is dispatched through `model_tools.handle_function_call()`, and the result is projected back to codex like any other MCP response.-**Tools available via the callback:** `web_search`, `web_extract`, `browser_navigate`, `browser_click`, `browser_type`, `browser_press`, `browser_snapshot`, `browser_scroll`, `browser_back`, `browser_get_images`, `browser_console`, `browser_vision`, `vision_analyze`, `image_generate`, `skill_view`, `skills_list`, `text_to_speech`.+**Tools available via the callback:** `web_search`, `web_extract`, `vision_analyze`, `image_generate`, `skill_view`, `skills_list`, `text_to_speech`.-**Tools NOT available:** `delegate_task`, `memory`, `session_search`, `todo`. These need the running AIAgent context to dispatch (mid-loop state) and a stateless MCP callback can't drive them. Use the default Hermes runtime (`/codex-runtime auto`) when you need these.+**Tools NOT available:** `delegate_task`, `memory`, `session_search`, `todo`, and the browser tools. These need the running AIAgent context to dispatch (mid-loop state) and a stateless MCP callback can't drive them. Use the default Hermes runtime (`/codex-runtime auto`) when you need these.## Disabling@@ -517,7 +516,7 @@ If you find a bug, [open an issue](https://github.com/NousResearch/hermes-agent/▼┌──────────────────────────────────────────────────────────┐│ hermes_tools_mcp_server.py (subprocess on demand) │- │ web_search, web_extract, browser_*, vision_analyze, │+ │ web_search, web_extract, vision_analyze, ││ image_generate, skill_view, skills_list, text_to_speech│└──────────────────────────────────────────────────────────┘```diff --git a/website/docs/user-guide/features/tool-gateway.md b/website/docs/user-guide/features/tool-gateway.mdindex e5a9c7d85a6..47135fd6b9b 100644--- a/website/docs/user-guide/features/tool-gateway.md+++ b/website/docs/user-guide/features/tool-gateway.md@@ -22,7 +22,7 @@ The Tool Gateway is included with every paid [Nous Portal](https://portal.nousre| 🔍 | **Web search & extract** | Agent-grade web search and full-page extraction, managed by Nous. No rate limits to worry about — the gateway handles scaling. || 🎨 | **Image generation** | One **Nous Subscription** row spanning the FAL catalog, the native Krea models, and Nous Portal image models: **Krea 3**, **FLUX 2**, **GPT Image**, **Nano Banana**, **Seedream**, **Ideogram**, **Recraft**, **Qwen**, **Krea 2**, and more. Pick the model once in `hermes tools`, which shows the live list. || 🔊 | **Text-to-speech** | OpenAI TTS voices wired into the `text_to_speech` tool. Drop voice notes into Telegram, generate audio for pipelines, narrate anything. |-| 🌐 | **Cloud browser automation** | Headless Chromium sessions via Browser Use. `browser_navigate`, `browser_click`, `browser_type`, `browser_vision` — all the agent-driving primitives, no Browserbase account required. |+| 🌐 | **Cloud browser automation** | Headless cloud Chromium sessions via Browser Use, driven by `browser_exec` over CDP — no Browserbase account required. |All four are pay-as-you-use billed against your Nous subscription. Use any combination — run the gateway for web and images while keeping your own ElevenLabs key for TTS, or route everything through Nous.@@ -88,8 +88,8 @@ Some accounts are also entitled to a **free tool pool** — a small managed-toolPicking a Nous model (`hermes model`) offers a per-tool checklist of gateway backends. Its behavior respects your existing setup:-- Tools you've explicitly pointed at another backend (e.g. `web.backend: searxng`, `browser.cloud_provider: camofox`) are **never offered** — your selection can't be accidentally overwritten.-- Tools configured via environment variables alone (e.g. `SEARXNG_URL`, `CAMOFOX_URL`) are offered **unchecked**, labeled to keep your own backend.+- Tools you've explicitly pointed at another backend (e.g. `web.backend: searxng`, `browser.cloud_provider: browserbase`) are **never offered** — your selection can't be accidentally overwritten.+- Tools configured via environment variables alone (e.g. `SEARXNG_URL`, `BROWSER_USE_API_KEY`) are offered **unchecked**, labeled to keep your own backend.- Only genuinely unconfigured tools come pre-checked.- Declines stick: if you submit the checklist with a tool unchecked, it won't be pre-checked on future Nous model swaps (stored in `tool_gateway_declined_tools` in `config.yaml`; checking it later clears the decline).diff --git a/website/docs/user-guide/features/tools.md b/website/docs/user-guide/features/tools.mdindex f3bb93f4c82..9059cffeefc 100644--- a/website/docs/user-guide/features/tools.md+++ b/website/docs/user-guide/features/tools.md@@ -27,7 +27,7 @@ High-level categories:| **Web** | `web_search`, `web_extract` | Search the web and extract page content. || **X Search** | `x_search` | Search X (Twitter) posts and threads via xAI's built-in `x_search` Responses tool — gated on xAI credentials (SuperGrok OAuth or `XAI_API_KEY`); off by default, opt in via `hermes tools` → 🐦 X (Twitter) Search. || **Terminal & Files** | `terminal`, `process`, `read_file`, `patch` | Execute commands and manipulate files. |-| **Browser** | `browser_navigate`, `browser_snapshot`, `browser_vision` | Interactive browser automation with text and vision support. |+| **Browser** | `browser_exec`, `browser_cdp`, `browser_dialog`, `browser_vault` | Browser automation: `browser_exec` drives Chromium with Python over CDP (screenshots included). The Camofox browser is a separate catalog plugin (`hermes plugins install camofox`). || **Media** | `vision_analyze`, `image_generate`, `text_to_speech` | Multimodal analysis and generation. || **Agent orchestration** | `todo`, `clarify`, `execute_code`, `delegate_task` | Planning, clarification, code execution, and subagent delegation. || **Memory & recall** | `memory`, `session_search` | Persistent memory and session search. |diff --git a/website/docs/user-guide/features/web-search.md b/website/docs/user-guide/features/web-search.mdindex adfb43dfc75..2d52120f738 100644--- a/website/docs/user-guide/features/web-search.md+++ b/website/docs/user-guide/features/web-search.md@@ -66,7 +66,7 @@ Each provider dispatch is also bounded by a wall-clock timeout (`web.extract_tim### When truncation gets in the way-If you specifically need the live DOM rather than extracted markdown — for example, a JS-heavy page where extraction returns little content — use `browser_navigate` + `browser_snapshot` instead. The browser tool returns the live accessibility tree (subject to its own snapshot cap on huge pages).+If you specifically need the live DOM rather than extracted markdown — for example, a JS-heavy page where extraction returns little content — use `browser_exec` instead: open the page with `new_tab(url)` + `wait_for_load()`, then read it with `page_info()` or a `js()` DOM extraction. It works on the live, rendered page.---diff --git a/website/docs/user-guide/multi-profile-gateways.md b/website/docs/user-guide/multi-profile-gateways.mdindex a2d5cee5925..bb9531b1f0a 100644--- a/website/docs/user-guide/multi-profile-gateways.md+++ b/website/docs/user-guide/multi-profile-gateways.md@@ -677,7 +677,7 @@ profile and never shares with the default or any sibling:| Working directory of a turn (unset `terminal.cwd`) | Same rule as a standalone gateway: `$HOME` for the local backend, sandbox default otherwise | Never the directory the multiplexer process was launched from || Command approvals (`command_allowlist`, "always" choices) | The profile's own `config.yaml` | A default-profile "always" never pre-approves a secondary's command; a secondary's choice is saved to its own config || Sandbox credential-file mounts (`terminal.credential_files`), `security.redact_secrets`, `browser.*` engine/headed flags, `lsp.*`, auxiliary-provider health marks, `logs/mcp-stderr.log` | The profile's own `config.yaml` / `.env` | Documented default — never the launch profile's cached value |-| Cloud-SDK credential clients (Bedrock boto3 clients + model discovery, Azure Entra credential), credential-fetched catalogs (DeepInfra, Copilot context limits, Nous reasoning caps, Ramp Router efforts, xAI / OpenRouter image models, custom-endpoint `/models`), Camofox VNC address, computer-use aux-vision routing, remote-backend probe text, learned image token costs, `display.skin`, guest-mint back-off, banner skills, Yuanbao "active" adapter, Langfuse client | The profile's own `.env` / `config.yaml` / `<home>/cache` | Documented default — never the launch profile's cached value or its credentials |+| Cloud-SDK credential clients (Bedrock boto3 clients + model discovery, Azure Entra credential), credential-fetched catalogs (DeepInfra, Copilot context limits, Nous reasoning caps, Ramp Router efforts, xAI / OpenRouter image models, custom-endpoint `/models`), computer-use aux-vision routing, remote-backend probe text, learned image token costs, `display.skin`, guest-mint back-off, banner skills, Yuanbao "active" adapter, Langfuse client | The profile's own `.env` / `config.yaml` / `<home>/cache` | Documented default — never the launch profile's cached value or its credentials || Session-search knobs (`sessions.cjk_fts`, `sessions.search_slow_ms`) | The profile's `config.yaml` | Documented default — never the default profile's bridged value || RoomLink capability catalog and the signed execution policy it advertises to a remote Bot (`approvals.mode`, `agent.max_turns`, `platform_toolsets.api_server`) | The served profile named by the request (`/p/<profile>/v1/room-members/...`, the RPC `profile` param); `target_profile` is **required** on every catalog — there is no `HERMES_PROFILE` fallback | Invitation/capabilities fail with the offending `target_profile` named; a profile that does not exist is refused, never resolved from the launch profile's config || Platform proxies (`TELEGRAM_PROXY`, `DISCORD_PROXY`, `HTTPS_PROXY`, …) | The profile's own `.env` | Direct connection — never the default profile's proxy |diff --git a/website/docs/user-guide/security.md b/website/docs/user-guide/security.mdindex de8b9815059..232a4eec9dc 100644--- a/website/docs/user-guide/security.md+++ b/website/docs/user-guide/security.md@@ -755,7 +755,7 @@ security:- "/etc/hermes/blocked-sites.txt"```-When a blocked URL is requested, the tool returns an error explaining the domain is blocked by policy. The blocklist is enforced across `web_search`, `web_extract`, `browser_navigate`, and all URL-capable tools.+When a blocked URL is requested, the tool returns an error explaining the domain is blocked by policy. The blocklist is enforced across `web_search`, `web_extract`, `browser_exec`, and all URL-capable tools.See [Website Blocklist](./configuration.md#website-blocklist) in the configuration guide for full details.diff --git a/website/docs/user-guide/windows-native.md b/website/docs/user-guide/windows-native.mdindex 245ae47e663..9a02f8a9ddb 100644--- a/website/docs/user-guide/windows-native.md+++ b/website/docs/user-guide/windows-native.md@@ -263,14 +263,15 @@ Windows package removal instead of deleting that root to repair an app.## Browser tool-Browser setup depends on the selected backend. PM supplies the pinned-`agent-browser` and Chromium packages for the built-in backend. Browser Use-has its own managed CLI installation through `hermes tools`. A self-contained-MSIX includes supported browser tools in its payload.+The browser tool (`browser_exec`) is part of Hermes's Python environment.+For local browsing, Hermes launches the pinned Chromium that PM installs+(`hermes pm install chromium` if it is missing); set `browser.executable_path`+to use another Chromium-family binary. Cloud browsers are selected in+`hermes tools`. A self-contained MSIX includes the browser tools in its payload.-On Windows ARM64, the pinned Chromium and `agent-browser` binaries can use+On Windows ARM64, the pinned Chromium is the x64 build and runs underWindows' x64 emulation. This differs from the native ARM64 Python runtime.-See [Browser automation](./features/browser.md) for backend selection.+See [Browser automation](./features/browser.md) for browser sources.## Running Hermes on Windows — practical notes@@ -357,13 +358,9 @@ You set it in the current process only; close and reopen the shell, or set it at**Browser tool launches but tools time out.**Run `hermes doctor` and `hermes pm doctor`. Use `hermes tools` to inspect the-selected browser backend. Do not install an unrelated Playwright revision into-a signed app payload.--**`agent-browser` reports a Node version error.**-Run `hermes pm doctor` and inspect which Hermes launcher started the process.-PM supplies the managed Node version. Do not delete an unrelated system Node-installation to repair Hermes.+selected browser provider. A slow first Chromium start can be given more time+with `browser.command_timeout` (the launch timeout floor, in seconds). Do not+install an unrelated Playwright revision into a signed app payload.**Chinese / Japanese / Arabic characters show as `?` in the CLI.**The UTF-8 stdio shim didn't activate. Check that `HERMES_DISABLE_WINDOWS_UTF8` is NOT set (`Get-ChildItem env:HERMES_DISABLE_WINDOWS_UTF8`). If it's empty and you still see `?`, the console host (very old `cmd.exe`) may not support UTF-8 at all — switch to Windows Terminal.diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/browser-supervisor.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/browser-supervisor.mdindex 40e1f9943d9..947ed3ea9e0 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/browser-supervisor.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/browser-supervisor.md@@ -9,7 +9,7 @@原生 JS 对话框(`alert`/`confirm`/`prompt`/`beforeunload`)和 iframe 是我们浏览器工具中最大的两个缺口:1. **对话框会阻塞 JS 线程。** 页面上的任何操作都会挂起,直到对话框被处理。在此工作之前,agent 无法感知对话框是否已打开——后续的工具调用会挂起或抛出不透明的错误。-2. **iframe 不可见。** Agent 可以在 DOM 快照中看到 iframe 节点,但无法在其中点击、输入或执行 eval——尤其是运行在独立 Chromium 进程中的跨域(OOPIF)iframe。+2. **iframe 不可见。** Agent 可以在 DOM 中看到 iframe 节点,但无法在其中点击、输入或执行 eval——尤其是运行在独立 Chromium 进程中的跨域(OOPIF)iframe。[PR #12550](https://github.com/NousResearch/hermes-agent/pull/12550) 提出了一个无状态的 `browser_dialog` 包装器。该方案无法解决检测问题——它只是在 agent 已经(通过症状)知道对话框已打开时,提供了一个更简洁的 CDP 调用。已作为被取代方案关闭。@@ -19,15 +19,14 @@| 后端 | 对话框检测 | 对话框响应 | 框架树 | OOPIF `Runtime.evaluate`(通过 `browser_cdp(frame_id=...)`) ||---|---|---|---|---|-| 本地 Chrome(`--remote-debugging-port`)/ `/browser connect` | ✓ | ✓ 完整流程 | ✓ | ✓ |+| 本地 Chromium(由 Hermes 为 `browser_exec` 启动)/ `/browser connect` | ✓ | ✓ 完整流程 | ✓ | ✓ || Browserbase | ✓(通过 bridge) | ✓ 完整流程(通过 bridge) | ✓ | ✓(`document.title = "Example Domain"` 已在真实跨域 iframe 上验证) |-| Camofox | ✗ 无 CDP(仅 REST) | ✗ | 通过 DOM 快照部分支持 | ✗ |**Browserbase 响应的工作原理。** Browserbase 的 CDP 代理在内部使用 Playwright,并在约 10ms 内自动关闭原生对话框,因此 `Page.handleJavaScriptDialog` 无法跟上。为解决此问题,supervisor 通过 `Page.addScriptToEvaluateOnNewDocument` 注入一个 bridge 脚本,将 `window.alert`/`confirm`/`prompt` 覆盖为向魔法主机(`hermes-dialog-bridge.invalid`)发起的同步 XHR。`Fetch.enable` 在这些 XHR 触达网络之前将其拦截——对话框变成 supervisor 捕获的 `Fetch.requestPaused` 事件,`respond_to_dialog` 通过 `Fetch.fulfillRequest` 以 JSON 响应体完成请求,注入的脚本对其进行解码。最终效果:从页面角度看,`prompt()` 仍然返回 agent 提供的字符串。从 agent 角度看,无论哪种方式,都是同一套 `browser_dialog(action=...)` API。已针对真实 Browserbase 会话进行端到端测试——4/4(alert/prompt/confirm-accept/confirm-dismiss)全部通过,包括值回传到页面 JS 的验证。-Camofox 在本 PR 中暂不支持;计划在 `jo-inc/camofox-browser` 提交上游 issue,请求添加对话框轮询端点。+Camofox 目录插件(`hermes plugins install camofox`)驱动的是仅支持 REST、没有 CDP 接口的浏览器,因此 supervisor 不适用于它。## 架构@@ -49,7 +48,7 @@ Camofox 在本 PR 中暂不支持;计划在 `jo-inc/camofox-browser` 提交上### 生命周期-- **启动:** `SupervisorRegistry.get_or_start(task_id, cdp_url)` — 由 `browser_navigate`、Browserbase 会话创建、`/browser connect` 调用。幂等。+- **启动:** `SupervisorRegistry.get_or_start(task_id, cdp_url)` — 在 `browser_exec` 附加到会话(本地、云端提供商或 CDP 覆盖)时以及执行 `/browser connect` 时调用。幂等。- **停止:** 会话拆除或 `/browser disconnect`。取消 asyncio task,关闭 WebSocket,丢弃状态。- **重新绑定:** 若 CDP URL 变更(用户重新连接到新的 Chrome),停止旧 supervisor 并重新启动——绝不跨端点复用状态。@@ -57,8 +56,8 @@ Camofox 在本 PR 中暂不支持;计划在 `jo-inc/camofox-browser` 提交上通过 `config.yaml` 中的 `browser.dialog_policy` 配置:-- **`must_respond`**(默认)— 捕获,在 `browser_snapshot` 中呈现,等待显式的 `browser_dialog(action=...)` 调用。在 300s 安全超时后若无响应,则自动关闭并记录日志。防止有缺陷的 agent 永久挂起。-- `auto_dismiss` — 记录并立即关闭;agent 事后通过 `browser_snapshot` 内的 `browser_state` 查看。+- **`must_respond`**(默认)— 捕获,在 `pending_dialogs` 中呈现,等待显式的 `browser_dialog(action=...)` 调用。在 300s 安全超时后若无响应,则自动关闭并记录日志。防止有缺陷的 agent 永久挂起。+- `auto_dismiss` — 记录并立即关闭;事后会出现在 `recent_dialogs` 中。- `auto_accept` — 记录并接受(适用于用户希望干净导航离开时的 `beforeunload`)。策略按 task 配置;v1 不支持按对话框覆盖。@@ -75,11 +74,11 @@ browser_dialog(action, prompt_text=None, dialog_id=None)- `prompt_text=...` → 向 `prompt()` 对话框提供的文本- `dialog_id=...` → 当多个对话框排队时用于消歧(罕见)-该工具仅用于响应。Agent 在调用前从 `browser_snapshot` 输出中读取待处理对话框。+该工具仅用于响应。只有一个待处理对话框时可省略 `dialog_id`。-### `browser_snapshot` 扩展+### Supervisor 快照-当 supervisor 已附加时,在现有快照输出中新增三个可选字段:+supervisor 附加期间,`CDPSupervisor.snapshot()` 包含三个字段:```json{@@ -107,26 +106,16 @@ browser_dialog(action, prompt_text=None, dialog_id=None)- **`frame_tree`**:框架结构,包括跨域(OOPIF)子框架。上限为 30 条 + OOPIF 深度 2,以限制广告密集页面上的快照大小。当达到限制时,`truncated: true` 会出现;需要完整树的 agent 可使用 `browser_cdp` 配合 `Page.getFrameTree`。-以上均不新增工具 schema 接口——agent 从其已请求的快照中读取。-### 可用性门控-两个接口均通过 `_browser_cdp_check` 进行门控(supervisor 只能在 CDP 端点可达时运行)。在 Camofox / 无后端会话中,对话框工具被隐藏,快照省略新字段——不产生 schema 膨胀。+`browser_dialog` 和 `browser_cdp` 均按 CDP 可达性进行门控(supervisor 只能在 CDP 端点可达时运行)。没有 CDP 端点时,对话框工具被隐藏——不产生 schema 膨胀。## 跨域 iframe 交互-在对话框检测工作的基础上,`browser_cdp(frame_id=...)` 通过 supervisor 已连接的 WebSocket,使用 OOPIF 的子 `sessionId` 路由 CDP 调用(尤其是 `Runtime.evaluate`)。Agent 从 `browser_snapshot.frame_tree.children[]` 中 `is_oopif=true` 的条目获取 frame_id,并将其传递给 `browser_cdp`。对于同源 iframe(无专用 CDP 会话),agent 改用顶层 `Runtime.evaluate` 中的 `contentWindow`/`contentDocument`——当 `frame_id` 属于非 OOPIF 时,supervisor 会返回指向该回退方案的错误。+在对话框检测工作的基础上,`browser_cdp(frame_id=...)` 通过 supervisor 已连接的 WebSocket,使用 OOPIF 的子 `sessionId` 路由 CDP 调用(尤其是 `Runtime.evaluate`)。Agent 从 supervisor 的 `frame_tree.children[]` 中 `is_oopif=true` 的条目(或通过 `browser_cdp` 调用 `Page.getFrameTree`)获取 frame_id,并将其传递给 `browser_cdp`。对于同源 iframe(无专用 CDP 会话),agent 改用顶层 `Runtime.evaluate` 中的 `contentWindow`/`contentDocument`——当 `frame_id` 属于非 OOPIF 时,supervisor 会返回指向该回退方案的错误。在 Browserbase 上,这是 iframe 交互的**唯一**可靠路径——无状态 CDP 连接(每次 `browser_cdp` 调用时打开)会遭遇签名 URL 过期,而 supervisor 的长连接则保持有效会话。-## Camofox(后续跟进)--计划向 `jo-inc/camofox-browser` 提交 issue,添加:-- 每个会话的 Playwright `page.on('dialog', handler)`-- `GET /tabs/:tabId/dialogs` 轮询端点-- `POST /tabs/:tabId/dialogs/:id` 用于接受/关闭-- 框架树内省端点-## 涉及文件(PR 1)### 新增@@ -139,17 +128,13 @@ browser_dialog(action, prompt_text=None, dialog_id=None)### 修改- `toolsets.py` — 在 `browser`、`hermes-acp`、`hermes-api-server`、核心工具集中注册 `browser_dialog`(通过 CDP 可达性门控)-- `tools/browser_tool.py`- - `browser_navigate` 启动钩子:若 CDP URL 可解析,调用 `SupervisorRegistry.get_or_start(task_id, cdp_url)`- - `browser_snapshot`(约第 1536 行):将 supervisor 状态合并到返回载荷- - `/browser connect` 处理器:以新端点重启 supervisor- - `_cleanup_browser_session` 中的会话拆除钩子+- `tools/browser_session_cdp.py` — `ensure_cdp_supervisor` / `stop_cdp_supervisor`、`/browser connect` 重新附加、对话框策略配置+- `tools/browser_session_lifecycle.py` — 按会话拆除(先停止 supervisor)- `hermes_cli/config.py` — 向 `DEFAULT_CONFIG` 添加 `browser.dialog_policy` 和 `browser.dialog_timeout_s`- 文档:`website/docs/user-guide/features/browser.md`、`website/docs/reference/tools-reference.md`、`website/docs/reference/toolsets-reference.md`## 非目标-- Camofox 的检测/交互(上游缺口;单独跟踪)- 向用户实时流式传输对话框/框架事件(需要 gateway 钩子)- 跨会话持久化对话框历史(仅内存)- 按 iframe 配置对话框策略(agent 可通过 `dialog_id` 表达)diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/creating-skills.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/creating-skills.mdindex 05f94d421cd..93ad1becfcc 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/creating-skills.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/creating-skills.md@@ -60,7 +60,7 @@ metadata:requires_toolsets: [web] # Optional — only show when these toolsets are activerequires_tools: [web_search] # Optional — only show when these tools are availablefallback_for_toolsets: [browser] # Optional — hide when these toolsets are active- fallback_for_tools: [browser_navigate] # Optional — hide when these tools exist+ fallback_for_tools: [browser_exec] # Optional — hide when these tools existconfig: # Optional — config.yaml settings the skill needs- key: my.settingdescription: "What this setting controls"@@ -115,7 +115,7 @@ metadata:requires_toolsets: [web] # 若 web toolset 未激活则隐藏requires_tools: [web_search] # 若 web_search tool 不可用则隐藏fallback_for_toolsets: [browser] # 若 browser toolset 已激活则隐藏- fallback_for_tools: [browser_navigate] # 若 browser_navigate 可用则隐藏+ fallback_for_tools: [browser_exec] # 若 browser_exec 可用则隐藏```| 字段 | 行为 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/plugins/index.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/plugins/index.mdindex 7e0c6c0757f..d619870c0d0 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/plugins/index.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/plugins/index.md@@ -512,15 +512,15 @@ ctx.register_tool(### 覆盖内置工具-要用你自己的实现替换内置工具(例如将默认浏览器工具替换为有头 Chrome CDP 后端,或将 `web_search` 替换为自定义企业索引),传入 `override=True`:+要用你自己的实现替换内置工具(例如将 `web_search` 替换为自定义企业索引),传入 `override=True`:```pythondef register(ctx):ctx.register_tool(- name="browser_navigate", # 与内置工具同名- toolset="plugin_my_browser", # 你自己的 toolset 命名空间+ name="web_search", # 与内置工具同名+ toolset="plugin_my_search", # 你自己的 toolset 命名空间schema={...},- handler=my_custom_navigate,+ handler=my_corporate_search,override=True, # 显式启用覆盖)```diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/tools-runtime.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/tools-runtime.mdindex c19c522ed04..f426ed65fc1 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/tools-runtime.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/tools-runtime.md@@ -74,7 +74,7 @@ def discover_builtin_tools(tools_dir=None):- **API 密钥是否存在** — 例如,`lambda: bool(os.environ.get("SERP_API_KEY"))` 用于网络搜索- **服务是否运行** — 例如,检查 Honcho 服务器是否已配置-- **二进制文件是否已安装** — 例如,验证浏览器工具的 `playwright` 是否可用+- **依赖是否已安装** — 例如,验证 `browser_exec` 所需的 `browser-harness` 是否可导入当 `registry.get_definitions()` 为模型构建 schema 列表时,会运行每个工具的 `check_fn()`:@@ -115,7 +115,7 @@ Toolset 是工具的命名集合。Hermes 通过以下方式解析它们:4. **注册表过滤** — 解析后的工具名称集合传递给 `registry.get_definitions()`,后者应用 `check_fn` 过滤并返回 OpenAI 格式的 schema。-5. **动态 schema 修补** — 过滤后,`execute_code` 和 `browser_navigate` 的 schema 会被动态调整,仅引用实际通过过滤的工具(防止模型幻觉出不可用的工具)。+5. **动态 schema 修补** — 过滤后,`execute_code`、`browser_cdp` 和 `delegate_task` 等工具的 schema 会被动态调整,仅引用实际通过过滤的工具(防止模型幻觉出不可用的工具)。### 旧版 toolset 名称diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/termux.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/termux.mdindex 125d15bb4d9..5c1c5c815f6 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/termux.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/termux.md@@ -92,7 +92,8 @@ APT 移除软件包和命令链接,但保留用户配置、会话、技能和Android 可能挂起或终止后台进程;唤醒锁不保证持续运行。该包不包含 `nemo-relay` 导出器,也不包含 Electron 桌面应用。-本地 Chromium、桌面控制、Docker daemon 和音频设备集成不能因核心 CLI 可运行就视为可用。+该包不捆绑 Chromium:浏览器工具会启动 `PATH` 上的系统 `chromium`(软件源提供时可运行 `pkg install chromium`);没有时无法使用浏览功能,浏览器工具会给出提示。+桌面控制、Docker daemon 和音频设备集成不能因核心 CLI 可运行就视为可用。第三方插件仍可能需要 Android 不支持的依赖。故障排查时运行 `hermes doctor`,并提供 `hermes --version` 和完整错误。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.mdindex 22088e1427d..1f377fc36a1 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/integrations/index.md@@ -42,12 +42,14 @@ web:## 浏览器自动化-Hermes 内置完整的浏览器自动化功能,提供多种后端选项,用于网站导航、表单填写和信息提取:+Hermes 通过 `browser_exec`(基于 CDP 的 Python)提供完整的浏览器自动化功能,用于网站导航、表单填写和信息提取,浏览器可运行在以下位置:- **Browserbase** — 托管云端浏览器,具备反机器人工具、CAPTCHA 解决和住宅代理- **Browser Use** — 备选云端浏览器提供商- **本地 Chromium 系 CDP** — 使用 `/browser connect` 连接正在运行的 Chrome、Brave、Chromium 或 Edge 浏览器-- **本地 Chromium** — 通过 `agent-browser` CLI 使用无头本地浏览器+- **本地 Chromium** — 由 Hermes 自行启动的无头本地 Chromium(默认)++Camofox 反检测浏览器以目录插件形式提供:`hermes plugins install camofox`。详见[浏览器自动化](../user-guide/features/browser.md)的配置与使用说明。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 ecb8fa8b11d..44435841167 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@@ -53,7 +53,7 @@ Portal 代理了来自整个生态系统的精选 agentic 模型目录——统| **网页搜索与抓取** | Nous 托管 | Agent 级搜索与整页内容提取。无需搜索 API 密钥,无需管理速率限制。 || **图像生成** | FAL | 单一端点下的九个模型:FLUX 2 Klein 9B、FLUX 2 Pro、Z-Image Turbo、Nano Banana Pro(Gemini 3 Pro Image)、GPT Image 1.5、GPT Image 2、Ideogram V3、Recraft V4 Pro、Qwen Image。 || **文字转语音** | OpenAI TTS | 无需独立 OpenAI 密钥的高质量 TTS。在各消息平台上启用[语音模式](../user-guide/features/voice-mode.md)。 |-| **云端浏览器自动化** | Browser Use | 用于 `browser_navigate`、`browser_click`、`browser_type`、`browser_vision` 的无头 Chromium 会话。无需 Browserbase 账号。 |+| **云端浏览器自动化** | Browser Use | 由 `browser_exec` 通过 CDP 驱动的无头云端 Chromium 会话。无需 Browserbase 账号。 || **云端终端沙箱** | Modal | 用于代码执行的无服务器终端沙箱(可选附加项)。 |不使用 gateway 的话,接入上述每项服务意味着:一个网页搜索账号、一个 FAL 账号、一个 Browser Use 账号、一个 OpenAI 密钥、一个 Modal 账号——五次独立注册、五个独立控制台、五套独立充值流程。使用 gateway 后,所有内容通过一个订阅统一路由。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.mdindex 96194f96059..bcb41d0c117 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md@@ -132,13 +132,10 @@ description: "Hermes Agent 使用的所有环境变量完整参考"| `BROWSERBASE_PROJECT_ID` | Browserbase 项目 ID || `BROWSER_USE_API_KEY` | Browser Use 云浏览器 API 密钥([browser-use.com](https://browser-use.com/)) || `FIRECRAWL_BROWSER_TTL` | Firecrawl 浏览器会话 TTL(秒,默认:300) |-| `BROWSER_CDP_URL` | 本地浏览器的 Chrome DevTools Protocol(CDP)URL(通过 `/browser connect` 设置,例如 `ws://localhost:9222`) |-| `CAMOFOX_URL` | Camofox 本地反检测浏览器服务器地址(默认:`http://localhost:9377`)。仅为地址——不会选择后端;请在 `hermes tools` 中选择 Camofox(`browser.cloud_provider: camofox`) |-| `CAMOFOX_USER_ID` | 可选的外部管理 Camofox 用户 ID,用于共享可见会话 |-| `CAMOFOX_SESSION_KEY` | 为 `CAMOFOX_USER_ID` 创建标签页时使用的可选 Camofox 会话密钥 |-| `CAMOFOX_ADOPT_EXISTING_TAB` | 设为 `true` 可在创建新标签页前复用现有 Camofox 标签页 |+| `BROWSER_CDP_URL` | 浏览器工具附加的 Chrome DevTools Protocol(CDP)端点,设置后不再自行启动 Chromium(通过 `/browser connect` 设置,例如 `ws://localhost:9222`;等同于 `browser.cdp_url`) |+| `CAMOFOX_*` | 仅由 Camofox 插件(`hermes plugins install camofox`)读取;核心 Hermes 忽略它们。 || `BROWSER_INACTIVITY_TIMEOUT` | 浏览器会话不活动超时(秒) |-| `AGENT_BROWSER_ARGS` | 额外的 Chromium 启动标志(逗号或换行分隔)。以 root 身份运行或在 AppArmor 限制的非特权用户命名空间(Ubuntu 23.10+、DGX Spark、许多容器镜像)中运行时,Hermes 自动注入 `--no-sandbox,--disable-dev-shm-usage`;仅在需要覆盖或添加其他标志时手动设置。 |+| `AGENT_BROWSER_*` | 不再读取。更新时,若对应键未设置,profile 的 `.env` 中的值会被复制到配置中:`AGENT_BROWSER_EXECUTABLE_PATH` → `browser.executable_path`、`AGENT_BROWSER_PROFILE` → `browser.user_data_dir`、`AGENT_BROWSER_ARGS` → `browser.chromium_args`、`AGENT_BROWSER_HEADED` → `browser.headed`、`AGENT_BROWSER_ENGINE` → `browser.engine`。 || `FAL_KEY` | 图像生成([fal.ai](https://fal.ai/)) || `GROQ_API_KEY` | Groq Whisper STT API 密钥([groq.com](https://groq.com/)) || `ELEVENLABS_API_KEY` | ElevenLabs 高级 TTS 语音([elevenlabs.io](https://elevenlabs.io/)) |@@ -644,7 +641,7 @@ compression:| `AUXILIARY_VISION_API_KEY` | 与 `AUXILIARY_VISION_BASE_URL` 配对的 API 密钥 |:::note-`AUXILIARY_WEB_EXTRACT_*` 变量已废弃:`web_extract` 和浏览器快照不再使用辅助 LLM。长页面和快照会确定性截断,完整文本存储在磁盘上,可通过 `read_file` 分页读取。+`AUXILIARY_WEB_EXTRACT_*` 变量已废弃:`web_extract` 不再使用辅助 LLM。长页面会确定性截断,完整文本存储在磁盘上,可通过 `read_file` 分页读取。:::对于特定任务的直接端点,Hermes 使用该任务配置的 API 密钥或 `OPENAI_API_KEY`。不会为这些自定义端点复用 `OPENROUTER_API_KEY`。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.mdindex e5dd705d48f..e991e163acb 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/tools-reference.md@@ -8,7 +8,7 @@ description: "Hermes 内置工具权威参考,按工具集分组"本页记录 Hermes 的内置工具,按工具集分组。可用性因平台、凭据和已启用的工具集而异。-**当前注册表快速统计:** 约 71 个工具 —— 10 个浏览器工具(核心)+ 2 个 CDP 门控浏览器工具、4 个文件工具、2 个终端工具、2 个 Web 工具、5 个 Feishu 工具、5 个 Yuanbao 工具、9 个 kanban 工具(在 kanban 调度器生成 agent 时注册)、2 个 Discord 工具,以及若干独立工具(`memory`、`clarify`、`delegate_task`、`execute_code`、`cronjob`、`session_search`、`skill_view`/`skill_manage`/`skills_list`、`text_to_speech`、`image_generate`、`video_generate`、`vision_analyze`、`video_analyze`、`send_message`、`todo`、`computer_use`、`process`)。+**当前注册表快速统计:** 约 63 个工具 —— 4 个浏览器工具(`browser_exec`、`browser_cdp`、`browser_dialog`、`browser_vault`)、4 个文件工具、2 个终端工具、2 个 Web 工具、5 个 Feishu 工具、5 个 Yuanbao 工具、9 个 kanban 工具(在 kanban 调度器生成 agent 时注册)、2 个 Discord 工具,以及若干独立工具(`memory`、`clarify`、`delegate_task`、`execute_code`、`cronjob`、`session_search`、`skill_view`/`skill_manage`/`skills_list`、`text_to_speech`、`image_generate`、`video_generate`、`vision_analyze`、`video_analyze`、`send_message`、`todo`、`computer_use`、`process`)。:::tip MCP 工具除内置工具外,Hermes 还可从 MCP 服务器动态加载工具。MCP 工具以 `mcp_<server>_` 为前缀(例如,`github` MCP 服务器的 `mcp_github_create_issue`)。配置方法见 [MCP 集成](../user-guide/features/mcp.md)。@@ -16,27 +16,14 @@ description: "Hermes 内置工具权威参考,按工具集分组"## `browser` 工具集-| 工具 | 描述 | 所需环境 |-|------|------|----------|-| `browser_back` | 在浏览器历史记录中导航回上一页。需先调用 `browser_navigate`。 | — |-| `browser_click` | 点击快照中由 ref ID 标识的元素(如 `@e5`)。ref ID 显示在快照输出的方括号中。需先调用 `browser_navigate` 和 `browser_snapshot`。 | — |-| `browser_console` | 获取当前页面的浏览器控制台输出和 JavaScript 错误。返回 `console.log`/`warn`/`error`/`info` 消息及未捕获的 JS 异常。用于检测静默 JavaScript 错误、失败的 API 调用和应用警告。需先调用… | — |-| `browser_get_images` | 获取当前页面所有图片的列表,包含 URL 和 alt 文本。可用于查找供 vision 工具分析的图片。需先调用 `browser_navigate`。 | — |-| `browser_navigate` | 在浏览器中导航到某个 URL,初始化会话并加载页面。必须在其他浏览器工具之前调用。对于简单信息检索,优先使用 `web_search` 或 `web_extract`(更快、更省)。当需要… 时使用浏览器工具。 | — |-| `browser_press` | 按下键盘按键。适用于提交表单(Enter)、导航(Tab)或键盘快捷键。需先调用 `browser_navigate`。 | — |-| `browser_scroll` | 向某个方向滚动页面。用于显示当前视口上方或下方的更多内容。需先调用 `browser_navigate`。 | — |-| `browser_snapshot` | 获取当前页面无障碍树的文本快照。返回带 ref ID(如 `@e1`、`@e2`)的交互元素,供 `browser_click` 和 `browser_type` 使用。`full=false`(默认):仅含交互元素的紧凑视图。`full=true`:完整… | — |-| `browser_type` | 向由 ref ID 标识的输入框中输入文本。先清空字段,再输入新文本。需先调用 `browser_navigate` 和 `browser_snapshot`。 | — |-| `browser_vision` | 对当前页面截图并用视觉 AI 分析。当需要直观理解页面内容时使用——尤其适用于 CAPTCHA、视觉验证挑战、复杂布局,或文本快照… 时。 | — |--## `browser` 工具集(CDP 门控工具)--这两个工具属于 `browser` 工具集,但仅在会话启动时可访问 Chrome DevTools Protocol(CDP)端点时才注册——通过 `/browser connect`、`browser.cdp_url` 配置、Browserbase 会话或 Camofox。+这四个工具驱动同一个浏览器会话——Hermes 启动的 Chromium、云端浏览器,或通过 `/browser connect` 连接的浏览器。参见[浏览器自动化](../user-guide/features/browser.md)。| 工具 | 描述 | 所需环境 ||------|------|----------|-| `browser_cdp` | 发送原始 Chrome DevTools Protocol 命令。用于高层 `browser_*` 工具未覆盖的浏览器操作的逃生舱口。参见 https://chromedevtools.github.io/devtools-protocol/ | CDP 端点 |-| `browser_dialog` | 响应原生 JavaScript 对话框(alert / confirm / prompt / beforeunload)。先调用 `browser_snapshot`——待处理的对话框会出现在其 `pending_dialogs` 字段中。然后调用 `browser_dialog(action='accept'\|'dismiss')`。 | CDP 端点 |+| `browser_exec` | 通过运行预导入辅助函数(`new_tab`、`goto_url`、`wait_for_load`、`page_info`、`js`、`fill_input`、`click_at_xy`、`capture_screenshot`、`cdp`、`ensure_real_tab`)的 Python 驱动真实浏览器。浏览器状态在调用之间保持,Python 变量不保留。`session` 用于隔离并发任务;`timeout_s` 默认 300(最大 1800)。 | `terminal` 工具集 |+| `browser_cdp` | 发送原始 Chrome DevTools Protocol 命令。用于 `browser_exec` 辅助函数未覆盖的浏览器操作的逃生舱口。参见 https://chromedevtools.github.io/devtools-protocol/ | — |+| `browser_dialog` | 响应阻塞页面的原生 JavaScript 对话框(alert / confirm / prompt / beforeunload):`browser_dialog(action='accept'\|'dismiss')`,`prompt()` 使用 `prompt_text`,多个对话框排队时使用 `dialog_id`。 | — |+| `browser_vault` | 在当前页面使用已保存的登录信息、密码、银行卡、地址和一次性验证码,机密信息不会进入对话。操作:`list`、`fill`、`save_login`、`enter_code`、`unlock`。 | — |## `clarify` 工具集diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.mdindex 9426047c4cb..34be572cd04 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/toolsets-reference.md@@ -52,7 +52,7 @@ hermes tools # curses UI to enable/disable per platfo| 工具集 | 工具 | 用途 ||--------|------|------|-| `browser` | `browser_back`, `browser_cdp`, `browser_click`, `browser_console`, `browser_dialog`, `browser_get_images`, `browser_navigate`, `browser_press`, `browser_scroll`, `browser_snapshot`, `browser_type`, `browser_vision`, `web_search` | 核心浏览器自动化。包含 `web_search` 作为快速查询的备用方案。`browser_cdp` 和 `browser_dialog` 在运行时受限——仅在会话启动时 CDP 端点可达(通过 `/browser connect`、`browser.cdp_url` 配置、Browserbase 或 Camofox)时才注册。`browser_dialog` 与 `browser_snapshot` 在附加 CDP supervisor 时添加的 `pending_dialogs` 和 `frame_tree` 字段配合使用。 |+| `browser` | `browser_cdp`、`browser_dialog`、`browser_exec`、`browser_vault` | 核心浏览器自动化。`browser_exec` 通过运行预导入辅助函数的 Python 驱动浏览器(仅提供给同时拥有 `terminal` 的会话);`browser_cdp`、`browser_dialog` 和 `browser_vault` 作用于同一个浏览器会话。`browser_vault` 随浏览器一起用于凭据表单,默认延迟到工具搜索后加载。禁用此工具集即可关闭浏览功能。快速查询属于 `web`/`search` 工具集——`web_search` 刻意不是其成员,因此 `disabled_toolsets: [browser]` 不会移除它。 || `clarify` | `clarify` | 当 agent 需要澄清时向用户提问。 || `code_execution` | `execute_code` | 运行以编程方式调用 Hermes 工具的 Python 脚本。 || `cronjob` | `cronjob` | 调度和管理周期性任务。 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.mdindex f172e5e065e..961e5f3a755 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md@@ -1539,37 +1539,44 @@ web:## 浏览器-配置浏览器自动化行为:+配置浏览器自动化行为。所有浏览器键都位于 `browser:` 下;各浏览器来源(本地 Chromium、云端提供商、Lightpanda、`/browser connect`、真实 profile)如何配合,请参阅[浏览器功能页面](./features/browser.md)。```yamlbrowser:- inactivity_timeout: 120 # 自动关闭空闲会话前的秒数- command_timeout: 30 # 浏览器命令超时(截图、导航等)(秒)- record_sessions: false # 自动将浏览器会话录制为 WebM 视频到 ~/.hermes/browser_recordings/- # 可选 CDP 覆盖 —— 设置后,Hermes 直接附加到您自己的- # Chromium 系浏览器(通过 /browser connect),而不是启动无头浏览器。+ inactivity_timeout: 120 # 关闭空闲浏览器前的秒数+ command_timeout: 30 # Chromium 启动超时下限(秒)+ headed: false # true = 显示 Chromium 窗口(本地);轮次之间保持浏览器打开+ engine: auto # auto(Chromium)| lightpanda("chrome" 视为 auto)+ # Hermes 启动的本地 Chromium+ executable_path: "" # 覆盖 Chromium 程序;"" = 打包的 Chromium+ user_data_dir: "" # 所有会话共享的持久 profile;"" = 每个会话使用全新 profile+ chromium_args: [] # 额外的 Chromium 命令行参数,例如 ["--lang=de-DE"]+ # 云端浏览器选择(由 `hermes tools` → Browser Automation 写入)+ cloud_provider: local # local | browserbase | browser-use | firecrawl | nous | <提供商插件>;未设置 = 根据凭据自动检测+ auto_local_for_private_urls: true # 使用云端提供商时,在本地 Chromium 中打开 LAN/localhost URL+ allow_private_urls: false # 允许私有/内部地址(localhost、192.168.x.x 等)+ # 可选 CDP 覆盖 —— 设置后,浏览器工具附加到您自己的+ # Chromium 系浏览器(与 /browser connect 相同),而不是自行启动。cdp_url: ""- # 对话框监督器 —— 控制当 CDP 后端附加时(Browserbase、本地 Chromium 系- # 浏览器通过 /browser connect)如何处理原生 JS 对话框(alert/confirm/prompt)。- # 在 Camofox 和默认本地 agent 浏览器模式下忽略。+ use_real_profile: false # 在您真实浏览器 profile 的托管副本上浏览(需主动开启)+ # 对话框监督器 —— 如何处理原生 JS 对话框(alert / confirm / prompt / beforeunload)dialog_policy: must_respond # must_respond | auto_dismiss | auto_acceptdialog_timeout_s: 300 # must_respond 下的安全自动关闭(秒)- camofox:- managed_persistence: false # 为 true 时,Camofox 会话跨重启持久化 cookie/登录- user_id: "" # 可选的外部管理 Camofox userId- session_key: "" # Hermes 创建标签页时发送的可选会话密钥- adopt_existing_tab: false # 在创建新标签页之前重用此身份的现有标签页```+**可执行文件解析顺序。** Hermes 启动它找到的第一个 Chromium:`browser.executable_path` → Hermes 包管理器安装的 Chromium(`hermes pm install chromium`)→ `/etc/hermes/chromium-executable-path`(官方 Docker 镜像)→ `PATH` 上的系统 `chromium` / `chromium-browser`(Termux 以及没有打包构建的平台)。都找不到时,浏览器工具会给出提示,而不是静默失败。++**关闭浏览功能。** 浏览器没有配置开关:通过 `hermes tools`(或 `hermes tools disable browser [--platform NAME]`)禁用 `browser` 工具集。+**对话框策略:**-- `must_respond`(默认)—— 捕获对话框,在 `browser_snapshot.pending_dialogs` 中显示,等待 agent 调用 `browser_dialog(action=...)`。在 `dialog_timeout_s` 秒内无响应后,对话框被自动关闭以防止页面的 JS 线程永久停滞。-- `auto_dismiss` —— 捕获,立即关闭。Agent 仍然在事后的 `browser_snapshot.recent_dialogs` 中看到对话框记录,`closed_by="auto_policy"`。+- `must_respond`(默认)—— 捕获对话框,等待 agent 调用 `browser_dialog(action=...)`。在 `dialog_timeout_s` 秒内无响应后,对话框被自动关闭以防止页面的 JS 线程永久停滞。+- `auto_dismiss` —— 捕获,立即关闭。- `auto_accept` —— 捕获,立即接受。适用于有激进 `beforeunload` 提示的页面。完整对话框工作流请参阅[浏览器功能页面](./features/browser.md#browser_dialog)。-浏览器工具集支持多个 provider。有关 Browserbase、Browser Use 和本地 Chromium 系 CDP 设置的详细信息,请参阅[浏览器功能页面](./features/browser.md)。+**已移除的键(自动迁移)。** `browser.backend` 已移除——`browser_exec` 是唯一的浏览器路径。旧的 `backend: "off"` 会在更新时被删除,并一次性提示改为禁用 `browser` 工具集;其他值会被静默删除。`snapshot_threshold`、`record_sessions`、`allow_unsafe_evaluate` 和 `restrict_evaluate` 属于已移除的内置浏览器工具,不再生效。`browser.camofox.*` 键由 Camofox 插件(`hermes plugins install camofox`)读取,而非核心。旧的 `AGENT_BROWSER_*` 环境变量不再被读取;更新时,若对应键未设置,会把 profile 的 `.env` 中的值复制过去(`AGENT_BROWSER_EXECUTABLE_PATH` → `executable_path`、`AGENT_BROWSER_PROFILE` → `user_data_dir`、`AGENT_BROWSER_ARGS` → `chromium_args`、`AGENT_BROWSER_HEADED` → `headed`、`AGENT_BROWSER_ENGINE` → `engine`)。## 时区@@ -1631,7 +1638,7 @@ security:- "/etc/hermes/blocked-sites.txt"```-启用后,任何匹配被阻止域名模式的 URL 在 web 或浏览器工具执行之前都会被拒绝。这适用于 `web_search`、`web_extract`、`browser_navigate` 以及任何访问 URL 的工具。+启用后,任何匹配被阻止域名模式的 URL 在 web 或浏览器工具执行之前都会被拒绝。这适用于 `web_search`、`web_extract`、浏览器导航以及任何访问 URL 的工具。域名规则支持:- 精确域名:`admin.example.com`diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.mdindex 9905961bdc5..ef25571a42b 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md@@ -283,7 +283,7 @@ docker run -d \- 预构建的 TUI/dashboard 和 Photon sidecar 依赖,以及 s6-overlay。Chromium 由 PM 准备,不使用 `npx playwright install`。-实际可执行路径记录在 `/etc/hermes/agent-browser-executable-path`。+实际可执行路径记录在 `/etc/hermes/chromium-executable-path`,Hermes 启动浏览器时读取该文件。`PLAYWRIGHT_BROWSERS_PATH` 指向 `/opt/hermes/tools`,不在数据卷内。所有镜像(包括不带 `-desktop` 后缀的标签)都携带完整 Chromium,而不是 Playwright@@ -586,7 +586,7 @@ chmod -R 755 ~/.hermes### 浏览器工具无法使用-Playwright 需要共享内存。在 Docker run 命令中添加 `--shm-size=1g`:+Chromium 需要共享内存。在 Docker run 命令中添加 `--shm-size=1g`:```shdocker run -d \diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.mdindex bf3b4c0a151..d6263f0d877 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/acp.md@@ -75,7 +75,7 @@ hermes acp --check### 浏览器工具(可选)-浏览器工具(`browser_navigate`、`browser_click` 等)依赖 `agent-browser` npm 包和 Chromium,这些不包含在 Python wheel 中。通过以下命令安装:+浏览器工具(`browser_exec` 以及 CDP 工具 `browser_cdp`、`browser_dialog`、`browser_vault`)需要本地 Chromium,它不包含在 Python wheel 中。通过以下命令安装:```bashhermes acp --setup-browser # 交互式(下载约 400 MB 前会提示确认)@@ -86,9 +86,8 @@ hermes acp --setup-browser --yes # 非交互式接受下载具体操作:-- 若缺少 Node.js 22 LTS,将其安装到 `~/.hermes/node/`-- 将 `npm install -g agent-browser @askjo/camofox-browser` 安装到该前缀(无需 sudo — `npm` 的 `--prefix` 指向用户可写的 Hermes 管理 Node)-- 安装 Playwright Chromium,或在检测到系统 Chrome/Chromium 时使用已有版本+- 通过包管理器安装 Hermes 固定版本的 Chromium(`chromium` 包);不涉及 Node.js 或 npm+- 当 `browser_exec` 首次需要浏览器时,Hermes 会自行启动该 Chromium该引导过程是幂等的——重复运行速度很快,已完成的步骤会被跳过。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.mdindex 12ae082e85a..d6c7ffdd25c 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/browser.md@@ -1,278 +1,261 @@---title: 浏览器自动化-description: 通过多种提供商控制浏览器,支持通过 CDP 连接本地 Chromium 系浏览器或云端浏览器,用于网页交互、表单填写、数据抓取等场景。+description: 使用 browser_exec 驱动真实浏览器——Hermes 启动的 Chromium、云端浏览器、Lightpanda,或通过 CDP 连接您自己的 Chrome——用于网页交互、表单填写、数据抓取等场景。sidebar_label: Browsersidebar_position: 5---# 浏览器自动化-Hermes Agent 内置完整的浏览器自动化工具集,支持多种后端选项:+`browser` 工具集为 Agent 提供一个真实的网页浏览器。真正负责驱动的只有一个工具——**`browser_exec`**,它通过 Chrome DevTools Protocol(CDP)在浏览器上运行模型编写的 Python;另外三个配套工具作用于同一个浏览器会话:-- **Browserbase 云端模式** — 通过 [Browserbase](https://browserbase.com) 使用托管云端浏览器及反机器人工具-- **Browser Use 云端模式** — 通过 [Browser Use](https://browser-use.com) 作为备选云端浏览器提供商-- **Firecrawl 云端模式** — 通过 [Firecrawl](https://firecrawl.dev) 使用内置抓取功能的云端浏览器-- **Camofox 本地模式** — 通过 [Camofox](https://github.com/jo-inc/camofox-browser) 实现本地反检测浏览(基于 Firefox 的指纹伪装)-- **本地 Chromium 系 CDP** — 使用 `/browser connect` 将浏览器工具连接到本地运行的 Chrome、Brave、Chromium 或 Edge 实例-- **本地浏览器模式** — 通过 `agent-browser` CLI 和本地 Chromium 安装运行+| 工具 | 用途 |+|------|------|+| `browser_exec` | 通过运行预导入浏览器辅助函数的 Python 来导航、读取、点击、输入、抓取和截图。 |+| `browser_cdp` | 发送单条原始 CDP 命令(Cookie、网络控制、iframe 范围内执行,以及辅助函数未覆盖的任何操作)。 |+| `browser_dialog` | 接受或关闭阻塞页面的原生 JavaScript 对话框(`alert` / `confirm` / `prompt` / `beforeunload`)。 |+| `browser_vault` | 将已保存的登录信息、银行卡、地址和 2FA 验证码填入当前页面,机密信息不会进入对话。 |-所有模式下,Agent 均可导航网站、与页面元素交互、填写表单并提取信息。+浏览器来源是另一项独立选择:-## 概述+- **本地 Chromium(默认)**——Hermes 启动自己打包的 Chromium,无头模式,每个会话一个浏览器。无需 API 密钥,无需配置。+- **云端浏览器**——[Nous 订阅](tool-gateway.md)、[Browserbase](https://browserbase.com)、[Browser Use](https://browser-use.com) 云端、[Firecrawl](https://firecrawl.dev),或浏览器提供商插件。+- **[Lightpanda](https://lightpanda.io)**——轻量级无头引擎,适合在小型机器上以文本为主的浏览。+- **您自己的浏览器**——用 `/browser connect` 连接正在运行的 Chrome、Brave、Chromium 或 Edge。+- **您的真实 profile**——您日常浏览器 profile 的托管副本,包含登录状态(需主动开启)。-页面以**无障碍树**(accessibility tree,基于文本的快照)表示,非常适合 LLM Agent 使用。交互元素会获得引用 ID(如 `@e1`、`@e2`),Agent 通过这些 ID 执行点击和输入操作。+:::tip+对于简单的信息检索,优先使用 `web_search` 或 `web_extract`——它们更快且成本更低。仅在 Agent 需要**与页面交互**(点击按钮、填写表单、处理动态内容)时使用浏览器。+:::-核心能力:+## `browser_exec` 的工作方式-- **多提供商云端执行** — Browserbase、Browser Use 或 Firecrawl — 无需本地浏览器-- **本地 Chromium 系集成** — 通过 CDP 连接正在运行的 Chrome、Brave、Chromium 或 Edge 浏览器,实现实时操控-- **内置隐身功能** — 随机指纹、CAPTCHA 解决、住宅代理(Browserbase)-- **会话隔离** — 每个任务拥有独立的浏览器会话-- **自动清理** — 非活跃会话在超时后自动关闭-- **视觉分析** — 截图 + AI 分析,实现视觉理解+每次调用发送一段 Python(`code`),运行时浏览器辅助函数已预先导入;代码打印的内容即为返回结果。浏览器会话在调用之间保持(已打开的标签页、Cookie、当前页面),Python 变量则不保留——每次调用都从全新的解释器开始。每个会话有一个工作目录(`$BH_AGENT_WORKSPACE`,也会作为 `workspace` 返回),在调用之间保留,因此长时间的抓取可以把每批结果追加到文件中,最后再汇总。-## 配置+辅助函数:-:::tip Nous 订阅用户-如果您拥有付费 [Nous Portal](https://portal.nousresearch.com) 订阅,可通过 **[Tool Gateway](tool-gateway.md)** 使用浏览器自动化功能,无需单独的 API 密钥。新安装可运行 `hermes setup --portal` 登录并一次性开启所有 gateway 工具;已有安装可通过 `hermes model` 或 `hermes tools` 选择 **Nous Subscription** 作为浏览器提供商。-:::+| 辅助函数 | 作用 |+|----------|------|+| `new_tab(url)` | 打开 URL(用于第一次导航)。 |+| `goto_url(url)` | 在当前标签页导航(后续导航)。 |+| `wait_for_load()` | 等待页面加载完成。 |+| `page_info()` | 概述当前页面状态。 |+| `js(expr)` | 执行 JavaScript 并返回值(函数体需写成 `js('(() => {...})()')`)。 |+| `fill_input(selector, text)` | 向输入框输入文本。 |+| `click_at_xy(x, y)` | 点击视口坐标。 |+| `capture_screenshot()` | 保存截图并打印其路径。 |+| `cdp('Domain.method', **kwargs)` | 原始 CDP——例如 `cdp('Accessibility.getFullAXTree')` 获取无障碍树,`cdp('DOM.getBoxModel', backendNodeId=n)` 获取点击坐标。 |+| `ensure_real_tab()` | 从失效或内部标签页中恢复。 |-### Browserbase 云端模式+模型会把一整段子流程(导航、等待、提取、操作)合并到一次调用中,而不是每个动作调用一次:-要使用 Browserbase 托管的云端浏览器,请添加:--```bash-# Add to ~/.hermes/.env-BROWSERBASE_API_KEY=***-BROWSERBASE_PROJECT_ID=your-project-id-here+```python+# Searching GitHub trending for Python repos+new_tab("https://github.com/trending/python")+wait_for_load()+print(js("[...document.querySelectorAll('article h2 a')].slice(0, 10).map(a => a.textContent.trim())"))```-在 [browserbase.com](https://browserbase.com) 获取您的凭据。--### Browser Use 云端模式+**截图。** 在具备原生视觉能力的模型上,`capture_screenshot()` 保存的图片会附加到工具结果中,模型直接查看。纯文本模型会被告知以文本为主(`page_info()`、`js()`、`fill_input()`),仍可把保存的路径交给 `vision_analyze`。在消息平台上,您可以让 Agent 把截图发给您——它会以原生图片附件送达。-要使用 Browser Use 作为云端浏览器提供商,请添加:+**参数。** 除 `code` 外,该工具还接受 `timeout_s`(默认 300,最大 1800)和 `session`。每个 `session` 名称拥有自己的驱动进程和自己的浏览器(本地是独立的 Chromium,云端提供商则是独立的云端浏览器),因此并行的子 Agent 或同时进行的聊天不会互相干扰同一个浏览器。省略 `session` 则使用共享的默认会话,一次只做一件浏览任务时完全够用。开启[真实 profile 浏览](#real-profile-browsing-use-your-own-logins)后,该工具还会提供一个 `local` 参数(见该小节)。-```bash-# Add to ~/.hermes/.env-BROWSER_USE_API_KEY=***-```+:::note+`browser_exec` 会在您的机器上执行模型编写的 Python,因此只提供给同时拥有 `terminal` 工具集的会话。未配置终端访问的平台(例如受限的消息平台)不会获得浏览器。+:::-在 [browser-use.com](https://browser-use.com) 获取 API 密钥。Browser Use 通过 REST API 提供云端浏览器。若同时设置了 Browserbase 和 Browser Use 凭据,Browserbase 优先。+驱动程序是 [browser-harness](https://github.com/browser-use/browser-use),即 Browser Use CLI 的引擎。它是 Hermes 的常规 Python 依赖,因此每个安装(包括桌面应用)都自带它,无需单独下载。-### Firecrawl 云端模式+## 本地 Chromium(默认) {#local-chromium-default}-要使用 Firecrawl 作为云端浏览器提供商,请添加:+在未配置云端提供商、`/browser connect` 端点或真实 profile 开关时,Hermes 会自己为会话启动一个 Chromium,并让 `browser_exec` 指向它。您安装的 Chrome 永远不会被触碰——无需开启 `chrome://inspect` 开关,也不会弹出"允许远程调试?"对话框——在完全没有桌面浏览器的无头服务器上也能工作。-```bash-# Add to ~/.hermes/.env-FIRECRAWL_API_KEY=fc-***-```+- **每个会话一个浏览器**,默认使用全新的一次性 profile:Agent 起始时未登录任何网站,会话结束后不留下任何内容。+- **默认无头。** 设置 `browser.headed: true` 可显示窗口(见[下文](#headed-mode-visible-browser-window))。+- **自动清理。** 浏览器空闲 `browser.inactivity_timeout` 秒(默认 120)后、Hermes 退出时,以及进程崩溃后的孤儿清理中都会被关闭。-在 [firecrawl.dev](https://firecrawl.dev) 获取 API 密钥,然后选择 Firecrawl 作为浏览器提供商:+**使用哪个 Chromium。** Hermes 按顺序选择第一个存在的:-```bash-hermes setup tools-# → Browser Automation → Firecrawl-```+1. `browser.executable_path`(如已设置)。+2. Hermes 包管理器安装的 Chromium(Chrome for Testing)——安装脚本和 `hermes update` 默认会安装它。+3. 官方 Docker 镜像中的 `/etc/hermes/chromium-executable-path`。+4. `PATH` 上的系统 `chromium` / `chromium-browser`(Android/Termux,以及包管理器没有 Chromium 构建的平台)。-可选配置:+如果都找不到,浏览器工具会给出明确提示,而不是静默失败。如果您安装时使用了 `--skip-browser` / `-SkipBrowser`,或下载失败,可以这样安装:```bash-# Self-hosted Firecrawl instance (default: https://api.firecrawl.dev)-FIRECRAWL_API_URL=http://localhost:3002--# Session TTL in seconds (default: 300)-FIRECRAWL_BROWSER_TTL=600+hermes pm install chromium```-### 混合路由:公网 URL 使用云端,LAN/localhost 使用本地--配置云端提供商后,Hermes 会为解析到私有/回环/LAN 地址的 URL(`localhost`、`127.0.0.1`、`192.168.x.x`、`10.x.x.x`、`172.16-31.x.x`、`*.local`、`*.lan`、`*.internal`、IPv6 回环 `::1`、链路本地 `169.254.x.x`)自动启动一个**本地 Chromium 辅助进程**。公网 URL 在同一对话中继续使用云端提供商。--这解决了常见的"本地开发但使用 Browserbase"场景 — Agent 可以截取 `http://localhost:3000` 上的仪表盘,同时抓取 `https://github.com`,无需切换提供商或禁用 SSRF 防护。云端提供商永远不会看到私有 URL。+这也会撤销之前的 `--skip-browser` 选择,使后续更新继续保持浏览器为最新。在 Linux 上,Chromium 可能还需要发行版的系统库(在 Debian/Ubuntu 上可用 `npx playwright install-deps chromium` 安装)。在 Android/Termux 上,如果您的软件源提供,请运行 `pkg install chromium`;没有系统 Chromium 时,该设备上无法使用浏览器。-该功能**默认开启**。如需禁用(所有 URL 均走已配置的云端提供商,与之前行为一致):+**本地选项**(`~/.hermes/config.yaml`):```yaml-# ~/.hermes/config.yamlbrowser:- cloud_provider: browserbase- auto_local_for_private_urls: false+ executable_path: "" # Chromium binary to launch instead of the packaged one+ user_data_dir: "" # persistent profile directory; "" = fresh profile per session+ chromium_args: [] # extra Chromium command-line flags, e.g. ["--lang=de-DE"]+ headed: false # true = visible window+ command_timeout: 30 # Chromium launch timeout floor (seconds)+ inactivity_timeout: 120 # close an idle browser after N seconds```-禁用自动路由后,私有 URL 将被拒绝并返回 `"Blocked: URL targets a private or internal address"`,除非同时设置 `browser.allow_private_urls: true`(允许云端提供商尝试访问,但通常无法成功,因为 Browserbase 等无法访问您的 LAN)。+`browser.user_data_dir` 可在会话之间保留 Cookie 和登录状态:此后所有会话共享这一个 profile 目录。留空则为隔离的一次性浏览。-要求:本地辅助进程使用与纯本地模式相同的 `agent-browser` CLI,因此需要先安装(`hermes setup tools → Browser Automation` 会自动安装)。从公网 URL 导航后重定向到私有地址的情况仍会被阻止(无法通过公网路径的重定向访问 LAN)。+### 有头模式(可见浏览器窗口) {#headed-mode-visible-browser-window}-### Camofox 本地模式--[Camofox](https://github.com/jo-inc/camofox-browser) 是一个自托管的 Node.js 服务器,封装了 Camoufox(一个带有 C++ 指纹伪装的 Firefox 分支)。它无需云端依赖即可提供本地反检测浏览。+```yaml+browser:+ headed: true # default: false+```-```bash-# Clone the Camofox browser server first-git clone https://github.com/jo-inc/camofox-browser-cd camofox-browser+有头模式做两件事:-# Build and start with Docker using the default container settings-# (auto-detects arch: aarch64 on M1/M2, x86_64 on Intel)-make up+1. **以可见窗口启动 Chromium**,您可以观看 Agent 操作,并在需要时手动介入(登录验证、CAPTCHA)。+2. **在轮次之间保持浏览器打开。** 通常每次 Agent 回复后浏览器都会被清理;有头模式跳过每轮清理,使登录状态在整个对话中保持。-# Stop and remove the default container-make down+空闲浏览器仍会在 `browser.inactivity_timeout` 后被回收,所有浏览器在关闭时都会退出。在无显示器的主机(服务器、CI)上,浏览器始终以无头模式运行。有头模式只影响本地浏览器——云端会话不受影响。-# Force a clean rebuild (for example, after upgrading VERSION/RELEASE)-make reset+## 云端浏览器-# Just download binaries without building-make fetch+:::tip Nous 订阅用户+如果您拥有付费 [Nous Portal](https://portal.nousresearch.com) 订阅,可通过 **[Tool Gateway](tool-gateway.md)** 使用云端浏览器,无需单独的 API 密钥。新安装可运行 `hermes setup --portal` 登录并一次性开启所有 gateway 工具;已有安装可通过 `hermes model` 或 `hermes tools` 选择 **Nous Subscription** 作为浏览器提供商。+:::-# Override arch or version explicitly-make up ARCH=x86_64-make up VERSION=135.0.1 RELEASE=beta.24-```+在 `hermes tools` → Browser Automation 中选择提供商。之后 `browser_exec` 驱动该提供商的浏览器,方式与驱动本地 Chromium 完全相同。-`make up` 会立即启动默认容器。如需自定义运行时设置(如更大的 Node 堆内存、VNC 或持久化 profile 目录),请先构建镜像再手动运行:+### Browser Use 云端```bash-# Build the image without starting the default container-make build--# Start with persistence, VNC live view, and a larger Node heap-mkdir -p ~/.camofox-docker-docker run -d \- --name camofox-browser \- --restart unless-stopped \- -p 9377:9377 \- -p 6080:6080 \- -p 5901:5900 \- -e CAMOFOX_PORT=9377 \- -e ENABLE_VNC=1 \- -e VNC_BIND=0.0.0.0 \- -e VNC_RESOLUTION=1920x1080 \- -e MAX_OLD_SPACE_SIZE=2048 \- -v ~/.camofox-docker:/root/.camofox \- camofox-browser:135.0.1-aarch64+# Add to ~/.hermes/.env+BROWSER_USE_API_KEY=***```-启用 VNC 后,浏览器以有头模式运行,可在浏览器中通过 `http://localhost:6080`(noVNC)实时查看。也可使用原生 VNC 客户端连接 `localhost:5901`。+在 [browser-use.com](https://browser-use.com) 获取 API 密钥。Browser Use Cloud 运行托管 Chromium,默认启用[隐身](https://docs.browser-use.com/cloud/browser/stealth)和[住宅代理](https://docs.browser-use.com/cloud/browser/proxies),包含 CAPTCHA 解决,并支持用于 Cookie、localStorage 和已保存密码的[持久 profile](https://docs.browser-use.com/cloud/guides/authentication)。-如果已运行过 `make up`,请在启动自定义容器前先停止并删除默认容器:+### Browserbase```bash-make down-# then run the custom docker run command above+# Add to ~/.hermes/.env+BROWSERBASE_API_KEY=***+BROWSERBASE_PROJECT_ID=your-project-id-here```-然后在 `~/.hermes/.env` 中设置:+在 [browserbase.com](https://browserbase.com) 获取凭据。可选配置:```bash-CAMOFOX_URL=http://localhost:9377-```+# Residential proxies for better CAPTCHA solving (default: "true")+BROWSERBASE_PROXIES=true-或通过 `hermes tools` → Browser Automation → Camofox 进行配置。+# Advanced stealth with custom Chromium — requires Scale Plan (default: "false")+BROWSERBASE_ADVANCED_STEALTH=false-设置 `CAMOFOX_URL` 仅提供服务器地址。要启用 Camofox,请在 `hermes tools` → Browser Automation 中选择 Camofox(写入 `browser.cloud_provider: camofox`)——一旦存在浏览器后端选择,仅设置 `CAMOFOX_URL` 不再自动切换后端(从未配置过的环境仍会自动检测)。+# Session reconnection after disconnects — requires paid plan (default: "true")+BROWSERBASE_KEEP_ALIVE=true-#### 持久化浏览器会话+# Custom session timeout in seconds (max 21600 = 6 hours) (default: project default)+BROWSERBASE_SESSION_TIMEOUT=1800+```-默认情况下,每个 Camofox 会话使用随机身份 — Cookie 和登录状态不会在 Agent 重启后保留。要启用持久化浏览器会话,请在 `~/.hermes/config.yaml` 中添加:+Browserbase 隐身功能:-```yaml-browser:- camofox:- managed_persistence: true-```+| 功能 | 默认状态 | 说明 |+|---------|---------|-------|+| 基础隐身 | 始终开启 | 随机指纹、视口随机化、CAPTCHA 解决 |+| 住宅代理 | 开启 | 通过住宅 IP 路由以提高访问成功率 |+| 高级隐身 | 关闭 | 自定义 Chromium 构建,需要 Scale 计划 |+| Keep Alive | 开启 | 网络中断后的会话重连 |-然后完全重启 Hermes 以使新配置生效。+若付费功能在您的计划中不可用,Hermes 会自动降级——先禁用 `keepAlive`,再禁用代理——确保免费计划也能正常浏览。-:::warning 嵌套路径很重要-Hermes 读取的是 `browser.camofox.managed_persistence`,**而非**顶层的 `managed_persistence`。常见错误写法:+### Firecrawl-```yaml-# ❌ Wrong — Hermes ignores this-managed_persistence: true-```+```bash+# Add to ~/.hermes/.env+FIRECRAWL_API_KEY=fc-***-如果该标志放在错误的路径下,Hermes 会静默回退到随机临时 `userId`,您的登录状态将在每次会话后丢失。-:::+# Optional: self-hosted Firecrawl instance (default: https://api.firecrawl.dev)+FIRECRAWL_API_URL=http://localhost:3002-##### Hermes 的行为-- 向 Camofox 发送确定性的 profile 范围 `userId`,使服务器能够跨会话复用同一 Firefox profile。-- 在清理时跳过服务端 context 销毁,使 Cookie 和登录状态在 Agent 任务间保留。-- 将 `userId` 限定在当前 Hermes profile 范围内,不同 Hermes profile 对应不同浏览器 profile(profile 隔离)。+# Optional: session TTL in seconds (default: 300)+FIRECRAWL_BROWSER_TTL=600+```-##### Hermes 不做的事-- 不会强制 Camofox 服务器持久化。Hermes 只发送稳定的 `userId`;服务器必须通过将该 `userId` 映射到持久化 Firefox profile 目录来支持它。-- 如果您的 Camofox 服务器构建将每个请求视为临时的(例如始终调用 `browser.newContext()` 而不加载已存储的 profile),Hermes 无法使这些会话持久化。请确保运行的 Camofox 版本实现了基于 userId 的 profile 持久化。+在 [firecrawl.dev](https://firecrawl.dev) 获取 API 密钥,然后在 `hermes tools` → Browser Automation 中选择 **Firecrawl**。-##### 验证是否正常工作+:::note 选择提供商+上述 `.env` 键只提供**凭据**。当前使用的浏览器由 `hermes tools` → Browser Automation 写入的 `browser.cloud_provider` 决定(`local`、`browserbase`、`browser-use`、`firecrawl`,或代表 Nous 订阅的 `nous`;提供商插件会添加自己的名称)。一旦存在选择,增删密钥不会切换提供商——已选择但缺少密钥的提供商会报错并提示运行 `hermes tools`,而不是静默改道。从未配置过的环境仍会根据可用凭据自动检测。+:::-1. 启动 Hermes 和 Camofox 服务器。-2. 在浏览器任务中打开 Google(或任意登录网站)并手动登录。-3. 正常结束浏览器任务。-4. 开始新的浏览器任务。-5. 再次打开同一网站 — 应仍处于登录状态。+云端会话消耗提供商额度。Hermes 会在对话结束、`browser.inactivity_timeout` 到期以及进程退出时释放它们。-如果第 5 步退出了登录,说明 Camofox 服务器未遵守稳定的 `userId`。请检查配置路径,确认编辑 `config.yaml` 后已完全重启 Hermes,并验证您的 Camofox 服务器版本是否支持基于用户的持久化 profile。+### 混合路由:公网 URL 使用云端,LAN/localhost 使用本地-##### 状态存储位置+配置云端提供商后,Hermes 会为解析到私有/回环/LAN 地址的 URL(`localhost`、`127.0.0.1`、`192.168.x.x`、`10.x.x.x`、`172.16-31.x.x`、`*.local`、`*.lan`、`*.internal`、IPv6 回环 `::1`、链路本地 `169.254.x.x`)自动启动一个**本地 Chromium 辅助进程**。公网 URL 在同一对话中继续使用云端提供商。-Hermes 从 profile 范围目录 `~/.hermes/browser_auth/camofox/`(非默认 profile 则在 `$HERMES_HOME` 下的对应位置)派生稳定的 `userId`。实际浏览器 profile 数据存储在 Camofox 服务器端,以该 `userId` 为键。要完全重置持久化 profile,请在 Camofox 服务器端清除对应数据,并删除相应 Hermes profile 的状态目录。+这解决了常见的"本地开发但使用 Browserbase"场景——Agent 可以截取 `http://localhost:3000` 上的仪表盘,同时抓取 `https://github.com`,无需切换提供商或禁用 SSRF 防护。云端提供商永远不会看到私有 URL。-#### 外部管理的 Camofox 会话+该功能**默认开启**。如需禁用(所有 URL 均走已配置的云端提供商):-当另一个应用驱动可见的 Camofox 浏览器(桌面助手、自定义集成、另一个 Agent)时,可配置 Hermes 在同一身份下运行,而非启动独立的隔离 profile。+```yaml+# ~/.hermes/config.yaml+browser:+ cloud_provider: browserbase+ auto_local_for_private_urls: false+```-三个参数控制行为:+禁用自动路由后,私有 URL 将被拒绝并返回 `"Blocked: URL targets a private or internal address"`,除非同时设置 `browser.allow_private_urls: true`(允许云端提供商尝试访问,但通常无法成功,因为 Browserbase 等无法访问您的 LAN)。-| 设置 | 环境变量 | 效果 |-|---------|---------|--------|-| `browser.camofox.user_id` | `CAMOFOX_USER_ID` | Hermes 创建标签页时使用的 Camofox `userId`。设置此项即进入"外部管理"模式。 |-| `browser.camofox.session_key` | `CAMOFOX_SESSION_KEY` | 创建标签页时发送的 `sessionKey`(即 `listItemId`)。用于接管时匹配已有标签页。未设置时默认为每任务值。 |-| `browser.camofox.adopt_existing_tab` | `CAMOFOX_ADOPT_EXISTING_TAB` | 为 true 时,Hermes 在首次使用时调用 `GET /tabs?userId=<user_id>` 并优先复用已有标签页,而非新建。 |+辅助进程就是[上文](#local-chromium-default)所述的本地 Chromium,因此需要安装该 Chromium。从公网 URL 导航后重定向到私有地址的情况仍会被阻止(无法通过公网路径的重定向访问 LAN)。-环境变量优先于 `config.yaml`。两种形式均可:+## 真实 profile 浏览(使用您自己的登录状态) {#real-profile-browsing-use-your-own-logins}++默认情况下,本地浏览在干净的一次性 profile 中运行——Agent 未登录任何网站。开启**真实 profile 浏览**后,Agent 可以以*您*的身份浏览,使用您现有的登录状态和 Cookie:```yaml+# ~/.hermes/config.yamlbrowser:- camofox:- user_id: shared-camofox- session_key: visible-tab- adopt_existing_tab: true+ use_real_profile: true```-```bash-CAMOFOX_USER_ID=shared-camofox-CAMOFOX_SESSION_KEY=visible-tab-CAMOFOX_ADOPT_EXISTING_TAB=true-```+开启后,Hermes 会把您默认浏览器的**当前活跃** profile(`Local State → profile.last_used`,包括 Cookie、已保存登录和偏好设置)复制到 `~/.hermes/browser-profile/<browser>/` 下的托管快照中,然后用您**真实的浏览器程序**在该快照上启动并连接。您正在使用的 profile **从不被直接打开**:快照是独立目录,因此不会与运行中的浏览器争抢 profile 锁,也绕开了 Chrome 136+ 对默认 profile 目录远程调试的封锁。每次启动新会话时,认证文件都会从真实 profile 重新同步。只复制活跃 profile。++快照浏览器以**无头**方式在后台运行,不抢占焦点;设置 `browser.headed: true` 可显示窗口。在无显示器的主机上始终为无头模式。如需固定快照来源,可设置 `browser.real_profile_pin: "Profile 2"`(浏览器 user-data 目录下的 profile 目录名);指向不存在目录的固定值不会回退到其他 profile。关闭开关后,Hermes 会在下一次使用浏览器时删除快照存储(`~/.hermes/browser-profile/`)。++如果无法复制您的 profile(例如 Windows 上运行中的浏览器以独占锁持有 Cookie 数据库、默认浏览器不是受支持的 Chromium,或 Cookie 数据库损坏),Agent 会获得一个**不带登录状态**的全新浏览器,且第一个浏览器结果会说明原因(`real_profile_unavailable`)。设置 `browser.real_profile_autoclose: true` 后,Hermes 会在需要时**询问**是否替您关闭浏览器,获得批准后才运行 `hermes browser close-profile`。-**设置 `user_id` 后的变化:**+- **支持的浏览器:** Chrome、Edge、Brave、Brave Origin、Chromium(以系统默认为准)。+- **适用于任何浏览器来源。** 本地浏览时开启即生效。使用**云端**提供商时,Agent 仍可通过 `browser_exec` 工具的 `local` 参数按需打开真实 profile 的本地会话(仅在开启此开关时提供该参数)。+- **安全说明:** 这是基于授权的便利功能,而非隔离边界。默认关闭。+- **桌面应用:** 在 **Capabilities → Tools → Browser → Use My Real Browser Profile** 中切换。-- Hermes 在任务结束时跳过破坏性清理(与 `managed_persistence: true` 相同)。其他应用的标签页/Cookie/profile 得以保留。-- Hermes **不会**调用 `DELETE /sessions/<user_id>` — 该端点会清除所有用户数据,若触发将销毁外部应用的会话。+### 定时与无人值守运行 {#scheduled-and-unattended-runs}-**标签页接管的工作方式(当 `adopt_existing_tab: true` 时):**+真实 profile 会话可以让 `cronjob` 操作您已登录的网站。开启开关,为任务提供 browser 工具集(`cronjob(action="create", enabled_toolsets=["browser", ...], ...)`),并预先在[凭据保险库](./credential-vault.md#headless-sessions)中保存无法仅靠同步 Cookie 使用的网站凭据(包括验证器密钥)——无人值守的会话无法回答任何提示。-1. 进程启动后首次调用浏览器工具时,Hermes 发出 `GET /tabs?userId=<user_id>`(5 秒超时)。-2. 若响应中有标签页的 `listItemId == session_key`,Hermes 接管该组中最近创建的一个。-3. 否则,Hermes 接管该用户最近创建的标签页(任意 `listItemId`)。-4. 若无标签页或请求失败,Hermes 在下次操作时回退到新建标签页。+## Lightpanda 本地引擎-接管仅在会话的 `tab_id` 填充之前触发一次。若外部应用在运行中关闭了被接管的标签页,下次浏览器工具调用将返回 Camofox 错误 — Hermes 不会在每次调用时重新轮询新标签页。+[Lightpanda](https://lightpanda.io) 是一个从零编写的开源无头浏览器。它瞬间启动,速度比 Chrome 快 9 倍,内存占用低 16 倍,这对长时间运行在小型 VM 上的 Agent 很重要。-**选择 `session_key`:** 若要 Hermes 可靠地附加到*特定*已有标签页,请将 `session_key` 设置为外部应用创建该标签页时使用的 `listItemId`。若只设置 `user_id` 而不设置 `session_key`,Hermes 会生成每任务的 `session_key`(`task_<id>`)— Hermes 将与外部应用共享 Cookie 和 profile,但会并排打开自己的标签页而非复用已有标签页。+Lightpanda 是**本地引擎**(与本地 Chromium 一样是浏览器来源),而非云端提供商。安装该程序并将其放到 `PATH` 上(参见 [Lightpanda 安装指南](https://lightpanda.io/docs/run-locally/installation/one-liner)),然后在 `hermes tools` → Browser Automation 中选择 **Lightpanda**,或设置:-**并发说明:** 外部应用和 Hermes 可同时驱动同一 Camofox `userId`,但 Camofox 不会在客户端之间协调每个标签页的焦点。请在应用层协调所有权(例如,Hermes 运行时外部应用暂停)。+```yaml+# Add to ~/.hermes/config.yaml+browser:+ cloud_provider: local+ engine: lightpanda # auto (default, Chromium) | lightpanda+```-#### VNC 实时查看+Hermes 会自己启动 `lightpanda serve --host 127.0.0.1 --port <free>`——每个 `browser_exec` 会话名(或每个任务)一个进程——并让 `browser_exec` 指向它。无需 Chromium 或 Node.js。进程会在 `browser.inactivity_timeout` 后、退出时以及 Hermes 崩溃后的孤儿清理中被回收。所有这些进程共享位于 `$HERMES_HOME/cache/browser-use/lightpanda/http-cache` 的磁盘 HTTP 缓存。-当 Camofox 以有头模式运行(带可见浏览器窗口)时,其健康检查响应中会暴露 VNC 端口。Hermes 自动发现此信息,并在导航响应中包含 VNC URL,Agent 可分享链接供您实时查看浏览器。+Lightpanda 没有图形渲染器,因此 `capture_screenshot()` 不可用,工具描述会让模型以文本为主;它每个会话只保持一个页面,因此模型会被告知只调用一次 `new_tab()`,之后使用 `goto_url()`(上游跟踪:[lightpanda-io/browser#1962](https://github.com/lightpanda-io/browser/issues/1962))。-### 通过 CDP 连接本地 Chromium 系浏览器(`/browser connect`)+**引擎何时被忽略。** `browser.engine` 是优先级最低的浏览器设置:云端提供商(包括 Nous 订阅浏览器)、`browser.cdp_url` / `/browser connect` 覆盖,或 `browser.use_real_profile` 都优先于它。`/browser status` 和 `hermes doctor` 会报告引擎已配置但被覆盖的情况,以及被什么覆盖。-除云端提供商外,您还可以通过 Chrome DevTools Protocol(CDP)将 Hermes 浏览器工具连接到本地运行的 Chrome、Brave、Chromium 或 Edge 实例。当您希望实时查看 Agent 操作、与需要自身 Cookie/会话的页面交互,或避免云端浏览器费用时,此方式非常有用。+## 通过 CDP 连接你自己的浏览器(`/browser connect`)++除了 Hermes 自己启动的 Chromium 或云端提供商,您还可以通过 Chrome DevTools Protocol(CDP)将浏览器工具连接到本地运行的 Chrome、Brave、Chromium 或 Edge 实例。当您希望实时查看 Agent 操作、与需要自身 Cookie/会话的页面交互,或避免云端浏览器费用时,此方式非常有用。:::note`/browser connect` 是**交互式 CLI 斜杠命令** — 不由 gateway 分发。若在 WebUI、Telegram、Discord 或其他 gateway 聊天中尝试运行,消息将作为纯文本发送给 Agent,命令不会执行。请从终端启动 Hermes(`hermes` 或 `hermes chat`)并在那里执行 `/browser connect`。@@ -327,7 +310,7 @@ google-chrome \**为什么需要 `--user-data-dir`?** 若不指定,在普通实例已运行时启动 Chromium 系浏览器通常只会在现有进程上打开新窗口 — 而该进程启动时未带 `--remote-debugging-port`,因此端口 9222 永远不会开启。专用的 user-data-dir 会强制启动新的浏览器进程,使调试端口正常监听。`--no-first-run --no-default-browser-check` 跳过新 profile 的首次启动向导。:::-通过 CDP 连接后,所有浏览器工具(`browser_navigate`、`browser_click` 等)将在您的实时浏览器实例上运行,而非启动云端会话。+连接后,`browser_exec`、`browser_cdp`、`browser_dialog` 和 `browser_vault` 都会驱动您的实时浏览器,而不再自行启动浏览器。也可以在 `config.yaml` 中设置 `browser.cdp_url`,或使用 `BROWSER_CDP_URL` 环境变量,持久指定该端点。### WSL2 + Windows Chrome:优先使用 MCP 而非 `/browser connect`@@ -345,154 +328,19 @@ google-chrome \- [在 Hermes 中使用 MCP](../../guides/use-mcp-with-hermes.md#wsl2-bridge-hermes-in-wsl-to-windows-chrome)-### 本地浏览器模式--若**未**设置任何云端凭据且未使用 `/browser connect`,Hermes 仍可通过由 `agent-browser` 驱动的本地 Chromium 安装使用浏览器工具。--### 可选环境变量--```bash-# Residential proxies for better CAPTCHA solving (default: "true")-BROWSERBASE_PROXIES=true--# Advanced stealth with custom Chromium — requires Scale Plan (default: "false")-BROWSERBASE_ADVANCED_STEALTH=false+## Bot Desktop 屏幕-# Session reconnection after disconnects — requires paid plan (default: "true")-BROWSERBASE_KEEP_ALIVE=true+当 gateway 运行 [Bot Desktop 屏幕](bot-screen.md)时,机器人的浏览器与 Dock 上的 **Browser** 图标是同一个有头 Chromium,每个机器人一个持久 profile,因此您可以接管、登录某个网站,再把会话交还给 Agent。profile 位置以及 `browser.executable_path` / `browser.user_data_dir` 在那里的作用,请参阅该页面。-# Custom session timeout in milliseconds (default: project default)-# Examples: 600000 (10min), 1800000 (30min)-BROWSERBASE_SESSION_TIMEOUT=600000+## 配套工具-# Inactivity timeout before auto-cleanup in seconds (default: 120)-BROWSER_INACTIVITY_TIMEOUT=120--# Extra Chromium launch flags (comma- or newline-separated). Hermes auto-injects-# `--no-sandbox,--disable-dev-shm-usage` when it detects root or AppArmor-restricted-# unprivileged user namespaces (Ubuntu 23.10+, DGX Spark, many container images),-# so most users don't need to set this. Set it manually only if you need a flag-# Hermes doesn't add automatically; setting it disables the auto-injection.-AGENT_BROWSER_ARGS=--no-sandbox-```--### 安装 agent-browser CLI--```bash-npm install -g agent-browser-# Or install locally in the repo:-npm install-```--:::info-`browser` 工具集必须包含在配置的 `toolsets` 列表中,或通过 `hermes config set toolsets '["hermes-cli", "browser"]'` 启用。-:::--## 可用工具--### `browser_navigate`--导航到指定 URL。必须在其他任何浏览器工具之前调用。初始化 Browserbase 会话。--```-Navigate to https://github.com/NousResearch-```--:::tip-对于简单的信息检索,优先使用 `web_search` 或 `web_extract` — 它们更快且成本更低。仅在需要**与页面交互**(点击按钮、填写表单、处理动态内容)时使用浏览器工具。-:::--### `browser_snapshot`--获取当前页面无障碍树的文本快照。返回带有引用 ID(如 `@e1`、`@e2`)的交互元素,供 `browser_click` 和 `browser_type` 使用。--- **`full=false`**(默认):仅显示交互元素的紧凑视图-- **`full=true`**:完整页面内容--超过 15,000 字符的快照将按行边界自动截断(与 `web_extract` 使用相同的单页预算 —— 无 LLM 摘要)。发生截断时,完整快照会保存到 `~/.hermes/cache/web/`,工具输出中包含文件路径和可直接使用的 `read_file` 调用,代理无需重新截图即可翻阅完整的可访问性树(包括被截断部分的元素 ref)。--### `browser_click`--点击快照中由引用 ID 标识的元素。--```-Click @e5 to press the "Sign In" button-```--### `browser_type`--向输入框输入文本。先清空字段,再输入新文本。--```-Type "hermes agent" into the search field @e3-```--### `browser_scroll`--向上或向下滚动页面以显示更多内容。--```-Scroll down to see more results-```--### `browser_press`--按下键盘按键。适用于提交表单或导航。--```-Press Enter to submit the form-```--支持的按键:`Enter`、`Tab`、`Escape`、`ArrowDown`、`ArrowUp` 等。--### `browser_back`--在浏览器历史记录中返回上一页。--### `browser_get_images`--列出当前页面上所有图片及其 URL 和 alt 文本。适用于查找需要分析的图片。--### `browser_vision`--截图并使用视觉 AI 进行分析。当文本快照无法捕获重要视觉信息时使用 — 尤其适用于 CAPTCHA、复杂布局或视觉验证挑战。--截图会持久保存,文件路径与 AI 分析结果一并返回。在消息平台(Telegram、Discord、Slack、WhatsApp)上,您可以要求 Agent 分享截图 — 它将通过 `MEDIA:` 机制作为原生图片附件发送。--```-What does the chart on this page show?-```--截图存储在 `~/.hermes/cache/screenshots/`,24 小时后自动清理。--### `browser_console`--获取当前页面的浏览器控制台输出(log/warn/error 消息)及未捕获的 JavaScript 异常。对于检测无障碍树中不可见的静默 JS 错误至关重要。--```-Check the browser console for any JavaScript errors-```--使用 `clear=True` 可在读取后清空控制台,使后续调用只显示新消息。--`browser_console` 在带有 `expression` 参数调用时也可执行 JavaScript — 与 DevTools 控制台形式相同,结果以解析后的形式返回(JSON 序列化的对象变为 dict;原始值保持原始类型)。--```-browser_console(expression="document.querySelector('h1').textContent")-browser_console(expression="JSON.stringify(performance.timing)")-```--当当前会话存在活跃的 CDP 监督器时(通常适用于任何对 CDP 兼容后端运行过 `browser_navigate` 的会话),执行通过监督器的持久 WebSocket 进行 — 无子进程启动开销。否则回退到标准 agent-browser CLI 路径。两种方式行为完全相同,仅延迟有差异。--默认情况下执行不受限制 — 代理可以使用 `fetch`、读取存储、查询表单值并执行任何 DOM 提取。针对私有/内部地址的请求在非本地后端上仍会被拦截(SSRF 防护与此设置无关)。如果你在已登录的浏览器配置文件中浏览不可信页面,希望对敏感 JS 原语(Cookie、存储、剪贴板、网络调用、表单值)启用严格的黑名单,可在 `config.yaml` 中设置 `browser.restrict_evaluate: true`。注意该黑名单按原语*名称*匹配,因此也会拦截仅包含 `fetch` 或 `cookie` 等词的合法表达式。+`browser_cdp`、`browser_dialog` 和 `browser_vault` 作用于 `browser_exec` 正在驱动的同一个浏览器会话——本地 Chromium、云端浏览器,或通过 `/browser connect` 连接的浏览器。### `browser_cdp`-原始 Chrome DevTools Protocol 直通 — 用于其他工具未覆盖的浏览器操作的逃生舱口。适用于原生对话框处理、iframe 范围内的执行、Cookie/网络控制,或 Agent 需要的任何 CDP 命令。--**仅在会话启动时 CDP 端点可访问的情况下可用** — 即 `/browser connect` 已连接到运行中的 Chrome、Brave、Chromium 或 Edge 浏览器,或 `config.yaml` 中设置了 `browser.cdp_url`。默认本地 agent-browser 模式、Camofox 和云端提供商(Browserbase、Browser Use、Firecrawl)目前不向此工具暴露 CDP — 云端提供商有每会话 CDP URL,但实时会话路由是后续功能。+原始 Chrome DevTools Protocol 直通——用于一次性操作的逃生舱口:原生对话框处理、iframe 范围内执行、Cookie/网络控制,或 Agent 需要的任何 CDP 命令。(在 `browser_exec` 中,`cdp()` 辅助函数可完成相同的多步工作。)-**CDP 方法参考:** https://chromedevtools.github.io/devtools-protocol/ — Agent 可通过 `web_extract` 访问特定方法页面以查阅参数和返回结构。+**CDP 方法参考:** https://chromedevtools.github.io/devtools-protocol/ ——Agent 可通过 `web_extract` 访问特定方法页面以查阅参数和返回结构。常见用法:@@ -514,116 +362,81 @@ browser_cdp(method="Runtime.evaluate",browser_cdp(method="Network.getAllCookies")```-浏览器级方法(`Target.*`、`Browser.*`、`Storage.*`)省略 `target_id`。页面级方法(`Page.*`、`Runtime.*`、`DOM.*`、`Emulation.*`)需要来自 `Target.getTargets` 的 `target_id`。每次无状态调用相互独立 — 调用间不保留会话状态。--**跨域 iframe:** 传入 `frame_id`(来自 `browser_snapshot.frame_tree.children[]` 中 `is_oopif=true` 的条目)可通过监督器的实时会话路由该 iframe 的 CDP 调用。这是在 Browserbase 上对跨域 iframe 执行 `Runtime.evaluate` 的方式,避免无状态 CDP 连接遭遇签名 URL 过期问题。示例:--```-browser_cdp(- method="Runtime.evaluate",- params={"expression": "document.title", "returnByValue": True},- frame_id="<frame_id from browser_snapshot>",-)-```--同域 iframe 无需 `frame_id` — 在顶层 `Runtime.evaluate` 中使用 `document.querySelector('iframe').contentDocument` 即可。+浏览器级方法(`Target.*`、`Browser.*`、`Storage.*`)省略 `target_id`。页面级方法(`Page.*`、`Runtime.*`、`DOM.*`、`Emulation.*`)需要来自 `Target.getTargets` 的 `target_id`。每次无状态调用相互独立——调用间不保留会话状态。-### `browser_dialog`+**跨域 iframe:** 传入进程外(跨域)iframe 的 `frame_id`,可通过 CDP 监督器为该 frame 维护的实时会话路由调用。这是在 Browserbase 上对跨域 iframe 执行 `Runtime.evaluate` 的方式,可避免无状态 CDP 连接遭遇签名 URL 过期。同域 iframe 无需 `frame_id`——在顶层 `Runtime.evaluate` 中使用 `document.querySelector('iframe').contentDocument` 即可。-响应原生 JS 对话框(`alert` / `confirm` / `prompt` / `beforeunload`)。在此工具出现之前,对话框会静默阻塞页面的 JavaScript 线程,后续 `browser_*` 调用会挂起或抛出异常;现在 Agent 可在 `browser_snapshot` 输出中看到待处理对话框并显式响应。+### `browser_dialog` {#browser_dialog}-**工作流程:**-1. 调用 `browser_snapshot`。若对话框正在阻塞页面,将显示为 `pending_dialogs: [{"id": "d-1", "type": "alert", "message": "..."}]`。-2. 调用 `browser_dialog(action="accept")` 或 `browser_dialog(action="dismiss")`。对于 `prompt()` 对话框,传入 `prompt_text="..."` 提供响应内容。-3. 重新快照 — `pending_dialogs` 为空;页面 JS 线程已恢复。+响应原生 JS 对话框(`alert` / `confirm` / `prompt` / `beforeunload`)。打开的对话框会阻塞页面的 JavaScript 线程,因此在得到响应之前,该页面上的浏览器操作都会停滞。-**检测通过持久 CDP 监督器自动进行** — 每个任务一个 WebSocket,订阅 Page/Runtime/Target 事件。监督器还会在快照中填充 `frame_tree` 字段,使 Agent 可查看当前页面的 iframe 结构,包括跨域(OOPIF)iframe。+持久的 **CDP 监督器**——每个任务一个 WebSocket,订阅 Page/Runtime/Target 事件——会在对话框出现时检测到它。Agent 用 `browser_dialog(action="accept")` 或 `browser_dialog(action="dismiss")` 响应;对于 `prompt()` 对话框传入 `prompt_text="..."`,有多个对话框排队时传入 `dialog_id` 指定其中一个。随后页面 JS 线程恢复运行。-**可用性矩阵:**--| 后端 | 通过 `pending_dialogs` 检测 | 响应(`browser_dialog` 工具) |-|---|---|---|-| 通过 `/browser connect` 或 `browser.cdp_url` 连接的本地 Chrome | ✓ | ✓ 完整工作流 |-| Browserbase | ✓ | ✓ 完整工作流(通过注入的 XHR 桥接) |-| Camofox / 默认本地 agent-browser | ✗ | ✗(无 CDP 端点) |--**在 Browserbase 上的工作原理。** Browserbase 的 CDP 代理会在约 10ms 内在服务端自动关闭真实的原生对话框,因此无法使用 `Page.handleJavaScriptDialog`。监督器通过 `Page.addScriptToEvaluateOnNewDocument` 注入一段小脚本,将 `window.alert`/`confirm`/`prompt` 替换为同步 XHR。我们通过 `Fetch.enable` 拦截这些 XHR — 页面 JS 线程在 XHR 上保持阻塞,直到我们用 Agent 的响应调用 `Fetch.fulfillRequest`。`prompt()` 的返回值原样传回页面 JS。+**在 Browserbase 上的工作原理。** Browserbase 的 CDP 代理会在约 10ms 内在服务端自动关闭真实的原生对话框,因此无法使用 `Page.handleJavaScriptDialog`。监督器通过 `Page.addScriptToEvaluateOnNewDocument` 注入一段小脚本,将 `window.alert`/`confirm`/`prompt` 替换为同步 XHR,并通过 `Fetch.enable` 拦截这些 XHR——页面 JS 线程在 XHR 上保持阻塞,直到监督器用 Agent 的响应调用 `Fetch.fulfillRequest`。`prompt()` 的返回值原样传回页面 JS。**对话框策略**在 `config.yaml` 的 `browser.dialog_policy` 下配置:| 策略 | 行为 ||--------|----------|-| `must_respond`(默认) | 捕获,在快照中显示,等待显式 `browser_dialog()` 调用。在 `browser.dialog_timeout_s`(默认 300 秒)后安全自动关闭,防止有问题的 Agent 永久阻塞。 |-| `auto_dismiss` | 捕获,立即关闭。Agent 仍可在 `browser_state` 历史中看到对话框,但无需操作。 |+| `must_respond`(默认) | 捕获对话框,等待显式 `browser_dialog()` 调用。在 `browser.dialog_timeout_s`(默认 300 秒)后安全自动关闭,防止有问题的 Agent 永久阻塞。 |+| `auto_dismiss` | 捕获,立即关闭。Agent 无需操作。 || `auto_accept` | 捕获,立即接受。适用于导航带有频繁 `beforeunload` 提示的页面。 |-`browser_snapshot.frame_tree` 中的**帧树**上限为 30 帧、OOPIF 深度 2,以控制广告密集页面的负载大小。达到限制时会显示 `truncated: true` 标志;需要完整帧树的 Agent 可使用 `browser_cdp` 配合 `Page.getFrameTree`。+### `browser_vault`-## 实际示例+在当前页面使用已保存的登录信息、密码、银行卡、地址和一次性验证码,机密信息永远不会进入对话。Agent 调用 `browser_vault(action="list")` 以句柄形式查看已保存条目,然后使用 `fill`、`save_login`、`enter_code` 或 `unlock`(1Password / Bitwarden)。页面来源与已保存条目不匹配时拒绝填充。设置、密码管理器后端以及无头使用方式请参阅[凭据保险库](credential-vault.md)。-### 填写网页表单+## 关闭浏览功能-```-User: Sign up for an account on example.com with my email [email protected]+浏览器没有配置开关——请改为禁用 `browser` 工具集。运行 `hermes tools`,为不应浏览的平台取消勾选 **Browser Automation**,或在脚本中:-Agent workflow:-1. browser_navigate("https://example.com/signup")-2. browser_snapshot() → sees form fields with refs-3. browser_type(ref="@e3", text="[email protected]")-4. browser_type(ref="@e5", text="SecurePass123")-5. browser_click(ref="@e8") → clicks "Create Account"-6. browser_snapshot() → confirms success+```bash+hermes tools disable browser # CLI+hermes tools disable browser --platform telegram # one gateway platform```-### 研究动态内容+没有 `terminal` 工具集的会话也不会出现 `browser_exec`。-```-User: What are the top trending repos on GitHub right now?+## Camofox-Agent workflow:-1. browser_navigate("https://github.com/trending")-2. browser_snapshot(full=true) → reads trending repo list-3. Returns formatted results-```+Camofox 已移至插件:`hermes plugins install camofox`。现有的 Camofox 配置会在更新时自动迁移。-## 会话录制+## 实际示例-自动将浏览器会话录制为 WebM 视频文件:+### 填写网页表单-```yaml-browser:- record_sessions: true # default: false```+User: Sign up for an account on example.com with my email [email protected]-启用后,录制在首次 `browser_navigate` 时自动开始,会话关闭时保存到 `~/.hermes/browser_recordings/`。本地模式和云端模式(Browserbase)均支持。超过 72 小时的录制文件自动清理。--## 隐身功能+Agent: browser_exec(code="""+# Opening the signup form+new_tab("https://example.com/signup")+wait_for_load()+fill_input("input[name=email]", "[email protected]")+js("document.querySelector('button[type=submit]').click()")+wait_for_load()+print(page_info())+""")+```-Browserbase 提供自动隐身能力:+对于密码,Agent 使用 `browser_vault`(`save_login` 会在掩码输入框中提示您),而不是自己输入机密信息。-| 功能 | 默认状态 | 说明 |-|---------|---------|-------|-| 基础隐身 | 始终开启 | 随机指纹、视口随机化、CAPTCHA 解决 |-| 住宅代理 | 开启 | 通过住宅 IP 路由以提高访问成功率 |-| 高级隐身 | 关闭 | 自定义 Chromium 构建,需要 Scale 计划 |-| Keep Alive | 开启 | 网络中断后的会话重连 |--:::note-若付费功能在您的计划中不可用,Hermes 会自动降级 — 先禁用 `keepAlive`,再禁用代理 — 确保免费计划也能正常浏览。-:::+### 研究动态内容-## 会话管理+```+User: What are the top trending repos on GitHub right now?-- 每个任务通过 Browserbase 获得独立的浏览器会话-- 非活跃会话在超时后自动清理(默认:2 分钟)-- 后台线程每 30 秒检查一次过期会话-- 进程退出时执行紧急清理,防止孤立会话-- 通过 Browserbase API 释放会话(`REQUEST_RELEASE` 状态)+Agent: browser_exec(code="""+# Reading GitHub trending+new_tab("https://github.com/trending")+wait_for_load()+print(js("[...document.querySelectorAll('article h2 a')].map(a => a.textContent.replace(/\\s+/g, ' ').trim())"))+""")+```## 限制-- **基于文本的交互** — 依赖无障碍树,而非像素坐标-- **快照大小** — 大型页面在 15,000 字符处被截断(与 `web_extract` 一致;无 LLM 摘要);完整快照会保存到 `~/.hermes/cache/web/`,输出中给出路径供 `read_file` 翻阅-- **会话超时** — 云端会话根据提供商计划设置过期-- **费用** — 云端会话消耗提供商额度;对话结束或非活跃后会话自动清理。使用 `/browser connect` 可免费本地浏览。-- **不支持文件下载** — 无法从浏览器下载文件\ No newline at end of file+- **会话超时**——云端会话根据提供商计划设置过期。+- **费用**——云端会话消耗提供商额度;对话结束或非活跃后会话自动清理。本地 Chromium 和 `/browser connect` 免费。+- **Lightpanda**——不支持截图,每个会话只有一个页面。+- **没有终端就没有浏览器**——`browser_exec` 运行 Python,因此没有 `terminal` 工具集的会话无法使用它。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/codex-app-server-runtime.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/codex-app-server-runtime.mdindex d6cba49765e..995092818df 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/codex-app-server-runtime.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/codex-app-server-runtime.md@@ -14,7 +14,7 @@ Hermes 可以选择将 `openai/*` 和 `openai-codex/*` 的轮次交由 [Codex CL- 通过 Codex CLI 使用的相同认证流程,使用你的 **ChatGPT 订阅**运行 OpenAI agent 轮次(无需 API 密钥)。- 使用 **Codex 自带的工具集和沙箱**——`shell` 用于终端/读/写/搜索,`apply_patch` 用于结构化编辑,`update_plan` 用于规划,全部在 seatbelt/landlock 沙箱内运行。- **原生 Codex 插件**——Linear、GitHub、Gmail、Calendar、Canva 等——通过 `codex plugin` 安装后,会自动迁移并在你的 Hermes 会话中激活。-- **Hermes 的丰富工具一并可用**——web_search、web_extract、浏览器自动化、视觉、图像生成、技能和 TTS 通过 MCP 回调提供。Codex 会回调 Hermes 获取其自身没有内置的工具。+- **Hermes 的丰富工具一并可用**——web_search、web_extract、视觉、图像生成、技能和 TTS 通过 MCP 回调提供。Codex 会回调 Hermes 获取其自身没有内置的工具。- **记忆与技能提示持续生效**——Codex 的事件被投影为 Hermes 的消息格式,使自我改进循环看到正常的对话记录。## 模型实际拥有哪些工具@@ -56,7 +56,6 @@ Hermes 可以选择将 `openai/*` 和 `openai-codex/*` 的轮次交由 [Codex CLHermes 将自身注册为 MCP server,以便 Codex 能够回调获取 Codex 自身未内置的工具。通过回调可用的工具:- **`web_search`** / **`web_extract`** — 基于 Firecrawl;对于结构化内容,通常比直接抓取更干净。-- **`browser_navigate` / `browser_click` / `browser_type` / `browser_press` / `browser_snapshot` / `browser_scroll` / `browser_back` / `browser_get_images` / `browser_console` / `browser_vision`** — 通过 Camofox 或 Browserbase 实现完整的浏览器自动化。- **`vision_analyze`** — 调用独立的视觉模型检查图像(与 Codex 的 `view_image` 不同,后者是将图像加载到对话中)。- **`image_generate`** — 通过 Hermes 的 image_gen 插件链生成图像。- **`skill_view` / `skills_list`** — 读取 Hermes 的技能库。@@ -88,7 +87,7 @@ Hermes 将自身注册为 MCP server,以便 Codex 能够回调获取 Codex 自Codex 运行时 worker 内可用的功能:- Codex 完整工具集(shell、apply_patch、update_plan、view_image、web_search)——worker 原生完成实际任务- 已迁移的 Codex 插件——Linear、GitHub 等-- 用于 browser_*、vision、image_gen、技能、TTS 的 Hermes 工具回调+- 用于网页、vision、image_gen、技能、TTS 的 Hermes 工具回调通过 MCP 回调同样可用的功能:- **`kanban_complete` / `kanban_block` / `kanban_comment` / `kanban_heartbeat`** — worker 交接工具。这些工具从环境变量中读取 `HERMES_KANBAN_TASK`(由分发器设置),正确进行访问控制,并写入由 `HERMES_KANBAN_DB` 固定的每个看板 SQLite 数据库。若回调中没有这些工具,此运行时上的 worker 可以完成任务但无法汇报,会一直挂起直到分发器超时。@@ -108,7 +107,7 @@ Kanban 工具通过分发器设置的 `HERMES_KANBAN_TASK` 环境变量进行访| `delegate_task` 子 agent | 是 | 不可用——需要 agent 循环上下文 || `memory`、`session_search`、`todo` | 是 | 不可用——需要 agent 循环上下文 || `web_search`、`web_extract` | 是 | 是(通过 MCP 回调) |-| 浏览器自动化(Camofox/Browserbase) | 是 | 是(通过 MCP 回调) |+| 浏览器自动化(`browser_exec`、`browser_cdp`、`browser_dialog`、`browser_vault`) | 是 | 不可用——未通过 MCP 回调暴露 || `vision_analyze`、`image_generate` | 是 | 是(通过 MCP 回调) || `skill_view`、`skills_list` | 是 | 是(通过 MCP 回调) || `text_to_speech` | 是 | 是(通过 MCP 回调) |@@ -344,7 +343,7 @@ Hermes 的 `mcp_servers` 配置会自动转换为 Codex 所需的 TOML 格式。## Hermes 工具回调(新 MCP server)-Codex 的内置工具集涵盖 shell/文件操作/patch,但没有网络搜索、浏览器自动化、视觉、图像生成等功能。为了在 Codex 轮次中保持这些工具可用,Hermes 在 `~/.codex/config.toml` 中将自身注册为 MCP server:+Codex 的内置工具集涵盖 shell/文件操作/patch,但没有网络搜索、视觉、图像生成等功能。为了在 Codex 轮次中保持这些工具可用,Hermes 在 `~/.codex/config.toml` 中将自身注册为 MCP server:```toml[mcp_servers.hermes-tools]@@ -357,7 +356,7 @@ tool_timeout_sec = 600.0当模型调用 `web_search`(或其他暴露的 Hermes 工具)时,Codex 通过 stdio 生成 `hermes_tools_mcp_server` 子进程,请求通过 `model_tools.handle_function_call()` 分发,结果像其他 MCP 响应一样投影回 Codex。-**通过回调可用的工具:** `web_search`、`web_extract`、`browser_navigate`、`browser_click`、`browser_type`、`browser_press`、`browser_snapshot`、`browser_scroll`、`browser_back`、`browser_get_images`、`browser_console`、`browser_vision`、`vision_analyze`、`image_generate`、`skill_view`、`skills_list`、`text_to_speech`。+**通过回调可用的工具:** `web_search`、`web_extract`、`vision_analyze`、`image_generate`、`skill_view`、`skills_list`、`text_to_speech`。**不可用的工具:** `delegate_task`、`memory`、`session_search`、`todo`。这些工具需要运行中的 AIAgent 上下文(循环中间状态)才能分发,无状态的 MCP 回调无法驱动它们。需要这些工具时,请使用默认 Hermes 运行时(`/codex-runtime auto`)。@@ -433,7 +432,7 @@ tool_timeout_sec = 600.0▼┌──────────────────────────────────────────────────────────┐│ hermes_tools_mcp_server.py (subprocess on demand) │- │ web_search, web_extract, browser_*, vision_analyze, │+ │ web_search, web_extract, vision_analyze, ││ image_generate, skill_view, skills_list, text_to_speech│└──────────────────────────────────────────────────────────┘```diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tool-gateway.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tool-gateway.mdindex 9bb5c8862f3..12b08229999 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tool-gateway.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tool-gateway.md@@ -100,7 +100,7 @@ browser:1. **网页工具** — `web_search` / `web_extract` 走网关的托管搜索端点2. **文生图** — `image_generate` 走网关的 FAL 端点3. **TTS** — `text_to_speech` 走网关的 OpenAI Audio 端点-4. **浏览器** — `browser_navigate` 等走网关的 Browser Use 端点+4. **浏览器** — `browser_exec` 等浏览器工具驱动网关 Browser Use 端点提供的云端浏览器会话网关使用 Nous Portal 凭据认证(在 `hermes model` 完成后写入 `~/.hermes/auth.json`)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.mdindex 4dd9afe4ea9..a9f3160957b 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tools.md@@ -26,7 +26,7 @@ Hermes 内置了丰富的工具注册表,涵盖网页搜索、浏览器自动| **Web** | `web_search`, `web_extract` | 搜索网页并提取页面内容。 || **X 搜索** | `x_search` | 通过 xAI 内置的 `x_search` Responses 工具搜索 X(Twitter)帖子和话题——需要 xAI 凭据(SuperGrok OAuth 或 `XAI_API_KEY`);默认关闭,可通过 `hermes tools` → 🐦 X (Twitter) Search 启用。 || **终端与文件** | `terminal`, `process`, `read_file`, `patch` | 执行命令并操作文件。 |-| **浏览器** | `browser_navigate`, `browser_snapshot`, `browser_vision` | 支持文本和视觉的交互式浏览器自动化。 |+| **浏览器** | `browser_exec`, `browser_cdp`, `browser_dialog`, `browser_vault` | 浏览器自动化:`browser_exec` 通过 CDP 用 Python 驱动 Chromium(支持截图)。Camofox 浏览器是独立的目录插件(`hermes plugins install camofox`)。 || **媒体** | `vision_analyze`, `image_generate`, `video_generate`, `video_analyze`, `text_to_speech` | 多模态分析与生成。`video_generate` 和 `video_analyze` 需手动启用(通过 `hermes tools` 或 `--toolsets` 添加 `video_gen` / `video` 工具集)。 || **Agent 编排** | `todo`, `clarify`, `execute_code`, `delegate_task` | 规划、澄清、代码执行及子 Agent 委托。 || **记忆与召回** | `memory`, `session_search` | 持久化记忆与会话搜索。 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-search.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-search.mdindex 1ecddaa6a48..bae5967c38f 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-search.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-search.md@@ -54,7 +54,7 @@ Brave Search、DDGS 和 xAI 均为**仅搜索**——如果同时需要 `web_ext### 当截断带来不便时-如果您明确需要实时 DOM 而非提取的 markdown —— 例如提取内容很少的 JS 密集页面 —— 请改用 `browser_navigate` + `browser_snapshot`。浏览器工具返回实时无障碍树(超大页面受其自身快照上限约束)。+如果您明确需要实时 DOM 而非提取的 markdown —— 例如提取内容很少的 JS 密集页面 —— 请改用 `browser_exec`:用 `new_tab(url)` + `wait_for_load()` 打开页面,再用 `page_info()` 或 `js()` 提取 DOM 读取内容。它操作的是实时渲染后的页面。---diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/security.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/security.mdindex 0d1948ade92..7426e6b17d7 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/security.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/security.md@@ -493,7 +493,7 @@ security:- "/etc/hermes/blocked-sites.txt"```-当请求被阻止的 URL 时,工具会返回一条错误,说明该域名已被策略阻止。黑名单在 `web_search`、`web_extract`、`browser_navigate` 及所有支持 URL 的工具中均强制执行。+当请求被阻止的 URL 时,工具会返回一条错误,说明该域名已被策略阻止。黑名单在 `web_search`、`web_extract`、`browser_exec` 及所有支持 URL 的工具中均强制执行。完整详情请参见配置指南中的[网站黑名单](./configuration.md#网站黑名单)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.mdindex 90dedef025d..3f6ad51f4e3 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-native.md@@ -205,9 +205,9 @@ hermes gateway uninstall # 移除 schtasks 条目、Startup 快捷方式、pid## 浏览器工具-内置浏览器后端使用 PM 管理的 `agent-browser` 和 Chromium。-Browser Use 则通过 `hermes tools` 配置自己的 CLI。-ARM64 Windows 上的 Chromium/agent-browser 可以使用 x64 模拟,这与原生 Python 不同。+浏览器工具(`browser_exec`)是 Hermes Python 环境的一部分。+本地浏览时,Hermes 启动 PM 安装的固定版本 Chromium(缺失时运行 `hermes pm install chromium`);设置 `browser.executable_path` 可使用其他 Chromium 系程序。云端浏览器在 `hermes tools` 中选择。+ARM64 Windows 上固定的 Chromium 是 x64 构建,通过 Windows 的 x64 模拟运行,这与原生 Python 不同。详见 [浏览器自动化](./features/browser.md)。## 在 Windows 上运行 Hermes — 实用说明@@ -290,10 +290,7 @@ hermes uninstall你只在当前进程中设置了它;请关闭并重新打开 shell,或在系统属性 → 环境变量中以用户作用域设置。在新 PowerShell 窗口中用 `echo $env:EDITOR` 验证。**浏览器工具启动了,但工具调用超时。**-运行 `hermes doctor` 和 `hermes pm doctor`,并通过 `hermes tools` 检查所选浏览器后端。不要向签名包写入另一个 Playwright 版本。--**`agent-browser` 报奇怪的 Node 版本错误。**-运行 `hermes pm doctor` 并检查当前 Hermes 入口。PM 提供固定的 Node 版本,不要为了修复 Hermes 而删除其他程序使用的系统 Node。+运行 `hermes doctor` 和 `hermes pm doctor`,并通过 `hermes tools` 检查所选浏览器提供商。首次启动 Chromium 较慢时,可通过 `browser.command_timeout`(启动超时下限,单位秒)放宽时间。不要向签名包写入另一个 Playwright 版本。**CLI 中中文/日文/阿拉伯文字符显示为 `?`。**UTF-8 stdio 垫片未激活。检查 `HERMES_DISABLE_WINDOWS_UTF8` 是否**未**设置(`Get-ChildItem env:HERMES_DISABLE_WINDOWS_UTF8`)。如果该变量为空但仍然看到 `?`,控制台宿主(非常旧的 `cmd.exe`)可能完全不支持 UTF-8——请切换到 Windows Terminal。