> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# Connect Hermes through native Relay

> Generate reporting settings from the Hermes application card, merge them into built-in NeMo Relay, and find the current task's Trace.

Send model, tool and context-compaction records from an installed Hermes Agent to the current AI Vision Space. The current Hermes onboarding guide offers only native Relay. Open the **Hermes Agent** application card and copy its generated settings. This path needs neither the AI Vision source checkout nor an `aiv` plug-in installation command. For an application you develop yourself, use [NeMo Relay for a custom Agent](https://aivision.mintlify.site/en/integrations/relay.md).

## Applicability

* Your AI Vision deployment provides **Configure Hermes telemetry**. If the guide is absent, ask the administrator to check a version containing this feature.
* Hermes is already installed and configured to call models and tools. The verified combination is **Hermes 0.22.5 with NeMo Relay 0.10.4**; this Hermes version uses `nemo-relay >=0.10,<0.11`. Check the official configuration contract before using another version.
* You can manage Agents and generate reporting authorization in the selected Space. The Hermes machine can reach the complete HTTP or HTTPS receiving URL shown by AI Vision. A remote machine cannot use the deployment machine's `127.0.0.1`.

The following commands use Bash or zsh on macOS / Linux. Run them in the Hermes environment:

```bash theme={null}
hermes --version
hermes doctor
```

Confirm the version and inspect the files resolved by the NeMo Relay check in `hermes doctor`. The native runtime is already part of the host; no additional observability plug-in registration is required.

## 1. Prepare the Hermes project in the current Space

1. Open **Agent Access → Agent Market**, then the onboarding guide on the **Hermes Agent** card.
2. Check the current Space. Choose **Create collection project** if none exists. Restore a disabled project first, then reopen its guide.

[![Hermes native telemetry dialog showing version checks, the current Space and the Generate reporting authorization button](https://mintcdn.com/aivision/envaFjNvSyZA1IAq/assets/figures/hermes-relay/hermes-onboarding.en.light.png?fit=max\&auto=format\&n=envaFjNvSyZA1IAq\&q=85\&s=36d21ae0db5db60bfa4ce282c935e4ba)](https://aivision.mintlify.site/assets/figures/hermes-relay/hermes-onboarding.en.light.png)

[![Hermes native telemetry dialog showing version checks, the current Space and the Generate reporting authorization button](https://mintcdn.com/aivision/envaFjNvSyZA1IAq/assets/figures/hermes-relay/hermes-onboarding.en.dark.png?fit=max\&auto=format\&n=envaFjNvSyZA1IAq\&q=85\&s=2b0e831896f5cf8c62e011b32448d56f)](https://aivision.mintlify.site/assets/figures/hermes-relay/hermes-onboarding.en.dark.png)

Hermes native onboarding and authorization controls · Demonstration project, not a live-ingestion screenshot · Click to enlarge

The screenshot locates the controls. Its project and identifiers are examples; use your own current Space and project.

## 2. Generate and retain the project's authorization

Select **Generate reporting authorization** and verify the **Space** and **Agent UUID** in the authorization section. The dialog then provides two copyable blocks: **plugins.toml merge fragment** and **Set authorization in the shell that starts Hermes**.

Copy the complete generated `export AIVISION_HERMES_AUTHORIZATION=...` line into the same terminal that will start Hermes. Its **Basic authorization** combines the current Agent UUID and the SpaceKey. It is not a SpaceKey alone or a model API key. Do not use the SpaceKey directly as the gateway's Bearer token.

The complete generated value is shown only in this dialog. Save it to your private Hermes runtime environment before closing. If a service or background process starts Hermes, supply the variable to that process and restart it through its normal launch mechanism. Keep complete authorization out of documentation, source control, tickets and screenshots.

## 3. Merge the active Relay configuration

Back up the existing file, then locate the user configuration in this order:

1. If `HERMES_NEMO_RELAY_PLUGINS_TOML` is set, edit the file it selects.
2. Otherwise, if `XDG_CONFIG_HOME` is set, edit `$XDG_CONFIG_HOME/nemo-relay/plugins.toml`.
3. If neither is set, use `~/.config/nemo-relay/plugins.toml`.

The system file `/etc/nemo-relay/plugins.toml` still has higher precedence. Run `hermes doctor` again to check resolution; a file's existence does not establish that it was loaded.

On deployments with **Redact before export** options, review common-credential rules, optionally enable email/phone matching or enter exact field paths to omit, then copy **plugins.toml merge fragment**. Merge exporter and redaction rules into their respective `observability` and `pii_redaction` components. Do not replace the whole file or append duplicate component kinds. For a new file, add `version = 1` at the beginning. The `observability` component configuration uses version `4`; `pii_redaction` uses `1`.

An existing single-policy `pii_redaction` component using `mode` / `builtin` cannot be combined directly with the generated `profiles`. Migrate and review the original coverage, then validate before restart. Previously disabled surfaces cannot be copied mechanically into profiles mode. See [Relay 0.10.4 configuration](https://docs.nvidia.com/nemo/relay/v0.10.4/configure-plugins/pii-redaction/configuration).

Check these fields in the generated fragment:

| Field | Expected value or purpose |
| - | - |
| `observability` `kind` / `enabled` | `observability` / `true`. |
| `observability` `components.config.version` | `4`, with `enable_full_payloads` enabled. |
| `pii_redaction` component | Generated when the UI offers privacy options; configuration version `1` with the selected `profiles`. |
| Endpoint `type` / `transport` | `openinference` / `http_binary`. |
| Endpoint `endpoint` | The complete `/api/public/otel/v1/traces` URL from the dialog, preserving the current platform's HTTP or HTTPS origin. |
| `mark_projection` | `event`, retaining compaction records as original events. |
| `promote_metadata_prefixes` | `["hermes."]`. |
| `header_env.authorization` | `AIVISION_HERMES_AUTHORIZATION`, reading the variable from step 2. |
| Endpoint `resource_attributes` | When omitted paths are configured, generated `aivision.privacy.policy` and `aivision.privacy.omitted_paths` declare this reporting configuration. They contain rule identity and paths, not removed values. |

The fragment disables this component's logs and metrics exporters. A compaction event is separate from any summarizer model call; inspect reported model calls for their actual usage. Configure one reporting chain to this destination per Hermes process. Check `OTEL_EXPORTER_OTLP_*` environment variables and other configuration layers for duplicate export, retaining unrelated plug-ins and configuration.

This configuration enables full model/tool content export and applies the redaction rules actually merged into the effective file. Common-credential matching does not detect every sensitive value. Phone matching is limited to supported content positions; exact JSON Pointer paths can omit other nested business fields. Omission removes the whole matched value without finding copies in other text or encoded JSON. **All Profiles hosted in the same Hermes process share the export configuration.** Run separate Hermes processes when you need different collection scopes. Review the content to be sent before starting the host.

## 4. Run a new task and verify its Trace

Start or restart Hermes in the environment containing the authorization variable. Run a recognizable task, such as “Read README and summarize the project without changing files,” and note its start time.

Return to the same collection project, refresh, and choose **Open this project's task traces**. Select a time range covering the task. Open its record and check the task content, Trace ID, model/tool calls, status and usage. **Connected** and recent-trace counts only establish that the project has data; historical records do not verify this setup.

After automatic context compaction, inspect the card in the native Trace's **Preview → Enhanced** view or the source span, then open the original event. See [Context compaction observability](https://aivision.mintlify.site/en/guides/context-compaction.md) for fields and missing-record checks. Short tasks need not compact; do not copy test-only thresholds or protected-history settings merely to produce a card.

Continue in [Execution process](https://aivision.mintlify.site/en/guides/trace-process.md#check-relay-messages-and-tool-associations) to check Relay messages, tool requests and results within the same Trace. **Main call / Compression helper** labels in Enhanced presentation use explicitly reported purposes. [Tools available to this call](https://aivision.mintlify.site/en/guides/span-content.md#check-call-purpose-and-available-tools) in model details is a definition snapshot, not a tool-execution count.

**Success:** you can identify this new task and at least one real model call and one tool call. When compaction occurs, you can follow its enhancement back to the original event. An absent compaction record does not by itself mean that model/tool integration failed.

On deployments with this feature, **Preview → Enhanced** highlights recognizable replacement text such as `[REDACTED]` directly in received messages and tool content. After new configuration exports an omitted-field declaration, tool input can show **Fields excluded by reporting configuration: /path**. This declares configuration rather than a deletion receipt; an empty object alone does not prove omission. See [Interpret redaction evidence](https://aivision.mintlify.site/en/guides/privacy.md#reporting-redaction).

## Optional: export long-session segments earlier

A continuous session's root span can remain open. To see completed sections earlier, merge these telemetry fields into the Hermes `config.yaml`, retaining other settings:

```yaml theme={null}
gateway:
  telemetry:
    session_segments:
      on_compaction: true
      max_turns: 1
```

The next turn closes and exports the preceding segment. It changes neither conversation content nor compression policy, and does not guarantee that the final segment exports at shutdown. Omit this section when segmentation is unnecessary. To restore defaults, use `on_compaction: false` and `max_turns: 0`, preserving other configuration.

## When the result differs

| Symptom | Check and next step |
| - | - |
| Authorization cannot be generated | Check the current Space, whether the Agent is restored, and reporting-authorization permissions. Ask a Space administrator to resolve permissions. |
| Configuration changed but no data arrives | Use `hermes doctor` to inspect explicit, XDG and system paths. Confirm that the launched process inherits the authorization variable, then run a new task. |
| Duplicate records for one task | Check environment variables and other configuration layers for another exporter; retain one reporting chain to this destination. |
| Model/tool records exist but no compaction card | Confirm that supported compaction occurred, then inspect original events using [compaction troubleshooting](https://aivision.mintlify.site/en/guides/context-compaction.md). Do not fill missing fields with zero. |
| The final session segment is absent after exit | A final segment was absent in this verification run. Segmentation can close the preceding segment earlier without establishing complete final-segment export. |

This run verified automatic compaction and exported records. Some manual-compaction, auxiliary-model and final-session-segment records were not exported during verification. Ordinary spans also need not contain business user or conversation identifiers. These limits do not establish complete request coverage, continuation, cost savings or answer quality. See Hermes's fixed-version [native Relay contract](https://github.com/NousResearch/hermes-agent/blob/v0.22.5/website/docs/developer-guide/relay-shared-metrics.md) and [native integration note](https://github.com/NousResearch/hermes-agent/blob/v0.22.5/website/docs/user-guide/features/built-in-plugins.md#nemo-relay-native-integration-migration-note).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.