Skip to content

ypollak2/llm-router

v4.0.5 Feature

This release adds 2 notable features for engineering teams evaluating rollout.

Published 1mo LLM Frameworks
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai-routing anthropic claude claude-code cost-optimization gemini
+7 more
litellm llm llm-router mcp-server model-router ollama openai

Summary

AI summary

Fixed CI hangs caused by aiosqlite blocking Python shutdown.

Full changelog

What's new

  • CI hang fix: pytest was hanging after all tests passed due to aiosqlite's non-daemon worker thread blocking Python shutdown. CI now runs pytest in the background, polls for natural exit up to 150s, and falls back to reading JUnit XML (--junit-xml) to determine pass/fail — resolving the hang without hiding failures.
  • Test isolation fix: _run_hook in enforcement tests now strips LLM_ROUTER_ENFORCE from the inherited shell environment so tests are deterministic regardless of developer's local env overrides.
  • Session-scoped event loops: asyncio_default_fixture_loop_scope = "session" added to pytest config to reduce event loop churn between async tests.

Upgrade

```bash
pip install --upgrade claude-code-llm-router && llm-router install
```

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track ypollak2/llm-router

Get notified when new releases ship.

Sign up free

About ypollak2/llm-router

Subscription-aware LLM router for Claude Code. Routes tasks to 20+ providers (OpenAI, Gemini, Groq, Ollama, Codex) based on complexity classification, Claude subscription pressure, and cost. Free tasks stay on Claude subscription; expensive tasks fall back to the cheapest capable model. Includes 30 MCP tools, 6 auto-routing hooks, semantic dedup cache, prompt caching, daily spend cap, and a live web dashboard.

All releases →

Related context

Earlier breaking changes

  • v9.2.0 Changes auto‑route directive from advisory "DO NOT SKIP" to hard constraint with explicit blocked tools list.
  • v9.2.0 Breaks permanent downgrade of enforcement after first Edit/Write; v13 now requires per‑turn routing.

Beta — feedback welcome: [email protected]