Skip to content

[Bug]: Hermes Agent v0.16.0 still sends empty runtime model/provider on Linux pipx install. #48061

Closed as not planned

Description

@rcp2024ai

Bug Description

Hermes Agent v0.16.0 still sends empty runtime model/provider on Linux pipx install.

Environment:

  • Hermes Agent v0.16.0 (2026.6.5)
  • Installed via pipx
  • Python 3.12.3

Observed behavior:

  • Requests fail with:
    REASON: max_retries_exhausted
    MODEL: ''
    PROVIDER: None

What I tested:

  • Added top-level provider/model in ~/.hermes/config.yaml
  • Restarted Hermes
  • Created a brand-new session
  • Upgraded Hermes from older version to v0.16.0 with pipx
  • Retested on fresh session

Result:

  • Request dump still shows empty model and provider None

Diagnostic command:
ls -t ~/.hermes/sessions/request_dump_*.json | head -1 | xargs cat | python3 -c '
import json,sys
d=json.load(sys.stdin)
print("REASON:", d.get("reason"))
print("MODEL:", repr(d["request"]["body"].get("model")))
print("PROVIDER:", repr(d["request"]["body"].get("provider")))
'

Steps to Reproduce

Welcome to Hermes Agent! Type your message or /help for commands.
✦ Tip: Type a new message while the agent is working to interrupt and redirect it.
💾 curator: snapshot created (2026-06-17T21-18-50Z)

────────────────────────────────────────
● "..."
Initializing agent...
────────────────────────────────────────
┊ 🔍 recall "" 0.1s
┊ 🔍 recall "" 0.0s
┊ 💻 $ date && echo "---" && uptime && echo "---" && df -h / | tail -1 && echo "---" && free -h && echo "---" && hermes --version 2>/dev/null && echo "---" && ls /mnt/data/hermes/data/ 2>/dev/null 13.1s
┊ ⏰ cron listing 0.0s
┊ 🔍 recall "" 0.0s
─ ⚕ Hermes ─────────────────────────────────────────────────────────────────────────────────────────────────────────

 Boss — welcome back. Been 12 days since your last check-in. Here's where things stand.
 Hermes Agent Status Report — June 17, 2026
 System Health (spotybox)
 | Metric | Value                  | Change vs June 5           |
 |--------|------------------------|----------------------------|
 | Uptime | 3h36m                  | Host was rebooted recently |
 | Load   | 0.41                   | Near idle, same as before  |
 | RAM    | 3.1 GB available       | Still plenty of headroom   |
 | Disk   | 69% used (3.8 GB free) | Same — holding steady      |
 | GPU    | None                   | No change                  |
 Hermes Agent
 | Field            | Value                            | Change                   |
 |------------------|----------------------------------|--------------------------|
 | Version          | v0.16.0 (June 5 release)         | ⬆️ Upgraded from v0.15.2 |
 | Python           | 3.12.3                           | Same                     |
 | Provider         | DeepSeek V4 Flash via OpenRouter | Same                     |
 | Terminal backend | ✅ SSH connected                 | Was fixed last session   |
 Activity Since Last Report
 - Total sessions since inception: 2 (both CEO check-ins, including this one)
 - Cron jobs: 0 — none scheduled
 - Background processes: 0
 - Files on disk: The June 5 briefing is still at /mnt/data/hermes/data/briefing_2026-06-05.md
 Notable
 - Hermes upgraded from v0.15.2 → v0.16.0 between sessions.
 - The box was rebooted at some point — uptime went from 11 days to 3.5 hours — but everything came back clean.
 - Disk sitting at 69% is worth watching; 3.8 GB left on a 13 GB root.

 Everything's green. No cron jobs, no alerts, no drift. Want me to kick off anything — a daily briefing cron,
 system monitoring, or something else?

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
💾 curator: auto: no changes; llm: After thorough examination of the entire skill collection, here is my complete
assessment:

Agent-created skills scanned: 1 (research-briefing)
Bundled skills examined under PRUNE-BUILTINS: 30+ across all categories

Findings

…

────────────────────────────────────────

