Skip to content
budgetrouter: open-source Python library for LLM model routing, fallback, and budget caps

budgetrouter: open-source Python library for LLM model routing, fallback, and budget caps

First seen 24 Nov 2026, 03:48 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 24, 2026 at 03:49 UTC
  • •budgetrouter 0.2.0 is a dependency-free Python library for routing LLM requests across models, with fallback and budget caps.
  • •Provider failures are classified by kind, and auth errors abort by default rather than falling back to other providers.
  • •Retries and cross-provider auth failover are opt-in policy settings, not default behaviour.
  • •Every attempt is recorded on completion or error objects, and the library includes a FakeProvider for keyless testing.
  • •The articles describe a software release only and report no vulnerability, exploitation, or security incident.

A PyPI package named budgetrouter version 0.2.0 is published as a lightweight, dependency-free library for multi-model routing in LLM and agent applications. The library routes each request to a model based on caller-supplied tags or estimated input size, falls back to other providers when a call fails, and halts calls once estimated cumulative cost exceeds a cap. The stated motivations are cost overruns from looping or retrying agents and single provider errors ending an entire run. Failures are classified by kind (timeout, rate_limit, server_error, auth, and others), with auth errors aborting immediately by default and retries or cross-provider auth failover available as opt-in policy settings. Every attempt is recorded on the returned completion or error object. The package includes a FakeProvider for running the quickstart without API keys, and bundled adapters for OpenAI and Anthropic API shapes. The PyPI page and a GitHub repository under the samyang777 account carry the same README text, both dated 2026-11-24. The articles describe a software release and contain no reports of security vulnerabilities, exploitation, or affected victims.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Timeline

2026-11-24
budgetrouter 0.2.0 published to PyPI
The PyPI release page describes the library as lightweight multi-model routing with fallback and budget gating.
Pypi
2026-11-24
Source repository listed on GitHub
A GitHub repository under samyang777 carries the same project description, with a commit-specific tree page also dated 2026-11-24.
github.com

More articles in this cluster (4)

Following this threat?

Track Anthropic in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Does this library have a known vulnerability?
The articles contain no vulnerability reports, CVEs, or security advisories for budgetrouter.
Does budgetrouter need API keys to try it?
No. The quickstart runs against a built-in FakeProvider, and the library has no dependencies.
Does budgetrouter run my agent?
No. It is a library that drops into an existing application, such as one built with LangGraph, and does not execute the agent itself.