---
title: Example Catalog
description: Broader catalog of cascadeflow examples across Python, integrations, TypeScript, and deployment patterns.
---

The complete index of cascadeflow examples across Python, TypeScript, integrations, and deployment. Every example links directly to the GitHub source.

## Start Here

| If you need... | Example | Docs page |
|---|---|---|
| First cascade setup | [basic_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/basic_usage.py) | [Basic Usage](/examples/basic-usage) |
| Budget enforcement | [basic_enforcement.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/basic_enforcement.py) | [Budget Enforcement](/examples/budget-enforcement) |
| Multi-agent with tools | [agentic_multi_agent.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/agentic_multi_agent.py) | [Multi-Agent](/examples/multi-agent) |
| LangChain integration | [langchain_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/langchain_harness.py) | [LangChain](/integrations/langchain) |
| Production patterns | [production_patterns.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/production_patterns.py) | [Enterprise Patterns](/examples/enterprise-patterns) |

## Python Examples

| Topic | Example |
|---|---|
| Basic cascade | [basic_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/basic_usage.py) |
| Batch processing | [batch_processing.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/batch_processing.py) |
| Cost tracking | [cost_tracking.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/cost_tracking.py) |
| Cost forecasting | [cost_forecasting_anomaly_detection.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/cost_forecasting_anomaly_detection.py) |
| Multi-provider | [multi_provider.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_provider.py) |
| Multi-step cascade | [multi_step_cascade.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_step_cascade.py) |
| Reasoning models | [reasoning_models.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/reasoning_models.py) |
| Guardrails | [guardrails_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/guardrails_usage.py) |
| Streaming text | [streaming_text.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/streaming_text.py) |
| Streaming tools | [streaming_tools.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/streaming_tools.py) |
| Tool execution | [tool_execution.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/tool_execution.py) |
| Multi-agent | [agentic_multi_agent.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/agentic_multi_agent.py) |
| User budgets | [user_budget_tracking.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/user_budget_tracking.py) |
| User profiles | [user_profile_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/user_profile_usage.py) |
| Profile DB | [profile_database_integration.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/profile_database_integration.py) |
| Custom cascade | [custom_cascade.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/custom_cascade.py) |
| Custom validation | [custom_validation.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/custom_validation.py) |
| Semantic quality | [semantic_quality_domain_detection.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/semantic_quality_domain_detection.py) |
| Rate limiting | [rate_limiting_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/rate_limiting_usage.py) |

## Deployment And Ops Examples

| Topic | Example |
|---|---|
| Production patterns | [production_patterns.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/production_patterns.py) |
| FastAPI | [fastapi_integration.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/fastapi_integration.py) |
| Gateway client (OpenAI) | [gateway_client_openai.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/gateway_client_openai.py) |
| Gateway client (Anthropic) | [gateway_client_anthropic.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/gateway_client_anthropic.py) |
| Gateway embeddings | [gateway_client_embeddings.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/gateway_client_embeddings.py) |
| Proxy service | [proxy_service_basic.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/proxy_service_basic.py) |
| Edge devices | [edge_device.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/edge_device.py) |
| vLLM example | [vllm_example.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/vllm_example.py) |
| Multi-instance Ollama | [multi_instance_ollama.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_instance_ollama.py) |
| Multi-instance vLLM | [multi_instance_vllm.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_instance_vllm.py) |

## Enforcement And Integrations

| Topic | Example |
|---|---|
| Basic enforcement | [examples/enforcement/basic_enforcement.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/basic_enforcement.py) |
| Stripe integration | [examples/enforcement/stripe_integration.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/stripe_integration.py) |
| OpenAI Agents SDK | [examples/integrations/openai_agents_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/openai_agents_harness.py) |
| LangChain harness | [examples/integrations/langchain_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/langchain_harness.py) |
| Google ADK | [examples/integrations/google_adk_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/google_adk_harness.py) |
| CrewAI | [examples/integrations/crewai_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/crewai_harness.py) |
| Local providers setup | [examples/integrations/local_providers_setup.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/local_providers_setup.py) |
| LiteLLM providers | [examples/integrations/litellm_providers.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/litellm_providers.py) |
| LiteLLM cost tracking | [examples/integrations/litellm_cost_tracking.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/litellm_cost_tracking.py) |
| OpenTelemetry and Grafana | [examples/integrations/opentelemetry_grafana.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/opentelemetry_grafana.py) |
| Paygentic | [examples/integrations/paygentic_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/paygentic_usage.py) |

## TypeScript Examples

| Area | Directory |
|---|---|
| Core Node.js examples | [packages/core/examples/nodejs](https://github.com/lemony-ai/cascadeflow/tree/main/packages/core/examples/nodejs) |
| Browser and edge examples | [packages/core/examples/browser](https://github.com/lemony-ai/cascadeflow/tree/main/packages/core/examples/browser) |
| LangChain TypeScript examples | [packages/langchain-cascadeflow/examples](https://github.com/lemony-ai/cascadeflow/tree/main/packages/langchain-cascadeflow/examples) |
| Vercel AI example app | [examples/vercel-ai-nextjs](https://github.com/lemony-ai/cascadeflow/tree/main/examples/vercel-ai-nextjs) |
