---
title: thv llm config set
hide_title: true
description: Reference for ToolHive CLI command `thv llm config set`
last_update:
  author: autogenerated
slug: thv_llm_config_set
mdx:
  format: md
---

## thv llm config set

Set LLM gateway connection settings

### Synopsis

Persist LLM gateway connection settings to config.yaml.

Example:
  thv llm config set \
    --gateway-url https://llm.example.com \
    --issuer https://auth.example.com \
    --client-id my-client-id

```
thv llm config set [flags]
```

### Options

```
      --audience string      OIDC audience (optional)
      --callback-port int    OIDC callback port (omit to keep current; default: ephemeral)
      --client-id string     OIDC client ID
      --gateway-url string   LLM gateway base URL (must use HTTPS)
  -h, --help                 help for set
      --issuer string        OIDC issuer URL
      --proxy-port int       Localhost proxy listen port (omit to keep current; default: 14000)
      --tls-skip-verify      Skip TLS certificate verification for the upstream gateway (local dev only; use --tls-skip-verify=false to clear)
```

### Options inherited from parent commands

```
      --debug   Enable debug mode
```

### SEE ALSO

* [thv llm config](thv_llm_config.md)	 - Manage LLM gateway configuration

