Skip to content

thv llm setup --client claude-desktop fails on Windows (POSIX credential-helper shim) #6507

Description

@stantheman0128

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions