Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

prepare rust 0.1.0 release

Raine Virta599f8f947bea
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ec5b49d..0d8514e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,62 +11,96 @@ env:
BIN_NAME: claude-code-proxy
jobs:
- build:
+ checks:
runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v5
+ - uses: dtolnay/rust-toolchain@stable
+ - name: Test
+ run: cargo test --locked
+
+ build:
+ needs: checks
strategy:
fail-fast: false
matrix:
include:
- - target: bun-darwin-arm64
+ - os: macos-14
+ target: aarch64-apple-darwin
platform: darwin-arm64
ext: ""
archive: tar.gz
- - target: bun-darwin-x64
+ - os: macos-13
+ target: x86_64-apple-darwin
platform: darwin-amd64
ext: ""
archive: tar.gz
- - target: bun-linux-x64
+ - os: ubuntu-latest
+ target: x86_64-unknown-linux-gnu
platform: linux-amd64
ext: ""
archive: tar.gz
- - target: bun-linux-arm64
+ - os: ubuntu-24.04-arm
+ target: aarch64-unknown-linux-gnu
platform: linux-arm64
ext: ""
archive: tar.gz
- - target: bun-windows-x64
+ - os: windows-latest
+ target: x86_64-pc-windows-msvc
platform: windows-amd64
ext: .exe
archive: zip
- - target: bun-windows-arm64
+ - os: windows-11-arm
+ target: aarch64-pc-windows-msvc
platform: windows-arm64
ext: .exe
archive: zip
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- - uses: oven-sh/setup-bun@v2
+ - uses: dtolnay/rust-toolchain@stable
with:
- bun-version: latest
- - name: Install dependencies
- run: bun install --frozen-lockfile
+ targets: ${{ matrix.target }}
- name: Build
+ run: |
+ cargo build --release --locked --target ${{ matrix.target }}
+ - name: Verify Unix binary
+ if: runner.os != 'Windows'
env:
VERSION: ${{ github.ref_name }}
run: |
- mkdir -p dist
- bun build ./src/cli.ts \
- --compile \
- --target=${{ matrix.target }} \
- --define BUILD_VERSION="\"${VERSION#v}\"" \
- --outfile dist/${BIN_NAME}${{ matrix.ext }}
- - name: Package
+ expected="claude-code-proxy ${VERSION#v}"
+ actual="$(target/${{ matrix.target }}/release/${BIN_NAME} --version)"
+ test "$actual" = "$expected"
+ - name: Verify Windows binary
+ if: runner.os == 'Windows'
+ shell: pwsh
+ env:
+ VERSION: ${{ github.ref_name }}
run: |
+ $expected = "claude-code-proxy $($env:VERSION.TrimStart('v'))"
+ $actual = & "target/${{ matrix.target }}/release/${env:BIN_NAME}.exe" --version
+ if ($actual -ne $expected) {
+ Write-Error "expected '$expected', got '$actual'"
+ }
+ - name: Package Unix
+ if: runner.os != 'Windows'
+ run: |
+ mkdir -p dist
+ cp "target/${{ matrix.target }}/release/${BIN_NAME}" "dist/${BIN_NAME}"
archive="${BIN_NAME}-${{ matrix.platform }}.${{ matrix.archive }}"
- if [[ "${{ matrix.archive }}" == "zip" ]]; then
- (cd dist && zip "../$archive" ${BIN_NAME}${{ matrix.ext }})
- else
- tar -C dist -czf "$archive" ${BIN_NAME}${{ matrix.ext }}
- fi
+ tar -C dist -czf "$archive" "${BIN_NAME}"
shasum -a 256 "$archive" > "${BIN_NAME}-${{ matrix.platform }}.sha256"
+ - name: Package Windows
+ if: runner.os == 'Windows'
+ shell: pwsh
+ run: |
+ New-Item -ItemType Directory -Force dist | Out-Null
+ Copy-Item "target/${{ matrix.target }}/release/${env:BIN_NAME}.exe" "dist/${env:BIN_NAME}.exe"
+ $archive = "${env:BIN_NAME}-${{ matrix.platform }}.${{ matrix.archive }}"
+ Compress-Archive -Path "dist/${env:BIN_NAME}.exe" -DestinationPath $archive -Force
+ $hash = (Get-FileHash -Algorithm SHA256 $archive).Hash.ToLower()
+ "$hash $archive" | Out-File -FilePath "${env:BIN_NAME}-${{ matrix.platform }}.sha256" -Encoding ascii
- uses: actions/upload-artifact@v5
with:
name: ${{ matrix.platform }}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 985a1a3..45df8d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,16 @@
## Unreleased
+## v0.1.0 (2026-06-28)
+
+- Ships the native Rust implementation as the release binary and removes the
+ copied TypeScript reference source from the branch.
+- Adds the default monitor TUI for `serve`, with session, active request,
+ recent request, and events panels.
+- Records failed proxy responses under the state directory `errors/` folder and
+ links them from `request_failed` log events for copyable diagnostics.
+- Adds stable session ordering, visible token throughput, and clearer request
+ error details in the monitor.
- Add end-to-end smoke coverage for Kimi chat-completions, Codex HTTP
Responses, and Codex WebSocket Responses through in-process mock upstreams
with isolated auth.
diff --git a/Cargo.lock b/Cargo.lock
index 52d1573..0cfe79e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -310,7 +310,7 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
[[package]]
name = "claude-code-proxy"
-version = "0.0.22"
+version = "0.1.0"
dependencies = [
"anyhow",
"assert_cmd",
diff --git a/Cargo.toml b/Cargo.toml
index d7751c6..79cc4bc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "claude-code-proxy"
-version = "0.0.22"
+version = "0.1.0"
description = "Anthropic-compatible proxy for Claude Code provider backends"
edition = "2024"
authors = ["Claude Code Proxy contributors"]
diff --git a/justfile b/justfile
index 5b65f3f..527905e 100644
--- a/justfile
+++ b/justfile
@@ -58,6 +58,6 @@ run *ARGS:
_release bump *ARGS:
@cargo-release {{bump}} {{ARGS}}
-# Release a new patch version
+# Release the current package version
release *ARGS:
- @just _release patch {{ARGS}}
+ @just _release current {{ARGS}}