Skip to content

thv llm: setup and teardown orchestration #5031

Closed

Description

@yrobla

Context

Part of #5016 (RFC: stacklok/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

  • AT: 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 login
  • AT: thv llm teardown removes gateway config from all tool config files, stops the proxy, and optionally purges cached tokens with --purge-tokens
  • AT: thv llm teardown <tool-name> targets a single tool without affecting others

Dependencies

References

Activity

  1. added
    enhancement
    go
    cli
    llm gateway
    on Apr 23, 2026
  2. added 5 commits that reference this issue on Apr 28, 2026
    39a642e
    aa97266
    60a1c98
    2ea0688
    ae1b32f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancementgollm gateway

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions