Configuration¶
CLI flags¶
| Flag | Alias | Description |
|---|---|---|
--prompt |
-p |
Pass a prompt directly to the agent |
--env-file |
-e |
Load environment variables into the container |
--file |
-f |
Mount a single file instead of the current directory |
--model |
-m |
Override the model used by the agent |
--agent |
-a |
Select agent: pi, opencode, hermes (default: pi) |
--volumes |
-v |
Additional volume mount (host:container[:opts]); may be repeated |
--port |
Publish a container port to the host ([host-ip:]host-port:container-port[/protocol]); may be repeated |
|
--no-verify |
Skip cosign signature and provenance verification | |
--no-skills |
Disable mounting user skills directories | |
--ephemeral |
Disable session persistence (implied by -p and piped stdin) |
|
--local |
Force local mode even with -e (use LM Studio / local defaults) |
|
--network |
Attach the container to an existing network (e.g. one wired to a corp proxy) | |
--egress |
Restrict outbound traffic to an allowlist (hosts, .suffix domains, @file, or none for local-only); docker-only, mutually exclusive with --network |
|
--help |
-h |
Show help |
Environment variables¶
| Variable | Description |
|---|---|
HARNESS_IMAGE_TAG |
Override the Docker image tag (defaults to the package version). Setting this implies --no-verify. |
HARNESS_EGRESS_SUBNET |
Override the egress network subnet pool (IPv4 CIDR; default 192.0.2.0/24 split into /29s). |
XDG_DATA_HOME |
Override the base directory for persistence data (defaults to ~/.local/share). |
XDG_CACHE_HOME |
Override the base directory for cosign cache (defaults to ~/.cache). |
Agent-specific behavior¶
pi¶
-mis passed straight to the binary as--model- Without
-e, passes--provider ollamaso pi routes to LM Studio
opencode¶
-mis passed via theOPENCODE_MODELenv var- Without
-e, uses LM Studio locally - With
-e, enters cloud mode and auto-detects the provider from env vars - Use
--localto force local mode even with-e
hermes¶
-mis passed as--modelinprovider/modelform- Without
-e, uses local config - With
-e, enters cloud mode and auto-detects from env vars - Use
--localto force local mode even with-e