Ross ROSS = Recommend OSS · open-source software intelligence for agents

lemony-ai/cascadeflow

Cascading runtime for AI agents. Optimize cost, latency, quality, and policy decisions inside the agent loop. observed · 2026-08-28

github.com/lemony-ai/cascadeflow · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

75/100

  • Activity 96
  • Release rhythm 77
  • Longevity 22
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 7
  • age_days: 313
  • days_rel: 153
  • days_push: 27
  • n_releases_24m: 12

Full methodology

Adoption not part of the score

3980 stars · 912 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Cascadeflow is an open-source agent runtime intelligence layer (Python and TypeScript SDKs) that sits inside the AI agent loop to observe, score, and enforce decisions on every model call, tool call, and sub-agent handoff. It optimizes cost, latency, quality, budget, compliance, and energy in real time with sub-5ms overhead, supporting 17+ LLM providers and frameworks like LangChain, OpenAI Agents SDK, CrewAI, Vercel AI, and n8n.

Use cases

  • reduce LLM costs in agent workflows by cascading to cheaper models
  • enforce spending budgets on AI agent runs
  • route model calls based on cost, latency, and quality tradeoffs
  • add policy and compliance enforcement to agent execution
  • audit and track every step of an AI agent loop
  • switch models mid-run when predicted cost exceeds thresholds
  • block unsafe tool calls in autonomous agents

When to choose

  • you run multi-step agents and need per-step cost/quality governance
  • you want model cascading to cut LLM spend without losing quality
  • you need in-process enforcement with minimal latency overhead instead of an external proxy
  • you use LangChain, OpenAI Agents SDK, CrewAI, or n8n and want drop-in runtime controls

When to avoid

  • you only need simple request-level model routing without agent context
  • your stack has no supported SDK or agent framework integration
  • you need a hosted managed gateway rather than an in-process library
  • your project is not LLM/agent-based

Facets

library · maturity active

agent-framework llm-inference monitoring rate-limiting middleware large-language-models developer-tools artificial-intelligence python cross-platform cli model-cascading cost-optimization budget-enforcement agent-runtime llm-routing policy-enforcement langchain openai anthropic typescript-sdk ai-agents nodejs

4 sources

Member repositories

RepositoryRoleHealth v2
lemony-ai/cascadeflowmain75

For agents

markdown · JSON · MCP: product_card(name="lemony-ai/cascadeflow")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem