The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(pm): route dependency setup through public operations
ethernet547b5de29dd7
diff --git a/AGENTS.md b/AGENTS.mdindex 771de9758fd..afb2ae4375e 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -299,8 +299,16 @@ Table-driven beats condition ladders for ids/routes/views. `src/app` owns routesAll dependencies carry upper bounds (litellm compromise #2796/#2810; Mini Shai-Hulud worm,May 2026). PyPI: `>=floor,<next_major` (`"httpx>=0.28.1,<1"`); pre-1.0: `<0.(minor+2)`(`>=0.29,<0.32`). Git URLs: 40-char commit SHA. GitHub Actions: SHA + `# vN` comment. CI-only-pip: `==exact`. A bare `>=X.Y.Z` is rejected by CI and reviewers. Run `uv lock` after-changing `pyproject.toml`. Reference: #2810 (bounds), #9801 (SHA pinning + audit CI).+Python requirements: `==exact`. A bare `>=X.Y.Z` is rejected by CI and reviewers.+After changing `pyproject.toml`, run `python -m pm.build_env --source . --lock-only`+with the checkout's prepared Python. Reference: #2810 (bounds), #9801 (SHA pinning + audit CI).++PM owns Hermes Python dependency changes. Use `pm.sync_venv(['extra'], explicit=True)`+for declared runtime extras, `hermes pm install` for setup/sync, and `hermes pm repair`+for damaged dependencies. Do not mutate Hermes environments with raw pip or uv.+Use `pm.build_environment` for fresh build outputs and `pm.ensure_environment` for+isolated tool environments. Callers receive an interpreter or tool path, not uv.+Nix's declarative uv2nix builds and unrelated user projects remain independently owned.## Commits, Merges, PRs@@ -321,6 +329,17 @@ isolation via `scripts/run_tests_parallel.py` (no xdist; workers scale with CPUmodule-level dicts/ContextVars cannot leak between files. Direct `pytest` on a big machinewith API keys set has caused repeated "works locally, fails in CI" incidents (and the reverse).+Prepare a test interpreter with the checkout's bootstrapped Python:++```bash+python -m pm.build_env --source . --out .venv --extra dev --group test+```++This is a fresh build, not an in-place sync. If the disposable output exists,+stop its processes and intentionally remove it before regeneration. The runner+clears `PYTHONPATH`, so PM shell activation alone does not supply pytest. For a+fresh output outside the checkout, set `HERMES_PYTHON` to its interpreter.+```bashscripts/run_tests.sh # full suitescripts/run_tests.sh tests/gateway/ # one directorydiff --git a/CONTRIBUTING.es.md b/CONTRIBUTING.es.mdindex 0c8915ecf81..8eaff6e2071 100644--- a/CONTRIBUTING.es.md+++ b/CONTRIBUTING.es.md@@ -69,66 +69,49 @@ Esto no es una barra de calidad — es una decisión de acoplamiento y mantenimi## Configuración del Desarrollo-### Prerequisitos+### Preparar el entorno-| Requisito | Notas |-|-----------|-------|-| **Git** | Con la extensión `git-lfs` instalada |-| **Python 3.11–3.13** | uv lo instalará si falta |-| **uv** | Gestor de paquetes Python rápido ([instalar](https://docs.astral.sh/uv/)) |-| **Node.js 20+** | Opcional — necesario para herramientas de navegador y puente WhatsApp (coincide con los engines de `package.json` raíz) |+Se requieren Git y git-lfs. PM proporciona Python 3.14 (`>=3.14,<3.15`) y las herramientas fijadas.+Sigue el [flujo de desarrollo de PM](website/docs/reference/package-management.md#developer-workflow).+Selecciona un `HERMES_HOME` de desarrollo antes de preparar el checkout.-### Clonar e instalar+En Bash, desde la raíz del repositorio:```bash-git clone https://github.com/NousResearch/hermes-agent.git-cd hermes-agent--# Crear venv con Python 3.11-uv venv venv --python 3.11-export VIRTUAL_ENV="$(pwd)/venv"--# Instalar con todos los extras (mensajería, cron, menús CLI, herramientas de desarrollo)-uv pip install -e ".[all,dev]"--# Opcional: herramientas de navegador-npm install+source ./activate+python hermes --version```-### Configurar para desarrollo--```bash-mkdir -p ~/.hermes/{cron,sessions,logs,memories,skills}-cp cli-config.yaml.example ~/.hermes/config.yaml-touch ~/.hermes/.env+En PowerShell:-# Añadir al menos una clave de proveedor LLM:-echo "OPENROUTER_API_KEY=***" >> ~/.hermes/.env+```powershell+. .\activate.ps1+python hermes --version```-### Ejecutar+### Entorno independiente de pruebas-```bash-# Enlace simbólico para acceso global-mkdir -p ~/.local/bin-ln -sf "$(pwd)/venv/bin/hermes" ~/.local/bin/hermes+Usa el Python preparado por PM para crear un entorno nuevo:-# Verificar-hermes doctor-hermes chat -q "Hola"+```bash+python -m pm.build_env --source . --out .venv --extra dev --group test+scripts/run_tests.sh tests/agent/ -v```-### Ejecutar tests+La ruta de salida no debe existir. Para regenerarla, detén sus procesos y elimina+explícitamente solo ese entorno desechable. PM no elimina destinos existentes.+No modifiques los entornos de Hermes con comandos directos de pip o uv.+En Windows, ejecuta el script de pruebas mediante Bash.-```bash-# Preferido — coincide con CI (entorno hermético, 4 workers xdist); ver AGENTS.md-scripts/run_tests.sh+Si cambias `pyproject.toml`, regenera el lock con:-# Alternativa (activa el venv primero). El wrapper sigue recomendándose-# para paridad con GitHub Actions antes de abrir un PR:-pytest tests/ -v+```bash+python -m pm.build_env --source . --lock-only```+Para JavaScript, ejecuta `npm ci` en el workspace correspondiente. Consulta+[CONTRIBUTING.md](CONTRIBUTING.md) para los requisitos completos.+---## Estructura del Proyectodiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex dd9c5c00f09..b5ca5a0f1cc 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -110,7 +110,6 @@ A well-built third-party-product plugin can clear automated review and still be|-------------|-------|| **Git** | With the `git-lfs` extension installed || **Python 3.14** | The project requires `>=3.14,<3.15`; PM provides the pinned interpreter |-| **uv** | Fast Python package manager ([install](https://docs.astral.sh/uv/)) || **Node.js** | Use the PM pin, or a version accepted by root `package.json`: `^22.22.0`, `^24.11.0`, or `>=26.0.0` |### PM developer environment@@ -143,39 +142,38 @@ restores the prior shell environment.### Manual development and test environment-Use Python 3.14 (`>=3.14,<3.15`). Keep a development environment outside the-source tree if an agent will operate on that checkout. Leave PM activation-before this sequence. Keep the same development `HERMES_HOME` when running it.+Use the [PM developer workflow](website/docs/reference/package-management.md#developer-workflow) to prepare Python 3.14 (`>=3.14,<3.15`) first.+Run these commands from that checkout with its prepared Python. Keep the same+development `HERMES_HOME`. PM must be able to start before it can build another+environment. On Windows, initialize the native C++ build environment for your+architecture before building source dependencies.-This environment is for tests and editor tools. Its own interpreter includes-pytest without relying on PM's `PYTHONPATH`. On Windows, initialize the native-C++ build environment for your architecture before building source dependencies.--POSIX:+Build an independent interpreter for tests and editor tools:```bash-uv venv "$HOME/.hermes/venvs/hermes-dev" --python 3.14-export UV_PROJECT_ENVIRONMENT="$HOME/.hermes/venvs/hermes-dev"-uv sync --locked --extra all --extra dev-export HERMES_PYTHON="$UV_PROJECT_ENVIRONMENT/bin/python"-"$HERMES_PYTHON" hermes --version+python -m pm.build_env --source . --out .venv --extra dev --group test```-PowerShell:+PM builds from the committed lock and checks dependency consistency before+returning the new interpreter. The `test` group includes native launcher test+dependencies and does not enter the application runtime. If tests require+another declared feature, add its `--extra`.-```powershell-$devEnv = Join-Path $env:LOCALAPPDATA 'hermes-dev-env'-uv venv $devEnv --python 3.14-$env:UV_PROJECT_ENVIRONMENT = $devEnv-uv sync --locked --extra all --extra dev-$env:HERMES_PYTHON = Join-Path $devEnv 'Scripts/python.exe'-& $env:HERMES_PYTHON hermes --version-```+The output must not exist, even as an empty directory or symlink. To regenerate+it after a dependency change, stop its processes and intentionally remove only+that disposable environment first. PM does not delete an existing destination.+Do not run raw pip or uv commands to change a PM-built environment.++To keep the test environment outside the checkout, replace `.venv` with a fresh absolute+path. Set `HERMES_PYTHON` to that environment's interpreter:++- POSIX: `export HERMES_PYTHON="/absolute/path/to/hermes-dev/bin/python"`+- PowerShell: `$env:HERMES_PYTHON = 'C:\absolute\path\to\hermes-dev\Scripts\python.exe'`-This environment is for source development and tests. It does not replace-PM's tool store or a packaged app's dependency selection.-Run `uv pip check --python` with this environment's interpreter to check its dependencies.-Do not install into an MSIX payload or point a bundled app at this environment.+The canonical runner discovers repository `.venv` automatically. It clears+`PYTHONPATH`, so pytest must be installed in the interpreter's own environment.+This test environment does not replace PM's application selection or tool+store. Do not point a bundled app at it or install into an MSIX payload.For an isolated development instance, select a disposable `HERMES_HOME` beforestarting the source command. Use `python hermes setup` to configure it rather@@ -728,7 +726,7 @@ that touches the OS, assume *any* platform can hit your code path.```If you specifically need the hermes wrapper (it has a stdlib fallback- for scaffold-phase imports before pip install finishes), use+ for scaffold-phase imports before PM finishes dependency preparation), use`gateway.status._pid_exists(pid)`. It calls `psutil.pid_exists` firstand falls back to a hand-rolled `OpenProcess + WaitForSingleObject`dance on Windows only when psutil is somehow missing.diff --git a/docs/observability/monitoring.md b/docs/observability/monitoring.mdindex cba4ead1ffa..9f54a170238 100644--- a/docs/observability/monitoring.md+++ b/docs/observability/monitoring.md@@ -60,8 +60,9 @@ Check the posture any time:hermes monitoring status```-The OpenTelemetry SDK is an optional extra (`pip install 'hermes-agent[otlp]'`),-lazy-installed on first use. When the SDK is missing or the endpoint is down,+The OpenTelemetry SDK belongs to the `otlp` extra and installs on first use+when policy permits. To request it explicitly from a prepared checkout, run+`python -c "import pm; pm.sync_venv(['otlp'], explicit=True)"`. When the SDK is missing or the endpoint is down,the gateway runs unaffected: metric collection and ordinary event export stayoff the hot path, while terminal cron events make one bounded fail-open flushattempt of up to one second so the final state is less likely to be lost.diff --git a/docs/rca-ssl-cacert-post-git-pull.md b/docs/rca-ssl-cacert-post-git-pull.mdindex 505def8750f..adde53de811 100644--- a/docs/rca-ssl-cacert-post-git-pull.md+++ b/docs/rca-ssl-cacert-post-git-pull.md@@ -33,20 +33,17 @@ When the venv is partially refreshed, or when one of those env vars points at a## Recovery-When the guard fires during agent init, the user sees a message like:--```text-Failed to initialize OpenAI client: SSL_CERT_FILE points to a missing CA bundle: C:\path\to\missing\cacert.pem-Repair: python -m pip install --force-reinstall certifi openai httpx-If you configured a custom corporate CA bundle, fix or unset the broken CA bundle environment variable.-```--For a normal corrupted Hermes venv, reinstall the affected client dependencies:+If the guard reports a broken custom CA path, fix or unset the named variable.+For damaged Hermes dependencies, ask PM to rebuild the recorded dependency set:```bash-python -m pip install --force-reinstall certifi openai httpx+hermes pm repair```+Restart Hermes after a successful repair. Do not modify a selected generation+with raw pip or uv commands. For a Nix or sealed installation, rebuild or+reinstall through its package owner.+For a custom/corporate CA setup, fix the env var so it points at a real PEM bundle, or unset it if Hermes should use the bundled `certifi` store.## Environment escape hatchdiff --git a/docs/shared-bundle-builds.md b/docs/shared-bundle-builds.mdindex 9e302cd1415..ba4eb9c0c93 100644--- a/docs/shared-bundle-builds.md+++ b/docs/shared-bundle-builds.md@@ -9,7 +9,7 @@ interfaces, not proof that every distribution passed native acceptance.| Layer | Responsibility | Implementation ||---|---|---|-| Dependency providers | Prepare tools, Python environments, JavaScript dependencies, and native bindings | PM/uv, `scripts/build/node-deps.mjs`, `scripts/build/python_env.py`, Nix, and Termux |+| Dependency providers | Prepare tools, Python environments, JavaScript dependencies, and native bindings | PM (`pm.build_environment`), `scripts/build/node-deps.mjs`, Nix, and Termux || Product builders | Compile icons/TUI/web/desktop UI or assemble a runnable agent from prepared inputs | `scripts/generate_icons.py` and `scripts/build/` || Distribution adapters | Select products and package them for their target | `scripts/bundles/`, `Dockerfile`, `nix/`, and `scripts/termux/` |@@ -33,10 +33,11 @@ select an agent payload.## Build and packaging entrypoints-Build a desktop distribution from a checkout at its release tag:+Build a desktop distribution from a checkout at its release tag. Use its+PM-prepared Python 3.14. The driver delegates Python dependency preparation to PM:```sh-uv run --no-project --python 3.14 python scripts/bundles/desktop.py --tag=vX.Y.Z+python -m scripts.bundles.desktop --tag=vX.Y.Z````desktop.py` requires exactly one of `--tag` or `--commit`. Commit buildsdiff --git a/skills/autonomous-ai-agents/hermes-agent/references/configuration.md b/skills/autonomous-ai-agents/hermes-agent/references/configuration.mdindex e92443a56f5..63733b4cfcc 100644--- a/skills/autonomous-ai-agents/hermes-agent/references/configuration.md+++ b/skills/autonomous-ai-agents/hermes-agent/references/configuration.md@@ -72,7 +72,7 @@ stt:model: base # tiny, base, small, medium, large-v3```-Auto-detect priority: local faster-whisper (`pip install faster-whisper`) → Groq (`GROQ_API_KEY`, free tier) → OpenAI (`VOICE_TOOLS_OPENAI_KEY`) → Mistral Voxtral (`MISTRAL_API_KEY`).+Auto-detect priority: local faster-whisper (`python -c "import pm; pm.sync_venv(['stt-whisper'], explicit=True)"`) → Groq (`GROQ_API_KEY`, free tier) → OpenAI (`VOICE_TOOLS_OPENAI_KEY`) → Mistral Voxtral (`MISTRAL_API_KEY`).### TTS (Text → Voice)diff --git a/skills/autonomous-ai-agents/hermes-agent/references/contributor-guide.md b/skills/autonomous-ai-agents/hermes-agent/references/contributor-guide.mdindex 944e0bc9649..240b3ef8ab5 100644--- a/skills/autonomous-ai-agents/hermes-agent/references/contributor-guide.md+++ b/skills/autonomous-ai-agents/hermes-agent/references/contributor-guide.md@@ -96,25 +96,19 @@ scripts/run_tests.sh -v --tb=long # pass-through pytest flags```- Tests auto-redirect `HERMES_HOME` to temp dirs — never touch real `~/.hermes/`.-- The script probes `.venv`, then `venv`, then the shared worktree venv.-- **Windows:** the wrapper is POSIX-only; see `references/windows-quirks.md`- for the direct-pytest workaround.--**Cross-platform test guards:** tests using POSIX-only syscalls need a skip marker. Common ones already in the codebase:-- Symlink creation → `@pytest.mark.skipif(sys.platform == "win32", reason="Symlinks require elevated privileges on Windows")` (see `tests/cron/test_cron_script.py`)-- POSIX file modes (0o600, etc.) → `@pytest.mark.skipif(sys.platform.startswith("win"), reason="POSIX mode bits not enforced on Windows")` (see `tests/hermes_cli/test_auth_toctou_file_modes.py`)-- `signal.SIGALRM` → Unix-only (per-test timeouts no longer use it directly; see the win32 timeout-method shim in `tests/conftest.py::pytest_configure`)-- Live Winsock / Windows-specific regression tests → `@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific regression")`--**Monkeypatching `sys.platform` is not enough** when the code under test also calls `platform.system()` / `platform.release()` / `platform.mac_ver()`. Those functions re-read the real OS independently, so a test that sets `sys.platform = "linux"` on a Windows runner will still see `platform.system() == "Windows"` and route through the Windows branch. Patch all three together:--```python-monkeypatch.setattr(sys, "platform", "linux")-monkeypatch.setattr(platform, "system", lambda: "Linux")-monkeypatch.setattr(platform, "release", lambda: "6.8.0-generic")-```--See `tests/agent/test_prompt_builder.py::TestEnvironmentHints` for a worked example.+- Prepare Python through the PM developer workflow before building a test environment.+- Run `python -m pm.build_env --source . --out .venv --extra dev --group test`.+ The output must not exist. Stop its processes and intentionally remove only+ that disposable environment before regeneration.+- The runner probes repository `.venv`, `venv`, and the standard source-install+ venv before falling back to `HERMES_PYTHON`. Each candidate must contain pytest.+- **Windows:** run the same wrapper through Git Bash. See `references/windows-quirks.md`.+- After dependency changes, run `python -m pm.build_env --source . --lock-only`.+ Do not mutate Hermes environments with raw pip or uv commands.++Host-specific tests run on the real host. Use one `@pytest.mark.platforms(...)`+marker per test, such as `@pytest.mark.platforms("windows", arch="arm64")`.+Do not fake the host by patching `sys.platform` or platform probes.### System prompt's execution-environment blockdiff --git a/skills/autonomous-ai-agents/hermes-agent/references/native-mcp.md b/skills/autonomous-ai-agents/hermes-agent/references/native-mcp.mdindex 2d9133d8bff..9d0229966ff 100644--- a/skills/autonomous-ai-agents/hermes-agent/references/native-mcp.md+++ b/skills/autonomous-ai-agents/hermes-agent/references/native-mcp.md@@ -15,16 +15,14 @@ For ad-hoc, one-off MCP tool calls from the terminal without configuring anythin## Prerequisites-- **mcp Python package** -- optional dependency; install with `pip install mcp`. If not installed, MCP support is silently disabled.+- **MCP Python dependencies** — included in the standard PM install through the `all` extra. Use PM to add the `mcp` extra.- **Node.js** -- required for `npx`-based MCP servers (most community servers)- **uv** -- required for `uvx`-based MCP servers (Python-based servers)Install the MCP SDK:```bash-pip install mcp-# or, if using uv:-uv pip install mcp+python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"```## Quick Start@@ -196,7 +194,7 @@ If an MCP tool call fails, any credential-like patterns in the error message areThe `mcp` Python package is not installed. Install it:```bash-pip install mcp+python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"```### "No MCP servers configured"@@ -213,10 +211,10 @@ Common causes:### "MCP server 'X' requires HTTP transport but mcp.client.streamable_http is not available"-Your `mcp` package version doesn't include HTTP client support. Upgrade:+If the MCP dependencies are damaged, rebuild the recorded environment through PM:```bash-pip install --upgrade mcp+hermes pm repair```### Tools not appearingdiff --git a/skills/autonomous-ai-agents/hermes-agent/references/troubleshooting.md b/skills/autonomous-ai-agents/hermes-agent/references/troubleshooting.mdindex dc13f0fb1ee..7d76e6fa4ee 100644--- a/skills/autonomous-ai-agents/hermes-agent/references/troubleshooting.md+++ b/skills/autonomous-ai-agents/hermes-agent/references/troubleshooting.md@@ -2,7 +2,7 @@### Voice not working1. Check `stt.enabled: true` in config.yaml-2. Verify provider: `pip install faster-whisper` or set API key+2. Verify provider: `python -c "import pm; pm.sync_venv(['stt-whisper'], explicit=True)"` or set API key3. In gateway: `/restart`. In CLI: exit and relaunch.### Tool not availablediff --git a/skills/autonomous-ai-agents/hermes-agent/references/windows-quirks.md b/skills/autonomous-ai-agents/hermes-agent/references/windows-quirks.mdindex 56a40d329c9..0f0e1ddd0c4 100644--- a/skills/autonomous-ai-agents/hermes-agent/references/windows-quirks.md+++ b/skills/autonomous-ai-agents/hermes-agent/references/windows-quirks.md@@ -31,20 +31,27 @@ echo `os.environ` inside an `execute_code` block to confirm `SYSTEMROOT` is set.### Testing on Windows-`scripts/run_tests.sh` is POSIX-only (expects `.venv/bin/activate`); the-Hermes-installed `venv/Scripts/` has no pip/pytest (stripped for size).-Install pytest into a system Python and run directly (the repo no longer-uses pytest-xdist; the canonical runner does per-file subprocess isolation,-which the POSIX-only wrapper handles):+Prepare the checkout through PM first. With its Python 3.14, build an independent+test environment at a fresh path:++```powershell+python -m pm.build_env --source . --out .venv --extra dev --group test+```++The output must not exist. Before regeneration, stop its processes and explicitly+remove only that disposable environment. Do not install into the application+payload or modify a selected dependency generation.++Run the canonical runner through Git Bash:```bash-"/c/Program Files/Python311/python" -m pip install --user pytest ruamel.yaml==0.18.17-export PYTHONPATH="$(pwd)"-"/c/Program Files/Python311/python" -m pytest tests/foo/test_bar.py -v --tb=short+scripts/run_tests.sh tests/foo/test_bar.py -v --tb=short```-(POSIX-only tests need skip guards — see the cross-platform guard list in-`references/contributor-guide.md`.)+The runner discovers `.venv/Scripts/python.exe`, clears credentials and+`PYTHONPATH`, and isolates each test file. For an external test environment,+set `HERMES_PYTHON` to its Python executable. PM shell activation alone does+not supply pytest after the runner clears `PYTHONPATH`.### Path / Filesystemdiff --git a/website/docs/developer-guide/contributing.md b/website/docs/developer-guide/contributing.mdindex d6b9fadb6b5..5c96e695195 100644--- a/website/docs/developer-guide/contributing.md+++ b/website/docs/developer-guide/contributing.md@@ -35,7 +35,6 @@ We value contributions in this order:| -------------------- | --------------------------------------------------------------------------------------------- || **Git** | With the `git-lfs` extension installed || **Python 3.14** | The project requires `>=3.14,<3.15`. PM provides the pinned interpreter. |-| **uv** | Fast Python package manager ([install](https://docs.astral.sh/uv/)) || **Node.js** | Use the PM pin or a version accepted by root `package.json` engines |### PM developer environment@@ -44,7 +43,8 @@ Use the [PM developer workflow](/reference/package-management#developer-workflowdependency changes, and test environments. Select your developmenthome before setup so experimental code does not migrate production data.-After successful setup, activate from the repository root in each new shell.+Activate from the repository root in each new shell. Activation prepares the+checkout through PM and syncs stale dependencies.Bash:@@ -61,44 +61,43 @@ python hermes --version```Run `python hermes` for this checkout, not a global `hermes` alias. PM activation-adds installed tools and the selected dependency tree. It does not install-packages or JS workspaces. `deactivate` restores the prior shell environment.+syncs tools and Python dependencies before adding them to the shell. It does+not install JS workspaces or rewrite launchers and shell configuration. `deactivate` restores the prior shell environment.### Manual development and test environment {#manual-development-and-test-environment}-Use Python 3.14 (`>=3.14,<3.15`). Keep a development environment outside the-source tree if an agent will operate on that checkout. Leave PM activation-before this sequence. Keep the same development `HERMES_HOME` when running it.+Use the [PM developer workflow](/reference/package-management#developer-workflow) to prepare Python 3.14 (`>=3.14,<3.15`) first.+Run these commands from that checkout with its prepared Python. Keep the same+development `HERMES_HOME`. PM must be able to start before it can build another+environment. On Windows, initialize the native C++ build environment for your+architecture before building source dependencies.-This environment is for tests and editor tools. Its own interpreter includes-pytest without relying on PM's `PYTHONPATH`. On Windows, initialize the native-C++ build environment for your architecture before building source dependencies.--POSIX:+Build an independent interpreter for tests and editor tools:```bash-uv venv "$HOME/.hermes/venvs/hermes-dev" --python 3.14-export UV_PROJECT_ENVIRONMENT="$HOME/.hermes/venvs/hermes-dev"-uv sync --locked --extra all --extra dev --group test-export HERMES_PYTHON="$UV_PROJECT_ENVIRONMENT/bin/python"-"$HERMES_PYTHON" hermes --version+python -m pm.build_env --source . --out .venv --extra dev --group test```-PowerShell:+PM builds from the committed lock and checks dependency consistency before+returning the new interpreter. The `test` group includes native launcher test+dependencies and does not enter the application runtime. If tests require+another declared feature, add its `--extra`.-```powershell-$devEnv = Join-Path $env:LOCALAPPDATA 'hermes-dev-env'-uv venv $devEnv --python 3.14-$env:UV_PROJECT_ENVIRONMENT = $devEnv-uv sync --locked --extra all --extra dev --group test-$env:HERMES_PYTHON = Join-Path $devEnv 'Scripts/python.exe'-& $env:HERMES_PYTHON hermes --version-```+The output must not exist, even as an empty directory or symlink. To regenerate+it after a dependency change, stop its processes and intentionally remove only+that disposable environment first. PM does not delete an existing destination.+Do not run raw pip or uv commands to change a PM-built environment.++To keep the test environment outside the checkout, replace `.venv` with a fresh absolute+path. Set `HERMES_PYTHON` to that environment's interpreter:++- POSIX: `export HERMES_PYTHON="/absolute/path/to/hermes-dev/bin/python"`+- PowerShell: `$env:HERMES_PYTHON = 'C:\absolute\path\to\hermes-dev\Scripts\python.exe'`-This environment is for source development and tests. It does not replace-PM's tool store or a packaged app's dependency selection.-Run `uv pip check --python` with this environment's interpreter to check its dependencies.-Do not install into an MSIX payload or point a bundled app at this environment.+The canonical runner discovers repository `.venv` automatically. It clears+`PYTHONPATH`, so pytest must be installed in the interpreter's own environment.+This test environment does not replace PM's application selection or tool+store. Do not point a bundled app at it or install into an MSIX payload.For an isolated development instance, select a disposable `HERMES_HOME` beforestarting the source command. Use `python hermes setup` to configure it ratherdiff --git a/website/docs/getting-started/quickstart.md b/website/docs/getting-started/quickstart.mdindex 002c713f0ac..409667456ec 100644--- a/website/docs/getting-started/quickstart.md+++ b/website/docs/getting-started/quickstart.md@@ -6,6 +6,10 @@ description: "Your first conversation with Hermes Agent — from install to chat# Hermes Agent Quickstart+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+This guide gets you from zero to a working Hermes setup that survives real use. Install, choose a provider, verify a working chat, and know exactly what to do when something breaks.## Prefer to watch?@@ -333,7 +337,7 @@ ACP support ships with the standard `[all]` extras, so the curl installer alreadhermes acp```-(If you installed without `[all]`, run `cd ~/.hermes/hermes-agent && uv pip install -e ".[acp]"` first.)+(If you installed without `[all]`, run `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"` first.)See [ACP Editor Integration](../user-guide/features/acp.md).diff --git a/website/docs/guides/aws-bedrock.md b/website/docs/guides/aws-bedrock.mdindex 348dd17306b..9b2c63c83a0 100644--- a/website/docs/guides/aws-bedrock.md+++ b/website/docs/guides/aws-bedrock.md@@ -6,6 +6,10 @@ description: "Use Hermes Agent with Amazon Bedrock — native Converse API, Anth# AWS Bedrock+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent supports Amazon Bedrock as a native provider. This gives you full access to the Bedrock ecosystem: IAM authentication, Guardrails, cross-region inference profiles, and all foundation models.Hermes routes each model family through the API that serves it best:@@ -25,7 +29,7 @@ All three routes share the same AWS credential chain and region resolution — n- `AWS_ACCESS_KEY_ID` + `AWS_SECRET_ACCESS_KEY` environment variables- `AWS_PROFILE` for SSO or named profiles- `aws configure` for local development-- **boto3** — install with `cd ~/.hermes/hermes-agent && uv pip install -e ".[bedrock]"`+- **boto3** — install with `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['bedrock'], explicit=True)"`- **IAM permissions** — at minimum:- `bedrock:InvokeModel` and `bedrock:InvokeModelWithResponseStream` (for inference)- `bedrock:ListFoundationModels` and `bedrock:ListInferenceProfiles` (for model discovery)@@ -38,7 +42,7 @@ On AWS compute, attach an IAM role with `AmazonBedrockFullAccess` and you're don```bash# Install with Bedrock support-cd ~/.hermes/hermes-agent && uv pip install -e ".[bedrock]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['bedrock'], explicit=True)"# Select Bedrock as your providerhermes modeldiff --git a/website/docs/guides/azure-foundry.md b/website/docs/guides/azure-foundry.mdindex 76412937b0d..d59909e82b7 100644--- a/website/docs/guides/azure-foundry.md+++ b/website/docs/guides/azure-foundry.md@@ -6,6 +6,10 @@ description: "Use Hermes Agent with Microsoft Foundry — OpenAI-style and Anthr# Microsoft Foundry+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent's `azure-foundry` provider supports Microsoft Foundry (formerly Azure AI Foundry) and Azure OpenAI. A single Foundry resource can host models with two different wire formats:- **OpenAI-style** — `POST /v1/chat/completions` on endpoints like `https://<resource>.openai.azure.com/openai/v1`. Used for GPT-4.x, GPT-5.x, Llama, Mistral, and most open-weight models.@@ -101,7 +105,7 @@ The wizard runs a bounded preflight probe (10 s timeout). On failure it offers t`azure-identity` is installed automatically on first use via Hermes' lazy-install path. To pre-install:```bash-pip install azure-identity+python -c "import pm; pm.sync_venv(['azure-identity'], explicit=True)"```### Configuration written to `config.yaml`diff --git a/website/docs/guides/manage-hermes-cloud-with-mcp.md b/website/docs/guides/manage-hermes-cloud-with-mcp.mdindex e7906b19b5b..3ead907c771 100644--- a/website/docs/guides/manage-hermes-cloud-with-mcp.md+++ b/website/docs/guides/manage-hermes-cloud-with-mcp.md@@ -6,6 +6,10 @@ description: "Connect Hermes Agent to the Nous Portal MCP server so your local a# Manage Hermes Cloud with MCP+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+[Hermes Cloud](https://portal.nousresearch.com/cloud) runs hosted Hermes Agent instances for you. Normally you manage them from the `/agents` page in the [Nous Portal](/integrations/nous-portal). This guide connects your **local** Hermes Agent to the Portal's MCP server so you can manage those cloud instances by just asking — "list my cloud agents", "restart the stopped one", "what's it costing me" — without leaving your terminal.It's a standard [MCP](/user-guide/features/mcp) server hosted by Nous Research, gated by the same OAuth login you already use for the Portal. Once connected, Hermes gets two tools it can call on your behalf.@@ -33,7 +37,7 @@ Every call runs against **your** org with your Portal identity, and membership i```bashcd ~/.hermes/hermes-agent- uv pip install -e ".[mcp]"+ python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"```You do **not** need a separate API key or client secret — the server uses OAuth with PKCE, and the login is a browser round-trip.diff --git a/website/docs/guides/python-library.md b/website/docs/guides/python-library.mdindex 1fb0387400e..4037e153834 100644--- a/website/docs/guides/python-library.md+++ b/website/docs/guides/python-library.md@@ -12,15 +12,18 @@ Hermes isn't just a CLI tool. You can import `AIAgent` directly and use it progr## Installation-Clone Hermes and create its supported editable development environment:+Clone Hermes and prepare its source environment through PM. The Bash recipe is:```bashgit clone https://github.com/NousResearch/hermes-agent.gitcd hermes-agent-uv sync+source ./activate```-Run your application with `uv run python your_app.py` from that checkout. Hermes does not publish a supported wheel or source distribution for `requirements.txt` installs.+Run your application with `python your_app.py` from that activated checkout.+For PowerShell preparation or an independent interpreter, see the+[PM developer workflow](/reference/package-management#developer-workflow).+Hermes does not publish a supported wheel or source distribution for `requirements.txt` installs.:::tipThe same environment variables used by the CLI are required when using Hermes as a library. At minimum, set `OPENROUTER_API_KEY` (or `OPENAI_API_KEY` / `ANTHROPIC_API_KEY` if using direct provider access).diff --git a/website/docs/guides/use-mcp-with-hermes.md b/website/docs/guides/use-mcp-with-hermes.mdindex 6b8eee4a592..ea43a4f24ec 100644--- a/website/docs/guides/use-mcp-with-hermes.md+++ b/website/docs/guides/use-mcp-with-hermes.md@@ -6,6 +6,10 @@ description: "A practical guide to connecting MCP servers to Hermes Agent, filte# Use MCP with Hermes+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+This guide shows how to actually use MCP with Hermes Agent in day-to-day workflows.If the feature page explains what MCP is, this guide is about how to get value from it quickly and safely.@@ -37,13 +41,13 @@ That last part matters. Good MCP usage is not just “connect everything.” It## Step 1: install MCP support-If you installed Hermes with the standard install script, MCP support is already included (the installer runs `uv pip install -e ".[all]"`).+If you installed Hermes with the standard install script, MCP support is already included. PM selects the declared `all` extra.If you installed without extras and need to add MCP separately:```bashcd ~/.hermes/hermes-agent-uv pip install -e ".[mcp]"+python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"```For npm-based servers, make sure Node.js and `npx` are available.diff --git a/website/docs/guides/use-voice-mode-with-hermes.md b/website/docs/guides/use-voice-mode-with-hermes.mdindex 996f0167b0d..b034b895c96 100644--- a/website/docs/guides/use-voice-mode-with-hermes.md+++ b/website/docs/guides/use-voice-mode-with-hermes.md@@ -6,6 +6,10 @@ description: "A practical guide to setting up and using Hermes voice mode across# Use Voice Mode with Hermes+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+This guide is the practical companion to the [Voice Mode feature reference](/user-guide/features/voice-mode).If the feature page explains what voice mode can do, this guide shows how to actually use it well.@@ -61,33 +65,37 @@ If that is not solid yet, fix text mode first.### CLI microphone + playback```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[voice]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['voice'], explicit=True)"```### Messaging platforms```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"```### Premium ElevenLabs TTS```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[tts-premium]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['tts-premium'], explicit=True)"```### Local NeuTTS (optional)-```bash-python -m pip install -U neutts[all]-```+The declared `neutts` dependency requires Python below 3.14. The Hermes runtime+requires Python 3.14, so requesting this extra does not install NeuTTS there.+Choose a compatible provider. A separately managed NeuTTS command provider+needs its own supported Python environment.-### Everything+### Combined voice and messaging setup```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[all]"+python -c "import pm; pm.sync_venv(['voice', 'messaging', 'tts-premium', 'edge-tts'], explicit=True)"```+The `all` extra is not every optional feature. It does not include these voice+and messaging extras.+## Step 3: install system dependencies### macOS@@ -153,13 +161,15 @@ ELEVENLABS_API_KEY=***### If you use `hermes setup`-If you choose NeuTTS in the setup wizard, Hermes checks whether `neutts` is already installed. If it is missing, the wizard tells you NeuTTS needs the Python package `neutts` and the system package `espeak-ng`, offers to install them for you, installs `espeak-ng` with your platform package manager, and then runs:+Setup requests declared Python extras through PM. It cannot override their+Python-version or platform markers:-```bash-python -m pip install -U neutts[all]-```+The declared `neutts` dependency requires Python below 3.14. The Hermes runtime+requires Python 3.14, so requesting this extra does not install NeuTTS there.+Choose a compatible provider. A separately managed NeuTTS command provider+needs its own supported Python environment.-If you skip that install or it fails, the wizard falls back to Edge TTS.+Select another provider if a dependency cannot run on your platform.## Step 5: recommended configdiff --git a/website/docs/reference/cli-commands.md b/website/docs/reference/cli-commands.mdindex e6a0c98a11d..a1cd03951e6 100644--- a/website/docs/reference/cli-commands.md+++ b/website/docs/reference/cli-commands.md@@ -6,6 +6,10 @@ description: "Authoritative reference for Hermes terminal commands and command f# CLI Commands Reference+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+This page covers the **terminal commands** you run from your shell.For in-chat slash commands, see [Slash Commands Reference](./slash-commands.md).@@ -1441,7 +1445,7 @@ python -m acp_adapterInstall support first:```bash-cd ~/.hermes/hermes-agent && uv pip install -e '.[acp]'+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"```See [ACP Editor Integration](../user-guide/features/acp.md) and [ACP Internals](../developer-guide/acp-internals.md).@@ -1707,7 +1711,7 @@ Start the Hermes **backend server** — the JSON-RPC/WebSocket gateway the [deskhermes dashboard [options]```-Launch the web dashboard — a browser-based UI for managing configuration, API keys, and monitoring sessions. (For a headless backend with no browser UI — e.g. what the desktop app spawns — use [`hermes serve`](#hermes-serve) above.) Requires `cd ~/.hermes/hermes-agent && uv pip install -e ".[web]"` (FastAPI + Uvicorn). The embedded browser Chat tab is always available and additionally needs the `pty` extra (`cd ~/.hermes/hermes-agent && uv pip install -e ".[web,pty]"`) plus a POSIX PTY environment such as Linux, macOS, or WSL2. See [Web Dashboard](/user-guide/features/web-dashboard) for full documentation.+Launch the web dashboard to manage configuration, API keys, and sessions. For a headless backend, use [`hermes serve`](#hermes-serve). FastAPI, Uvicorn, and the platform PTY helper are core dependencies. The `web` extra adds exact HTTP-stack constraints and is selected by standard PM setup through `all`. If dependencies are damaged, run `hermes pm repair`. The embedded Chat tab requires a POSIX PTY environment, such as Linux, macOS, or WSL2. See [Web Dashboard](/user-guide/features/web-dashboard).| Option | Default | Description ||--------|---------|-------------|diff --git a/website/docs/reference/faq.md b/website/docs/reference/faq.mdindex 2cd6225f2cb..d8670367ecb 100644--- a/website/docs/reference/faq.md+++ b/website/docs/reference/faq.md@@ -6,6 +6,10 @@ description: "Frequently asked questions and solutions to common issues with Her# FAQ & Troubleshooting+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Quick answers and fixes for the most common questions and issues.---@@ -433,7 +437,7 @@ Configure in `~/.hermes/config.yaml` under your gateway's settings. See the [Mes**Solution:**```bash# Install core messaging gateway dependencies-cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]" # Telegram, Discord, Slack, and shared gateway deps+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)" # Telegram, Discord, Slack, and shared gateway deps# Check for port conflictslsof -i :8080@@ -559,7 +563,7 @@ hermes chat --continue**Solution:**```bash# Ensure MCP dependencies are installed (already included in standard install)-cd ~/.hermes/hermes-agent && uv pip install -e ".[mcp]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"# For npm-based servers, ensure Node.js is availablenode --versiondiff --git a/website/docs/reference/package-management.md b/website/docs/reference/package-management.mdindex 980ebed11bc..6f08e664407 100644--- a/website/docs/reference/package-management.md+++ b/website/docs/reference/package-management.md@@ -176,13 +176,15 @@ not select `dev` or install JS workspaces. It also skips setup's user-facinginstallation work: shell configuration, launchers, `.env`, and bundled skills.Run the setup script separately if you want that full installation workflow.-The bootstrap uses uv to install and locate Python, then waits for uv to exit.-PM uses the staged uv to prepare its own small, locked Python environment-before downloading its managed tools, reading plugin configuration, or resolving-application dependencies. Its project is deliberately-independent of the application workspace: a broken application dependency must-not prevent its dependency manager from starting. Each uv subprocess exits before-PM runs, so it cannot hold the uv executable that PM needs to replace.+Before Python exists, the shell bootstrap acquires the pinned interpreter.+Once Python can run, it hands dependency work to PM. PM's private engine+prepares its small, locked runtime before resolving application dependencies.+Its project is independent of the application workspace: a broken application+dependency must not prevent the dependency manager from starting.++uv is a private PM implementation detail. Application code, setup flows, and+build callers request Python operations, not uv executables or command arguments.+Do not mutate a Hermes environment with raw pip or uv commands.PM's runtime contains `ruamel.yaml`, `packaging`, `tomli-w`, and `truststore`, not the applicationdependency tree. CLI commands and application-requested installs and repairs run@@ -305,10 +307,16 @@ to this installation's existing Python selection. Extras accumulate through PMsync. `pm install dev` is not a supported command: `dev` is an extra, not a tool.After changing extras, reactivate before starting another Python process.-For a new project dependency, edit `pyproject.toml` and regenerate `uv.lock`-with `uv lock`. For JS dependencies, update the owning package manifest and-lock. Do not edit PM facts or generated workspaces. Unrecorded pip installs-are not durable and can disappear when PM selects a new environment.+For a new project dependency, edit `pyproject.toml` and regenerate `uv.lock`:++```bash+python -m pm.build_env --source . --lock-only+```++This resolves the source lock without creating or selecting an application+environment. Use the checkout's prepared Python. For JS dependencies, update+the owning package manifest and lock. Do not edit PM facts or generated+workspaces, and do not install packages directly into a selected generation.### Test and editor environments@@ -316,9 +324,16 @@ PM's `dev` extra does not make a bare store Python suitable for the canonicaltest runner. The runner clears `PYTHONPATH` and needs an interpreter with pytestinstalled in its own environment. Use the contributor guide's[independent test environment](/developer-guide/contributing#manual-development-and-test-environment)-with `uv sync --extra dev --group test`, then run `scripts/run_tests.sh`-(through Bash on Windows). The `test` dependency group includes native launcher-test dependencies and does not enter a packaged runtime.+with this command from the prepared checkout:++```bash+python -m pm.build_env --source . --out .venv --extra dev --group test+```++The output must not exist. To regenerate it, stop its processes and intentionally+remove only that disposable environment first. PM never deletes an existing+output. Then run `scripts/run_tests.sh` (through Bash on Windows). The `test`+dependency group includes native launcher tests and does not enter a packaged runtime.The runner checks repository `.venv`, repository `venv`, and the standardsource-install venv before using `HERMES_PYTHON` as a fallback. Read its startup@@ -331,6 +346,32 @@ directory to this checkout, and launch `hermes` as the script. Keep itsan editor that was already running. Do not point an editor at a transient PMgeneration or a signed application's Python executable.+### Python operation interfaces++Use the public `pm` module for Python dependency work:++| Operation | Ownership |+|---|---|+| `pm.sync_venv(extras, explicit=True)` | Prepare and select the complete application dependency union, including enabled plugins. |+| `pm.sync_venv(repair=True, explicit=True)` | Replay the recorded dependency set in a new application generation. |+| `pm.build_environment(source=..., out=..., explicit=True)` | Build and validate a fresh caller-owned output. No plugin discovery or application selection. |+| `pm.lock_project(source, explicit=True)` | Refresh an explicit project's lock without selecting an environment. |+| `pm.ensure_environment(name, requirements, explicit=True)` | Prepare and select an isolated dependency generation. Return its Python path. |+| `pm.ensure_python_tool(name, requirements, executable, explicit=True)` | Prepare an isolated tool and return its executable path. |+| `pm.environment_python(name)` / `pm.python_tool(name, executable)` | Read selected paths without installing anything. |++`pm.build_env` is the command-line interface for explicit builds and lock work.+Run `python -m pm.build_env --help` for its supported options. By default, project+builds use the committed lock. `--resolve` resolves before building. `--python`+selects an explicit build interpreter. `--sealed` removes build-time `.pth`+references. `--offline` and `--cache` control dependency acquisition.++PM must already be able to start in the invoking Python. These build commands+are not an interpreter bootstrap. They do not modify a running application's+imports or replace its selected environment. Nix's declarative uv2nix builds+remain Nix-owned. Package-manager commands for unrelated projects or agent+sandboxes do not manage Hermes itself.+## Commands```bashdiff --git a/website/docs/user-guide/configuration.md b/website/docs/user-guide/configuration.mdindex 7ca818974f4..cb54b74be2b 100644--- a/website/docs/user-guide/configuration.md+++ b/website/docs/user-guide/configuration.md@@ -6,6 +6,10 @@ description: "Configure Hermes Agent — config.yaml, providers, models, API key# Hermes Agent Configuration+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+All settings are stored in the `~/.hermes/` directory for easy access.:::tip Easiest path to a working `config.yaml`@@ -512,7 +516,7 @@ terminal:**Required install:** Install the optional SDK extra:```bash-pip install 'hermes-agent[vercel]'+python -c "import pm; pm.sync_venv(['vercel'], explicit=True)"```**Required authentication:** Configure access-token auth with all three of `VERCEL_TOKEN`, `VERCEL_PROJECT_ID`, and `VERCEL_TEAM_ID`. This is the supported setup for deployments and normal long-running Hermes processes on Render, Railway, Docker, and similar hosts.@@ -2250,7 +2254,7 @@ Set `stt.echo_transcripts: false` when the gateway should transcribe voice notesProvider behavior:-- `local` uses `faster-whisper` running on your machine. Install it separately with `pip install faster-whisper`. Silence-hallucination hardening is on by default: a Silero VAD filter keeps silence/noise from ever reaching Whisper, cross-window conditioning is disabled, and segments the model itself flags as probably-not-speech *and* low-confidence are dropped. Set `stt.local.vad: false` to transcribe non-speech audio (music, ambient) with the raw behavior. The model stays loaded in memory between voice messages for low-latency transcription; set `stt.local.unload_after_idle_seconds` (e.g. `300` for 5 minutes) to automatically release the model when idle. This frees GPU memory on CUDA hosts (the main win when a local LLM shares the GPU); on CPU the memory becomes reusable by the process, though the OS-visible footprint may not shrink until the process needs the space for something else. The next voice message reloads the model transparently.+- `local` uses `faster-whisper` running on your machine. Install it separately with `python -c "import pm; pm.sync_venv(['stt-whisper'], explicit=True)"`. Silence-hallucination hardening is on by default: a Silero VAD filter keeps silence/noise from ever reaching Whisper, cross-window conditioning is disabled, and segments the model itself flags as probably-not-speech *and* low-confidence are dropped. Set `stt.local.vad: false` to transcribe non-speech audio (music, ambient) with the raw behavior. The model stays loaded in memory between voice messages for low-latency transcription; set `stt.local.unload_after_idle_seconds` (e.g. `300` for 5 minutes) to automatically release the model when idle. This frees GPU memory on CUDA hosts (the main win when a local LLM shares the GPU); on CPU the memory becomes reusable by the process, though the OS-visible footprint may not shrink until the process needs the space for something else. The next voice message reloads the model transparently.- `groq` uses Groq's Whisper-compatible endpoint and reads `GROQ_API_KEY`. Pass `stt.groq.language` (or the global `HERMES_LOCAL_STT_LANGUAGE` env var) to skip auto-detection and reduce latency.- `openai` uses the OpenAI speech API and reads `VOICE_TOOLS_OPENAI_KEY`.@@ -2423,7 +2427,7 @@ quick_commands:command: df -h /update:type: exec- command: cd ~/.hermes/hermes-agent && git pull && uv pip install -e .+ command: hermes updategpu:type: execcommand: nvidia-smi --query-gpu=name,utilization.gpu,memory.used,memory.total --format=csv,noheaderdiff --git a/website/docs/user-guide/features/acp.md b/website/docs/user-guide/features/acp.mdindex aff86e2a32b..8cba8082f9f 100644--- a/website/docs/user-guide/features/acp.md+++ b/website/docs/user-guide/features/acp.md@@ -6,6 +6,10 @@ description: "Use Hermes Agent inside ACP-compatible editors and collaboration p# ACP Host Integration+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent can run as an ACP server, letting ACP-compatible hosts talk toHermes over stdio. Editors can render:@@ -40,7 +44,7 @@ It intentionally excludes things that do not fit typical editor UX, such as messInstall Hermes normally, then add the ACP extra from the install checkout:```bash-cd ~/.hermes/hermes-agent && uv pip install -e '.[acp]'+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"```This installs the `agent-client-protocol` dependency and enables:@@ -376,7 +380,7 @@ Check:- For manual/local development, verify the host command points to `hermes acp`.- Hermes is installed and on your PATH.-- The ACP extra is installed (`cd ~/.hermes/hermes-agent && uv pip install -e '.[acp]'`).+- The ACP extra is installed (`cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"`).### ACP starts but immediately errorsdiff --git a/website/docs/user-guide/features/mcp.md b/website/docs/user-guide/features/mcp.mdindex 150753f1fa5..cb942ea6402 100644--- a/website/docs/user-guide/features/mcp.md+++ b/website/docs/user-guide/features/mcp.md@@ -6,6 +6,10 @@ description: "Connect Hermes Agent to external tool servers via MCP — and cont# MCP (Model Context Protocol)+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+MCP lets Hermes Agent connect to external tool servers so the agent can use tools that live outside Hermes itself — GitHub, databases, file systems, browser stacks, internal APIs, and more.If you have ever wanted Hermes to use a tool that already exists somewhere else, MCP is usually the cleanest way to do it.@@ -736,7 +740,7 @@ Check:```bash# Verify MCP deps are installed (already included in standard install)-cd ~/.hermes/hermes-agent && uv pip install -e ".[mcp]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"node --versionnpx --versiondiff --git a/website/docs/user-guide/features/tools.md b/website/docs/user-guide/features/tools.mdindex 94963855d89..c8d11c7c9c2 100644--- a/website/docs/user-guide/features/tools.md+++ b/website/docs/user-guide/features/tools.md@@ -6,6 +6,10 @@ description: "Overview of Hermes Agent's tools — what's available, how toolset# Tools & Toolsets+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Tools are functions that extend the agent's capabilities. They're organized into logical **toolsets** that can be enabled or disabled per platform.## Available Tools@@ -151,7 +155,7 @@ hermes config set terminal.singularity_image ~/python.sif### Modal (Serverless Cloud)```bash-uv pip install modal+python -c "import pm; pm.sync_venv(['modal'], explicit=True)"modal setuphermes config set terminal.backend modal```@@ -159,7 +163,7 @@ hermes config set terminal.backend modal### Vercel Sandbox```bash-pip install 'hermes-agent[vercel]'+python -c "import pm; pm.sync_venv(['vercel'], explicit=True)"hermes config set terminal.backend vercel_sandboxhermes config set terminal.vercel_runtime node24```diff --git a/website/docs/user-guide/features/tts.md b/website/docs/user-guide/features/tts.mdindex 8cabbb842f8..b5d6593eec9 100644--- a/website/docs/user-guide/features/tts.md+++ b/website/docs/user-guide/features/tts.md@@ -6,6 +6,10 @@ description: "Text-to-speech and voice message transcription across all platform# Voice & TTS+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent supports both text-to-speech output and voice message transcription across all messaging platforms.:::tip Nous Subscribers@@ -231,7 +235,9 @@ See the [xAI Custom Voices docs](https://docs.x.ai/developers/model-capabilitiesPiper is a fast, local neural TTS engine from the Open Home Foundation (the Home Assistant maintainers). It runs entirely on CPU, supports **44 languages** with pre-trained voices, and needs no API key.-**Install via `hermes tools`** → Voice & TTS → Piper — Hermes runs `pip install piper-tts` for you. Or install manually: `pip install piper-tts`.+**Install via `hermes tools`** → Voice & TTS → Piper. Hermes requests the+`piper` extra through PM. From a prepared source checkout, the explicit command+is `python -c "import pm; pm.sync_venv(['piper'], explicit=True)"`. Platform markers still apply.**Switch to Piper:**@@ -316,6 +322,9 @@ tts:For high-quality Chinese TTS via ByteDance's [seed-tts-2.0](https://www.volcengine.com/docs/6561/1257544) bidirectional-streaming API, install the [`doubao-speech`](https://pypi.org/project/doubao-speech/) PyPI package and wire it in as a command provider:+Install this external command provider in its own tool environment, not in+Hermes's Python environment. Make its executable available on `PATH`.+```bashpip install doubao-speechexport VOLCENGINE_APP_ID="your-app-id"@@ -506,7 +515,7 @@ stt:**OpenAI API** — Accepts `VOICE_TOOLS_OPENAI_KEY` first and falls back to `OPENAI_API_KEY`. Supports `whisper-1`, `gpt-4o-mini-transcribe`, `gpt-4o-transcribe`, and `gpt-transcribe`.-**Mistral API (Voxtral Transcribe)** — Requires `MISTRAL_API_KEY`. Uses Mistral's [Voxtral Transcribe](https://docs.mistral.ai/capabilities/audio/speech_to_text/) models. Supports 13 languages, speaker diarization, and word-level timestamps. Install with `cd ~/.hermes/hermes-agent && uv pip install -e ".[mistral]"`.+**Mistral API (Voxtral Transcribe)** — Requires `MISTRAL_API_KEY`. Uses Mistral's [Voxtral Transcribe](https://docs.mistral.ai/capabilities/audio/speech_to_text/) models. Supports 13 languages, speaker diarization, and word-level timestamps. Install with `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['mistral'], explicit=True)"`.**xAI Grok STT** — Requires `XAI_API_KEY`. Posts to `https://api.x.ai/v1/stt` as multipart/form-data. Good choice if you're already using xAI for chat or TTS and want one API key for everything. Auto-detection order puts it after Groq — explicitly set `stt.provider: xai` to force it.@@ -516,6 +525,9 @@ stt:If you use [`doubao-speech`](https://pypi.org/project/doubao-speech/) for Doubao TTS (see [above](#example-doubao-chinese-seed-tts-20)), the same package handles speech-to-text via the local-command STT surface:+Install this external command provider in its own tool environment, not in+Hermes's Python environment. Make its executable available on `PATH`.+```bashpip install doubao-speechexport VOLCENGINE_APP_ID="your-app-id"diff --git a/website/docs/user-guide/features/web-dashboard.md b/website/docs/user-guide/features/web-dashboard.mdindex 8a38239e446..df61a802adc 100644--- a/website/docs/user-guide/features/web-dashboard.md+++ b/website/docs/user-guide/features/web-dashboard.md@@ -80,13 +80,14 @@ across profiles with its own filter).## Prerequisites-The default `hermes-agent` install does not ship the HTTP stack or PTY helper — those are optional extras. The **web dashboard** needs FastAPI and Uvicorn (`web` extra). The **Chat** tab also needs `ptyprocess` to spawn the embedded TUI behind a pseudo-terminal (`pty` extra on POSIX). Install both with:+FastAPI, Uvicorn, and the platform PTY helper are core Hermes dependencies.+The `web` extra adds exact constraints for the HTTP stack. The `pty` extra is+empty because its dependencies are already core. Standard PM setup includes+`web` through `all`.-```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[web,pty]"-```--The `web` extra pulls in FastAPI/Uvicorn; `pty` pulls in `ptyprocess` (POSIX) or `pywinpty` (native Windows — note that the embedded TUI itself still requires WSL). `cd ~/.hermes/hermes-agent && uv pip install -e ".[all]"` includes both extras and is the easiest path if you also want messaging/voice/etc.+If these dependencies are damaged, run `hermes pm repair` and restart Hermes.+For source setup, use the [PM developer workflow](/reference/package-management#developer-workflow).+Messaging and voice extras are separate requests, not implied by `all`.When you run `hermes dashboard` without the dependencies, it will tell you what to install. If the frontend hasn't been built yet and `npm` is available, it builds automatically on first launch.@@ -144,7 +145,7 @@ The **Chat** tab embeds the full Hermes TUI (the same interface you get from `he**Prerequisites:**- Node.js (same requirement as `hermes --tui`; the TUI bundle is built on first launch)-- `ptyprocess` — installed by the `pty` extra (`cd ~/.hermes/hermes-agent && uv pip install -e ".[web,pty]"`, or `[all]` covers both)+- `ptyprocess` — a core dependency on POSIX- POSIX kernel (Linux, macOS, or WSL2). The `/chat` terminal pane specifically needs a POSIX PTY — native Windows Python has no equivalent, so on a native Windows install the rest of the dashboard (sessions, jobs, metrics, config editor) works but the `/chat` tab will show a banner telling you to use WSL2 for that feature.Close the browser tab and the PTY is reaped cleanly on the server. Re-opening spawns a fresh session.diff --git a/website/docs/user-guide/features/web-search.md b/website/docs/user-guide/features/web-search.mdindex bcd6b34255a..37f21de9c32 100644--- a/website/docs/user-guide/features/web-search.md+++ b/website/docs/user-guide/features/web-search.md@@ -7,6 +7,10 @@ sidebar_position: 6# Web Search & Extract+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent includes two model-callable web tools backed by multiple providers:- **`web_search`** — search the web and return ranked results@@ -29,7 +33,7 @@ Both are configured through a single backend selection. Providers are chosen via| **Keenable** | `KEENABLE_API_KEY` (optional) | ✔ | ✔ | ✔ Keyless ring member · paid with key || **xAI (Grok)** | `XAI_API_KEY` or `hermes auth add xai-oauth` | ✔ | — | Paid (SuperGrok or per-token) |-Brave Search, DDGS, and xAI are **search-only** — pair any of them with Firecrawl/Tavily/Perplexity/Keenable/Exa/Parallel when you also need `web_extract`. DDGS uses the [`ddgs` Python package](https://pypi.org/project/ddgs/) under the hood; if it isn't already installed, run `pip install ddgs` (or let Hermes lazy-install it on first use). xAI runs Grok's server-side `web_search` tool on the Responses API — results are LLM-generated rather than index-backed, so titles, descriptions, and URL choice are all model output (see the [trust-model caveat](#xai-grok) below).+Brave Search, DDGS, and xAI are **search-only** — pair any of them with Firecrawl/Tavily/Perplexity/Keenable/Exa/Parallel when you also need `web_extract`. DDGS uses the [`ddgs` Python package](https://pypi.org/project/ddgs/) under the hood; if it isn't already installed, run `python -c "import pm; pm.sync_venv(['ddgs'], explicit=True)"` (or let Hermes lazy-install it on first use). xAI runs Grok's server-side `web_search` tool on the Responses API — results are LLM-generated rather than index-backed, so titles, descriptions, and URL choice are all model output (see the [trust-model caveat](#xai-grok) below).**Per-capability split:** you can use different providers for search and extract independently — for example SearXNG (free) for search and Firecrawl for extract. See [Per-capability configuration](#per-capability-configuration) below.diff --git a/website/docs/user-guide/messaging/dingtalk.md b/website/docs/user-guide/messaging/dingtalk.mdindex 72ec3f2eadc..0fccd091284 100644--- a/website/docs/user-guide/messaging/dingtalk.md+++ b/website/docs/user-guide/messaging/dingtalk.md@@ -6,6 +6,10 @@ description: "Set up Hermes Agent as a DingTalk chatbot"# DingTalk Setup+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent integrates with DingTalk (钉钉) as a chatbot, letting you chat with your AI assistant through direct messages or group chats. The bot connects via DingTalk's Stream Mode — a long-lived WebSocket connection that requires no public URL or webhook server — and replies using markdown-formatted messages through DingTalk's session webhook API.Before setup, here's the part most people want to know: how Hermes behaves once it's in your DingTalk workspace.@@ -44,14 +48,10 @@ This guide walks you through the full setup process — from creating your DingTInstall the required Python packages:```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[dingtalk]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['dingtalk'], explicit=True)"```-Or individually:--```bash-pip install dingtalk-stream httpx alibabacloud-dingtalk-```+This extra supplies the SDKs alongside core Hermes dependencies:- `dingtalk-stream` — DingTalk's official SDK for Stream Mode (WebSocket-based real-time messaging)- `httpx` — async HTTP client used for sending replies via session webhooks@@ -236,7 +236,7 @@ display:**Fix**: Install it:```bash-pip install dingtalk-stream httpx+python -c "import pm; pm.sync_venv(['dingtalk'], explicit=True)"```### "DINGTALK_CLIENT_ID and DINGTALK_CLIENT_SECRET required"diff --git a/website/docs/user-guide/messaging/feishu.md b/website/docs/user-guide/messaging/feishu.mdindex 1c5a66543e4..4f319a51a74 100644--- a/website/docs/user-guide/messaging/feishu.md+++ b/website/docs/user-guide/messaging/feishu.md@@ -6,6 +6,10 @@ description: "Set up Hermes Agent as a Feishu or Lark bot"# Feishu / Lark Setup+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent integrates with Feishu and Lark as a full-featured bot. Once connected, you can chat with the agent in direct messages or group chats, receive cron job results in a home chat, and send text, images, audio, and file attachments through the normal gateway flow.The integration supports both connection modes:@@ -569,9 +573,9 @@ WebSocket and per-group ACL settings are configured via `config.yaml` under `pla| Problem | Fix ||---------|-----|-| `lark-oapi not installed` | Install the SDK: `pip install lark-oapi` |-| `websockets not installed; websocket mode unavailable` | Install websockets: `pip install websockets` |-| `aiohttp not installed; webhook mode unavailable` | Install aiohttp: `pip install aiohttp` |+| `lark-oapi not installed` | Install the SDK: `python -c "import pm; pm.sync_venv(['feishu'], explicit=True)"` |+| `websockets not installed; websocket mode unavailable` | Install websockets: `hermes pm repair` |+| `aiohttp not installed; webhook mode unavailable` | Install aiohttp: `python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"` || `FEISHU_APP_ID or FEISHU_APP_SECRET not set` | Set both env vars or configure via `hermes gateway setup` || `Another local Hermes gateway is already using this Feishu app_id` | Only one Hermes instance can use the same app_id at a time. Stop the other gateway first. || Bot doesn't respond in groups | Ensure the bot is @mentioned, check `FEISHU_GROUP_POLICY`, and verify the sender is in `FEISHU_ALLOWED_USERS` if policy is `allowlist` |diff --git a/website/docs/user-guide/messaging/matrix.md b/website/docs/user-guide/messaging/matrix.mdindex 5d5d3dea39d..387a41ab19d 100644--- a/website/docs/user-guide/messaging/matrix.md+++ b/website/docs/user-guide/messaging/matrix.md@@ -6,6 +6,10 @@ description: "Set up Hermes Agent as a Matrix bot"# Matrix Setup+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes Agent integrates with Matrix, the open, federated messaging protocol. Matrix lets you run your own homeserver or use a public one like matrix.org — either way, you keep control of your communications. The bot connects via the `mautrix` Python SDK, processes messages through the Hermes Agent pipeline (including tool use, memory, and reasoning), and responds in real time. It supports text, file attachments, images, audio, video, and optional end-to-end encryption (E2EE).Hermes works with any Matrix homeserver — Synapse, Conduit, Dendrite, or matrix.org.@@ -360,11 +364,8 @@ Hermes supports Matrix end-to-end encryption, so you can chat with your bot in eE2EE requires the `mautrix` library with encryption extras and the `libolm` C library:```bash-# Install mautrix with E2EE support-pip install 'mautrix[encryption]'--# Or install with hermes extras-cd ~/.hermes/hermes-agent && uv pip install -e ".[matrix]"+# Request the declared Matrix dependencies+python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"```You also need `libolm` installed on your system:@@ -618,13 +619,13 @@ If this returns your user info, the token is valid. If it returns an error, gene**Fix**: Install it:```bash-pip install 'mautrix[encryption]'+python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"```Or with Hermes extras:```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[matrix]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"```### Encryption errors / "could not decrypt event"@@ -801,18 +802,10 @@ services:- ./matrix-store:/root/.hermes/platforms/matrix/store```-**`Dockerfile`:**--```dockerfile-FROM python:3.11-slim--RUN apt-get update && apt-get install -y libolm-dev && rm -rf /var/lib/apt/lists/*-RUN cd ~/.hermes/hermes-agent && uv pip install -e ".[matrix]"--CMD ["hermes", "gateway"]-```--That's the entire container. No API keys for OpenRouter, Anthropic, or any inference provider.+Use the repository's [Docker build](/user-guide/docker), which includes the+Matrix extra on compatible Linux targets and the required native libraries.+Do not install dependencies into the sealed image at runtime. The container+needs Matrix credentials and proxy access, not inference-provider API keys.### Step 3: Start Bothdiff --git a/website/docs/user-guide/messaging/qqbot.md b/website/docs/user-guide/messaging/qqbot.mdindex e5050b304fc..de68781b2bf 100644--- a/website/docs/user-guide/messaging/qqbot.md+++ b/website/docs/user-guide/messaging/qqbot.md@@ -1,5 +1,9 @@# QQ Bot+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Connect Hermes to QQ via the **Official QQ Bot API (v2)** — supporting private (C2C), group @-mentions, guild, and direct messages with voice transcription.## Overview@@ -20,7 +24,7 @@ The QQ Bot adapter uses the [Official QQ Bot API](https://bot.q.qq.com/wiki/deve2. **Dependencies** — The adapter requires `aiohttp` and `httpx`:```bash- pip install aiohttp httpx+ python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"```## Configuration@@ -118,6 +122,6 @@ This usually means:### Connection errors-- Ensure `aiohttp` and `httpx` are installed: `pip install aiohttp httpx`+- Ensure `aiohttp` and `httpx` are installed: `python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"`- Check network connectivity to `api.sgroup.qq.com` and the WebSocket gateway- Review gateway logs for detailed error messages and reconnect behaviordiff --git a/website/docs/user-guide/messaging/simplex.md b/website/docs/user-guide/messaging/simplex.mdindex cffff51fe0a..85c2fe98feb 100644--- a/website/docs/user-guide/messaging/simplex.md+++ b/website/docs/user-guide/messaging/simplex.md@@ -7,7 +7,7 @@## Prerequisites- The **simplex-chat** CLI installed and running as a daemon-- Python package **websockets** (`pip install websockets`)+- Python package **websockets** (`hermes pm repair`)## Install simplex-chat@@ -146,6 +146,6 @@ hermes send simplex:<contact-id> "Done!"**"Cannot reach daemon"** — Ensure `simplex-chat -p 5225` is running and the port matches `SIMPLEX_WS_URL`.-**"websockets not installed"** — Run `pip install websockets`.+**"websockets not installed"** — Run `hermes pm repair`.**Messages not received** — Check that the contact's ID is in `SIMPLEX_ALLOWED_USERS` or approve them via DM pairing.diff --git a/website/docs/user-guide/messaging/slack.md b/website/docs/user-guide/messaging/slack.mdindex 4eb283c7a8d..1f92dda9dfc 100644--- a/website/docs/user-guide/messaging/slack.md+++ b/website/docs/user-guide/messaging/slack.md@@ -836,7 +836,7 @@ slack:After gateway config changes, deploys, or restarts, run this synthetic smoke target:```bash-uv run --frozen pytest -q tests/gateway/test_slack_peer_agent_smoke.py -o addopts=''+scripts/run_tests.sh tests/gateway/test_slack_peer_agent_smoke.py -q```This target uses in-process synthetic Slack events only. It does not send live Slack messages and does not require real bot tokens by default.diff --git a/website/docs/user-guide/messaging/sms.md b/website/docs/user-guide/messaging/sms.mdindex 8878cc5f0ab..beeddb0468f 100644--- a/website/docs/user-guide/messaging/sms.md+++ b/website/docs/user-guide/messaging/sms.md@@ -7,6 +7,10 @@ description: "Set up Hermes Agent as an SMS chatbot via Twilio"# SMS Setup (Twilio)+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes connects to SMS through the [Twilio](https://www.twilio.com/) API. People text your Twilio phone number and get AI responses back — same conversational experience as Telegram or Discord, but over standard text messages.:::info Shared Credentials@@ -20,7 +24,7 @@ The SMS gateway shares credentials with the optional [telephony skill](/referenc- **Twilio account** — [Sign up at twilio.com](https://www.twilio.com/try-twilio) (free trial available)- **A Twilio phone number** with SMS capability- **A publicly accessible server** — Twilio sends webhooks to your server when SMS arrives-- **aiohttp** — `cd ~/.hermes/hermes-agent && uv pip install -e ".[sms]"`+- **aiohttp** — `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['sms'], explicit=True)"`---diff --git a/website/docs/user-guide/messaging/teams.md b/website/docs/user-guide/messaging/teams.mdindex d64efd8a03f..b2a8f9b904d 100644--- a/website/docs/user-guide/messaging/teams.md+++ b/website/docs/user-guide/messaging/teams.md@@ -6,6 +6,10 @@ description: "Set up Hermes Agent as a Microsoft Teams bot"# Microsoft Teams Setup+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Connect Hermes Agent to Microsoft Teams as a bot. Unlike Slack's Socket Mode, Teams delivers messages by calling a **public HTTPS webhook**, so your instance needs a publicly reachable endpoint — either a dev tunnel (local dev) or a real domain (production).Need meeting summaries from Microsoft Graph events rather than normal bot conversations? Use the dedicated setup page: [Teams Meetings](/user-guide/messaging/teams-meetings).@@ -28,9 +32,7 @@ For source or local installs, include the Teams extra so the bundled adapter canimport the Microsoft Teams SDK:```bash-uv sync --extra teams-# or, for editable installs:-uv pip install -e ".[teams]"+python -c "import pm; pm.sync_venv(['teams'], explicit=True)"```## Step 1: Install the Teams CLI@@ -120,11 +122,13 @@ hermes gateway restart# or foreground: hermes gateway run```-The Teams SDK is optional; when Teams is enabled, the gateway lazy-installs it into Hermes' own venv on first start (do **not** use system `pip install` on Ubuntu 24.04 — that hits PEP 668 `externally-managed-environment`). To install manually into the Hermes venv:+The Teams SDK is optional. When policy permits, the gateway requests the+`teams` extra through PM on first start. PM prepares a complete environment+instead of modifying the running interpreter. To request the extra explicitly+from the prepared source checkout:```bash-~/.hermes/hermes-agent/venv/bin/pip install microsoft-teams-apps aiohttp-# or from a clone of the agent: uv sync --extra teams+python -c "import pm; pm.sync_venv(['teams'], explicit=True)"```The default webhook port is `3978` (override with `TEAMS_PORT`). Check that it's running:@@ -257,7 +261,7 @@ Make sure the public HTTPS endpoint is reachable from the internet and uses a va| Problem | Solution ||---------|----------|| `Can't find a suitable configuration file` from `docker compose` | You are not in the repo that has `docker-compose.yml`, or you are on a native install — use `hermes gateway restart` instead, or `cd` into the clone first |-| `requirements not met` / `Teams SDK missing` / `No adapter available for teams` | Restart gateway so lazy-install can run, or install into the **Hermes venv**: `~/.hermes/hermes-agent/venv/bin/pip install microsoft-teams-apps aiohttp`. System `pip` fails on Ubuntu 24.04 (PEP 668) and would not affect the service anyway |+| `requirements not met` / `Teams SDK missing` / `No adapter available for teams` | Request the `teams` extra through PM as shown above, then restart the gateway. Do not install into a system Python or mutate the Hermes environment. || `health` endpoint works but bot doesn't respond | Check that your tunnel is still running and the bot's messaging endpoint matches the tunnel URL || Logs show `"UNKNOWN / HTTP/1.0" 400` when Teams sends a message | The tunnel or reverse proxy is forwarding HTTPS to Hermes' plain HTTP listener. Terminate TLS at the proxy and forward HTTP to port `3978` || `KeyError: 'teams'` in logs | Restart the container — this is fixed in the current version |diff --git a/website/docs/user-guide/messaging/wecom.md b/website/docs/user-guide/messaging/wecom.mdindex 3dec3bca94d..142efa2a236 100644--- a/website/docs/user-guide/messaging/wecom.md+++ b/website/docs/user-guide/messaging/wecom.md@@ -6,6 +6,10 @@ description: "Connect Hermes Agent to WeCom via the AI Bot WebSocket gateway"# WeCom (Enterprise WeChat)+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Connect Hermes to [WeCom](https://work.weixin.qq.com/) (企业微信), Tencent's enterprise messaging platform. The adapter uses WeCom's AI Bot WebSocket gateway for real-time bidirectional communication — no public endpoint or webhook needed.See also: [WeCom Callback](./wecom-callback.md) for inbound webhook setup.@@ -213,7 +217,7 @@ WeCom encrypts some inbound media attachments with AES-256-CBC. The adapter hand- When an inbound media item includes an `aeskey` field, the adapter downloads the encrypted bytes and decrypts them using AES-256-CBC with PKCS#7 padding.- The AES key is the base64-decoded value of the `aeskey` field (must be exactly 32 bytes).- The IV is derived from the first 16 bytes of the key.-- This requires the `cryptography` Python package (`pip install cryptography`).+- This requires the `cryptography` Python package (`hermes pm repair`).No configuration is needed — decryption happens transparently when encrypted media is received.@@ -291,14 +295,14 @@ Inbound messages are deduplicated using message IDs with a 5-minute window and a| Problem | Fix ||---------|-----|| `WECOM_BOT_ID and WECOM_SECRET are required` | Set both env vars or configure in setup wizard |-| `WeCom startup failed: aiohttp not installed` | Install aiohttp: `pip install aiohttp` |-| `WeCom startup failed: httpx not installed` | Install httpx: `pip install httpx` |+| `WeCom startup failed: aiohttp not installed` | Install aiohttp: `python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"` |+| `WeCom startup failed: httpx not installed` | Install httpx: `hermes pm repair` || `invalid secret (errcode=40013)` | Verify the secret matches your bot's credentials || `Timed out waiting for subscribe acknowledgement` | Check network connectivity to `openws.work.weixin.qq.com` || Bot doesn't respond in groups | Check `group_policy` setting and ensure the group ID is in `group_allow_from` || Bot ignores certain users in a group | Check per-group `allow_from` lists in the `groups` config section |-| Media decryption fails | Install `cryptography`: `pip install cryptography` |-| `cryptography is required for WeCom media decryption` | The inbound media is AES-encrypted. Install: `pip install cryptography` |+| Media decryption fails | Install `cryptography`: `hermes pm repair` |+| `cryptography is required for WeCom media decryption` | The inbound media is AES-encrypted. Install: `hermes pm repair` || Voice messages sent as files | WeCom only supports AMR format for native voice. Other formats are auto-downgraded to file. || `File too large` error | WeCom has a 20 MB absolute limit on all file uploads. Compress or split the file. || Images sent as files | Images > 10 MB exceed the native image limit and are auto-downgraded to file attachments. |diff --git a/website/docs/user-guide/messaging/weixin.md b/website/docs/user-guide/messaging/weixin.mdindex b38ee4a472d..13025709090 100644--- a/website/docs/user-guide/messaging/weixin.md+++ b/website/docs/user-guide/messaging/weixin.md@@ -6,6 +6,10 @@ description: "Connect Hermes Agent to personal WeChat accounts via the iLink Bot# Weixin (WeChat)+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Connect Hermes to [WeChat](https://weixin.qq.com/) (微信), Tencent's personal messaging platform. The adapter uses Tencent's **iLink Bot API** for personal WeChat accounts — this is distinct from WeCom (Enterprise WeChat). Messages are delivered via long-polling, so no public endpoint or webhook is required.:::info@@ -32,9 +36,8 @@ In practice, most deployments only get DMs to the iLink bot working reliably. IfInstall the required dependencies:```bash-pip install aiohttp cryptography-# Optional: for terminal QR code display-cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]"+# Includes aiohttp and terminal QR code support+python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"```## Setup@@ -317,7 +320,7 @@ Only one Weixin gateway instance can use a given token at a time. The adapter ac| Problem | Fix ||---------|-----|-| `Weixin startup failed: aiohttp and cryptography are required` | Install both: `pip install aiohttp cryptography` |+| `Weixin startup failed: aiohttp and cryptography are required` | Install both: `python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"` || `Weixin startup failed: WEIXIN_TOKEN is required` | Run `hermes gateway setup` to complete QR login, or set `WEIXIN_TOKEN` manually || `Weixin startup failed: WEIXIN_ACCOUNT_ID is required` | Set `WEIXIN_ACCOUNT_ID` in your `.env` or run `hermes gateway setup` || `Another local Hermes gateway is already using this Weixin token` | Stop the other gateway instance first — only one poller per token is allowed |@@ -330,4 +333,4 @@ Only one Weixin gateway instance can use a given token at a time. The adapter ac| Voice messages show as text | If WeChat provides a transcription, the adapter uses the text. This is expected behavior || Messages appear duplicated | The adapter deduplicates by message ID. If you see duplicates, check if multiple gateway instances are running || `iLink POST ... HTTP 4xx/5xx` | API error from the iLink service. Check your token validity and network connectivity |-| Terminal QR code doesn't render | Reinstall with the messaging extra: `cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]"`. Alternatively, open the URL printed above the QR |+| Terminal QR code doesn't render | Reinstall with the messaging extra: `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"`. Alternatively, open the URL printed above the QR |diff --git a/website/docs/user-guide/messaging/whatsapp-cloud.md b/website/docs/user-guide/messaging/whatsapp-cloud.mdindex dc07114df44..9139f053e62 100644--- a/website/docs/user-guide/messaging/whatsapp-cloud.md+++ b/website/docs/user-guide/messaging/whatsapp-cloud.md@@ -6,6 +6,10 @@ description: "Set up Hermes Agent as a WhatsApp bot via Meta's official Business# WhatsApp Business Cloud API Setup+Python dependency commands on this page use a+[PM-prepared source checkout](/reference/package-management#developer-workflow).+After a dependency change, reactivate the checkout and restart Hermes.+Hermes can connect to WhatsApp through Meta's **official** WhatsApp Business Cloud API. This is the production-grade path: no Node.js bridge subprocess, no QR codes, no account-ban risk.In exchange:@@ -365,7 +369,7 @@ If the model emits tool-call-shaped text instead of a structured call, it usuall### STT (voice note transcription) returns empty / "could not transcribe"-The default `stt.provider: local` requires `pip install faster-whisper`. If you're a Nous subscriber, you can route STT through the managed gateway instead — select **Nous Subscription** for speech-to-text in `hermes tools`, or set it directly:+The default `stt.provider: local` requires `python -c "import pm; pm.sync_venv(['stt-whisper'], explicit=True)"`. If you're a Nous subscriber, you can route STT through the managed gateway instead — select **Nous Subscription** for speech-to-text in `hermes tools`, or set it directly:```bashhermes config set stt.provider nousdiff --git a/website/docs/user-guide/messaging/yuanbao.md b/website/docs/user-guide/messaging/yuanbao.mdindex 5ba3b56a700..46db3bd8cdf 100644--- a/website/docs/user-guide/messaging/yuanbao.md+++ b/website/docs/user-guide/messaging/yuanbao.md@@ -16,13 +16,12 @@ Yuanbao is an enterprise messaging platform primarily used within Tencent and en- A Yuanbao account with bot creation permissions- Yuanbao APP_ID and APP_SECRET (from platform admin)-- Python packages: `websockets` and `httpx`-- For media support: `aiofiles`+- Python packages: `websockets` and `httpx`, both core Hermes dependencies-Install the required dependencies:+If these core dependencies are damaged, repair the selected environment:```bash-pip install websockets httpx aiofiles+hermes pm repair```## Setupdiff --git a/website/docs/user-guide/windows-wsl-quickstart.md b/website/docs/user-guide/windows-wsl-quickstart.mdindex c45a7c22b6d..edcc9131391 100644--- a/website/docs/user-guide/windows-wsl-quickstart.md+++ b/website/docs/user-guide/windows-wsl-quickstart.md@@ -277,7 +277,7 @@ it on the Windows side and have it jump into WSL for you:That opens Windows Terminal, starts your WSL distro, drops you in your Linuxhome directory, and launches Hermes. If `hermes` is not on PATH yet, open WSLonce manually and run `source ~/.bashrc`, or replace the command with-`uv run hermes` inside your project checkout.+`python hermes` inside your PM-activated project checkout.Optional polish:diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/contributing.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/contributing.mdindex f880385a841..b40df4cfa8d 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/contributing.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/contributing.md@@ -32,7 +32,7 @@ description: "如何为 Hermes Agent 做贡献 — 开发环境配置、代码### 前置要求项目要求 Python 3.14(`>=3.14,<3.15`)。PM 提供固定版本的解释器和工具。-准备 Git、git-lfs 和 uv。JS 构建使用 PM 的 Node/npm,或满足相应 `package.json` engines 的版本。+准备 Git 和 git-lfs。JS 构建使用 PM 的 Node/npm,或满足相应 `package.json` engines 的版本。### PM 开发环境@@ -56,40 +56,29 @@ python hermes --version```PowerShell 开头的点和空格用于 dot-source,不能省略。-激活读取已安装工具和所选依赖,不下载、不创建 JS workspaces,也不设置常规 venv 提示符。+激活通过 PM 准备工具并同步依赖,但不创建 JS workspaces,也不设置常规 venv 提示符。使用 `python hermes` 明确运行当前 checkout,避免命中全局命令或 MSIX 别名。`deactivate` 恢复激活前的环境,不卸载依赖或停止已启动的进程。### 独立开发和测试环境 {#manual-development-and-test-environment}-托管 bootstrap 安装运行时依赖,不包含测试所需的 `dev` extra。-先退出 PM 激活,再准备独立测试环境,保持同一个开发 `HERMES_HOME`。-测试 runner 清除 `PYTHONPATH`,因此需要自身环境中安装了 pytest 的解释器。-Windows 源码依赖需为目标架构初始化 C++ 编译环境。不要修改签名应用的载荷。--POSIX:+先按 [PM 开发工作流](/reference/package-management#developer-workflow) 准备 Python 3.14。+在该 checkout 中使用准备好的 Python,并保持相同的开发 `HERMES_HOME`。+PM 必须能够启动,才能构建独立测试环境:```bash-uv venv "$HOME/.hermes/venvs/hermes-dev" --python 3.14-export UV_PROJECT_ENVIRONMENT="$HOME/.hermes/venvs/hermes-dev"-uv sync --locked --extra all --extra dev-export HERMES_PYTHON="$UV_PROJECT_ENVIRONMENT/bin/python"-"$HERMES_PYTHON" hermes --version+python -m pm.build_env --source . --out .venv --extra dev --group test```-PowerShell:+此命令使用提交的锁文件,创建新环境并检查依赖一致性。输出路径必须不存在。+如需重新生成,请先停止使用该环境的进程,再明确删除该可丢弃的环境。+PM 不会自动删除已有目录。不要通过原始 pip 或 uv 命令修改 Hermes 环境。-```powershell-$devEnv = Join-Path $env:LOCALAPPDATA 'hermes-dev-env'-uv venv $devEnv --python 3.14-$env:UV_PROJECT_ENVIRONMENT = $devEnv-uv sync --locked --extra all --extra dev-$env:HERMES_PYTHON = Join-Path $devEnv 'Scripts/python.exe'-& $env:HERMES_PYTHON hermes --version-```+测试 runner 自动发现仓库的 `.venv`。它会清除 `PYTHONPATH`,因此 pytest 必须安装在解释器自身的环境中。+也可将 `--out` 指向仓库外的新路径,再将 `HERMES_PYTHON` 设为该环境的解释器。+Windows 上通过 Bash 运行 `scripts/run_tests.sh`,并预先准备本机 C++ 编译环境。-使用 `uv pip check --python` 和该环境的解释器检查依赖。-独立测试环境不替代 PM 工具存储或应用的依赖选择。+独立测试环境不替代 PM 工具存储或应用的依赖选择。不要修改签名应用的载荷。运行开发实例前,选择临时的 `HERMES_HOME`,再使用 `python hermes setup` 配置它。不要把生产凭据复制到 checkout。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.mdindex 6aa8a2ea845..c329634eb3d 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/quickstart.md@@ -6,6 +6,9 @@ description: "与 Hermes Agent 的第一次对话——从安装到开始聊天# 快速入门+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+本指南带你从零开始搭建一个能够应对实际使用的 Hermes 环境。完成安装、选择 provider(服务提供商)、验证对话正常运行,并了解出现问题时的处理方法。## 更喜欢看视频?@@ -255,7 +258,7 @@ hermes config set terminal.backend ssh # 远程服务器# 在 Hermes 安装目录下运行(curl 安装器在 Linux/macOS 上将其放置于# ~/.hermes/hermes-agent,在 Windows 上为 %LOCALAPPDATA%\hermes\hermes-agent):cd ~/.hermes/hermes-agent-uv pip install --python ./venv/bin/python -e ".[voice]"+python -c "import pm; pm.sync_venv(['voice'], explicit=True)"# 包含 faster-whisper,用于免费的本地语音转文字```@@ -290,7 +293,7 @@ ACP 支持已包含在标准 `[all]` 扩展中,因此 curl 安装器已默认hermes acp```-(如果安装时未包含 `[all]`,请先运行 `cd ~/.hermes/hermes-agent && uv pip install -e ".[acp]"`。)+(如果安装时未包含 `[all]`,请先运行 `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"`。)参阅 [ACP 编辑器集成](../user-guide/features/acp.md)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/updating.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/updating.mdindex 6e73ceee4a0..22b619c4957 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/updating.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/getting-started/updating.md@@ -26,7 +26,7 @@ hermes update1. **更新前快照** — Hermes 在每个 profile 的 `state-snapshots/` 目录中保存指定的状态文件,包括配对数据、cron 任务、`config.yaml`、`.env` 和 `auth.json`。自动快速快照会跳过单个大于 1 GiB 的文件。`updates.pre_update_backup` 可选择 `quick`、`full` 或 `off`。完整归档遵循[备份排除规则](/reference/faq#hermes-backup-vs-hermes-profile-export)。恢复方法见[快照与回滚](../user-guide/checkpoints-and-rollback.md)。快速快照恢复的是状态文件,不是应用程序代码。2. **Git pull** — 从 `main` 分支拉取最新代码并更新子模块-3. **依赖安装** — 运行 `uv pip install -e ".[all]"` 以获取新增或变更的依赖项+3. **依赖安装** — 运行 `python -m pm.cli install` 以获取新增或变更的依赖项4. **配置迁移** — 检测自当前版本以来新增的配置选项并提示设置5. **Gateway 自动重启** — 更新完成后刷新正在运行的 gateway,使新代码立即生效。由服务管理的 gateway(Linux 上的 systemd、macOS 上的 launchd)通过服务管理器重启;手动启动的 gateway 在 Hermes 能将运行中的 PID 映射回某个 profile 时会自动重新启动。@@ -153,7 +153,7 @@ export VIRTUAL_ENV="$(pwd)/venv"git pull origin main# Reinstall (picks up new dependencies)-uv pip install -e ".[all]"+python -m pm.cli install# Check for new config optionshermes config check@@ -172,7 +172,7 @@ git log --oneline -10# Roll back to a specific commitgit checkout <commit-hash>-uv pip install -e ".[all]"+python -m pm.cli install# Restart the gateway if runninghermes gateway restart@@ -182,7 +182,7 @@ hermes gateway restart```bashgit checkout v0.6.0-uv pip install -e ".[all]"+python -m pm.cli install```:::warningdiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/aws-bedrock.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/aws-bedrock.mdindex 8c38ff065d5..37ccd0d4cf0 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/aws-bedrock.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/aws-bedrock.md@@ -6,6 +6,9 @@ description: "将 Hermes Agent 与 Amazon Bedrock 配合使用——原生 Conve# AWS Bedrock+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 通过 **Converse API** 原生支持 Amazon Bedrock——而非 OpenAI 兼容端点。这让你可以完整访问 Bedrock 生态系统:IAM 身份验证、Guardrails、跨区域推理配置文件以及所有基础模型。## 前提条件@@ -15,7 +18,7 @@ Hermes Agent 通过 **Converse API** 原生支持 Amazon Bedrock——而非 Ope- `AWS_ACCESS_KEY_ID` + `AWS_SECRET_ACCESS_KEY` 环境变量- `AWS_PROFILE`(用于 SSO 或命名配置文件)- `aws configure`(用于本地开发)-- **boto3** — 通过 `cd ~/.hermes/hermes-agent && uv pip install -e ".[bedrock]"` 安装+- **boto3** — 通过 `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['bedrock'], explicit=True)"` 安装- **IAM 权限** — 至少需要:- `bedrock:InvokeModel` 和 `bedrock:InvokeModelWithResponseStream`(用于推理)- `bedrock:ListFoundationModels` 和 `bedrock:ListInferenceProfiles`(用于模型发现)@@ -28,7 +31,7 @@ Hermes Agent 通过 **Converse API** 原生支持 Amazon Bedrock——而非 Ope```bash# 安装并启用 Bedrock 支持-cd ~/.hermes/hermes-agent && uv pip install -e ".[bedrock]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['bedrock'], explicit=True)"# 选择 Bedrock 作为提供商hermes modeldiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/azure-foundry.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/azure-foundry.mdindex 03e5fc3d598..a5f8b1fb154 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/azure-foundry.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/azure-foundry.md@@ -6,6 +6,9 @@ description: "将 Hermes Agent 与 Microsoft Foundry 配合使用——OpenAI# Microsoft Foundry+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 的 `azure-foundry` provider 支持 Microsoft Foundry(原 Azure AI Foundry)和 Azure OpenAI。单个 Foundry 资源可以托管两种不同传输格式的模型:- **OpenAI 风格** — 在 `https://<resource>.openai.azure.com/openai/v1` 等端点上执行 `POST /v1/chat/completions`。用于 GPT-4.x、GPT-5.x、Llama、Mistral 及大多数开放权重模型。@@ -101,7 +104,7 @@ hermes model`azure-identity` 在首次使用时通过 Hermes 的懒加载安装路径自动安装。如需预先安装:```bash-pip install azure-identity+python -c "import pm; pm.sync_venv(['azure-identity'], explicit=True)"```### 写入 `config.yaml` 的配置diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/python-library.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/python-library.mdindex e25e7c5007b..76294ef582d 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/python-library.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/python-library.md@@ -17,10 +17,10 @@ Hermes 不仅仅是一个 CLI 工具。你可以直接导入 `AIAgent`,在自```bashgit clone https://github.com/NousResearch/hermes-agent.gitcd hermes-agent-uv sync+source ./activate```-在该检出目录中使用 `uv run python your_app.py` 运行应用。Hermes 不发布用于 `requirements.txt` 安装的受支持 wheel 或源代码发行版。+在该检出目录中使用 `python your_app.py` 运行应用。Hermes 不发布用于 `requirements.txt` 安装的受支持 wheel 或源代码发行版。:::tip将 Hermes 作为库使用时,CLI 所需的环境变量同样必须设置。至少需要设置 `OPENROUTER_API_KEY`(若直接访问提供商,则设置 `OPENAI_API_KEY` 或 `ANTHROPIC_API_KEY`)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-mcp-with-hermes.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-mcp-with-hermes.mdindex ee5ac3f1d79..0b7d14dceff 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-mcp-with-hermes.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-mcp-with-hermes.md@@ -6,6 +6,9 @@ description: "将 MCP 服务器连接到 Hermes Agent、过滤其工具并在实# 在 Hermes 中使用 MCP+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+本指南介绍如何在日常工作流中实际使用 Hermes Agent 的 MCP 功能。如果功能页面解释的是 MCP 是什么,本指南则关注如何快速、安全地从中获取价值。@@ -37,13 +40,13 @@ description: "将 MCP 服务器连接到 Hermes Agent、过滤其工具并在实## 第一步:安装 MCP 支持-如果你使用标准安装脚本安装了 Hermes,MCP 支持已包含在内(安装程序会运行 `uv pip install -e ".[all]"`)。+如果你使用标准安装脚本安装了 Hermes,MCP 支持已包含在内。PM 选择声明的 `all` extra。如果你在没有附加组件的情况下安装,需要单独添加 MCP:```bashcd ~/.hermes/hermes-agent-uv pip install -e ".[mcp]"+python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"```对于基于 npm 的服务器,请确保 Node.js 和 `npx` 可用。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-voice-mode-with-hermes.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-voice-mode-with-hermes.mdindex 99bbe53fa7c..7db376ff86f 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-voice-mode-with-hermes.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/use-voice-mode-with-hermes.md@@ -6,6 +6,9 @@ description: "在 CLI、Telegram、Discord 及 Discord 语音频道中设置和# 在 Hermes 中使用语音模式+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+本指南是[语音模式功能参考](/user-guide/features/voice-mode)的实用配套文档。功能页面介绍语音模式能做什么,本指南则说明如何真正用好它。@@ -57,33 +60,35 @@ What tools do you have available?### CLI 麦克风 + 播放```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[voice]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['voice'], explicit=True)"```### 消息平台```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"```### 高级 ElevenLabs TTS```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[tts-premium]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['tts-premium'], explicit=True)"```### 本地 NeuTTS(可选)-```bash-python -m pip install -U neutts[all]-```+声明的 `neutts` 依赖要求 Python 低于 3.14,而 Hermes 运行时要求 Python 3.14。+因此该 extra 不会在 Hermes 运行时安装 NeuTTS。请选择兼容的提供商。+独立的 NeuTTS 命令提供商需要自行管理兼容的 Python 环境。-### 全部安装+### 同时启用语音和消息平台```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[all]"+python -c "import pm; pm.sync_venv(['voice', 'messaging', 'tts-premium', 'edge-tts'], explicit=True)"```+`all` extra 并不包含所有可选功能,也不包含上述语音和消息依赖。+## 第三步:安装系统依赖### macOS@@ -149,13 +154,13 @@ ELEVENLABS_API_KEY=***### 如果使用 `hermes setup`-如果你在设置向导中选择了 NeuTTS,Hermes 会检查 `neutts` 是否已安装。如果缺失,向导会告知你 NeuTTS 需要 Python 包 `neutts` 和系统包 `espeak-ng`,并提供自动安装,使用平台包管理器安装 `espeak-ng`,然后运行:+设置向导通过 PM 请求声明的 Python extras,不能绕过版本或平台限制:-```bash-python -m pip install -U neutts[all]-```+声明的 `neutts` 依赖要求 Python 低于 3.14,而 Hermes 运行时要求 Python 3.14。+因此该 extra 不会在 Hermes 运行时安装 NeuTTS。请选择兼容的提供商。+独立的 NeuTTS 命令提供商需要自行管理兼容的 Python 环境。-如果跳过安装或安装失败,向导会回退到 Edge TTS。+如果依赖不支持当前平台,请选择其他提供商。## 第五步:推荐配置diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.mdindex 0cc75ae04e6..3e5241bc234 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md@@ -6,6 +6,9 @@ description: "Hermes 终端命令及命令族的权威参考"# CLI 命令参考+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+本页介绍从 shell 运行的**终端命令**。关于聊天内斜杠命令,请参阅 [斜杠命令参考](./slash-commands.md)。@@ -975,7 +978,7 @@ python -m acp_adapter首先安装支持:```bash-cd ~/.hermes/hermes-agent && uv pip install -e '.[acp]'+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"```参见 [ACP 编辑器集成](../user-guide/features/acp.md) 和 [ACP 内部原理](../developer-guide/acp-internals.md)。@@ -1145,7 +1148,7 @@ hermes claw migrate --source /home/user/old-openclawhermes dashboard [options]```-启动 Web 控制台——基于浏览器的界面,用于管理配置、API 密钥和监控会话。需要 `cd ~/.hermes/hermes-agent && uv pip install -e ".[web]"`(FastAPI + Uvicorn)。内嵌浏览器 Chat 标签页始终可用,但额外需要 `pty` extra(`cd ~/.hermes/hermes-agent && uv pip install -e ".[web,pty]"`)以及 POSIX PTY 环境(如 Linux、macOS 或 WSL2)。完整文档请参阅 [Web 控制台](/user-guide/features/web-dashboard)。+启动 Web 控制台,用于管理配置、API 密钥和会话。FastAPI、Uvicorn 和平台 PTY 辅助库是核心依赖。`web` extra 提供 HTTP 栈的精确约束,标准 PM 安装通过 `all` 选择它。如依赖损坏,请运行 `hermes pm repair`。内嵌 Chat 标签页需要 POSIX PTY 环境,例如 Linux、macOS 或 WSL2。请参阅 [Web 控制台](/user-guide/features/web-dashboard)。| 选项 | 默认值 | 说明 ||--------|---------|-------------|@@ -1263,4 +1266,4 @@ hermes update [--check] [--backup] [--restart-gateway]- [CLI 界面](../user-guide/cli.md)- [会话](../user-guide/sessions.md)- [Skill 系统](../user-guide/features/skills.md)-- [皮肤与主题](../user-guide/features/skins.md)\ No newline at end of file+- [皮肤与主题](../user-guide/features/skins.md)diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/faq.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/faq.mdindex 07505003809..ae7dcea0ef0 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/faq.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/faq.md@@ -6,6 +6,9 @@ description: "Hermes Agent 常见问题解答及常见问题解决方案"# 常见问题与故障排查+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+针对最常见问题的快速解答与修复方法。---@@ -419,7 +422,7 @@ cat ~/.hermes/logs/gateway.log | tail -50**解决方案:**```bash# 安装核心消息网关依赖项-cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]" # Telegram、Discord、Slack 及共享网关依赖+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)" # Telegram、Discord、Slack 及共享网关依赖# 检查端口冲突lsof -i :8080@@ -539,7 +542,7 @@ hermes chat --continue**解决方案:**```bash# 确保 MCP 依赖项已安装(标准安装中已包含)-cd ~/.hermes/hermes-agent && uv pip install -e ".[mcp]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"# 对于基于 npm 的服务器,确保 Node.js 可用node --versiondiff --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 45a87b7cb31..0f8d34faff4 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@@ -6,6 +6,9 @@ description: "配置 Hermes Agent — config.yaml、providers、模型、API 密# 配置+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+所有设置均存储在 `~/.hermes/` 目录中,便于访问。## 目录结构@@ -248,7 +251,7 @@ terminal:**必需安装:** 安装可选 SDK 扩展:```bash-pip install 'hermes-agent[vercel]'+python -c "import pm; pm.sync_venv(['vercel'], explicit=True)"```**必需认证:** 使用 `VERCEL_TOKEN`、`VERCEL_PROJECT_ID` 和 `VERCEL_TEAM_ID` 三者全部配置访问令牌认证。这是在 Render、Railway、Docker 及类似宿主上部署和正常长期运行 Hermes 进程的受支持设置。@@ -1338,7 +1341,7 @@ stt:Provider 行为:-- `local` 使用在您机器上运行的 `faster-whisper`。使用 `pip install faster-whisper` 单独安装。静音幻觉防护默认开启:Silero VAD 过滤器让静音/噪声不会进入 Whisper,跨窗口条件预测被禁用,并且模型自己标记为"很可能不是语音"且低置信度的片段会被丢弃。设置 `stt.local.vad: false` 可用原始行为转录非语音音频(音乐、环境声)。+- `local` 使用在您机器上运行的 `faster-whisper`。使用 `python -c "import pm; pm.sync_venv(['stt-whisper'], explicit=True)"` 单独安装。静音幻觉防护默认开启:Silero VAD 过滤器让静音/噪声不会进入 Whisper,跨窗口条件预测被禁用,并且模型自己标记为"很可能不是语音"且低置信度的片段会被丢弃。设置 `stt.local.vad: false` 可用原始行为转录非语音音频(音乐、环境声)。- `groq` 使用 Groq 的 Whisper 兼容端点,读取 `GROQ_API_KEY`。- `openai` 使用 OpenAI 语音 API,读取 `VOICE_TOOLS_OPENAI_KEY`。@@ -1449,7 +1452,7 @@ quick_commands:command: df -h /update:type: exec- command: cd ~/.hermes/hermes-agent && git pull && uv pip install -e .+ command: hermes updategpu:type: execcommand: nvidia-smi --query-gpu=name,utilization.gpu,memory.used,memory.total --format=csv,noheaderdiff --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 fa719d91214..c02858a5f4a 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@@ -6,6 +6,9 @@ description: "在兼容 ACP 的编辑器和协作平台中使用 Hermes Agent"# ACP 宿主集成+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 可作为 ACP 服务器运行,让兼容 ACP 的编辑器通过 stdio 与 Hermes 通信并渲染:- 聊天消息@@ -36,7 +39,7 @@ Hermes 使用专为编辑器工作流设计的精选 `hermes-acp` 工具集运正常安装 Hermes 后,从安装检出目录添加 ACP 扩展:```bash-cd ~/.hermes/hermes-agent && uv pip install -e '.[acp]'+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"```这将安装 `agent-client-protocol` 依赖并启用:@@ -311,7 +314,7 @@ ACP 桥接将这些选项映射到 Hermes 的内部审批语义——`allow_alwa- 对于手动/本地开发,验证自定义 `agent_servers` 命令是否指向 `hermes acp`。- Hermes 已安装且在 PATH 中。-- ACP 扩展已安装(`cd ~/.hermes/hermes-agent && uv pip install -e '.[acp]'`)。+- ACP 扩展已安装(`cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['acp'], explicit=True)"`)。### ACP 启动后立即报错diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/mcp.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/mcp.mdindex 24e745cbf98..96ea9f9e047 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/mcp.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/mcp.md@@ -6,6 +6,9 @@ description: "通过 MCP 将 Hermes Agent 连接到外部工具服务器,并# MCP(模型上下文协议)+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+MCP 让 Hermes Agent 连接到外部工具服务器,使 agent 能够使用 Hermes 本身之外的工具——GitHub、数据库、文件系统、浏览器栈、内部 API 等等。如果你曾经希望 Hermes 使用某个已经存在于其他地方的工具,MCP 通常是最简洁的方式。@@ -24,7 +27,7 @@ MCP 让 Hermes Agent 连接到外部工具服务器,使 agent 能够使用 Her```bashcd ~/.hermes/hermes-agent-uv pip install -e ".[mcp]"+python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"```2. 在 `~/.hermes/config.yaml` 中添加一个 MCP 服务器:@@ -407,7 +410,7 @@ Inspect the project root and explain the directory layout.```bash# 验证 MCP 依赖已安装(标准安装已包含)-cd ~/.hermes/hermes-agent && uv pip install -e ".[mcp]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['mcp'], explicit=True)"node --versionnpx --versiondiff --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 dfa27715548..471fbeacd02 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@@ -6,6 +6,9 @@ description: "Hermes Agent 工具概览——可用工具、工具集工作方# 工具与工具集+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+工具是扩展 Agent 能力的函数。它们被组织为逻辑上的**工具集**,可按平台启用或禁用。## 可用工具@@ -118,7 +121,7 @@ hermes config set terminal.singularity_image ~/python.sif### Modal(无服务器云)```bash-uv pip install modal+python -c "import pm; pm.sync_venv(['modal'], explicit=True)"modal setuphermes config set terminal.backend modal```@@ -126,7 +129,7 @@ hermes config set terminal.backend modal### Vercel Sandbox```bash-pip install 'hermes-agent[vercel]'+python -c "import pm; pm.sync_venv(['vercel'], explicit=True)"hermes config set terminal.backend vercel_sandboxhermes config set terminal.vercel_runtime node24```diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tts.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tts.mdindex 2d640f9b338..4d68485dd9f 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tts.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/tts.md@@ -6,6 +6,9 @@ description: "跨所有平台的文字转语音与语音消息转录"# 语音与 TTS+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 支持跨所有消息平台的文字转语音(TTS)输出和语音消息转录(STT)。:::tip Nous 订阅用户@@ -181,7 +184,7 @@ tts:Piper 是来自 Open Home Foundation(Home Assistant 维护者)的快速本地神经网络 TTS 引擎。它完全在 CPU 上运行,支持 **44 种语言**的预训练声音,无需 API 密钥。-**通过 `hermes tools` 安装** → Voice & TTS → Piper — Hermes 会自动为你运行 `pip install piper-tts`。或手动安装:`pip install piper-tts`。+**通过 `hermes tools` 安装** → Voice & TTS → Piper。Hermes 通过 PM 请求 `piper` extra,平台限制仍然适用。**切换至 Piper:**@@ -239,6 +242,9 @@ tts:如需通过字节跳动的 [seed-tts-2.0](https://www.volcengine.com/docs/6561/1257544) 双向流式 API 实现高质量中文 TTS,请安装 [`doubao-speech`](https://pypi.org/project/doubao-speech/) PyPI 包并将其作为命令提供商接入:+请在独立的工具环境中安装此外部命令提供商,不要修改 Hermes 的 Python 环境。+确保其可执行文件可通过 `PATH` 访问。+```bashpip install doubao-speechexport VOLCENGINE_APP_ID="your-app-id"@@ -422,7 +428,7 @@ stt:**OpenAI API** — 优先使用 `VOICE_TOOLS_OPENAI_KEY`,回退至 `OPENAI_API_KEY`。支持 `whisper-1`、`gpt-4o-mini-transcribe`、`gpt-4o-transcribe` 和 `gpt-transcribe`。-**Mistral API(Voxtral Transcribe)** — 需要 `MISTRAL_API_KEY`。使用 Mistral 的 [Voxtral Transcribe](https://docs.mistral.ai/capabilities/audio/speech_to_text/) 模型。支持 13 种语言、说话人分离和词级时间戳。通过 `cd ~/.hermes/hermes-agent && uv pip install -e ".[mistral]"` 安装。+**Mistral API(Voxtral Transcribe)** — 需要 `MISTRAL_API_KEY`。使用 Mistral 的 [Voxtral Transcribe](https://docs.mistral.ai/capabilities/audio/speech_to_text/) 模型。支持 13 种语言、说话人分离和词级时间戳。通过 `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['mistral'], explicit=True)"` 安装。**xAI Grok STT** — 需要 `XAI_API_KEY`。以 multipart/form-data 格式发送至 `https://api.x.ai/v1/stt`。如果你已在使用 xAI 进行聊天或 TTS 并希望一个 API 密钥搞定一切,这是个好选择。自动检测顺序将其排在 Groq 之后——显式设置 `stt.provider: xai` 可强制使用。@@ -432,6 +438,9 @@ stt:如果你使用 [`doubao-speech`](https://pypi.org/project/doubao-speech/) 进行 Doubao TTS(见[上文](#example-doubao-chinese-seed-tts-20)),同一个包也可通过本地命令 STT 接口处理语音转文字:+请在独立的工具环境中安装此外部命令提供商,不要修改 Hermes 的 Python 环境。+确保其可执行文件可通过 `PATH` 访问。+```bashpip install doubao-speechexport VOLCENGINE_APP_ID="your-app-id"diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.mdindex df76c682bef..faefbff6809 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/web-dashboard.md@@ -6,6 +6,9 @@ description: "基于浏览器的仪表板,用于管理配置、API 密钥、# Web Dashboard+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Web Dashboard 是一个基于浏览器的 UI,用于管理你的 Hermes Agent 安装。无需编辑 YAML 文件或运行 CLI 命令,即可通过简洁的 Web 界面配置设置、管理 API 密钥并监控会话。## 快速开始@@ -38,13 +41,9 @@ hermes dashboard --no-open## 前置条件-默认的 `hermes-agent` 安装不包含 HTTP 栈或 PTY 辅助工具——这些是可选扩展。**Web Dashboard** 需要 FastAPI 和 Uvicorn(`web` 扩展)。**Chat** 标签页还需要 `ptyprocess` 来在伪终端(pseudo-terminal)后面启动嵌入式 TUI(POSIX 上的 `pty` 扩展)。使用以下命令同时安装:--```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[web,pty]"-```--`web` 扩展会引入 FastAPI/Uvicorn;`pty` 扩展会引入 `ptyprocess`(POSIX)或 `pywinpty`(原生 Windows——注意嵌入式 TUI 本身仍需要 WSL)。`cd ~/.hermes/hermes-agent && uv pip install -e ".[all]"` 包含两个扩展,如果你还需要消息/语音等功能,这是最简便的方式。+FastAPI、Uvicorn 和平台 PTY 辅助库是 Hermes 核心依赖。`web` extra 提供 HTTP 栈的精确约束,`pty` extra 为空。+标准 PM 安装通过 `all` 选择 `web`;消息和语音功能仍需单独请求。+如依赖损坏,请运行 `hermes pm repair` 并重启 Hermes。在没有依赖项的情况下运行 `hermes dashboard` 时,它会告诉你需要安装什么。如果前端尚未构建且 `npm` 可用,则会在首次启动时自动构建。@@ -80,7 +79,7 @@ Chat 标签页是每次 `hermes dashboard` 启动的一部分——内嵌的浏**前置条件:**- Node.js(与 `hermes --tui` 相同的要求;TUI 包在首次启动时构建)-- `ptyprocess`——由 `pty` 扩展安装(`cd ~/.hermes/hermes-agent && uv pip install -e ".[web,pty]"`,或 `[all]` 同时包含两者)+- `ptyprocess`——POSIX 上的核心依赖- POSIX 内核(Linux、macOS 或 WSL2)。`/chat` 终端面板特别需要 POSIX PTY——原生 Windows Python 没有等效实现,因此在原生 Windows 安装上,Dashboard 的其余部分(sessions、jobs、metrics、config editor)可以正常工作,但 `/chat` 标签页会显示提示,告知你需要使用 WSL2 才能使用该功能。关闭浏览器标签页后,PTY 会在服务器端被干净地回收。重新打开会启动一个新会话。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 2e88e5ae8fe..a0376c80ad2 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@@ -7,6 +7,9 @@ sidebar_position: 6# 网页搜索与提取+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 内置两个可供模型调用的网页工具,由多个提供商支持:- **`web_search`** — 搜索网页并返回排序结果@@ -27,7 +30,7 @@ Hermes Agent 内置两个可供模型调用的网页工具,由多个提供商| **Parallel** | `PARALLEL_API_KEY` | ✔ | ✔ | 付费 || **xAI (Grok)** | `XAI_API_KEY` 或 `hermes auth login xai-oauth` | ✔ | — | 付费(SuperGrok 或按 token 计费) |-Brave Search、DDGS 和 xAI 均为**仅搜索**——如果同时需要 `web_extract`,可将其中任意一个与 Firecrawl/Tavily/Exa/Parallel 配合使用。DDGS 底层使用 [`ddgs` Python 包](https://pypi.org/project/ddgs/);若尚未安装,请运行 `pip install ddgs`(或让 Hermes 在首次使用时懒加载安装)。xAI 通过 Responses API 运行 Grok 服务端的 `web_search` 工具——结果由 LLM 生成而非基于索引,因此标题、描述和 URL 选择均为模型输出(参见下方[信任模型说明](#xai-grok))。+Brave Search、DDGS 和 xAI 均为**仅搜索**——如果同时需要 `web_extract`,可将其中任意一个与 Firecrawl/Tavily/Exa/Parallel 配合使用。DDGS 底层使用 [`ddgs` Python 包](https://pypi.org/project/ddgs/);若尚未安装,请运行 `python -c "import pm; pm.sync_venv(['ddgs'], explicit=True)"`(或让 Hermes 在首次使用时懒加载安装)。xAI 通过 Responses API 运行 Grok 服务端的 `web_search` 工具——结果由 LLM 生成而非基于索引,因此标题、描述和 URL 选择均为模型输出(参见下方[信任模型说明](#xai-grok))。**按能力拆分:** 搜索和提取可分别使用不同的提供商——例如搜索使用 SearXNG(免费),提取使用 Firecrawl。详见下方[按能力配置](#per-capability-configuration)。diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/dingtalk.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/dingtalk.mdindex 3595ef81615..9024d8bbdeb 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/dingtalk.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/dingtalk.md@@ -6,6 +6,9 @@ description: "将 Hermes Agent 设置为钉钉聊天机器人"# 钉钉设置+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 可作为聊天机器人集成到钉钉(DingTalk),让你通过单聊或群聊与 AI 助手对话。机器人通过钉钉的 Stream Mode(流模式)连接——一种长连接 WebSocket,无需公网 URL 或 webhook 服务器——并通过钉钉的 session webhook API 以 markdown 格式回复消息。在开始设置之前,先了解大多数人最关心的内容:Hermes 进入你的钉钉工作空间后的行为方式。@@ -44,13 +47,13 @@ group_sessions_per_user: false安装所需的 Python 包:```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[dingtalk]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['dingtalk'], explicit=True)"```或单独安装:```bash-pip install dingtalk-stream httpx alibabacloud-dingtalk+python -c "import pm; pm.sync_venv(['dingtalk'], explicit=True)"```- `dingtalk-stream` — 钉钉官方 Stream Mode SDK(基于 WebSocket 的实时消息)@@ -236,7 +239,7 @@ display:**解决方法**:安装它:```bash-pip install dingtalk-stream httpx+python -c "import pm; pm.sync_venv(['dingtalk'], explicit=True)"```### "DINGTALK_CLIENT_ID and DINGTALK_CLIENT_SECRET required"diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/feishu.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/feishu.mdindex 8a295b128d2..3728fa20730 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/feishu.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/feishu.md@@ -6,6 +6,9 @@ description: "将 Hermes Agent 配置为飞书或 Lark 机器人"# 飞书 / Lark 配置+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 可作为全功能机器人与飞书和 Lark 集成。连接后,你可以在私信或群聊中与 Agent 对话,在 home chat 中接收 cron job 结果,并通过标准 gateway 流程发送文本、图片、音频和文件附件。该集成支持两种连接模式:@@ -512,9 +515,9 @@ WebSocket 和按群 ACL 设置通过 `config.yaml` 的 `platforms.feishu.extra`| 问题 | 解决方法 ||---------|-----|-| `lark-oapi not installed` | 安装 SDK:`pip install lark-oapi` |-| `websockets not installed; websocket mode unavailable` | 安装 websockets:`pip install websockets` |-| `aiohttp not installed; webhook mode unavailable` | 安装 aiohttp:`pip install aiohttp` |+| `lark-oapi not installed` | 安装 SDK:`python -c "import pm; pm.sync_venv(['feishu'], explicit=True)"` |+| `websockets not installed; websocket mode unavailable` | 安装 websockets:`hermes pm repair` |+| `aiohttp not installed; webhook mode unavailable` | 安装 aiohttp:`python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"` || `FEISHU_APP_ID or FEISHU_APP_SECRET not set` | 设置两个环境变量,或通过 `hermes gateway setup` 配置 || `Another local Hermes gateway is already using this Feishu app_id` | 同一时间只能有一个 Hermes 实例使用相同的 app_id。请先停止另一个 gateway。 || 机器人在群聊中不响应 | 确保机器人被 @提及,检查 `FEISHU_GROUP_POLICY`,若策略为 `allowlist` 则验证发送者是否在 `FEISHU_ALLOWED_USERS` 中 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.mdindex bc57f2720df..0f7fa9e74db 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md@@ -6,6 +6,9 @@ description: "将 Hermes Agent 设置为 Matrix 机器人"# Matrix 设置+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes Agent 与 Matrix 集成,Matrix 是一种开放的联邦消息协议。Matrix 允许你运行自己的 homeserver,也可以使用 matrix.org 等公共 homeserver——无论哪种方式,你都保持对通信的控制权。机器人通过 `mautrix` Python SDK 连接,通过 Hermes Agent 管道(包括工具调用、记忆和推理)处理消息,并实时响应。它支持文本、文件附件、图片、音频、视频,以及可选的端对端加密(E2EE)。Hermes 兼容任何 Matrix homeserver——Synapse、Conduit、Dendrite 或 matrix.org。@@ -244,10 +247,10 @@ E2EE 需要带有加密扩展的 `mautrix` 库以及 `libolm` C 库:```bash# 安装带 E2EE 支持的 mautrix-pip install 'mautrix[encryption]'+python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"# 或通过 hermes extras 安装-cd ~/.hermes/hermes-agent && uv pip install -e ".[matrix]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"```你还需要在系统上安装 `libolm`:@@ -422,13 +425,13 @@ curl -H "Authorization: Bearer YOUR_TOKEN" \**解决方法**:安装它:```bash-pip install 'mautrix[encryption]'+python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"```或通过 Hermes extras:```bash-cd ~/.hermes/hermes-agent && uv pip install -e ".[matrix]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['matrix'], explicit=True)"```### 加密错误/"无法解密事件"@@ -584,18 +587,8 @@ services:- ./matrix-store:/root/.hermes/platforms/matrix/store```-**`Dockerfile`:**--```dockerfile-FROM python:3.11-slim--RUN apt-get update && apt-get install -y libolm-dev && rm -rf /var/lib/apt/lists/*-RUN cd ~/.hermes/hermes-agent && uv pip install -e ".[matrix]"--CMD ["hermes", "gateway"]-```--这就是整个容器。无需 OpenRouter、Anthropic 或任何推理提供商的 API 密钥。+使用仓库的 [Docker 构建](/user-guide/docker)。它在兼容的 Linux 目标上包含 Matrix extra 和所需的本机库。+不要在运行时向密封镜像安装依赖。容器需要 Matrix 凭据和代理访问,不需要推理提供商的 API 密钥。### 第三步:同时启动diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/qqbot.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/qqbot.mdindex 0d7ab1bb2ca..1478c9f25b7 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/qqbot.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/qqbot.md@@ -1,5 +1,8 @@# QQ Bot+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+通过**官方 QQ Bot API(v2)**将 Hermes 接入 QQ——支持私聊(C2C)、群组 @-提及、频道及直接消息,并具备语音转写功能。## 概述@@ -20,7 +23,7 @@ QQ Bot 适配器使用[官方 QQ Bot API](https://bot.q.qq.com/wiki/develop/api-2. **依赖项** — 适配器需要 `aiohttp` 和 `httpx`:```bash- pip install aiohttp httpx+ python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"```## 配置@@ -118,6 +121,6 @@ platforms:### 连接错误-- 确保已安装 `aiohttp` 和 `httpx`:`pip install aiohttp httpx`+- 确保已安装 `aiohttp` 和 `httpx`:`python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"`- 检查与 `api.sgroup.qq.com` 及 WebSocket gateway 的网络连通性- 查看 gateway 日志以获取详细错误信息和重连行为\ No newline at end of filediff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/simplex.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/simplex.mdindex 431d8b27f70..cd860b91bfd 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/simplex.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/simplex.md@@ -5,7 +5,7 @@## 前提条件- 已安装并以守护进程方式运行的 **simplex-chat** CLI-- Python 包 **websockets**(`pip install websockets`)+- Python 包 **websockets**(`hermes pm repair`)## 安装 simplex-chat@@ -93,6 +93,6 @@ send_message(target="simplex:<contact-id>", message="Done!")**"Cannot reach daemon"** — 确保 `simplex-chat -p 5225` 正在运行,且端口与 `SIMPLEX_WS_URL` 一致。-**"websockets not installed"** — 运行 `pip install websockets`。+**"websockets not installed"** — 运行 `hermes pm repair`。**消息未收到** — 检查该联系人的 ID 是否已加入 `SIMPLEX_ALLOWED_USERS`,或通过 DM 配对方式批准该联系人。\ No newline at end of filediff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/sms.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/sms.mdindex 235e8f37890..bda95c9dd12 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/sms.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/sms.md@@ -7,6 +7,9 @@ description: "通过 Twilio 将 Hermes Agent 设置为 SMS 聊天机器人"# SMS 设置(Twilio)+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+Hermes 通过 [Twilio](https://www.twilio.com/) API 接入 SMS。用户向你的 Twilio 电话号码发送短信,即可获得 AI 回复——与 Telegram 或 Discord 的对话体验相同,但通过标准短信进行。:::info 共享凭据@@ -20,7 +23,7 @@ SMS gateway(网关)与可选的 [telephony skill](/reference/skills-catalog)- **Twilio 账户** — [在 twilio.com 注册](https://www.twilio.com/try-twilio)(提供免费试用)- **具备 SMS 功能的 Twilio 电话号码**- **可公开访问的服务器** — Twilio 在收到 SMS 时会向你的服务器发送 webhook-- **aiohttp** — `cd ~/.hermes/hermes-agent && uv pip install -e ".[sms]"`+- **aiohttp** — `cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['sms'], explicit=True)"`---diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/wecom.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/wecom.mdindex 4990aed384e..8f7d33f8d8e 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/wecom.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/wecom.md@@ -6,6 +6,9 @@ description: "通过 AI Bot WebSocket 网关将 Hermes Agent 连接到 WeCom"# WeCom(企业微信)+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+将 Hermes 连接到 [WeCom](https://work.weixin.qq.com/)(企业微信),腾讯的企业即时通讯平台。该适配器使用 WeCom 的 AI Bot WebSocket 网关实现实时双向通信——无需公开端点或 webhook。## 前提条件@@ -199,7 +202,7 @@ WeCom 对部分入站媒体附件使用 AES-256-CBC 加密。适配器会自动- 当入站媒体项包含 `aeskey` 字段时,适配器下载加密字节并使用带 PKCS#7 填充的 AES-256-CBC 进行解密。- AES 密钥是 `aeskey` 字段的 base64 解码值(必须恰好为 32 字节)。- IV 由密钥的前 16 字节派生。-- 此功能需要 `cryptography` Python 包(`pip install cryptography`)。+- 此功能需要 `cryptography` Python 包(`hermes pm repair`)。无需任何配置——收到加密媒体时解密会自动透明地进行。@@ -277,14 +280,14 @@ WeCom 对部分入站媒体附件使用 AES-256-CBC 加密。适配器会自动| 问题 | 解决方法 ||---------|-----|| `WECOM_BOT_ID and WECOM_SECRET are required` | 设置两个环境变量,或在设置向导中配置 |-| `WeCom startup failed: aiohttp not installed` | 安装 aiohttp:`pip install aiohttp` |-| `WeCom startup failed: httpx not installed` | 安装 httpx:`pip install httpx` |+| `WeCom startup failed: aiohttp not installed` | 安装 aiohttp:`python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"` |+| `WeCom startup failed: httpx not installed` | 安装 httpx:`hermes pm repair` || `invalid secret (errcode=40013)` | 验证 secret 是否与机器人凭据匹配 || `Timed out waiting for subscribe acknowledgement` | 检查到 `openws.work.weixin.qq.com` 的网络连通性 || 机器人在群组中不响应 | 检查 `group_policy` 设置,并确保群组 ID 在 `group_allow_from` 中 || 机器人忽略群组中的某些用户 | 检查 `groups` 配置节中按群组的 `allow_from` 列表 |-| 媒体解密失败 | 安装 `cryptography`:`pip install cryptography` |-| `cryptography is required for WeCom media decryption` | 入站媒体已被 AES 加密。安装:`pip install cryptography` |+| 媒体解密失败 | 安装 `cryptography`:`hermes pm repair` |+| `cryptography is required for WeCom media decryption` | 入站媒体已被 AES 加密。安装:`hermes pm repair` || 语音消息作为文件发送 | WeCom 原生语音仅支持 AMR 格式,其他格式会自动降级为文件。 || `File too large` 错误 | WeCom 对所有文件上传有 20 MB 的绝对限制。请压缩或拆分文件。 || 图片作为文件发送 | 图片 > 10 MB 超过原生图片限制,会自动降级为文件附件。 |diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/weixin.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/weixin.mdindex b8bf74dd69c..494bc5deb4f 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/weixin.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/weixin.md@@ -6,6 +6,9 @@ description: "通过 iLink Bot API 将 Hermes Agent 连接到个人微信账号"# 微信(Weixin / WeChat)+本页的 Python 依赖命令使用 [PM 准备的源码环境](/reference/package-management#developer-workflow)。+依赖变更后,请重新激活该 checkout 并重启 Hermes。+将 Hermes 连接到 [微信](https://weixin.qq.com/)(WeChat),腾讯的个人即时通讯平台。该适配器使用腾讯的 **iLink Bot API** 对接个人微信账号——与企业微信(WeCom)不同。消息通过长轮询(long-polling)方式传递,无需公网端点或 webhook。:::info@@ -32,9 +35,9 @@ description: "通过 iLink Bot API 将 Hermes Agent 连接到个人微信账号"安装所需依赖:```bash-pip install aiohttp cryptography+python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"# 可选:用于终端二维码显示-cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]"+cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"```## 配置步骤@@ -296,7 +299,7 @@ iLink Bot API 要求在每条出站消息中回传 `context_token`(针对特| 问题 | 解决方法 ||---------|-----|-| `Weixin startup failed: aiohttp and cryptography are required` | 安装两者:`pip install aiohttp cryptography` |+| `Weixin startup failed: aiohttp and cryptography are required` | 安装两者:`python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"` || `Weixin startup failed: WEIXIN_TOKEN is required` | 运行 `hermes gateway setup` 完成扫码登录,或手动设置 `WEIXIN_TOKEN` || `Weixin startup failed: WEIXIN_ACCOUNT_ID is required` | 在 `.env` 中设置 `WEIXIN_ACCOUNT_ID`,或运行 `hermes gateway setup` || `Another local Hermes gateway is already using this Weixin token` | 先停止另一个网关实例——每个 token 只允许一个轮询器 |@@ -309,4 +312,4 @@ iLink Bot API 要求在每条出站消息中回传 `context_token`(针对特| 语音消息显示为文本 | 若微信提供了转录文本,适配器会使用文本内容,这是预期行为 || 消息出现重复 | 适配器通过消息 ID 去重。若仍出现重复,检查是否有多个网关实例在运行 || `iLink POST ... HTTP 4xx/5xx` | iLink 服务返回 API 错误。检查 token 有效性和网络连通性 |-| 终端二维码无法渲染 | 使用 messaging 扩展重新安装:`cd ~/.hermes/hermes-agent && uv pip install -e ".[messaging]"`。或者,打开二维码上方打印的 URL |\ No newline at end of file+| 终端二维码无法渲染 | 使用 messaging 扩展重新安装:`cd ~/.hermes/hermes-agent && python -c "import pm; pm.sync_venv(['messaging'], explicit=True)"`。或者,打开二维码上方打印的 URL |\ No newline at end of filediff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/yuanbao.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/yuanbao.mdindex 62b637b5e8a..616b0d69d49 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/yuanbao.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/yuanbao.md@@ -17,12 +17,11 @@ description: "通过 WebSocket gateway 将 Hermes Agent 连接到元宝企业消- 拥有机器人创建权限的元宝账号- 元宝 APP_ID 和 APP_SECRET(由平台管理员提供)- Python 包:`websockets` 和 `httpx`-- 媒体支持需要:`aiofiles`安装所需依赖:```bash-pip install websockets httpx aiofiles+hermes pm repair```## 配置