Releases: ampeco/CLIProxyAPI
v0.1.2-ampeco
v0.1.1-ampeco
Changes
Adds Patch 3 — OAuth access tokens (sk-ant-oat01-*) now use Authorization: Bearer … instead of x-api-key.
internal/runtime/executor/claude_executor.go (two call sites: PrepareRequest and applyClaudeHeaders):
detect the sk-ant-oat01- prefix and route those tokens via the Bearer header. Real sk-ant-api03-* API keys keep the existing x-api-key routing.
Three unit tests under internal/runtime/executor/claude_executor_test.go:
TestApplyClaudeHeaders_OAuthAccessTokenUsesBearerAuthTestApplyClaudeHeaders_ApiKeyStillUsesXApiKeyTestClaudeExecutor_PrepareRequest_OAuthAccessTokenUsesBearerAuth
README rewritten to describe only what each patch does.
Patch series (cumulative)
reasoningfield fallback (OpenAI→Claude response translation)cache_controlmarker strip (Claude→OpenAI request translation)- OAuth access tokens use
Authorization: Bearer …(Claude executor auth) — new
v0.1.0-ampeco — first tagged release of the ampeco fork
First tagged release of the ampeco maintained fork of router-for-me/CLIProxyAPI.
Patches on top of upstream commit 3a9fb378
- Patch 1 (
496152ee):reasoningfield fallback in OpenAI→Claude response translator. OpenRouter emitsreasoninginstead ofreasoning_content; the fallback fires only whenreasoning_contentis empty/absent. - Patch 2 (
944e6739):cache_controlmarker stripping in Claude→OpenAI request translator, mirroring CCR'sOpenrouterTransformer:17-29. - README (
5b14d12f): documents fork purpose, patch series, and monthly rebase cadence.
Both translator patches are strict-additive — they only fire when their condition is met, so providers that already work upstream continue to work without regression. See README for full rationale.
Deployment
This binary is deployed by the cooperator Ansible role roles/cliproxyapi/ to mm007 (see sc-988867).
Artifacts
CLIProxyAPI-darwin-arm64— macOS 12+ on Apple Silicon. Embeds version metadata via Go ldflags:Version=v0.1.0-ampeco Commit=52d10b06 BuildDate=2026-05-18T12:50:29Z.CLIProxyAPI-darwin-arm64.sha256— SHA-256 of the binary.
Verify after download:
shasum -a 256 -c CLIProxyAPI-darwin-arm64.sha256