Skip to content

Releases: cortexkit/anthropic-auth

v1.2.1

20 May 15:51

Choose a tag to compare

v1.2.0

20 May 05:00

Choose a tag to compare

What's Changed

  • fix(pi): guard empty base64 images, error tool_results, and sanitize tool IDs by @iceteaSA in #17
  • perf: accept optional storage in getUsableFallbackAccounts to avoid redundant disk reads by @iceteaSA in #19
  • perf: pass storage to tryFallbackAccounts to skip redundant disk read by @iceteaSA in #22
  • fix(relay): handle WS errors during optimistic response streaming by @iceteaSA in #24
  • feat(opencode): bundle deps with bun build for zero-dependency runtime by @iceteaSA in #21
  • perf(relay): defer KV state write, add health endpoint, harden POST handler by @iceteaSA in #25

New Contributors

Special thanks to @iceteaSA for lots of meaningful contributions. 🎉

Full Changelog: v1.1.3...v1.2.0

v1.1.3

19 May 09:50

Choose a tag to compare

Full Changelog: v1.1.2...v1.1.3

v1.1.2

19 May 04:10

Choose a tag to compare

What's Changed

  • Added /claude-cachekeep for hybrid Claude cache mode. It keeps in-memory clones of recently used rewritten requests and sends prewarm-safe max_tokens: 0 calls during the configured local time window.
  • Fixed OAuth refresh backoff after re-login by resetting retry severity when the refresh token rotates.
  • Reduced hidden slash-command reply overhead by bounding OpenCode prompt-context lookup to the most recent 100 messages instead of hydrating the full session.

Published packages

  • @cortexkit/anthropic-auth-core@1.1.2
  • @cortexkit/opencode-anthropic-auth@1.1.2
  • @cortexkit/pi-anthropic-auth@1.1.2

Full Changelog: v1.1.1...v1.1.2

v1.1.1

18 May 00:01

Choose a tag to compare

Full Changelog: v1.1.0...v1.1.1

v1.1.0

17 May 05:47

Choose a tag to compare

Highlights

  • Added /claude-fast on|off for supported Opus models, enabling Anthropic fast mode with persisted configuration.
  • Aligned Anthropic request headers/body shape more closely with Claude Code 2.1.141, including Claude CLI/Stainless headers, request-shape-aware beta selection, body key ordering, and bootstrap-backed account metadata.
  • Improved hybrid 1-hour cache mode with explicit anchors on the final stable system block, messages[0], messages[1], and a moving near-tail anchor for long sessions.

Relay reliability and performance

  • Made WebSocket relay startup more responsive with optimistic SSE responses, binary chunk frames, and deferred Worker checkpoint/KV work.
  • Added automatic WebSocket reconnect + one-time full_sync retry when the socket closes before upstream response bytes are emitted.
  • Added Worker-side body hash verification before forwarding reconstructed requests upstream.
  • Kept relay affinity/session headers internal so they are not forwarded to Anthropic.
  • Accepted both /v1/messages and /messages upstream paths for Anthropic SDK/custom-baseURL traffic.

Auth and compatibility fixes

  • Proactively refresh the main OpenCode Anthropic OAuth token in the background instead of waiting for the next Claude request after idle time.
  • Reverted OAuth refresh to the known-working platform JSON endpoint after live console-endpoint refreshes returned 429.
  • Fixed chunk-safe stripping of Claude-Code-style mcp_* tool names from streaming Anthropic responses.

Testing and release infrastructure

  • Added OpenCode e2e coverage using a real opencode serve subprocess, mock Anthropic server, and mock protocol-v2 WebSocket relay.
  • Added Miniflare/workerd coverage for the embedded Cloudflare Worker with KV and WebSocket upgrades.
  • Hardened npm Trusted Publishing by publishing each package in a separate OIDC job and skipping already-published package versions during recovery.

Packages

Published:

  • @cortexkit/anthropic-auth-core@1.1.0
  • @cortexkit/opencode-anthropic-auth@1.1.0
  • @cortexkit/pi-anthropic-auth@1.1.0

Full Changelog: v1.0.0...v1.1.0