hermes-agent/website/docs/developer-guide
Teknium 745859babb
feat: env var passthrough for skills and user config (#2807)
* feat: env var passthrough for skills and user config

Skills that declare required_environment_variables now have those vars
passed through to sandboxed execution environments (execute_code and
terminal).  Previously, execute_code stripped all vars containing KEY,
TOKEN, SECRET, etc. and the terminal blocklist removed Hermes
infrastructure vars — both blocked skill-declared env vars.

Two passthrough sources:

1. Skill-scoped (automatic): when a skill is loaded via skill_view and
   declares required_environment_variables, vars that are present in
   the environment are registered in a session-scoped passthrough set.

2. Config-based (manual): terminal.env_passthrough in config.yaml lets
   users explicitly allowlist vars for non-skill use cases.

Changes:
- New module: tools/env_passthrough.py — shared passthrough registry
- hermes_cli/config.py: add terminal.env_passthrough to DEFAULT_CONFIG
- tools/skills_tool.py: register available skill env vars on load
- tools/code_execution_tool.py: check passthrough before filtering
- tools/environments/local.py: check passthrough in _sanitize_subprocess_env
  and _make_run_env
- 19 new tests covering all layers

* docs: add environment variable passthrough documentation

Document the env var passthrough feature across four docs pages:

- security.md: new 'Environment Variable Passthrough' section with
  full explanation, comparison table, and security considerations
- code-execution.md: update security section, add passthrough subsection,
  fix comparison table
- creating-skills.md: add tip about automatic sandbox passthrough
- skills.md: add note about passthrough after secure setup docs

Live-tested: launched interactive CLI, loaded a skill with
required_environment_variables, verified TEST_SKILL_SECRET_KEY was
accessible inside execute_code sandbox (value: passthrough-test-value-42).
2026-03-24 08:19:34 -07:00
..
_category_.json feat: add documentation website (Docusaurus) 2026-03-05 05:24:55 -08:00
acp-internals.md docs: add ACP and internal systems implementation guides 2026-03-14 00:29:48 -07:00
adding-providers.md docs: align venv path to match installer (venv/ not .venv/) 2026-03-19 18:16:26 -07:00
adding-tools.md feat: add documentation website (Docusaurus) 2026-03-05 05:24:55 -08:00
agent-loop.md docs: fix stale and incorrect documentation across 18 files 2026-03-24 07:53:07 -07:00
architecture.md docs: add provider contribution guide 2026-03-14 19:22:47 -07:00
context-compression-and-caching.md docs: add ACP and internal systems implementation guides 2026-03-14 00:29:48 -07:00
contributing.md chore: remove all remaining mini-swe-agent references 2026-03-24 08:19:23 -07:00
creating-skills.md feat: env var passthrough for skills and user config (#2807) 2026-03-24 08:19:34 -07:00
cron-internals.md feat: add multi-skill cron editing and docs 2026-03-14 19:18:10 -07:00
environments.md docs: stabilize website diagrams 2026-03-14 22:49:57 -07:00
extending-the-cli.md docs: replace ASCII diagrams with Mermaid/lists, add linting note 2026-03-21 17:58:30 -07:00
gateway-internals.md fix(honcho): isolate session routing for multi-user gateway (#1500) 2026-03-16 00:23:47 -07:00
prompt-assembly.md docs: fix stale and incorrect documentation across 18 files 2026-03-24 07:53:07 -07:00
provider-runtime.md docs: update all docs for /model command overhaul and custom provider support 2026-03-24 07:19:26 -07:00
session-storage.md docs: add ACP and internal systems implementation guides 2026-03-14 00:29:48 -07:00
tools-runtime.md docs: add ACP and internal systems implementation guides 2026-03-14 00:29:48 -07:00
trajectory-format.md docs: add ACP and internal systems implementation guides 2026-03-14 00:29:48 -07:00