Repository navigation
Added
-
Prompt caching.
--cache-control keep(library:anthropicToOpenAI(body, { keepCacheControl: true })) passes Claude Code'scache_controlmarkers 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_tokensor DeepSeek'sprompt_cache_hit_tokens) come back to Anthropic callers ascache_read_input_tokens, withinput_tokenscounting the rest, as Anthropic does.anthropicUsageOfis 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:binarybuilds 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 withgh attestation verify <file> --repo Voightxyz/router