Repository navigation
Releases
Releases · codewith-aditya/metaphor-bridge
v1.1.1 — native Windows builds + proxy support
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/amd64andwindows/arm64executables (raw.exe, no installer, no runtime).- OS-aware default token directory:
- Windows →
%AppData%\metaphor-bridge - macOS →
~/.metaphor - Linux →
/root/metaphor(unchanged; override withMETAPHOR_DIRanywhere)
- Windows →
- Windows section in the README (PowerShell quickstart, scheduled-task hint, SmartScreen note).
Everything from v1.1.0 still applies
- Egress proxy:
-proxy/METAPHOR_PROXYforhttp://,https://(self-signed ok) and
socks5://, applied to the gateway, token refresh andauthhops. -proxy-insecureskips verification of the proxy certificate only./debug/ipshows the egress IP,/healthzshows 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/v1With 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 serveBinaries 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)
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_PROXYforhttp://,https://andsocks5://proxies.-proxy-insecure/METAPHOR_PROXY_INSECURE=1to 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.versionin/healthz.-hnow 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 ontokens.jsonmtime 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/v1With a proxy:
METAPHOR_PROXY='https://user:pass@gw.example.com:443' METAPHOR_PROXY_INSECURE=1 ./metaphor-go serveChecksums in checksums.txt.