{"adoption": {"forks": 912, "observed_at": "2026-08-28T04:08:31.678750+00:00", "stars": 3980}, "canonical_url": "https://ross.abutalabs.com/products/cascadeflow", "card": {"archived": false, "artifact_type": "library", "description": "Cascading runtime for AI agents. Optimize cost, latency, quality, and policy decisions inside the agent loop.", "domain": ["large-language-models", "developer-tools", "artificial-intelligence"], "enriched": true, "function": ["agent-framework", "llm-inference", "monitoring", "rate-limiting", "middleware"], "health_score": 96, "homepage": "https://cascadeflow.ai", "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["lemony-ai/cascadeflow"], "name": "lemony-ai/cascadeflow", "platform": ["python", "cross-platform", "cli"], "pushed_at": "2026-08-06T19:29:00+00:00", "repo": "lemony-ai/cascadeflow", "stars": 3980, "tags": ["model-cascading", "cost-optimization", "budget-enforcement", "agent-runtime", "llm-routing", "policy-enforcement", "langchain", "openai", "anthropic", "typescript-sdk", "ai-agents", "nodejs"], "topics": ["agent", "ai", "anthropic", "api", "budgets", "claude", "cost-optimization", "gpt", "huggingface", "llm", "n8n", "ollama", "openai", "python", "together-ai", "typescript", "vllm", "cost-transparency", "model-cascading", "google-adk"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/cascadeflow", "repo": "lemony-ai/cascadeflow", "role": "main", "score": 75}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:31.678750+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:24:17.180999+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "d49a84e8bed45c8c5f938ff40267fe532e6cc1a26e867007664eef4b255e9960", "fetched_at": "2026-08-28T04:08:31.678750+00:00", "kind": "readme", "missing": false, "url": "https://github.com/lemony-ai/cascadeflow"}, {"content_hash": "6fb3e5b29946dfcc257190655a9797970f0bef5d47fff997174717398bdd1e96", "fetched_at": "2026-08-29T09:17:38.776726+00:00", "kind": "homepage", "missing": false, "url": "https://cascadeflow.ai"}, {"content_hash": "69379877732aabf2ccf7d8eaa4ed10d4e644ed681467e4a22c590b3c5cf5b5fa", "fetched_at": "2026-08-29T09:17:38.786062+00:00", "kind": "site_page", "missing": false, "url": "https://docs.cascadeflow.ai"}, {"content_hash": "759684842be7ceb51d4feeb2fd126f6c68cfd7a10b8e8f6c631e67adccc91b33", "fetched_at": "2026-08-29T09:17:38.787991+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cascadeflow/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 96, "longevity": 22, "rhythm": 77}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 313, "days_push": 27, "days_rel": 153, "gap_med": 7, "n_releases_24m": 12}, "score": 75, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}