hyperinfer-client
The HyperInfer data plane client library. A distributed gateway node that handles direct LLM calls, local routing, caching, rate limiting, telemetry, and traffic mirroring — without proxy latency.
Features
- Direct LLM calls — no proxy hop, sub-millisecond routing overhead
- Local routing — model alias resolution and provider inference
- Response caching — Redis-backed exact-match cache with configurable TTL
- Rate limiting — distributed GCRA token bucket + sliding window counters
- Telemetry — usage tracking via Redis Streams, OpenTelemetry, Langfuse
- Traffic mirroring — probabilistic shadow requests to secondary models
- Config sync — live configuration updates via Redis Pub/Sub
Usage
use HyperInferClient;
async
Feature Flags
openai— OpenAI provider support (default)anthropic— Anthropic provider support (default)telemetry— OpenTelemetry integrationcache— Redis response caching
License
GNU Affero General Public License v3.0 (AGPL-3.0-only)