Skip to content

Provider cost-arbitrage router & budget governance #893

Closed

Description

@AmitoVrito

Strategic bet

We already have CostQualityRouter / cost_router. Extend it into a full FinOps layer for LLM spend — the pitch "cut your LLM bill without changing code" is a top adoption driver, and with 35+ providers we're uniquely positioned to arbitrage price/latency/quality in real time.

Scope

  • Live price table per provider/model (tokens in/out, cached) + latency SLAs; pluggable/overridable
  • Arbitrage routing: cheapest provider meeting a quality/latency floor for the request class
  • Per-tenant / per-key budgets with hard caps + soft alerts; spend attribution
  • Fallback chains on rate-limit / outage (compose with existing fallback_chain)
  • Prometheus synapsekit_cost_usd_total already exists → add budget-remaining + arbitrage-savings gauges
  • Optional carbon estimate per provider/region

Acceptance

  • Simulation harness: replay a trace, show $ saved vs always-best-model at equal quality (benchmark gate, agent-swarm-market-gate style)
  • Docs: "cut LLM cost 40% in one line" guide

Activity

  1. added
    enhancement
    epic
    on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepic

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions