feat: embed CLIProxyAPIPlus, eliminate vibeproxy dependency#2
Closed
johannhipp wants to merge 2 commits intomasterfrom
Closed
feat: embed CLIProxyAPIPlus, eliminate vibeproxy dependency#2johannhipp wants to merge 2 commits intomasterfrom
johannhipp wants to merge 2 commits intomasterfrom
Conversation
Single binary with built-in provider auth. No vibeproxy needed. - Embed CLIProxyAPIPlus as in-process provider gateway on ephemeral loopback port - Add CLI subcommands: serve, login, logout, status, version - Add optional YAML config with env var expansion and sensible defaults - Move hard-coded model remappings to config (with same defaults) - Add cache_control stripping middleware (was in vibeproxy's ThinkingProxy) - Add install script (bin/install.sh) for macOS and Linux - Reuse existing ~/.cli-proxy-api/ tokens from vibeproxy - Default bind to 127.0.0.1 (was 0.0.0.0) - All 12 tests pass, live-tested on separate port Amp-Thread-ID: https://ampcode.com/threads/T-019d30f2-a7d6-73cd-ae34-2a8dabb213d8 Co-authored-by: Amp <amp@ampcode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Single binary with built-in provider auth. No vibeproxy needed.
Before:
Amp CLI → amp-proxy → vibeproxy → CLIProxyAPIPlus → providersAfter:
Amp CLI → amp-proxy → providersChanges
amp-proxy login claude,amp-proxy status,amp-proxy serve${ENV}expansion — model remaps, API keys, provider toggles, routing strategybin/install.sh) — builds amp-proxy, downloads cli-proxy-api-plus, installs to~/.local/bin~/.cli-proxy-api/tokens from vibeproxy — zero migration effortQuick start after merge
Files
main.goconfig.goauth.gogateway.goproxy.goremap.gobin/install.shconfig.example.yamlARCHITECTURE.mdTesting