Context
Part of #5016 (RFC: stacklok/toolhive-rfcs#70). Final subtask — depends on all previous subtasks.
Scope
thv llm setup:
- Detects installed AI tools via the tool adapter registry
- Configures each detected tool (Apply)
- Starts the background proxy if any proxy-mode tool is detected
- Triggers the OIDC browser login flow
thv llm teardown:
- Removes gateway configuration from all tool config files (Revert)
- Stops the background proxy
--purge-tokens flag to also delete cached OIDC tokens from the secrets provider
thv llm teardown <tool-name> — targets a single tool without affecting others
Acceptance Criteria
Dependencies
References
Context
Part of #5016 (RFC: stacklok/toolhive-rfcs#70). Final subtask — depends on all previous subtasks.
Scope
thv llm setup:thv llm teardown:--purge-tokensflag to also delete cached OIDC tokens from the secrets providerthv llm teardown <tool-name>— targets a single tool without affecting othersAcceptance Criteria
thv llm setup --gateway-url <url> --issuer <issuer> --client-id <id>detects installed tools, configures each, starts the background proxy if any proxy-mode tool is present, and triggers OIDC browser loginthv llm teardownremoves gateway config from all tool config files, stops the proxy, and optionally purges cached tokens with--purge-tokensthv llm teardown <tool-name>targets a single tool without affecting othersDependencies
References