VernLLM

LLM fallback, no gateway

Working when we checked on .

Visit VernLLM

What is VernLLM?

VernLLM is an npm library (vern-llm) that adds resilience, observability, and control to LLM calls inside a developer's own process, with no gateway to host. It is for developers building applications on OpenAI, Anthropic, Gemini, Bedrock, and many other providers. Capabilities include fallback targets with circuit breakers, per-minute rate limiting, retry budgets, timeouts, cached calls, and extensions for logging, usage/cost tracking, routing, policy enforcement, guard/redaction, and hedging.

VernLLM pricing

Pricing model: Freemium

VernLLM pros

  • Falls over to a backup provider in-process with per-target circuit breakers
  • Retry budgets cap retries as a share of target traffic over a rolling window to stop retry storms
  • Judges response content, catching empty bodies, truncated JSON, and streams that error before first content
  • Rate limiting queues calls under requests-per-minute, token, and concurrency ceilings and reacts to 429s
  • Extensions add logger, usage/cost budgets, router, policy, guard redaction, and hedge with no third-party dependencies
  • Works with many providers including OpenAI, Anthropic, Gemini, Bedrock, Groq, Mistral, and Ollama

VernLLM cons

  • It is a Node.js/npm package, so it targets JavaScript/TypeScript stacks only
  • No pricing or paid plans are shown in the sources
  • Provider SDK retries must be disabled (maxRetries: 0) to avoid stacking on top of VernLLM retries

Frequently asked questions about VernLLM

What is VernLLM?

VernLLM is an LLM call framework delivered as an npm package that adds resilience, observability, and control to every LLM call, running inside your own process with no gateway to host.

Who is VernLLM for?

It is for developers building LLM applications who call providers like OpenAI, Anthropic, Gemini, or Bedrock and need fallbacks, rate limiting, retries, caching, and cost control.

How does VernLLM handle provider outages?

Each target has its own circuit breaker. Once the primary opens, calls skip it and go straight to the fallback. Recovery uses half-open trial calls, and user-caused errors like bad requests never trip the breaker.

How does VernLLM stop retry storms during an outage?

A retry budget caps retries at a share of each target's traffic over a rolling window. Retries use full jitter, honor Retry-After headers, and provider SDK retries should be set to maxRetries: 0 to avoid stacking.

Does VernLLM detect errors hidden inside successful responses?

Yes. An empty body fails, JSON cut off at max_tokens becomes a retryable response_truncated error, and streams that error before their first content chunk are retried or fall back. detectSoftFailure lets you flag other broken outputs.

How does VernLLM keep calls under provider rate limits?

A rateLimit setting like requestsPerMinute: 500 estimates tokens before each call, queues within request, token, and concurrency limits, reconciles with real usage, and shrinks the limit after or ahead of a 429.

What extensions does VernLLM offer?

Extensions include Logger (structured records and latency percentiles), Usage (cost and wasted-spend tracking with budgets), Router (rule-, health-, latency-, or cost-based ordering), Policy, Guard (labeling, redaction, blocking), and Hedge (racing slow calls to a next target).

What integrations are available?

Redis shares breaker, limit, budget, and cache state across instances; OpenTelemetry turns calls into traces and metrics; and AWS Bedrock connects through the AWS SDK including Bedrock guardrails.

How do I install VernLLM?

Install the vern-llm package via npm, pnpm, yarn, or bun (for example, npm install vern-llm) and configure it with adapters such as fromOpenAI or fromAnthropic.

Does VernLLM support caching?

Yes. A cachedCall method returns cached results without another API call, using a cacheKey and a TTL such as 3600 seconds.

Categories

Use cases

Alternatives to VernLLM

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z