Executable programs and extensions

Install Hermes Agent and Connect a Local Model: From Your First Task to Permission Checks

Connect Hermes Agent to a Hermes model and start working with files

Hermes Agent is a program that sends conversational instructions to a model and runs tools such as file operations and a shell. Prepare and connect model weights such as Hermes 4 separately. Verify a short reply first, then request a read-only file listing to test the model connection and tool execution in sequence.

First choose the model provider and endpoint for the Agent. Running a model alone can return text, but it does not operate on local files or a shell. Once connected, the Agent sends conversation history and tool results to the model, runs the tools the model requests, and adds their results back to the conversation.

Requirements and key details
  • Hermes Agent is the program that runs tools, while Hermes 4 is a model you prepare separately.
  • Test a short plain reply followed by a read-only file listing to distinguish connectivity from tool invocation.
  • Even with local inference, search, MCP, or messaging integrations may send data externally.

Connect the Agent and model together

If you only need a conversation about a project, start by connecting a model. To let it list files or edit code, configure tools and workspace permissions too. Separate read, write, and shell permissions even within one project so the first test stays scoped.

A desk with an empty-screen computer beside a toolbox, notepad, and task cards
The Agent connects the model, tools, and memory in one workflow.

After installation, test a short reply and a read-only tool

On macOS, Linux, or WSL2, follow the official CLI1 installation guide, reopen the terminal, and run hermes. On Windows, use the PowerShell installation command; the macOS desktop package supports Apple Silicon. Configure the model provider with hermes model and tools with hermes tools.

First send the model a short question and confirm its reply. Then request a read-only listing from a temporary folder with no sensitive files and compare it with the actual contents. A successful reply confirms the endpoint, but not tool invocation.

Install the Hermes CLI on macOS, Linux, or WSL2
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
On Windows, use the separate PowerShell installation command.

Choose managed local models or a custom endpoint

Hermes Desktop’s Local Models flow manages the llama.cpp runtime2 and model downloads together. According to the official guide, this feature is available in Canary builds; other builds may require the --local option. If you already run Ollama, llama.cpp, or an MLX3 server, you can connect it by entering its address and model ID as a custom endpoint.

Hermes Agent requires a minimum 64K-token context for multi-step work that combines a model with tools. When choosing a local model, verify that the server’s actual context setting is at least 64,000 tokens4. A short chat may succeed even when a smaller context cannot hold the conversation history and instructions needed for tool use.

OpenAI compatibility mainly describes the request format. After connecting, inspect the model list and test a short conversation; separately verify that the model emits tool requests, the server preserves the call format, and the Agent receives the actual execution result.

Persistent memory and session search work differently

Hermes uses MEMORY.md and USER.md under ~/.hermes/memories/ as its default persistent memory and places their contents in the system prompt5 at the start of a session. Each file has a character limit, so keep durable preferences and project details concise.

These files are not a database that stores every conversation indefinitely or performs automatic vector search. If you need to find a past session, check what the separate search feature stores. Memory edits may not affect an already-open session, and connecting an external memory provider can send data to that service.

An agent memory workspace separating selected note cards from a closed archive
Treat short persistent notes and searchable history as separate stores.

Limit execution permissions when adding tools and MCP

Terminal, file operations, browser, skills, and MCP6 servers expand what the Agent can do. Check an MCP server’s launch command and package origin, and disable unnecessary write or delete functions. Skills can also contain code and external connections, so inspect their actual behavior.

Start code review with repository read access, and require approval after reviewing the target and proposed changes before allowing file edits. Terminal approval and dangerous-command checks do not replace OS isolation, so use a separate workspace and only the permissions needed.

Check where data goes for each model and tool

Even if the Agent runs on your PC, prompts are sent to the provider when you choose a remote model. Search, browser, MCP, and messaging integrations may contact external servers even when the model is local. Check the route taken by prompts, files, and tool results for each feature, and grant API7 keys only the permissions they need.

When another device connects to the model server, check authentication and network scope; do not expose it directly to the internet. For sensitive repositories, start with read access and review proposed changes or external transfers before allowing them.

A desk where an agent laptop connects to a local inference server on a separate device
Check the Agent’s location and the model endpoint’s location separately.

Terminology notes

  1. CLI — Short for Command-Line Interface: operating a program by entering commands in a terminal.

    Back to the text
  2. Runtime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.

    Back to the text
  3. MLX — Apple’s machine-learning framework, which runs models using memory shared by the CPU and GPU on Apple Silicon.

    Back to the text
  4. Token — A unit into which a model divides input or output for processing.

    Back to the text
  5. Prompt — The input text sent to a model. For generative models it describes the desired result and strongly shapes the output.

    Back to the text
  6. MCP — A protocol for connecting clients to tools and data sources a model may use. Connectivity and permission to execute a particular tool must still be configured separately.

    Back to the text
  7. API — A defined interface that lets other code call a program’s functions.

    Back to the text

Frequently asked questions

What should you check first in this article?
Hermes Agent is a program that sends conversational instructions to a model and runs tools such as file operations and a shell. Prepare and connect model weights such as Hermes 4 separately. Verify a short reply first, then request a read-only file listing to test the model connection and tool execution in sequence.
How much memory does it need?
Hermes uses `MEMORY.md` and `USER.md` under `~/.hermes/memories/` as its default persistent memory and places their contents in the system prompt at the start of a session. Each file has a character limit, so keep durable preferences and project details concise.