• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 24980886573 / 1
70%
main: 70%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2026 07:01AM UTC
Files 665
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 06:54AM UTC coverage: 66.265% (-0.003%) from 66.268%
24980886573.1

push

github

web-flow
Add localhost reverse proxy for LLM gateway (#5035)

* Add localhost reverse proxy for LLM gateway

Implements a background daemon that bridges AI tools using static API
keys (e.g. Cursor) to an OIDC-protected LLM gateway.

New pkg/llm/proxy package:
- proxy.go: httputil.ReverseProxy wrapper that strips incoming
  Authorization headers, injects fresh OIDC tokens, and forwards to
  the configured gateway. Binds listener in New() so Addr() is valid
  before Start(). Loopback guard rejects non-localhost listen addrs.
  SSE streaming works without buffering (FlushInterval: -1). Graceful
  5-second shutdown on context cancellation.
- daemon.go: PID-file lifecycle (IsRunning, Stop, StartDetached).
  StartDetached forks the current binary with TOOLHIVE_DETACHED=1,
  redirecting stdout/stderr to the XDG log file.
- daemon_unix.go / daemon_windows.go: platform-specific processAlive
  and SysProcAttr helpers via build tags.

CLI wiring (cmd/thv/app/llm.go):
- thv llm proxy start [--foreground]: background by default, foreground
  with --foreground or when running as detached child.
- thv llm proxy stop: sends SIGTERM via process.KillProcess and removes
  PID file.

Closes: #5029

* changes from review

* changes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

59332 of 89537 relevant lines covered (66.27%)

61.75 hits per line

Source Files on job 24980886573.1
  • Tree
  • List 665
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24980886573
  • d8d58ca5 on github
  • Prev Job for on main (#24925755009.1)
  • Next Job for on main (#24988918773.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc