Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Apr 09:56
· 11 commits to main since this release

First release of amp-proxy-rs — a single-binary, focused reverse proxy for Sourcegraph Amp CLI.

Highlights

  • 3.7 MB stripped binary (LTO + opt-z), zero runtime dependencies
  • Five protocol translators — Anthropic Messages stream upgrade, Gemini :generateContent ↔ OpenAI Responses, Gemini :streamGenerateContent ↔ OpenAI Responses SSE (new beyond upstream), OpenAI Responses ↔ chat/completions (request + non-streaming reply), Responses SSE → Responses SSE for chat-only upstreams
  • Hybrid streaming proxy — peeks the first 16 KiB for routing decisions, streams the rest of the body to the upstream chunk-by-chunk via a custom PrefixedBody adapter
  • Hot-reloadable configmtime-polled file watcher rebuilds the API key validator and the amp module's compiled fallback handler atomically
  • BILLABLE warning at the ampcode.com fallback — credit drain is immediately visible in run.log
  • AMP-CLI / Vertex AI path support/api/provider/*/v1beta{,1}/publishers/google/models/*action routes
  • Structured per-request loggingamp router: request / amp router: response paired entries with route decision, model, provider, status, elapsed_ms

End-to-end validated

Path Verdict
claude-sonnet-4-6 (main agent + librarian) → custom provider
gemini-3-flash-preview (finder) → custom provider via translate ✅ no credit leak
gpt-5.4 → DeepSeek via Responses↔chat/completions ✅ multi-turn reasoning + tool_use
/api/internal, /api/telemetry (Amp control plane) ✅ correctly billable

cargo test: 142 passed.

Downloads

Platform Archive SHA-256
Linux x86_64 amp-proxy-x86_64-linux.tar.gz .sha256
macOS x86_64 amp-proxy-x86_64-macos.tar.gz .sha256
Windows x86_64 amp-proxy-x86_64-windows.zip .sha256

Each archive contains the binary plus LICENSE, NOTICE.md, README.md, CHANGELOG.md, and config.example.yaml.

Quick start

# Linux / macOS
tar -xzf amp-proxy-x86_64-linux.tar.gz
./amp-proxy init                  # interactive wizard writes config.yaml
./amp-proxy --config config.yaml

# Then point Amp CLI at it
export AMP_URL=http://127.0.0.1:8317
export AMP_API_KEY=<api-key from your config.yaml>
amp

See README for full configuration, log-reading guide, and architecture overview.

Provenance

amp-proxy-rs's protocol translation algorithms and custom-provider routing decision model are derived from CLIProxyAPI (MIT). See NOTICE.md for full attribution.