Summary
On Windows 11, thv llm setup --client claude-desktop detects Claude Desktop, then fails:
Warning: failed to configure claude-desktop: claude-desktop LLM gateway setup is not supported on Windows yet
Error: failed to configure any detected tools
Claude Desktop is installed here (%APPDATA%\\Claude). %LOCALAPPDATA%\\Claude-3p is empty (third-party inference never configured). The failed run did not persist thv llm config and did not write a helper script.
This is the honest sibling of #6293. Cursor reports success while writing keys the app never reads. Claude Desktop refuses up front.
Root cause
configureCredentialHelper in pkg/client/llm_gateway_credential_helper.go returns immediately on runtime.GOOS == "windows". The shim is a POSIX /bin/sh script (~/.toolhive/llm/claude-desktop-helper.sh). The comment still calls Windows a follow-up.
#6326 already made thv llm token argv-safe for Codex (command + args, no shell). Claude Desktop did not get that shape.
Repro
ToolHive v0.46.0 (c6c425a), Windows 11, Claude Desktop present.
thv llm setup --client claude-desktop --lazy --gateway-url https://127.0.0.1:9 --issuer https://127.0.0.1:9 --client-id dummy-self-found --tls-skip-verify
Same error. thv llm config show still says the gateway is not configured.
origin/main still has the Windows return (checked 2026-09-04).
Suggested direction
Give Claude Desktop a Windows helper that execs thv llm token the same way Codex already does (executable + args, no /bin/sh). Keep the POSIX .sh on Darwin/Linux.
I would like to work on this after assignment. I will not open a PR until a maintainer assigns it.
Related
Summary
On Windows 11,
thv llm setup --client claude-desktopdetects Claude Desktop, then fails:Claude Desktop is installed here (
%APPDATA%\\Claude).%LOCALAPPDATA%\\Claude-3pis empty (third-party inference never configured). The failed run did not persistthv llmconfig and did not write a helper script.This is the honest sibling of #6293. Cursor reports success while writing keys the app never reads. Claude Desktop refuses up front.
Root cause
configureCredentialHelperinpkg/client/llm_gateway_credential_helper.goreturns immediately onruntime.GOOS == "windows". The shim is a POSIX/bin/shscript (~/.toolhive/llm/claude-desktop-helper.sh). The comment still calls Windows a follow-up.#6326 already made
thv llm tokenargv-safe for Codex (command+args, no shell). Claude Desktop did not get that shape.Repro
ToolHive v0.46.0 (
c6c425a), Windows 11, Claude Desktop present.Same error.
thv llm config showstill says the gateway is not configured.origin/main still has the Windows return (checked 2026-09-04).
Suggested direction
Give Claude Desktop a Windows helper that execs
thv llm tokenthe same way Codex already does (executable + args, no/bin/sh). Keep the POSIX.shon Darwin/Linux.I would like to work on this after assignment. I will not open a PR until a maintainer assigns it.
Related
thv llm setupalways fails on Windows: "shell-unsafe characters" in executable path #6325 / Use a bare thv command as the LLM token helper #6326 (thv llm setuptoken-helper path on Windows)