Skip to content

Releases

v1.1.1 — native Windows builds + proxy support

Choose a tag to compare

@codewith-aditya codewith-aditya released this 18 Nov 09:15

v1.1.1 — native Windows builds

The bridge now runs on Windows as a single console binary, with paths that make sense there.

Added

  • windows/amd64 and windows/arm64 executables (raw .exe, no installer, no runtime).
  • OS-aware default token directory:
    • Windows → %AppData%\metaphor-bridge
    • macOS → ~/.metaphor
    • Linux → /root/metaphor (unchanged; override with METAPHOR_DIR anywhere)
  • Windows section in the README (PowerShell quickstart, scheduled-task hint, SmartScreen note).

Everything from v1.1.0 still applies

  • Egress proxy: -proxy / METAPHOR_PROXY for http://, https:// (self-signed ok) and
    socks5://, applied to the gateway, token refresh and auth hops.
  • -proxy-insecure skips verification of the proxy certificate only.
  • /debug/ip shows the egress IP, /healthz shows token expiry, concurrency and proxy.
  • External token mints (auth gh, auth refresh) are picked up without a restart.

Windows quickstart

.\metaphor-go_1.1.1_windows_amd64.exe auth start
# open the printed URL, approve on GitHub, copy the metaphor:// URL or just the code
.\metaphor-go_1.1.1_windows_amd64.exe auth finish "metaphor://auth/callback?code=..."
.\metaphor-go_1.1.1_windows_amd64.exe serve
# then point any OpenAI client at http://127.0.0.1:8190/v1

With a proxy:

$env:METAPHOR_PROXY="https://user:pass@gw.example.com:443"
$env:METAPHOR_PROXY_INSECURE="1"
.\metaphor-go_1.1.1_windows_amd64.exe serve

Binaries are unsigned, so SmartScreen will ask once (More info → Run anyway). Build it
yourself with go build if you prefer.

Checksums: checksums.txt.

v1.1.0 — egress proxy support (http/https/socks5)

Choose a tag to compare

@codewith-aditya codewith-aditya released this 18 Nov 09:07

v1.1.0 — egress proxy support

Requests can now leave through a proxy instead of the host's own IP. This covers the
gateway, token refresh and the auth subcommands — the GitHub → WorkOS hops, which
is what you want when GitHub rate-limits your IP on /login/oauth/authorize.

Added

  • -proxy / METAPHOR_PROXY for http://, https:// and socks5:// proxies.
  • -proxy-insecure / METAPHOR_PROXY_INSECURE=1 to accept a self-signed certificate on
    the proxy itself (the target's TLS is still verified).
  • GET /debug/ip — returns the egress IP, protocol and active proxy, so you can confirm
    the tunnel without guessing.
  • version in /healthz.
  • -h now prints the direct and proxied invocation examples.

Fixed

  • Tokens minted by a second process (auth gh, auth refresh) are picked up by a
    running bridge without a restart — the store reloads on tokens.json mtime change.
    Previously a rotated refresh token in the live process could go stale.

Verified

Test Result
HTTPS proxy with self-signed cert egress changes, HTTP/2 preserved, chat OK
SOCKS5 connects, HTTP/2 preserved, chat OK
Dead proxy 502 with proxy dial: … connection refused in <1 ms, no hang
Unknown scheme rejected at startup
auth gh through the proxy full GitHub → WorkOS → token mint, no GitHub 429
External auth refresh while serving new expiry live without restart

Install

tar -xzf metaphor-go_1.1.0_linux_amd64.tar.gz
./metaphor-go auth start      # then: auth finish "<code>"
./metaphor-go serve           # http://127.0.0.1:8190/v1

With a proxy:

METAPHOR_PROXY='https://user:pass@gw.example.com:443' METAPHOR_PROXY_INSECURE=1 ./metaphor-go serve

Checksums in checksums.txt.