Skip to content

v0.1.3

Latest

Choose a tag to compare

@Seenfinity Seenfinity released this 29 Nov 18:47
· 6 commits to main since this release

Added

  • Prompt caching. --cache-control keep (library: anthropicToOpenAI(body, { keepCacheControl: true })) passes Claude Code's cache_control markers on to upstreams that read them, as {"type": "ephemeral"} on the OpenAI text parts of the marked system, text and tool-result blocks, at most 4. Default unchanged: dropped.

  • Cached prompt tokens reported by the upstream (OpenAI's cached_tokens or DeepSeek's prompt_cache_hit_tokens) come back to Anthropic callers as cache_read_input_tokens, with input_tokens counting the rest, as Anthropic does. anthropicUsageOf is exported.

  • Container image ghcr.io/voightxyz/router (linux/amd64 and linux/arm64), built from this repository on every release, running as a non-root user with a health check.

  • Single-file binaries for Linux (x64, arm64), macOS (arm64, x64) and Windows (x64) on every release, built with Node's single executable applications. Not signed by Apple or Microsoft. npm run build:binary builds one for the current machine.

  • Every release carries SHA256SUMS, a CycloneDX SBOM and build provenance attestations for the binaries and the image.

  • OpenSSF Scorecard analysis, with its badge in the README.

  • voight-check (python/): a Python command (3.10+), standard library only, that tells whether a model behind any OpenAI-compatible endpoint is ready for coding agents (tool calls repeated and validated against the schema, tool results, tool calls in streams, parallel calls, JSON output, long context, prompt caching).

Install

  • npm: npx @voightxyz/router@0.1.3
  • Container: docker run --rm -p 4000:4000 ghcr.io/voightxyz/router:0.1.3 --upstream <url> --model <id>
  • Binaries: download below, check them against SHA256SUMS, and verify the build with gh attestation verify <file> --repo Voightxyz/router