Skip to content

Introduction

sotatek-proxy is a lightweight daemon that runs transparently on your workstation, bridging AI CLI tools (Claude Code, claude-cli, etc.) to the Sotatek Bifrost gateway while enriching every request with process and git attribution metadata.

Without the proxy, AI CLI requests to Bifrost carry no local context — there is no way to know which developer sent a request, or which repository the work originates from.

sotatek-proxy solves this silently, with no changes required to your CLI workflow:

  1. Intercepts requests on the loopback interface (127.0.0.1:3817)
  2. Resolves the calling process’s working directory
  3. Discovers the nearest .git/ and extracts git remote -v
  4. Injects the X-Git-Remote header (base64-encoded) before forwarding to Bifrost
  5. Streams the response back to your CLI in real time
FeatureDetails
Loopback-onlyBinds 127.0.0.1:3817 — never exposed to LAN
SSE / streamingPer-chunk flush, no buffering — instant token streaming
Git attributionX-Git-Remote injected on every request
TTL cachePID → git-remote cache, TOCTOU-safe CWD re-verification
Cross-platformmacOS (arm64 / amd64), Linux (amd64 / arm64), Windows (amd64)
Daemon-managedlaunchd · systemd · Windows SCM — auto-starts on login / boot
SecureAuth headers never logged; client cannot spoof attribution headers

After installing, follow Configure your CLI to point Claude Code at the proxy.