● hermes debug share
────────────────────────────────────────
┊ 📚 skill hermes-agent 0.4s
┊ 💻 $ hermes debug share 10.7s
─ ⚕ Hermes ─────────────────────────────────────────────────────────────────────────────────────────────────────────

 Done, boss. Debug report uploaded — here are the shareable links:

 Debug Report Links (auto-delete in 6 hours)

 | Component      | URL                          |
 |----------------|------------------------------|
 | Report summary | https://paste.rs/YZcgv       |
 | agent.log      | https://dpaste.com/CNEFQKHP3 |
 | gateway.log    | https://paste.rs/W8Kba       |

 To delete early: hermes debug delete <url>

 These go to whoever needs them for support. Want me to do anything else with these?

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⚕ deepseek-v4-flash │ 39.3K/1M │ [░░░░░░░░░░] 4% │ 4m │ ⏲ 26s

Expected Behavior

Welcome to Hermes Agent! Type your message or /help for commands.
✦ Tip: Type a new message while the agent is working to interrupt and redirect it.
💾 curator: snapshot created (2026-06-17T21-18-50Z)

────────────────────────────────────────
● "..."
Initializing agent...
────────────────────────────────────────
┊ 🔍 recall "" 0.1s
┊ 🔍 recall "" 0.0s
┊ 💻 $ date && echo "---" && uptime && echo "---" && df -h / | tail -1 && echo "---" && free -h && echo "---" && hermes --version 2>/dev/null && echo "---" && ls /mnt/data/hermes/data/ 2>/dev/null 13.1s
┊ ⏰ cron listing 0.0s
┊ 🔍 recall "" 0.0s
─ ⚕ Hermes ─────────────────────────────────────────────────────────────────────────────────────────────────────────

 Boss — welcome back. Been 12 days since your last check-in. Here's where things stand.
 Hermes Agent Status Report — June 17, 2026
 System Health (spotybox)
 | Metric | Value                  | Change vs June 5           |
 |--------|------------------------|----------------------------|
 | Uptime | 3h36m                  | Host was rebooted recently |
 | Load   | 0.41                   | Near idle, same as before  |
 | RAM    | 3.1 GB available       | Still plenty of headroom   |
 | Disk   | 69% used (3.8 GB free) | Same — holding steady      |
 | GPU    | None                   | No change                  |
 Hermes Agent
 | Field            | Value                            | Change                   |
 |------------------|----------------------------------|--------------------------|
 | Version          | v0.16.0 (June 5 release)         | ⬆️ Upgraded from v0.15.2 |
 | Python           | 3.12.3                           | Same                     |
 | Provider         | DeepSeek V4 Flash via OpenRouter | Same                     |
 | Terminal backend | ✅ SSH connected                 | Was fixed last session   |
 Activity Since Last Report
 - Total sessions since inception: 2 (both CEO check-ins, including this one)
 - Cron jobs: 0 — none scheduled
 - Background processes: 0
 - Files on disk: The June 5 briefing is still at /mnt/data/hermes/data/briefing_2026-06-05.md
 Notable
 - Hermes upgraded from v0.15.2 → v0.16.0 between sessions.
 - The box was rebooted at some point — uptime went from 11 days to 3.5 hours — but everything came back clean.
 - Disk sitting at 69% is worth watching; 3.8 GB left on a 13 GB root.

 Everything's green. No cron jobs, no alerts, no drift. Want me to kick off anything — a daily briefing cron,
 system monitoring, or something else?

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
💾 curator: auto: no changes; llm: After thorough examination of the entire skill collection, here is my complete
assessment:

Agent-created skills scanned: 1 (research-briefing)
Bundled skills examined under PRUNE-BUILTINS: 30+ across all categories

Findings

…

────────────────────────────────────────

● hermes debug share
────────────────────────────────────────
┊ 📚 skill hermes-agent 0.4s
┊ 💻 $ hermes debug share 10.7s
─ ⚕ Hermes ─────────────────────────────────────────────────────────────────────────────────────────────────────────

 Done, boss. Debug report uploaded — here are the shareable links:

 Debug Report Links (auto-delete in 6 hours)

 | Component      | URL                          |
 |----------------|------------------------------|
 | Report summary | https://paste.rs/YZcgv       |
 | agent.log      | https://dpaste.com/CNEFQKHP3 |
 | gateway.log    | https://paste.rs/W8Kba       |

 To delete early: hermes debug delete <url>

 These go to whoever needs them for support. Want me to do anything else with these?

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⚕ deepseek-v4-flash │ 39.3K/1M │ [░░░░░░░░░░] 4% │ 4m │ ⏲ 26s

Actual Behavior

