The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(local-runtime): Local Models user guide
emozilla82b7b6d8046a
diff --git a/website/docs/guides/local-llm-on-mac.md b/website/docs/guides/local-llm-on-mac.mdindex a0a3a200bd9..f35e8ef2cf1 100644--- a/website/docs/guides/local-llm-on-mac.md+++ b/website/docs/guides/local-llm-on-mac.md@@ -6,6 +6,14 @@ description: "Set up a local OpenAI-compatible LLM server on macOS with llama.cp# Run Local LLMs on Mac+:::tip Desktop users: there's a one-click path+On the Hermes desktop app, **Settings → Providers → Local Models** installs+and manages a local llama.cpp server for you — model downloads, memory+fitting, and context sizing included. See [Local Models](/user-guide/local-models).+This guide is for manual setup: MLX, custom builds, or servers you want to+run yourself.+:::+This guide walks you through running a local LLM server on macOS with an OpenAI-compatible API. You get full privacy, zero API costs, and surprisingly good performance on Apple Silicon.We cover two backends:diff --git a/website/docs/guides/local-ollama-setup.md b/website/docs/guides/local-ollama-setup.mdindex 5136cf5f71f..2bb4b7cc311 100644--- a/website/docs/guides/local-ollama-setup.md+++ b/website/docs/guides/local-ollama-setup.md@@ -6,6 +6,14 @@ description: "Step-by-step guide to running Hermes Agent entirely on your own ma# Run Hermes Locally with Ollama — Zero API Cost+:::tip Desktop users: there's a one-click path+On the Hermes desktop app, **Settings → Providers → Local Models** installs+and manages a local llama.cpp server for you — model downloads, memory+fitting, and context sizing included. See [Local Models](/user-guide/local-models).+This guide is for manual setup: Ollama specifically, CLI-first workflows,+or servers you want to run yourself.+:::+## The ProblemCloud LLM APIs charge per token. A heavy coding session can cost $5–20. For personal projects, learning, or privacy-sensitive work, that adds up — and you're sending every conversation to a third party.diff --git a/website/docs/user-guide/configuring-models.md b/website/docs/user-guide/configuring-models.mdindex 887c0486adb..3adaad1773e 100644--- a/website/docs/user-guide/configuring-models.md+++ b/website/docs/user-guide/configuring-models.md@@ -9,7 +9,7 @@ Hermes uses two kinds of model slots:- **Main model** — what the agent thinks with. Every user message, every tool-call loop, every streamed response goes through this model.- **Auxiliary models** — smaller side-jobs the agent offloads. Context compression, vision (image analysis), web-page summarization, approval scoring, MCP tool routing, session-title generation, and skill search. Each has its own slot and can be overridden independently.-This page covers configuring both from the dashboard. If you prefer config files or the CLI, jump to [Alternative methods](#alternative-methods) at the bottom.+This page covers configuring both from the dashboard. If you prefer config files or the CLI, jump to [Alternative methods](#alternative-methods) at the bottom. To run models on your own machine instead of a cloud provider, see [Local Models](/user-guide/local-models).:::tip Fastest path: Nous Portal[Nous Portal](/user-guide/features/tool-gateway) provides 300+ models under one subscription. On a fresh install, run `hermes setup --portal` to log in and set Nous as your provider in one command. Inspect what's wired up with `hermes portal info`.diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.mdindex bfbdf249935..b909da18c3b 100644--- a/website/docs/user-guide/desktop.md+++ b/website/docs/user-guide/desktop.md@@ -131,7 +131,7 @@ Talk to Hermes and hear it back, the same [voice mode](./features/voice-mode.md)Manage providers, models, tools, and credentials from a real UI instead of editing YAML. First-run onboarding gets you to your first message in seconds. The settings panes cover providers/keys, model selection, toolset configuration, MCP servers, the gateway, and session management.-- **Providers settings pane** — a dedicated place to manage inference providers, with an Accounts / API-keys UX for signing in and storing credentials per provider.+- **Providers settings pane** — a dedicated place to manage inference providers, with an Accounts / API-keys UX for signing in and storing credentials per provider. Its **Local Models** view installs and manages an on-device llama.cpp runtime — see [Local Models](/user-guide/local-models).- **Every provider and model in the menus** — the GUI surfaces the full provider list and every model that `hermes model` knows about, so you pick from the same catalog the CLI sees rather than a curated subset.- **xAI Grok OAuth** — Grok is a first-class OAuth provider in the launcher; sign in through the browser flow like the other OAuth providers.- **Tool-backend installs from the GUI** — run a tool backend's post-setup install steps directly from the app instead of dropping to a terminal.diff --git a/website/docs/user-guide/local-models.md b/website/docs/user-guide/local-models.mdnew file mode 100644index 00000000000..9d4900e5894--- /dev/null+++ b/website/docs/user-guide/local-models.md@@ -0,0 +1,117 @@+---+sidebar_position: 4+title: Local Models+description: Run models entirely on your own machine — no account, no API key, nothing leaves your computer.+---++# Local Models++Hermes can run open models entirely on your own machine. It downloads and+manages the inference engine (llama.cpp), picks the right build of each+model for your hardware, and handles memory so you never configure context+sizes, GPU layers, or quantization. You pick a model; Hermes does the rest.++Nothing leaves your computer: no account, no API key, and no network access+after a model is downloaded.++## Getting started++1. Open **Settings → Providers → Local Models** (or choose **Run models+ locally** during onboarding).+2. Click **Install runtime**. Hermes downloads the official llama.cpp+ build for your hardware (a few hundred MB), verifies it, and keeps it+ updated.+3. Pick a model from the catalog and click **Download**.+4. Click **Use**. New chats now run on the local model.++That's the whole flow. The server starts and stops with Hermes, restarts+survive app restarts, and switching back to a cloud provider is one click+in the model picker.++## How Hermes picks what to download++Every model in the catalog is priced against **your machine** before you+download anything. Each row shows:++- **Memory fit** — green (*Fits your GPU*: runs entirely in GPU memory),+ amber (*Uses system RAM*: works, but slower), or red (*Too big for this+ machine*).+- **Context** — the window the model starts with and the maximum it can+ grow to.+- The download size of the build selected for your hardware.++Models ship in several quality grades (quantizations). Hermes picks the+highest-quality build that runs fully on your GPU; machines with less+memory get a more compact build of the same model with the same+guarantees. Below 4-bit the quality loss is too severe, so Hermes never+offers builds smaller than that — a machine that can't run the 4-bit+build spilled to system RAM simply can't run that model.++Models that don't fit stay visible with the reason, so you always know+what a hardware upgrade would unlock.++## How memory management works++Local models live or die by memory placement, so Hermes manages it+end-to-end and exposes no knobs:++- **Models start at a context window that fully fits your GPU** and grow+ toward their native maximum as your conversation needs more room. You+ may see "Context window grown" in the status feed during long sessions+ — that's the window expanding, not an error.+- **Every recommended model gets at least a 64K context window.** When a+ model is larger than your GPU's memory, Hermes deliberately places the+ overflow in system RAM in the order that hurts least (expert weights+ first, never the attention cache), trading some speed to protect the+ context guarantee.+- **Conversation compression only kicks in at the model's maximum+ window** — growth always comes first.+- Idle models are unloaded after 15 minutes to free GPU memory; they+ reload automatically on the next message.++## The status bar++Right-click the status bar and enable **System resources** to see live GPU+utilization, GPU memory, and RAM while local models run. The context meter+always reflects the window the model is actually running with.++## Using your own llama-server++If a llama-server is already running on your machine, Hermes detects it+and uses it instead of starting its own. Point a custom endpoint at any+OpenAI-compatible server for full manual control — the managed runtime is+a default, not a requirement. For manual setups (Ollama, MLX, custom+builds, headless CLI machines), see+[Run Hermes Locally with Ollama](/guides/local-ollama-setup) and+[Run Local LLMs on Mac](/guides/local-llm-on-mac).++## Configuration++The managed runtime is controlled by the `local_runtime` section of+`config.yaml`. The desktop UI writes these values for you; they're+documented for CLI and headless use:++```yaml+local_runtime:+ enabled: false # true = start the managed server with Hermes.+ # The desktop "Use" button sets this automatically.+ backend: auto # auto | cuda | metal | vulkan | hip | cpu+ tag: b10362 # pinned llama.cpp release; Hermes updates it with+ # each release after re-validation+```++Models and runtime builds live under the Hermes home directory+(`models/` and `runtimes/llamacpp/`). Selecting a local model as your+main model uses the standard `model.provider: llamacpp` ++`model.default` settings — the same shape as every other provider.++## Requirements and limits++- **Windows and Linux:** NVIDIA GPU (CUDA) or CPU. **macOS:** Apple+ Silicon (Metal). Vulkan builds serve AMD GPUs.+- A GPU with 8 GB+ of memory runs the small catalog models comfortably;+ 16 GB+ runs the 27–35B models at high quality.+- Model downloads verify their integrity (SHA-256) before use; a failed+ download is deleted and reported, never half-used.+- Deleting a model removes every file it staged, including vision+ adapters and speculative-decoding companions.