You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| bridge (unset or `bridge`) | any | Isolation as designed. |
220
+
|`host` or custom | default (implicit) | Isolation is dropped with a warning in the run log, restoring outbound connectivity for host-networked workloads. |
221
+
|`host` or custom | explicit `--isolate-network=true`|`thv run` fails fast with an error naming both flags. Drop `--network host` to keep enforced isolation, or set `--isolate-network=false` to keep host networking. |
222
+
|`none`| any | Isolation is silently dropped (`none` is already maximally confined; isolation would be redundant). |
223
+
224
+
:::info[Changed in v0.40.0]
225
+
226
+
Before v0.40.0, `thv run --network host` silently built the isolation sidecars
227
+
against an internal-only network, breaking outbound DNS and connectivity.
228
+
Isolation is now dropped for `host`/`none` modes so host-networked workloads
229
+
keep working. If you rely on host networking, no change is needed. If you
230
+
previously combined `--isolate-network` with `--network host` explicitly, pick
231
+
one: drop `--network host` to keep enforced isolation, or set
232
+
`--isolate-network=false` to keep host networking.
233
+
234
+
:::
235
+
204
236
## Example: Enable network isolation using registry defaults
205
237
206
238
Many MCP servers in the ToolHive registry have default permission profiles that
Copy file name to clipboardExpand all lines: docs/toolhive/reference/cli/thv_llm_config_set.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,14 @@ thv llm config set [flags]
31
31
32
32
```
33
33
--audience string OIDC audience (optional)
34
+
--bedrock-compat Persist Bedrock compatibility for Claude Code (CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 + per-tier Bedrock model IDs). Applied by "thv llm setup". Use --bedrock-compat=false to clear.
34
35
--callback-port int OIDC callback port (omit to keep current; default: ephemeral)
35
36
--client-id string OIDC client ID
37
+
--enable-1m With Bedrock compat, opt into the 1M context window by appending [1m] to opus/sonnet model IDs.
36
38
--gateway-url string LLM gateway base URL (must use HTTPS)
37
39
-h, --help help for set
38
40
--issuer string OIDC issuer URL
41
+
--models strings Model IDs to persist and apply during "thv llm setup", comma-separated or by repeating the flag, e.g. --models=us.anthropic.claude-opus-4-8,us.anthropic.claude-sonnet-5. Credential-helper clients (Claude Desktop) write these as inferenceModels; with Bedrock compat, each ID is also mapped to a Claude Code tier by matching 'haiku', 'opus', or 'sonnet' in the ID.
39
42
--proxy-port int Localhost proxy listen port (omit to keep current; default: 14000)
40
43
--tls-skip-verify Skip TLS certificate verification for the upstream gateway (local dev only; use --tls-skip-verify=false to clear)
Re-running is idempotent and uses the cached token (no browser prompt).
57
+
48
58
Run "thv llm teardown" to revert all changes.
49
59
50
60
```
@@ -56,14 +66,16 @@ thv llm setup [flags]
56
66
```
57
67
--anthropic-path-prefix string Path prefix appended to the gateway URL when writing ANTHROPIC_BASE_URL for direct-mode tools (e.g. /anthropic). When omitted, the gateway is probed automatically.
58
68
--audience string OIDC audience (optional)
69
+
--bedrock-compat Configure Claude Code for a gateway that forwards to AWS Bedrock: write CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 (Bedrock rejects the experimental anthropic-beta headers) and pin per-tier Bedrock model IDs (override with --models). Persisted, so a later plain "thv llm setup" keeps it; clear with --bedrock-compat=false. Only affects Claude Code.
59
70
--callback-port int OIDC callback port (omit to keep current; default: ephemeral)
60
71
--client string Configure only this AI tool by name (e.g. claude-code, cursor, codex). Omit to configure all detected tools.
61
72
--client-id string OIDC client ID
73
+
--enable-1m With --bedrock-compat, append the [1m] suffix to the opus and sonnet model IDs to opt into the 1M-token context window on Bedrock (never haiku, which is 200K). Off by default.
62
74
--gateway-url string LLM gateway base URL (must use HTTPS)
63
75
-h, --help help for setup
64
76
--issuer string OIDC issuer URL
65
77
--lazy Skip the interactive OIDC login and defer it until the first time a configured tool accesses the gateway. Tool config and persisted settings are written normally. Useful for unattended provisioning (e.g. an MDM profile).
66
-
--models strings Explicit model IDs to expose to credential-helper clients (Claude Desktop's inferenceModels). Repeat or comma-separate. Omit to rely on the gateway's own model discovery once it is available.
78
+
--models strings Model IDs to configure, comma-separated or by repeating the flag, e.g. --models=us.anthropic.claude-opus-4-8,us.anthropic.claude-sonnet-5. For credential-helper clients (Claude Desktop) these become inferenceModels. With --bedrock-compat, each ID is also mapped to a Claude Code tier by matching 'haiku', 'opus', or 'sonnet' in the ID (IDs matching no tier are ignored with a warning). Omit to use the built-in Bedrock defaults / gateway model discovery.
67
79
--proxy-port int Localhost proxy listen port (omit to keep current; default: 14000)
68
80
--skip-browser Print the OIDC authorization URL instead of opening a browser, then wait for the callback. Use in headless/SSH/CI environments where no system browser is available.
69
81
--tls-skip-verify Skip TLS certificate verification for the upstream gateway (local dev only). For direct-mode tools (Claude Code, Gemini CLI) this sets NODE_TLS_REJECT_UNAUTHORIZED=0, disabling TLS for ALL of that tool's outbound connections. For proxy-mode tools only the proxy-to-gateway connection is affected.
--isolate-network Isolate the container network from the host. Use --isolate-network=false to opt out. (default true)
131
+
--isolate-network Isolate the container network from the host. Use --isolate-network=false to opt out. Not enforced with --network host or --network none (isolation requires bridge networking). (default true)
132
132
--jwks-allow-private-ip Allow JWKS/OIDC endpoints on private IP addresses (use with caution) (default false)
133
133
--jwks-auth-token-file string Path to file containing bearer token for authenticating JWKS/OIDC requests
134
134
-l, --label stringArray Set labels on the container (format: key=value)
135
135
--name string Name of the MCP server (default to auto-generated from image)
136
-
--network string Connect the container to a network (e.g., 'host' for host networking)
136
+
--network string Connect the container to a network (e.g., 'host' for host networking). Note: 'host' and 'none' cannot enforce network isolation, so isolation is dropped for those modes.
137
137
--oidc-audience string Expected audience for the token
138
138
--oidc-client-id string OIDC client ID
139
139
--oidc-client-secret string OIDC client secret (optional, for introspection)
0 commit comments