Welcome to Hermes Agent! Type your message or /help for commands.
✦ Tip: Type a new message while the agent is working to interrupt and redirect it.
💾 curator: snapshot created (2026-06-17T21-18-50Z)

────────────────────────────────────────
● "..."
Initializing agent...
────────────────────────────────────────
┊ 🔍 recall "" 0.1s
┊ 🔍 recall "" 0.0s
┊ 💻 $ date && echo "---" && uptime && echo "---" && df -h / | tail -1 && echo "---" && free -h && echo "---" && hermes --version 2>/dev/null && echo "---" && ls /mnt/data/hermes/data/ 2>/dev/null 13.1s
┊ ⏰ cron listing 0.0s
┊ 🔍 recall "" 0.0s
─ ⚕ Hermes ─────────────────────────────────────────────────────────────────────────────────────────────────────────

 Boss — welcome back. Been 12 days since your last check-in. Here's where things stand.
 Hermes Agent Status Report — June 17, 2026
 System Health (spotybox)
 | Metric | Value                  | Change vs June 5           |
 |--------|------------------------|----------------------------|
 | Uptime | 3h36m                  | Host was rebooted recently |
 | Load   | 0.41                   | Near idle, same as before  |
 | RAM    | 3.1 GB available       | Still plenty of headroom   |
 | Disk   | 69% used (3.8 GB free) | Same — holding steady      |
 | GPU    | None                   | No change                  |
 Hermes Agent
 | Field            | Value                            | Change                   |
 |------------------|----------------------------------|--------------------------|
 | Version          | v0.16.0 (June 5 release)         | ⬆️ Upgraded from v0.15.2 |
 | Python           | 3.12.3                           | Same                     |
 | Provider         | DeepSeek V4 Flash via OpenRouter | Same                     |
 | Terminal backend | ✅ SSH connected                 | Was fixed last session   |
 Activity Since Last Report
 - Total sessions since inception: 2 (both CEO check-ins, including this one)
 - Cron jobs: 0 — none scheduled
 - Background processes: 0
 - Files on disk: The June 5 briefing is still at /mnt/data/hermes/data/briefing_2026-06-05.md
 Notable
 - Hermes upgraded from v0.15.2 → v0.16.0 between sessions.
 - The box was rebooted at some point — uptime went from 11 days to 3.5 hours — but everything came back clean.
 - Disk sitting at 69% is worth watching; 3.8 GB left on a 13 GB root.

 Everything's green. No cron jobs, no alerts, no drift. Want me to kick off anything — a daily briefing cron,
 system monitoring, or something else?

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⚕ deepseek-v4-flash │ 25.1K/1M │ [░░░░░░░░░░] 3% │ 1m │ ⏲ 38s

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Debug Report

Welcome to Hermes Agent! Type your message or /help for commands.
✦ Tip: Type a new message while the agent is working to interrupt and redirect it.
💾 curator: snapshot created (2026-06-17T21-18-50Z)

────────────────────────────────────────
● "..."
Initializing agent...
────────────────────────────────────────
  ┊ 🔍 recall    ""  0.1s
  ┊ 🔍 recall    ""  0.0s
  ┊ 💻 $         date && echo "---" && uptime && echo "---" && df -h / | tail -1 && echo "---" && free -h && echo "---" && hermes --version 2>/dev/null && echo "---" && ls /mnt/data/hermes/data/ 2>/dev/null  13.1s
  ┊ ⏰ cron      listing  0.0s
  ┊ 🔍 recall    ""  0.0s
 ─  ⚕ Hermes  ─────────────────────────────────────────────────────────────────────────────────────────────────────────

     Boss — welcome back. Been 12 days since your last check-in. Here's where things stand.
     Hermes Agent Status Report — June 17, 2026
     System Health (spotybox)
     | Metric | Value                  | Change vs June 5           |
     |--------|------------------------|----------------------------|
     | Uptime | 3h36m                  | Host was rebooted recently |
     | Load   | 0.41                   | Near idle, same as before  |
     | RAM    | 3.1 GB available       | Still plenty of headroom   |
     | Disk   | 69% used (3.8 GB free) | Same — holding steady      |
     | GPU    | None                   | No change                  |
     Hermes Agent
     | Field            | Value                            | Change                   |
     |------------------|----------------------------------|--------------------------|
     | Version          | v0.16.0 (June 5 release)         | ⬆️ Upgraded from v0.15.2 |
     | Python           | 3.12.3                           | Same                     |
     | Provider         | DeepSeek V4 Flash via OpenRouter | Same                     |
     | Terminal backend | ✅ SSH connected                 | Was fixed last session   |
     Activity Since Last Report
     - Total sessions since inception: 2 (both CEO check-ins, including this one)
     - Cron jobs: 0 — none scheduled
     - Background processes: 0
     - Files on disk: The June 5 briefing is still at /mnt/data/hermes/data/briefing_2026-06-05.md
     Notable
     - Hermes upgraded from v0.15.2 → v0.16.0 between sessions.
     - The box was rebooted at some point — uptime went from 11 days to 3.5 hours — but everything came back clean.
     - Disk sitting at 69% is worth watching; 3.8 GB left on a 13 GB root.

     Everything's green. No cron jobs, no alerts, no drift. Want me to kick off anything — a daily briefing cron,
     system monitoring, or something else?

 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
