Get Started#
Prerequisites#
./install.sh automatically runs ./startup.sh first, which
installs/verifies curl/git, Docker, Node.js/npm (via nvm), and Python
(venv + PyYAML) — there is only one script to run. startup.sh is idempotent
(safe to re-run; skips whatever is already present) and can also be run on
its own if you want finer-grained control (--skip-base, --skip-docker,
--skip-nodejs, --skip-python) or want to pre-provision a host before
installing anything:
./startup.sh --help
Notes on what it does with Docker:
If
HTTP_PROXY/HTTPS_PROXY/NO_PROXY(either case) are set, it also writes them into the Docker daemon’s own systemd configuration (/etc/systemd/system/docker.service.d/http-proxy.conf, root-only) so the daemon can pull images through the proxy, and restarts the daemon when that changes. This needs sudo; without it the step is skipped with a warning.Before installing anything, it rejects an
HTTP_PROXY,HTTPS_PROXYorALL_PROXYvalue (either case) that contains a quote, whitespace or a control character, for example a stray trailing". Such a value is forwarded into the containers, and agent HTTP clients refuse to start with it. The error names the variable, never its value.If it just added your user to the
dockergroup, it restarts itself under that group automatically, so no new terminal is needed. Only if that cannot be done (sgandsudoboth unavailable) does it exit with code2and ask you to open a new terminal (or runnewgrp docker) and re-run.
What It Does#
Note
Models are downloaded by the installer. You do not download or place a
model beforehand: --model makes the installer fetch it into
~/.agent-harness-install/models and register it with OpenVINO™ Model Server (OVMS). The
model download size is large, and ./uninstall.sh deletes the models by default; pass
--keep-models to retain the models and avoid re-downloading them on the
next install (see Uninstall).
Host prep — runs
startup.sh(curl/git, Docker, Node.js, Python), then an Intel GPU check (PCI vendor8086,i915/xedriver,/dev/drirender nodes, Level-Zero/OpenCL compute runtime readiness — assumed already provisioned, e.g., via an Edge Pack, not installed by this step). Host users and groups are not modified: containers get render-node access through--deviceand--group-add.Inference backend — requires a model: pass
--model(the installer prompts for it on a terminal and fails otherwise, unless a model is already exported from an earlier run). Starts OpenVINO™ Model Server (Docker, GPU passthrough) and fetches that model from its hub (see Model sources). By default a Hugging Face id such asorg/nameis converted to OpenVINO™ IR via OVMS’s own “-py” Docker image in--pullmode — unlike plainoptimum-cli, that also generates the MediaPipe graph OVMS’s/v3/chat/completionsendpoint needs. Pre-convertedOpenVINO/*models are only downloaded, by the same OVMS image that serves them. For gated Hugging Face models, exportHF_TOKENfirst. SetHARNESS_OVMS_EXPORTER=export-model-pyor=hf-snapshot(a plain download, no conversion, for Hugging Face repositories already published as ready-to-serve OpenVINO™ IR) for alternate exporters (see Known limitations). Always also starts the Inference Router (IR) — every inference request goes through it. The router is the publishedintel/inference-routerimage, pulled once (setHARNESS_IR_BUILD_FROM_SOURCE=1to build it from a pinned commit ofmicroservices/inference-routerinopen-edge-platform/edge-ai-librariesinstead). By default IR’s one configured provider is the local OVMS. SetHARNESS_LLM_ROUTER_ENDPOINT(and, if it needs one,HARNESS_LLM_ROUTER_API_KEY) to point IR at an existing external OpenAI-compatible endpoint instead; OVMS is then not started, and--modelnames the model that endpoint serves.Agent install — installs the selected agent harness via its own official installer/package (
openclaw,dcode, or Hermes’s installer), wired to the Inference Router’s endpoint.Onboarding — wires the installed agent to that endpoint and checks it:
OpenClaw: registers the endpoint as a custom
ovmsmodel provider (openclaw config set models.providers.ovms …), sets it as the default model, and runs a smoke test. Ifopenclaw config setfails (e.g., its Gateway daemon is running), it prints the exact manual command instead.Deep Agents Code (
dcode): writes its provider configuration and runs a smoke test; the smoke test is reported as failed if dcode prints an error, even when it exits 0.Hermes: prints the endpoint and where to point a provider in its own configuration (
~/.hermes/config.yaml); there is no automated smoke test. If Hermes already points at this endpoint with a different model name than the one served, it warns and prints thehermes config set model.default <name>fix.
Published ports (OVMS and the Router) bind to loopback
(127.0.0.1) by default, so nothing is reachable from other machines unless
you opt in with HARNESS_ADVERTISED_HOST (or the prompt that sets it) or
HARNESS_BIND_HOST.
Usage#
./install.sh --harness openclaw --model <org/name>
For example, with a small Hugging Face model (any supported model works):
./install.sh --harness openclaw --model Qwen/Qwen2.5-0.5B-Instruct
The model is served under its name without the organization prefix, so the
command above serves Qwen2.5-0.5B-Instruct. The Inference Router matches
model names exactly: a client that requests Qwen/Qwen2.5-0.5B-Instruct gets
Unknown model. The installer prints the served name after the install, and
curl http://<host>:8010/v1/models (default port) lists it.
./install.sh --harness deepagents-code --model <org/name> --non-interactive
Or configure via environment variables:
export HARNESS_AGENT=openclaw
export HARNESS_HF_MODEL=<org/name>
./install.sh --non-interactive
For example:
export HARNESS_AGENT=openclaw
export HARNESS_HF_MODEL=Qwen/Qwen2.5-0.5B-Instruct
./install.sh --non-interactive
Options: --non-interactive, --skip-gpu-check, --harness <name>,
--model <model-name>, --model-hub <hub>, --model-config <json>,
--model-revision <rev>, --model-type <type>,
--model-precision <int4|int8|fp16|fp32>, --model-device <device>; run
./install.sh --help for the full list of options and environment variables.
Tool calls#
Agents that call tools need OVMS to parse the model’s tool-call output into
OpenAI-style tool_calls. OVMS 2026.3 and later detect the right parser from
the model’s chat template at startup, so nothing needs to be set for
recognised model families; the OVMS log shows which one it chose:
docker logs agent-harness-install-ovms 2>&1 | grep -i parser
# ... Auto-detected tool_parser: hermes3
The default HARNESS_OVMS_IMAGE is such a release. An older image has no
auto-detection and returns tool calls as plain text. Passing --tool_parser
through HARNESS_OVMS_EXTRA_ARGS is rejected: OVMS does not accept it when
started from --config_path, and the container would crash-loop.
Observability#
observability turns telemetry on or off for the Inference Router and the
harness, and shows their state:
./install.sh observability enable [--backend sqlite|jaeger] [--endpoint <url>] [--content off|preview|full]
./install.sh observability disable [--clean | --keep-jaeger]
./install.sh observability show
Verb |
Arguments |
What it controls |
|---|---|---|
|
|
How telemetry is collected ( |
|
|
Stops collection. |
|
None |
A CLI summary of what was collected, and the Jaeger UI address when Jaeger is the backend (Jaeger is the full trace view) |
The Inference Router telemetry backend switches to a JSONL file (
telemetry.jsonlin the router workspace), restarts the router, andshowreads/v1/metrics.disablereverts to the in-memory backend. The restart interrupts any request in flight, so run these between agent sessions, not during one. The setting persists across model changes. The file is group-writable (mode 664): the router container runs as another uid, so the installer starts it with--group-add <your primary group id>instead of making the file world-writable. It holds counters and latencies, not prompt text. When the account’s primary group is root (gid 0) there is no private group to share, soenablefails instead of silently making the file world-writable; setHARNESS_IR_TELEMETRY_FILE_MODE=666to accept that. Rootless Docker and user-namespace remapping do not map group ids that way (observability enablewarns when it detects them); setHARNESS_IR_TELEMETRY_FILE_MODE=666there. A router container created by an earlier installer version lacks that group: re-run./install.shonce to recreate it before enabling. The choice is saved only after the file is ready, so a failedenableleaves the previous setting in place.harness(Hermes, host runtime): installs and enables thehermes-otelplugin and writes$HERMES_HOME/hermes_otel.yaml. For a fresh setup, the backend defaults tosqlite, which keeps records in the local store only;jaegerexports OTLP traces to a Jaeger all-in-one container managed by the installer (loopback only), or to your own Jaeger at--endpointwhen given.--contentcontrols prompt/response capture and defaults tooff. Then runhermes gateway restartand start a new session: a Hermes process that was already running (the gateway, or the plugin host it relaunches) picks up the plugin’s Python dependencies only after a restart, and until then every turn logs[hermes-otel] OpenTelemetry packages not availableand records nothing.observability showreports that condition from Hermes’s error log.disabledisables the plugin, removes the managed config and any managed Jaeger. If the plugin cannot be disabled (Hermes missing fromPATH, orhermes plugins disablefails),disablefails and changes nothing, so the state never claims collection is off while it is on.The managed Jaeger container carries the label
io.agent-harness-install.managed-by=metrics-jaeger. A container with the same name but without that label is never reused or removed (enableanddisablerefuse; uninstall leaves it with a warning), and an owned one is reused only while it publishes exactly127.0.0.1:<UI port>and127.0.0.1:<OTLP port>. A container created by an earlier unreleased build has no label: remove it withdocker rm -f agent-harness-install-jaeger(or yourHARNESS_JAEGER_CONTAINERname) first.An unsupported harness is skipped with a notice. Everything that can be checked in advance (Hermes CLI, Jaeger ownership and ports, the Router file settings and container) is checked before telemetry settings are changed. If the harness still fails during enable, the Router change made by that command is reverted.
Re-running
enablekeeps the saved harness--backend,--endpointand--contentunless you name them again, soobservability enablelater does not reset a Jaeger setup tosqlite. Naming only--endpointkeeps the saved backend; a saved endpoint is reused only for the backend it was saved with.
Cleaning collected data and keeping Jaeger#
disable keeps what was collected unless you ask otherwise:
Command |
Router |
Hermes local store ( |
Managed Jaeger and its traces |
|---|---|---|---|
|
Kept |
Kept |
Removed |
|
Emptied |
Emptied |
Removed |
|
Kept |
Kept |
Kept running |
--cleanand--keep-jaegerconflict, since cleaning removes Jaeger’s traces.--keep-jaegerapplies to the harness. A laterobservability disable(or uninstall) removes the kept container; a laterobservability enablethat does not use Jaeger leaves it running.The Hermes store is emptied in place, not deleted, so a running Hermes gateway keeps working. A Hermes session that is still running keeps adding records until it is restarted. The plugin keeps at most 4000 rows per kind and, by default, drops rows older than 7 days by itself.
If a clean cannot run (no
python3, a locked store, or a symlinked file), the command says so and does not report the data as cleaned. When another process (a running Hermes) keeps the store open, the deleted rows may stay in the write-ahead log; the command then reports that, and you should close Hermes and run the clean again.Traces already exported to your own
--endpointJaeger are not removed; clear them in that Jaeger.The Router restarts when it is disabled, which also resets its in-memory counters.
Reading the data#
observability show is the CLI view:
Router: whether file collection is on, the events file, and live totals from
/v1/metrics(requests, tokens, latency), followed by a per provider/model breakdown.Harness: the plugin and config state, then a summary of the local store (record counts by kind, sessions, error spans, time window, and the busiest spans with count, average and maximum duration). The store is opened read-only. This needs
python3; without it the summary is skipped.Jaeger:
showprints the UI address (http://127.0.0.1:16686for the managed container). Use it for the full trace view, which the CLI summary does not replace.
Limitations: harness telemetry is not available in OpenShell sandboxes (the
sandbox has no network egress beyond the router), and only Hermes is
supported. After an OpenShell install, pass --runtime openshell to
observability (otherwise the runtime defaults to host). Router telemetry
works in both
runtimes. The Router’s telemetry.jsonl is append-only while the Router runs;
the installer rotates it once it exceeds HARNESS_IR_TELEMETRY_MAX_BYTES (see
Router telemetry file).
Overrides:
HARNESS_HERMES_OTEL_PLUGIN, HARNESS_HERMES_OTEL_REF,
HARNESS_IR_TELEMETRY_MAX_BYTES, HARNESS_IR_TELEMETRY_FILE_MODE,
HARNESS_JAEGER_IMAGE, HARNESS_JAEGER_CONTAINER,
HARNESS_JAEGER_UI_PORT, HARNESS_JAEGER_OTLP_PORT.
By default the plugin is installed from Hermes’s reviewed plugin catalog
(hermes plugins install hermes_otel), which checks out the commit pinned
there and applies Hermes’s removal kill-list. To pin another commit, set
HARNESS_HERMES_OTEL_REF to a full 40-character SHA; it is passed as --ref
and applies to a fresh plugin install only (an installed plugin is left as is).
Harness backends#
--backend applies to the harness only; the Router has its own memory/file
backend (see Router telemetry file). Trace export
always uses OTLP/HTTP; jaeger names where the traces go, and the installer
can start and manage that Jaeger for you.
|
Where the data goes |
|
|---|---|---|
|
The plugin’s local store, |
Not allowed |
|
Without |
Optional |
The
--endpointURL must be plainhttp(s)://host[:port][/path](host: a name, IPv4 address or bracketed IPv6 such as[::1]; port 1 to 65535), with no credentials or query string. Repeating a flag is an error.With
--endpoint, the plugin exports traces only (no metrics or logs) and expects that Jaeger’s query API on port16686of the same host for its own dashboard and skill;observability showdoes not read it. Any OTLP/HTTP receiver accepts the traces, but only a Jaeger gives the plugin a read path.The managed Jaeger container is removed by
observability disable, by switching tosqliteor to an external--endpoint, and by uninstall.--contentis independent of--backend: withprevieworfull, prompt/response text is sent to whichever backend you chose, including an external Jaeger.enablewarns when the endpoint is not on this machine (127.0.0.1orlocalhost).
Router telemetry file#
The Inference Router supports exactly two telemetry backends, memory and
file; observability enable selects file. Nothing leaves
the machine: the Router appends to a local file and does not export telemetry.
|
|
|
|---|---|---|
Storage |
Router process memory |
|
|
Reads the in-process counters |
Re-reads and re-parses the whole file |
Router restart |
Counters reset to zero |
History is kept; a restart never truncates the file |
Each completed request adds one JSON line (request_completed) with the
provider, model, input/output token counts, total latency and TTFT/TPOT when
available. It holds no prompt or response text.
What clears the file:
./install.sh observability disable --cleanempties it after switching the Router back tomemory.POST /v1/metrics/reseton the Router truncates it.Deleting it by hand is safe; the next
observability enablerecreates it with the right permissions.Rotation: when the installer next prepares the file (an install, or
observability enable) and it is larger thanHARNESS_IR_TELEMETRY_MAX_BYTES(default 20 MiB;0turns rotation off), it is moved totelemetry.jsonl.1(mode 600) and a fresh file is started. Only one previous generation is kept, and/v1/metricscounts only the new file.observability showwarns when the file is over the limit, and--cleanremoves the rotated file too../uninstall.shremoves it with the rest of the state directory, including with--keep-models, which only retains the models.
observability disable switches back to memory and restarts the
Router, so the live counters read zero, but it leaves the file in place unless
you pass --clean. The kept file is restricted to owner-only (mode 600) since
nothing writes it any more; a later enable reopens it as configured. If you
enable again, the old events are counted with the
new ones; clean the file first for a clean session.
The file is a Router design choice, not an installer one: the Router has no
database backend. It needs no extra service and is easy to inspect, ship or
delete, and appends are serialised with an exclusive file lock. The cost is
that reads slow down as the file grows, the installer rotates it only when it
runs (not while the Router is serving), and you
only get the totals and time-window filtering the Router exposes. A database
backend would need a new Telemetry implementation and a new backend:
value in microservices/inference-router.
Model Sources#
--model is the model’s name as its hub names it, and --model-hub says
which hub to fetch it from. Without --model-hub the hub is openvino: a
Hugging Face id that is converted to OpenVINO™ IR. Any other hub selects the
Model Download service’s ephemeral container (get_model.sh, pinned and
checksum-verified) on its own — there is no need to set
HARNESS_OVMS_EXPORTER.
|
|
Extra input |
Served to agents |
|---|---|---|---|
|
Hugging Face id, |
|
yes |
|
Hugging Face id, |
|
only if the repository already contains an OVMS |
|
plain name substituted for |
|
only if the tarball contains a |
|
|
no (OVMS cannot load Ollama models yet) |
|
|
model name or a comma-separated list |
|
no |
|
Geti™ project name |
|
no |
|
model name or a comma-separated list |
no |
|
|
any label |
|
no |
A model is served — registered with OVMS and wired to the Inference Router
— only when the download contains an OVMS graph.pbtxt. Everything else is
downloaded and tracked (./install.sh models list shows it as “not served by
OVMS”), and the installer says why agents will not use it. The router stays
on whatever OVMS already serves, so one model is served at a time.
# default: Hugging Face id, converted to OpenVINO IR
./install.sh --harness openclaw --model <org/name>
# Ollama: downloaded and tracked, not served by OVMS yet
./install.sh --harness openclaw --model-hub ollama --model <name:tag>
# a model tarball from an allowed URL
./install.sh --harness openclaw --model-hub remote-url --model <name> \
--model-config '{"url":"https://github.com/open-edge-platform/edge-ai-resources/raw/main/{name}.tar"}'
Options that an exporter does not use (for example --model-device with the
default exporter) are reported as ignored.
Other commands:
./install.sh status # host, OVMS/Router and agent health (read-only)
./install.sh onboard # re-run onboarding only
./install.sh models list # exported/downloaded models
./install.sh models remove <name> # delete one (and its OVMS config entry)
./install.sh mcp register <name> <url> [agent] # register an MCP endpoint (Hermes, OpenClaw, or HARNESS_MCP_REGISTER_CMD)
./install.sh skill <install|list|remove> [path|name] # Hermes skills only
See Run Without a Checkout and Uninstall for the rest of the usage surface.