Repository navigation
Runs Hermes
Runs of model-router in Hermes Agent. Newest first. Home holds the entry template.
Hermes v0.23.3 · branch feat/hermes-key-setting-name at fe4b629, after bb0aee2 · live
Question. A user stored the TypeSafe key while the plugin's manifest named the secret typesafe_api_key. The plugin then updates to a manifest that names it api_key, with the same env: variable. Is the stored key still there, does the settings form's field list show it as set, and does the plugin still read it?
Verdict. The stored key survives. Hermes keeps a secret in the home's .env under its variable and nowhere under the setting's name, so after the update the field api_key reads as set and the plugin's get_secret("TYPESAFE_API_KEY") returns the stored value.
Command
# Every command ran with HERMES_HOME set to a new home, with standard input closed and with
# TYPESAFE_API_KEY, OPENROUTER_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY and GOOGLE_API_KEY
# unset in its environment. The version line came from a launch with no HERMES_HOME.
# The first command under the new home built the dependency environment of that home.
# <repo> is a clone of this repository, first at bb0aee2 and then at fe4b629.
hermes plugins install "file://<repo>#plugins/model-router-hermes" --enable
hermes plugins list
# Python processes of that Hermes, with network sockets blocked, called its functions:
# plugin_settings_fields(...) the field list
# save_provider_env_credential("TYPESAFE_API_KEY", <dummy>) the store, as the settings form's route makes it
# and loaded the plugin, then read the key through the plugin's own get_secret and found_keys.
# Each such process loaded the home's .env first, except the one labelled no-dotenv.
hermes plugins update model-router-hermes
hermes plugins list
# The lines below are shown without the two plugin tables and the install panel, and with the
# paths of the clone, of the new home, of the dependency environment and of the Hermes home
# replaced by placeholders.Observed
== version, from a launch with no HERMES_HOME
Hermes Agent v0.23.3 (2026.9.24) · stable · local caafe5389ae5
== a clone of the repository at the commit before the rename; the install takes the committed HEAD
HEAD bb0aee2
plugin.yaml lines that name typesafe_api_key: 1
== install and enable the plugin; the first command under the new home builds its dependency environment (limit 1200 s)
hermes: preparing dependencies for this data root (the checkout's updates belong to <the Hermes home>)...
== before the rename: the secret fields, with nothing stored
plugin key: model-router-hermes version: 0.24.3
installed plugin.yaml, secret settings and their variables: {'typesafe_api_key': 'TYPESAFE_API_KEY', 'openai_api_key': 'OPENAI_API_KEY', 'google_api_key': 'GEMINI_API_KEY', 'openrouter_api_key': 'OPENROUTER_API_KEY'}
field typesafe_api_key: type=secret env=TYPESAFE_API_KEY has_value=False
field openai_api_key: type=secret env=OPENAI_API_KEY has_value=False
field google_api_key: type=secret env=GEMINI_API_KEY has_value=False
field openrouter_api_key: type=secret env=OPENROUTER_API_KEY has_value=False
== before the rename: store the TypeSafe secret as the settings form does (a dummy)
store typesafe_api_key under env TYPESAFE_API_KEY: ok=True config_updates=[]
== before the rename: where it landed
files in the home: ['.env', '.env.lock', '.hermes-update-in-progress.lock', 'SOUL.md', 'audio_cache', 'backups', 'cache', 'config.yaml', 'cron', 'hooks', 'image_cache', 'installs', 'logs', 'memories', 'pairing', 'plugins', 'sessions', 'skills']
variable names in .env: ['TYPESAFE_API_KEY']
.env TYPESAFE_API_KEY: present=True equals the dummy: True
config.yaml holds the dummy: False
config.yaml names typesafe_api_key: False
key paths under plugins in config.yaml: ['plugins', 'plugins.disabled', 'plugins.enabled']
auth.json: absent
== before the rename: the secret fields, and the key as the loaded plugin reads it
plugin key: model-router-hermes version: 0.24.3
installed plugin.yaml, secret settings and their variables: {'typesafe_api_key': 'TYPESAFE_API_KEY', 'openai_api_key': 'OPENAI_API_KEY', 'google_api_key': 'GEMINI_API_KEY', 'openrouter_api_key': 'OPENROUTER_API_KEY'}
field typesafe_api_key: type=secret env=TYPESAFE_API_KEY has_value=True
field openai_api_key: type=secret env=OPENAI_API_KEY has_value=False
field google_api_key: type=secret env=GEMINI_API_KEY has_value=False
field openrouter_api_key: type=secret env=OPENROUTER_API_KEY has_value=False
before: dotenv loaded by the probe: yes; process environment holds TYPESAFE_API_KEY=True
before: plugin enabled=True error=None
before: plugin modules loaded: ['__init__.py', 'budget.py', 'config_command.py', 'config_tool.py', 'constants.py', 'hermes_api.py', 'labels.py', 'node.py', 'params.py', 'provider.py', 'router.py', 'settings.py']
before: the plugin's get_secret(TYPESAFE_API_KEY): present=True equals the dummy: True
before: the plugin's variable for the holder typesafe: TYPESAFE_API_KEY
before: the plugin's found_keys for the holder typesafe: holders found=['typesafe'] equals the dummy: True
== move the clone to the commit after the rename and update the installed plugin
HEAD fe4b629
plugin.yaml lines that name typesafe_api_key: 0
Updating model-router-hermes...
✓ Plugin model-router-hermes updated.
Re-installed from file://<repo>#plugins/model-router-hermes: bb0aee2b..fe4b6297
hermes plugins update: exit status 0
== after the rename: where the stored secret is
files in the home: ['.env', '.env.lock', '.hermes-update-in-progress.lock', 'SOUL.md', 'audio_cache', 'backups', 'cache', 'config.yaml', 'cron', 'hooks', 'image_cache', 'installs', 'logs', 'memories', 'pairing', 'plugins', 'sessions', 'skills']
variable names in .env: ['TYPESAFE_API_KEY']
.env TYPESAFE_API_KEY: present=True equals the dummy: True
config.yaml holds the dummy: False
config.yaml names typesafe_api_key: False
key paths under plugins in config.yaml: ['plugins', 'plugins.disabled', 'plugins.enabled']
auth.json: absent
== after the rename: the secret fields, and the key as the loaded plugin reads it
plugin key: model-router-hermes version: 0.24.3
installed plugin.yaml, secret settings and their variables: {'api_key': 'TYPESAFE_API_KEY', 'openai_api_key': 'OPENAI_API_KEY', 'google_api_key': 'GEMINI_API_KEY', 'openrouter_api_key': 'OPENROUTER_API_KEY'}
field api_key: type=secret env=TYPESAFE_API_KEY has_value=True
field openai_api_key: type=secret env=OPENAI_API_KEY has_value=False
field google_api_key: type=secret env=GEMINI_API_KEY has_value=False
field openrouter_api_key: type=secret env=OPENROUTER_API_KEY has_value=False
after: dotenv loaded by the probe: yes; process environment holds TYPESAFE_API_KEY=True
after: plugin enabled=True error=None
after: plugin modules loaded: ['__init__.py', 'budget.py', 'config_command.py', 'config_tool.py', 'constants.py', 'hermes_api.py', 'labels.py', 'node.py', 'params.py', 'provider.py', 'router.py', 'settings.py']
after: the plugin's get_secret(TYPESAFE_API_KEY): present=True equals the dummy: True
after: the plugin's variable for the holder typesafe: TYPESAFE_API_KEY
after: the plugin's found_keys for the holder typesafe: holders found=['typesafe'] equals the dummy: True
after-no-dotenv: dotenv loaded by the probe: no; process environment holds TYPESAFE_API_KEY=False
after-no-dotenv: plugin enabled=True error=None
after-no-dotenv: plugin modules loaded: ['__init__.py', 'budget.py', 'config_command.py', 'config_tool.py', 'constants.py', 'hermes_api.py', 'labels.py', 'node.py', 'params.py', 'provider.py', 'router.py', 'settings.py']
after-no-dotenv: the plugin's get_secret(TYPESAFE_API_KEY): present=False equals the dummy: False
after-no-dotenv: the plugin's variable for the holder typesafe: TYPESAFE_API_KEY
after-no-dotenv: the plugin's found_keys for the holder typesafe: holders found=[] equals the dummy: False
== gateway
no gateway started
== the tool store of the install, top entries before and after (time, name)
unchanged
the new home and the run folder are deleted; exit status 0
exit 0
Hermes v0.23.3 · a test plugin, no model-router build · live
Question. When a plugin's config_schema declares a secret whose env: is OPENROUTER_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY, where does Hermes store the value, do Hermes's own providers read it, does get_secret return it to the plugin, and is a stored str value outside choices kept?
Verdict. Hermes stores such a secret in the home's .env under the variable's name, through the function that the settings form's route calls and through hermes config set, and keeps it out of config.yaml; Hermes's own OpenRouter (for a value with the prefix its resolver requires), OpenAI and Gemini providers then resolve the value that hermes config set stored as their key; get_secret returns it only in a process that has loaded that .env; the settings field list shows the field as a secret; and a stored str value outside choices stays on read and on a later save of another key, while a save of such a value is refused.
Command
# Every command ran with HERMES_HOME set to a new home, with standard input closed
# and the four provider variables unset in its environment.
# The version line came from a launch with no HERMES_HOME.
# The first command under the new home built the dependency environment of that home.
hermes plugins install "file://<repo>#plugins/secret-probe" --enable
hermes plugins list
# Python processes of that Hermes, with network sockets blocked, called its functions:
# plugin_settings_fields(...) the field list
# save_provider_env_credential(<name>, <dummy>) for each secret field
# save_plugin_settings(...) for a plain field
# resolve_runtime_provider(requested=...) for openrouter, openai-api and gemini
# Some of those processes loaded the home's .env first, and some did not.
# The run itself unset the four variables in the environment of every command and process,
# so the lines below on the process environment tell only whether that .env was loaded.
hermes config set OPENROUTER_API_KEY <dummy>
hermes config set OPENAI_API_KEY <dummy>
hermes config set GEMINI_API_KEY <dummy>
hermes config set SECRET_PROBE_OWN_KEY <dummy>
hermes config set plugins.entries.secret-probe.settings.provider auto
hermes config get plugins.entries.secret-probe.settings.providerObserved
== version, from a launch with no HERMES_HOME
Hermes Agent v0.23.3 (2026.9.24) · stable · local caafe5389ae5
== install and enable the plugin; the first command under the new home builds its dependency environment (limit 1200 s)
Preparing the isolated Hermes runtime…
→ Installing Python dependencies…
✓ Installing Python dependencies
→ Installing Python dependencies…
✓ Installing Python dependencies
✓ Plugin secret-probe enabled.
found: <home>/installs/<key>/environments/<name>/venv/bin/python
Python 3.14.9
526M <home>/cache
718M <home>/installs
== the settings fields, before any secret is stored
plugin key: secret-probe
field openrouter_api_key: type=secret env=OPENROUTER_API_KEY has_value=False
field openai_api_key: type=secret env=OPENAI_API_KEY has_value=False
field google_api_key: type=secret env=GEMINI_API_KEY has_value=False
field probe_own_key: type=secret env=SECRET_PROBE_OWN_KEY has_value=False
field provider: type=enum choices=['typesafe', 'openai', 'google'] default='typesafe' value='typesafe'
== store the four secrets as the settings form does (dummy set 1)
store openrouter_api_key under env OPENROUTER_API_KEY: ok=True config_updates=[]
store openai_api_key under env OPENAI_API_KEY: ok=True config_updates=[]
store google_api_key under env GEMINI_API_KEY: ok=True config_updates=[]
store probe_own_key under env SECRET_PROBE_OWN_KEY: ok=True config_updates=[]
== where they landed, against dummy set 1
variable names in .env: ['GEMINI_API_KEY', 'OPENAI_API_KEY', 'OPENROUTER_API_KEY', 'SECRET_PROBE_OWN_KEY']
.env OPENROUTER_API_KEY: present=True equals the dummy: True
.env OPENAI_API_KEY: present=True equals the dummy: True
.env GEMINI_API_KEY: present=True equals the dummy: True
.env SECRET_PROBE_OWN_KEY: present=True equals the dummy: True
key paths in config.yaml: ['plugins', 'plugins.disabled', 'plugins.enabled']
config.yaml holds a dummy: False
auth.json credential_pool gemini: sources=['env:GEMINI_API_KEY']
auth.json credential_pool openai-api: sources=['env:OPENAI_API_KEY']
auth.json holds a dummy: False
== store the same four variables by the CLI, hermes config set (dummy set 2)
✓ Set OPENROUTER_API_KEY in <home>/.env
✓ Set OPENAI_API_KEY in <home>/.env
✓ Set GEMINI_API_KEY in <home>/.env
✓ Set SECRET_PROBE_OWN_KEY in <home>/.env
== where they landed, against dummy set 2
variable names in .env: ['GEMINI_API_KEY', 'OPENAI_API_KEY', 'OPENROUTER_API_KEY', 'SECRET_PROBE_OWN_KEY']
.env OPENROUTER_API_KEY: present=True equals the dummy: True
.env OPENAI_API_KEY: present=True equals the dummy: True
.env GEMINI_API_KEY: present=True equals the dummy: True
.env SECRET_PROBE_OWN_KEY: present=True equals the dummy: True
key paths in config.yaml: ['plugins', 'plugins.disabled', 'plugins.enabled']
config.yaml holds a dummy: False
auth.json credential_pool gemini: sources=['env:GEMINI_API_KEY']
auth.json credential_pool openai-api: sources=['env:OPENAI_API_KEY']
auth.json holds a dummy: False
== the settings fields, after the secrets are stored
field openrouter_api_key: type=secret env=OPENROUTER_API_KEY has_value=True
field openai_api_key: type=secret env=OPENAI_API_KEY has_value=True
field google_api_key: type=secret env=GEMINI_API_KEY has_value=True
field probe_own_key: type=secret env=SECRET_PROBE_OWN_KEY has_value=True
== Hermes's own provider resolution, against dummy set 2
resolve openrouter: provider=openrouter source=env:OPENROUTER_API_KEY base_url=https://openrouter.ai/api/v1 api_key present=True equals the dummy of: ['OPENROUTER_API_KEY']
resolve openai-api: provider=openai-api source=env:OPENAI_API_KEY base_url=https://api.openai.com/v1 api_key present=True equals the dummy of: ['OPENAI_API_KEY']
resolve gemini: provider=gemini source=env:GEMINI_API_KEY base_url=https://generativelanguage.googleapis.com/v1beta api_key present=True equals the dummy of: ['GEMINI_API_KEY']
status openai-api: configured=True key_source=OPENAI_API_KEY
status gemini: configured=True key_source=GEMINI_API_KEY
== register(ctx) in a fresh process, without and with the dotenv load
after-secrets-no-dotenv: dotenv loaded by the probe: no
after-secrets-no-dotenv: process environment holds OPENROUTER_API_KEY=False, OPENAI_API_KEY=False, GEMINI_API_KEY=False, SECRET_PROBE_OWN_KEY=False
after-secrets-dotenv: dotenv loaded by the probe: yes
after-secrets-dotenv: process environment holds OPENROUTER_API_KEY=True, OPENAI_API_KEY=True, GEMINI_API_KEY=True, SECRET_PROBE_OWN_KEY=True
== store provider auto by the CLI and read it back
✓ Set plugins.entries.secret-probe.settings.provider = auto in <home>/config.yaml
auto
field provider: type=enum choices=['typesafe', 'openai', 'google'] default='typesafe' value='auto'
== save other fields through the form's function, one valid and one outside the choices
saved keys: ['note']
refused: ValueError: 'provider' must be one of the declared choices
== read provider again
auto
field provider: type=enum choices=['typesafe', 'openai', 'google'] default='typesafe' value='auto'
field note: type=string choices=None default='first' value='second'
== all report lines
report line 1: OPENROUTER_API_KEY: absent, equals the dummy: false; OPENAI_API_KEY: absent, equals the dummy: false; GEMINI_API_KEY: absent, equals the dummy: false; SECRET_PROBE_OWN_KEY: absent, equals the dummy: false
report line 1: get_config provider=None note=None
report line 2: OPENROUTER_API_KEY: present, equals the dummy: true; OPENAI_API_KEY: present, equals the dummy: true; GEMINI_API_KEY: present, equals the dummy: true; SECRET_PROBE_OWN_KEY: present, equals the dummy: true
report line 2: get_config provider=None note=None
report line 3: OPENROUTER_API_KEY: present, equals the dummy: true; OPENAI_API_KEY: present, equals the dummy: true; GEMINI_API_KEY: present, equals the dummy: true; SECRET_PROBE_OWN_KEY: present, equals the dummy: true
report line 3: get_config provider='auto' note=None
report line 4: OPENROUTER_API_KEY: present, equals the dummy: true; OPENAI_API_KEY: present, equals the dummy: true; GEMINI_API_KEY: present, equals the dummy: true; SECRET_PROBE_OWN_KEY: present, equals the dummy: true
report line 4: get_config provider='auto' note='second'
== gateway
no gateway started
Hermes v0.23.3 · branch claude/shared-harness-parts-13c4af at ffd3e0e · live
Question. With the Node route racing the time limit that Python sends through the core's limit, taking the slot, the effort and the line from the core's outcome, and passing a clock to the scoring call, does one delegated task in Hermes get routed by a real scoring call?
Verdict. The task is routed: the scoring call returns a decision, and both agent.log and the task's route.label hold the line with the level, the model, the effort, both probabilities, the provider, the Jev model and the token counts.
Command
# Every command ran with HERMES_HOME set to a fresh home and standard input closed.
hermes plugins install "file://<checkout>#plugins/model-router-hermes" --enable
hermes config set delegation.backend model-router
hermes config set plugins.entries.model-router-hermes.settings.small_model '{"provider": "openrouter", "model": "google/gemini-2.5-flash"}'
# The same value for middle_model and large_model. The two scoring keys went into the home's .env.
hermes -z 'Call the delegate_task tool exactly once, with one task: "Reply with the single word eval-subject." Then print the raw JSON result the tool returned, unchanged, and stop. Do not call any other tool.' -m google/gemini-2.5-flash --provider openrouter -t delegation --ignore-rules --usage-file <file>
hermes gateway stopObserved
agent.log:
INFO hermes_plugins.model_router_hermes.router: model-router L0 google/gemini-2.5-flash · medium · p=0.98/1.00 · typesafe jev-1.14.0 · 678/30 tok
The delegate_task result of the turn, results[0].route, in part:
"backend": "model-router"
"label": "model-router L0 google/gemini-2.5-flash · medium · p=0.98/1.00 · typesafe jev-1.14.0 · 678/30 tok"
"model": "google/gemini-2.5-flash"
"provider": "openrouter"
"reasoning_effort": "medium"
results[0], in part:
"status": "completed"
"summary": "eval-subject"
Hermes v0.23.2 · branch claude/own-transport-d96ec0 at f631cf1 · live
Question. With the scoring request sent by the plugin's own transport and no TypeSafe SDK, does one delegated task in Hermes get routed by a real scoring call?
Verdict. The task is routed: the scoring call returns a decision, and both agent.log and the task's route.label hold the line with the level, the model, the effort, both probabilities, the Jev model and the token counts.
Command
# Every command ran with HERMES_HOME set to a fresh home and standard input closed.
hermes plugins install "file://<checkout>#plugins/model-router-hermes" --enable
hermes config set delegation.backend model-router
hermes config set plugins.entries.model-router-hermes.settings.small_model '{"provider": "openrouter", "model": "google/gemini-2.5-flash"}'
# The same value for middle_model and large_model. The two scoring keys went into the home's .env.
hermes -z "<call delegate_task once with one task and print the raw result>" -m google/gemini-2.5-flash --provider openrouter -t delegation --ignore-rules --usage-file <file>
hermes gateway stopObserved
agent.log:
INFO hermes_plugins.model_router_hermes.router: model-router L0 google/gemini-2.5-flash · medium · p=0.87/0.90 · jev jev-1.14.0 · 756/30 tok
The delegate_task result of the turn, results[0].route.label:
model-router L0 google/gemini-2.5-flash · medium · p=0.87/0.90 · jev jev-1.14.0 · 756/30 tok