💾 curator: auto: no changes; llm: After thorough examination of the entire skill collection, here is my complete
assessment:

**Agent-created skills scanned:** 1 (`research-briefing`)
**Bundled skills examined under PRUNE-BUILTINS:** 30+ across all categories

## Findings

…

────────────────────────────────────────

● hermes debug share
────────────────────────────────────────
  ┊ 📚 skill     hermes-agent  0.4s
  ┊ 💻 $         hermes debug share  10.7s
 ─  ⚕ Hermes  ─────────────────────────────────────────────────────────────────────────────────────────────────────────

     Done, boss. Debug report uploaded — here are the shareable links:

     Debug Report Links (auto-delete in 6 hours)

     | Component      | URL                          |
     |----------------|------------------------------|
     | Report summary | https://paste.rs/YZcgv       |
     | agent.log      | https://dpaste.com/CNEFQKHP3 |
     | gateway.log    | https://paste.rs/W8Kba       |

     To delete early: hermes debug delete <url>

     These go to whoever needs them for support. Want me to do anything else with these?

 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 ⚕ deepseek-v4-flash │ 39.3K/1M │ [░░░░░░░░░░] 4% │ 4m │ ⏲ 26s

Operating System

Unbuntu

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. rcp2024ai commented on Jun 17, 2026

    @rcp2024ai
    Author

    Hello - I'm new to all of this - trying to get Hermes setup and running without any errors. Any help would be great - thanks.

  2. added
    type/bugSomething isn't working
    comp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint
    P1High — major feature broken, no workaround
    on Jun 17, 2026
  3. MaxFreedomPollard commented on Jun 20, 2026

    @MaxFreedomPollard

    Thanks for filing this. I took a look and found a narrow gateway runtime handoff path that appears to explain the empty runtime model/provider failure.

    Specifically, resolve_runtime_provider() can return an explicit model for a custom runtime provider, but gateway.run._resolve_runtime_agent_kwargs() currently drops that model before GatewayRunner._resolve_session_agent_runtime() can consume it via runtime_kwargs.pop("model", None).

    Since you selected “I’d like to fix this myself and submit a PR,” I don’t want to step on your work by opening a competing PR. Here is the patch I prepared in case it helps:

    diff --git a/gateway/run.py b/gateway/run.py
    index 0000000..0000000 100644
    --- a/gateway/run.py
    +++ b/gateway/run.py
    @@ -124,6 +124,13 @@ def _resolve_runtime_agent_kwargs() -> dict:
             "api_key": runtime.get("api_key"),
             "base_url": runtime.get("base_url"),
             "provider": runtime.get("provider"),
    +        # Keep explicit model overrides returned by the runtime provider
    +        # resolver, especially named custom providers. The session resolver
    +        # below already consumes this with ``runtime_kwargs.pop("model", None)``;
    +        # dropping it here makes gateway-created agents ignore
    +        # custom_providers[].model/providers.<name>.default_model and can leave
    +        # the API request with model="" when no global model.default is set.
    +        "model": runtime.get("model"),
             "api_mode": runtime.get("api_mode"),
             "command": runtime.get("command"),
             "args": list(runtime.get("args") or []),
    diff --git a/tests/gateway/test_runtime_model_resolution.py b/tests/gateway/test_runtime_model_resolution.py
    new file mode 100644
    index 0000000..0000000
    --- /dev/null
    +++ b/tests/gateway/test_runtime_model_resolution.py
    @@ -0,0 +1,65 @@
    +import gateway.run as gateway_run
    +
    +
    +def test_runtime_agent_kwargs_preserves_runtime_provider_model(monkeypatch):
    +    """Named custom providers may carry the concrete API model string.
    +
    +    ``resolve_runtime_provider()`` intentionally returns this model, and
    +    ``GatewayRunner._resolve_session_agent_runtime()`` intentionally consumes
    +    it. The gateway helper in between must not drop it.
    +    """
    +
    +    def fake_resolve_runtime_provider():
    +        return {
    +            "provider": "custom",
    +            "api_mode": "chat_completions",
    +            "base_url": "https://llm.example.test/v1",
    +            "api_key": "sk-test",
    +            "model": "qwen3.6-plus",
    +            "source": "custom_provider:qwen",
    +        }
    +
    +    monkeypatch.setattr(
    +        "hermes_cli.runtime_provider.resolve_runtime_provider",
    +        fake_resolve_runtime_provider,
    +    )
    +    monkeypatch.setattr("hermes_cli.runtime_provider._get_model_config", lambda: {})
    +
    +    kwargs = gateway_run._resolve_runtime_agent_kwargs()
    +
    +    assert kwargs["provider"] == "custom"
    +    assert kwargs["base_url"] == "https://llm.example.test/v1"
    +    assert kwargs["model"] == "qwen3.6-plus"
    +
    +
    +def test_session_runtime_uses_runtime_provider_model_when_config_model_empty(monkeypatch):
    +    """A gateway session should not build an agent with an empty model.
    +
    +    This covers the handoff between ``_resolve_runtime_agent_kwargs()`` and
    +    ``_resolve_session_agent_runtime()``: runtime-supplied models are popped out
    +    of the kwargs bundle and promoted to the model returned for AIAgent.
    +    """
    +
    +    runner = object.__new__(gateway_run.GatewayRunner)
    +    runner._session_model_overrides = {}
    +    runner._last_resolved_model = {}
    +
    +    monkeypatch.setattr(gateway_run, "_resolve_gateway_model", lambda user_config=None: "")
    +    monkeypatch.setattr(
    +        gateway_run,
    +        "_resolve_runtime_agent_kwargs",
    +        lambda: {
    +            "provider": "custom",
    +            "api_mode": "chat_completions",
    +            "base_url": "https://llm.example.test/v1",
    +            "api_key": "sk-test",
    +            "model": "qwen3.6-plus",
    +            "command": None,
    +            "args": [],
    +            "credential_pool": None,
    +            "max_tokens": None,
    +        },
    +    )
    +
    +    model, runtime_kwargs = runner._resolve_session_agent_runtime(
    +        session_key="telegram:test", user_config={}
    +    )
    +
    +    assert model == "qwen3.6-plus"
    +    assert "model" not in runtime_kwargs
    +    assert runtime_kwargs["provider"] == "custom"

    The intended regression command is:

    python -m pytest tests/gateway/test_runtime_model_resolution.py -q

    Happy to open this as a PR if you’re no longer planning to work on it.

  4. rcp2024ai commented on Jun 20, 2026

    @rcp2024ai
    Author
  5. MaxFreedomPollard commented on Jun 21, 2026

    @MaxFreedomPollard

    Other people have handled it, just wait now. I checked and there are a couple PR's addressing this issue.

  6. kshitijk4poor commented on Jun 23, 2026

    @kshitijk4poor

    Thanks for the detailed report and the request-dump diagnostic.

    After review we're closing this as not planned: the empty model/provider here traces to a pipx installation, which isn't a supported install path for Hermes. pipx installs Hermes into an isolated per-application virtualenv whose layout the runtime's provider/model resolution (and a number of other config/credential-path assumptions) don't account for, so config.yaml's provider/model don't get picked up as you'd expect.

    The supported install is the official installer, which sets up the layout the runtime expects and handles Python/Node/deps for you:

    curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
    

    (Linux: ensure git, curl, and xz-utils are present. See https://hermes-agent.nousresearch.com/docs — Getting Started → Installation.)

    Reinstalling via the installer should resolve the empty model/provider without any config changes. If you reproduce MODEL: '' / PROVIDER: None on an installer-based (or uv pip install -e) install with a top-level model.provider/model.default set, please reopen with a fresh request dump and we'll dig in — that would be a genuine resolution bug rather than an install-path mismatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundcomp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpointtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions