Skip to content

Add an example provider profile for Hermes Agent (providers/hermes-agent.yaml) #5229

Open

Description

@u0324020

User Story

I'm a senior engineer at VicOne. We run Hermes Agent (NousResearch) inside OpenShell sandboxes on EKS, with inference going through an OpenAI-compatible gateway. To get a working least-privilege profile I had to work out the real interpreter path for binaries, the credential scope, and which outbound hosts the agent reaches on its own, by reading the sandbox audit log over several hours. There is no example for this agent in providers/, and I would like the next operator to start from a reviewed one instead of repeating that.

Problem Statement

providers/ ships example profiles for Claude Code, Codex, Copilot, Cursor and several API vendors, but none for Hermes Agent, an open-source agent framework that is commonly run as a long-lived service. A Hermes install has three properties that make a reviewed example worth having:

  • The CLI is a Python entry point, so binaries must list the resolved CPython path, not the hermes wrapper or the venv symlink. Listing the wrapper gives silent denies.
  • A default install makes periodic outbound calls on its own (model catalog refresh and version check, portal guest sign-in, raw.githubusercontent.com fetches). Under a deny-by-default policy these show up as a steady stream of denied NET:OPEN events that look like an attack until you know what they are. In a six-hour run I counted 119 such denies across four hosts.
  • The agent keeps working with those hosts denied, so the right profile grants only the inference endpoint and documents the rest as deliberately denied, together with the Hermes config keys that stop the retries at the source.

Today each operator rediscovers all three.

Impact / Why This Matters

  • Operators adopting OpenShell for Hermes-based agents get a least-privilege starting point instead of copying a broader profile.
  • The header's "deliberately not granted" list turns 100+ denied events per shift from noise into a known, explained baseline for whoever reads the OCSF log.
  • It documents the interpreter-path pitfall, which applies to every Python-based agent, not only Hermes.

Proposed Design

Add providers/hermes-agent.yaml, same shape and header sections as providers/claude-code.yaml (client binaries, reference layout, credential scope, endpoint access, smoke test):

  • id: hermes-agent, category: agent, inference_capable: true.
  • One credential (OPENROUTER_API_KEY, bearer) and one endpoint (openrouter.ai:443, rest, enforce), with a note on swapping both for a self-hosted OpenAI-compatible gateway. Hermes has no fixed default provider; with provider auto it picks OpenRouter when this key is set, and it also needs a model (-m, HERMES_INFERENCE_MODEL or model.default).
  • binaries: the resolved CPython path under /opt/hermes/tools/python-<ver>-linux-x64/bin/python3.x (the layout of the upstream Dockerfile), with a note to pin the version directory from the image in use.
  • Header comment listing the four hosts a default install reaches on its own and the three Hermes config keys (model_catalog.enabled, tools.connectors.enabled, nous.guest) that disable them.

No code, schema or README change; providers/README.md already explains that examples are imported explicitly. The file is drafted and lint-clean; I will open the PR once this is accepted.

Acceptance Criteria

  • openshell provider profile lint -f providers/hermes-agent.yaml passes.
  • cargo test -p openshell-providers passes with the new file present (the directory is loaded as a test fixture).
  • A sandbox created with --provider hermes-agent completes one inference call through the configured endpoint, and the four documented hosts are denied and logged.
  • The file carries the SPDX header and the five header sections used by the other examples.

Alternatives Considered

  • Document the pitfalls in prose only (a docs page): does not give operators a lintable, importable starting point, and the binary-path mistake is easier to show than to describe.
  • Grant the four Hermes hosts in the example: contradicts the least-privilege intent of the other examples and would send the agent's guest sign-in to a third-party portal by default.
  • A middleware or interceptor: not applicable; the gap is a missing reference profile, not runtime behaviour.

Agent Investigation

None. The host list and counts come from the sandbox supervisor's OCSF log over a six-hour run; the config keys and the interpreter layout were checked against the Hermes source and Dockerfile.

Checklist

  • I've reviewed existing issues and the published docs
  • This is a design proposal, not a "please build this" request

Activity

  1. added
    state:triage-needed
    on Nov 4, 2026
  2. u0324020 commented on Nov 9, 2026

    @u0324020
    ContributorAuthor

    Following up on this proposal. A few details that may help with triage:

    Where it stands on our side. The profile is already drafted and pushed to our fork (VicOne-OSS-TW/OpenShell, branch docs/5229-hermes-agent-provider-profile/u0324020). openshell provider profile lint -f providers/hermes-agent.yaml passes, and cargo test -p openshell-providers passes with the new file present (142 passed). It adds only providers/hermes-agent.yaml, with no code, schema or README change.

    What the profile grants and denies. It grants one credential and one inference endpoint. The four hosts a default Hermes install reaches on its own (model catalog refresh and version check, portal guest sign-in, raw.githubusercontent.com) stay denied, and the file header lists them together with the three Hermes config keys that stop those calls at the source. In our six-hour run these produced 119 denied NET:OPEN events, and the agent kept working with all of them denied.

    Evidence available. I can attach a redacted OCSF excerpt of the denied events if that would help review.

    Questions for maintainers.

    1. Is a reference profile for an agent that is not yet in providers/ in scope, or would you prefer this as a docs page?
    2. Should the interpreter-path note (list the resolved CPython path, not the hermes wrapper) stay in the provider header, or move to docs, since it applies to any Python-based agent?
    3. I understand I need to be vouched (discussion Vouch request: u0324020 #5228) and this issue accepted before opening a PR. Is there anything else you would like clarified to move it out of state:triage-needed?

    Thanks for your time.

  3. u0324020 commented on Nov 11, 2026

    @u0324020
    ContributorAuthor

    Thanks to @FrostGod for the vouch on #5228.

    Now that I'm able to open PRs, a short note on this proposal: the change is a single new file, providers/hermes-agent.yaml, with no code, schema or README changes. It's drafted and lint-clean on a fork, so I can open the PR as soon as the issue is triaged.

    When you have a moment, could you take a look and let me know:

    1. Whether an example profile for Hermes Agent is something you'd want in providers/.
    2. Whether the OpenRouter default (with a note on swapping in a self-hosted OpenAI-compatible gateway) is acceptable, or if you'd prefer a different default endpoint.

    I understand this can wait for the maintainers' bandwidth. Happy to adjust anything in the proposal. Thanks for taking a look.

    — Jane Chen, Senior Engineer at VicOne

  4. djmaze commented on Nov 11, 2026

    @djmaze

    @u0324020 Are you using a modified version of the official Hermes docker image with this? I could not make this work with your suggested profile changes. Tried adding a /sandbox workdir to the image and setting USER hermes, but sandbox creation always returns Permission denied (os error 13) from the supervisor – at least with the podman runtime.

  5. u0324020 commented on Nov 12, 2026

    @u0324020
    ContributorAuthor

    @djmaze thanks for trying this, and sorry it didn't work out of the box.

    The profile only covers the policy side (binaries, credential scope, endpoint); it doesn't change anything about how the image or sandbox user is set up. I tested on Kubernetes (EKS), not podman, so I can't say whether the Permission denied (os error 13) you see comes from the podman runtime or from the image setup.

    To narrow it down, could you share:

    1. The full supervisor log around the error (which path or syscall it fails on).
    2. The image you use (official tag or a custom build) and the final USER / WORKDIR / ownership of /sandbox and /opt/hermes.
    3. Your podman version and whether it runs rootless.

    If it turns out to be a runtime or image-layout issue rather than the profile, I'm happy to add a note to the profile header so the next person doesn't hit it.

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

    state:triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions