Setup Agent Vault with Hermes Agent and LM Studio on Local Env

Jul. 21, 2026 +0900

Last Modified: Jul. 21, 2026 +0900

Versions

Notes

Procedures

Run LM Studio and load an LLM

Open LM Studio and move to the Developer tab.

LM Studio - Left Pane

Run the server by clicking the toggle and clicking the Manage Tokens button.

LM Studio - Server Settings

Click Create new token.

LM Studio - LM Studio API Tokens

Click Create token. You can specify its name if you want.

LM Studio - Create new permission token

Copy the token and paste it somewhere. You need it later.

LM Studio - Token Created

LM Studio - LM Studio API Tokens (After)

Run and Configure Agent Vault

Run Agent Vault.

docker run -it -p 14321:14321 -p 14322:14322 \
  -e AGENT_VAULT_MASTER_PASSWORD=your-password \
  -e AGENT_VAULT_ADDR="http://localhost:14321" \
  -e AGENT_VAULT_ALLOW_PRIVATE_RANGES=true \
  -e AGENT_VAULT_LOG_LEVEL="debug" \
  -v agent-vault-data:/data \
  infisical/agent-vault:0.39.0

Notes on some parameters:

Open a web browser and go to http://localhost:14321.

Then, create an account.

Agent Vault - Create Owner Account

Skip installing the CLI.

Agent Vault - Install the CLI

Click the New vault button.

Agent Vault - Vaults

Set the fields as below and click the Create button:

Agent Vault - New vault

After clicking the button, you are now in the Vault page you’ve created.

Click Credentials on the left pane, and then click the Add credential button.

Agent Vault - Credentials

Set the fields as below and click the Add button:

Agent Vault - Add Credentials

After clicking the button, you will see the credential you’ve created listed.

Agent Vault - Credentials (After)

Click Services on the left pane, and then click the Add service button.

Agent Vault - Services

Set the fields as below:

After filling the fields, click Passthrough and Add substitution.

Agent Vault - Add Service 1

Set the configs as below:

And then, click the Add service button.

Agent Vault - Add Service 2

Agent Vault - Services (After)

Click the Agent Vault in Agent Vault / my-project on the left upper side.

Agent Vault - Path

Click Agents on the left pane, and then click the Add agent button.

Agent Vault - Agents

Set the fields as below and click the Add button:

Agent Vault - Add Agent

Copy commands in Set environment variables and paste them to somewhere. You need them when running Hermes Agent.

Agent Vault - Connect Your Agent

Click the Done button.

Agent Vault - Agents (After)

Build the Hermes Agent Container Image for Agent Vault

Hermes Agent should be run with Agent Vault.

So, build a Hermes Agent container image containing Agent Vault.

Create a Dockerfile as below:

FROM nousresearch/hermes-agent:v2026.7.7.2

COPY --from=infisical/agent-vault:latest /usr/local/bin/agent-vault /usr/local/bin/agent-vault

USER hermes

ENTRYPOINT ["agent-vault", "run", "--", "hermes"]

If you don’t set the user(USER hermes), you will have a permission issue later.

Build the image:

docker build -t hermes-agent-vault .

Setup and Run Hermes Agent

Setup Hermes Agent.

docker run -it --rm \
  -e AGENT_VAULT_ADDR="http://host.docker.internal:14321" \
  -e AGENT_VAULT_TOKEN="<AGENT_VAULT_TOKEN>" \
  -e AGENT_VAULT_VAULT="my-project" \
  -v hermes-agent:/opt/data \
  hermes-agent-vault setup

Notes on some parameters:

Select Full setup and press the Enter key.

Hermes Agent - Setup - How

Select LM Studio and press the enter key.

Hermes Agent - Setup - Select provider

You will be asked to enter LM Studio info.
Enter the values as below:

Hermes Agent - Setup - Select terminal backend

Select default model you want to use.

Hermes Agent - Setup - Select default model

Configure the other settings as you need.
Use default settings if you don’t know.

Hermes Agent - Setup - Other Settings 1

Hermes Agent - Setup - Other Settings 2

Hermes Agent - Setup - Other Settings 3

After finishing the setup, run Hermes Agent and say hello to the agent.

docker run -it --rm \
  -e AGENT_VAULT_ADDR="http://host.docker.internal:14321" \
  -e AGENT_VAULT_TOKEN="<AGENT_VAULT_TOKEN>" \
  -e AGENT_VAULT_VAULT="my-project" \
  -v hermes-agent:/opt/data \
  -v ./:/workspace \
  -w /workspace \
  hermes-agent-vault

A note on a parameter:

Hermes Agent - Hello

LM Studio will automatically load the model and answer your question.