← Back to Support Overview

NETVARA KNOWLEDGE BASE

How to Use Netvara Client with Hermes

How to Use Netvara Client with Hermes

Overview

Netvara Client provides Hermes Agent with a local, OpenAI-compatible model endpoint. After configuration, Hermes can discover and use the models advertised by your Netvara Client while keeping requests on the local gateway.

The local endpoint is:

http://127.0.0.1:8091/v1

Prerequisites

  • Netvara Client is installed and running.
  • Hermes Agent is installed and available as the hermes command.
  • At least one model is advertised by Netvara Client.
  • You can access the local authentication token at ~/.netvara-client/local_api_key.

Step-by-Step Instructions

1. Confirm the local token

In a terminal, check that the token file exists and contains a value:

test -s ~/.netvara-client/local_api_key && echo "Token is available"

Do not share the token or commit it to a repository.

2. Add the Netvara provider to Hermes

Open Hermes configuration:

hermes config edit

Add a custom provider under custom_providers. The exact model names may differ on your device, so use a model returned by the discovery step below.

custom_providers:
  netvara:
    base_url: http://127.0.0.1:8091/v1
    api_key: ${HERMES_CUSTOM_NETVARA_API_KEY}
    models:
      - name: your-local-model
        context_length: 32768

Save the file, then put the token in Hermes’ environment file:

printf '\nHERMES_CUSTOM_NETVARA_API_KEY=%s\n' "$(cat ~/.netvara-client/local_api_key)" >> "$(hermes config env-path)"

If your Hermes version supports entering custom providers through the interactive setup, you can instead run:

hermes model

Choose the custom OpenAI-compatible provider, enter http://127.0.0.1:8091/v1 as the base URL, and provide the token when prompted.

3. Discover available models

List the models exposed by Netvara Client:

curl -sS \
  -H "Authorization: Bearer $(cat ~/.netvara-client/local_api_key)" \
  http://127.0.0.1:8091/v1/models

Use one of the returned model IDs in the models section of the Hermes configuration, or select it from hermes model.

4. Select a model

Start the interactive model picker:

hermes model

Select the Netvara provider and the model you want to use. You can also specify a model for a single chat:

hermes chat -m your-local-model -q "Summarize the files in this project."

Restart Hermes after changing configuration so the new provider settings are loaded.

Verification

1. Confirm Netvara Client is running.
2. Confirm /v1/models returns at least one model.
3. Run a short Hermes request:

   hermes chat -m your-local-model -q "Reply with: Netvara connection confirmed."

4. Check that Hermes returns a response without an authentication or connection error.
5. Run hermes model again to confirm the provider and available models remain selectable.

Troubleshooting & Common Questions

Hermes cannot connect to Netvara

Make sure the Netvara Client is running and that Hermes uses exactly http://127.0.0.1:8091/v1. Then retry the /v1/models request from the verification section.

The model list is empty

The client may not currently be advertising any models. Review model visibility in Netvara Client, then restart the client and query /v1/models again.

Authentication fails

Check that the token file exists and that HERMES_CUSTOM_NETVARA_API_KEY contains its current value. If the token was regenerated, update the value in Hermes’ environment file and restart Hermes.

Hermes still uses the previous provider

Run hermes model, select Netvara explicitly, and restart Hermes. Configuration changes are loaded when a new Hermes process starts.

How do I switch models while working?

Use hermes model to change the default selection, or pass -m MODEL_ID for an individual hermes chat command. The available model IDs come from Netvara Client’s /v1/models endpoint.

← Back to Support Overview