Scan your whole stack
From OX Research Newsroom
Are you using cascade-local?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.12.0
cascade-local was last scanned on 28 Nov 2026 at version 0.12.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.12.0 LATEST | 28 Nov 2026 | No rules fired |
Findings for v0.12.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.12.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Cascade is an open-source, local-first LLM runtime. It benchmarks your machine, runs a model locally when your hardware can handle the query, answers repeated questions from a semantic cache, and sends hard queries to a provider or server you chose — never anywhere you didn't configure.
query ─▶ ContextCompressor ─▶ SemanticCache ──hit──▶ answer (instant, offline)
│ miss
▼
SemanticRouter (trained classifier)
┌────────────────────┼─────────────────────┐
local cloud_byok self_hosted
Ollama or llama.cpp your own API key, a Cascade server you
(+ speculative decoding) any OpenAI-compatible run on a GPU box and
provider share with your team
└────────────────────┼─────────────────────┘
▼
confidence check ─▶ escalate if weak ─▶ cache write + decision log
Only local is on by default. Every other tier is opt-in, and every tier
degrades gracefully: if a remote tier is down, mis-keyed or over its quota,
the request is answered locally instead of failing.
Requirements: Python 3.10+ and Ollama installed and running.
pip install cascade-local
cascade setup
cascade setup does everything once, asking before it downloads or installs anything:
Then:
cascade chat # chat in the terminal
cascade ask "What is a hash table?"
cascade install --as-ollama # make `ollama run` and every Ollama app use Cascade
cascade stats # what Cascade has saved you (add --days 7 for the last week)
cascade cache list # see cached answers; `cascade cache forget --last` drops a wrong one
cascade doctor # check every piece and say how to fix what isn't working
Each answer ends with a status footer, e.g. [local | 9.8 tok/s | 2140ms | $0.0000].
The dollar figure is only ever non-zero for your own BYOK provider, and only if you
tell Cascade its prices.
From a source checkout instead: git clone https://github.com/SMaarij/Exocuda.git,
cd Exocuda, pip install -e ., then cascade setup.
cascade setup turns this on. By hand, the same thing is:
pip install "cascade-local[llamacpp]" --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
cascade config set model qwen2.5-coder # everything else below is automatic
With llama-cpp-python installed, Cascade picks its fastest setup by itself: the llama.cpp runner,
cost-aware drafting for the 7B (the draft length is chosen by what verifying it costs on your
machine, measured once on first load), and for qwen2.5 models a 0.5B model that answers easy
questions and also drafts for the 7B, loaded once. When the 0.5B is unsure of an answer (mean token probability
below small_model_min_confidence, default 0.75) the 7B answers instead: on 128 checked easy
questions that leaves 4 wrong answers, against 11 for the 0.5B alone and 6 for the 1.5B model
(BENCHMARK_REPORT Addendum 13). Any of it can be changed or switched off with cascade config set
(runner ollama, acceleration none, small_model off).
The first cascade ask starts a background model server on 127.0.0.1 and loads the models
(about a minute on a CPU laptop); after that, easy answers take about 2 seconds and repeated
questions come back from the cache in well under one. The server exits after 10 idle minutes
(server.idle_minutes) and frees the RAM; cascade stop frees it at once,
cascade config set server.auto off disables it.
cascade install --as-ollama
Cascade now starts whenever you log in and sits on Ollama's own port (11434), so ollama run,
Ollama-based apps and anything else that talks to Ollama use Cascade with no setting at all:
ollama run qwen2.5-coder "What is a hash table?" # answered by Cascade: cache, routing, drafting, less RAM
ollama run llama3.2:3b # any other model: passed to the real Ollama, unchanged
ollama pull / list / rm / ps # passed to the real Ollama
The real Ollama moves to port 11435, started by Cascade. Cascade answers its configured model family
(cascade config set model ...) and passes every other request through untouched. It loads no model
until a program asks for one and unloads them after server.idle_minutes (default 10), so an idle
machine holds nothing in RAM: measured 0.02 GB before the first request, 6.29 GB with the 7B, the
0.5B and the embedder loaded, 0.65 GB after the idle unload (BENCHMARK_REPORT Addendum 16).
On Windows cascade install --as-ollama also sets aside Ollama's own login shortcut and stops the
running Ollama app; on macOS and Linux it tells you the one step that needs your consent (removing
Ollama from Login Items, or sudo systemctl disable --now ollama). cascade uninstall removes
the login entry, stops Cascade and its Ollama, puts Ollama's shortcut back and restarts the Ollama
app. Plain cascade install (without --as-ollama) starts Cascade at login on port 8765 and leaves
Ollama alone.
cascade start
Cascade keeps running in the background and answers the Ollama and OpenAI APIs, so existing tools run on it unchanged and get its cache, small/big routing, speculative decoding and memory savings:
# Ollama CLI and Ollama-based apps: point them at Cascade in that terminal or app
OLLAMA_HOST=127.0.0.1:8765 ollama run qwen2.5-coder "What is a hash table?" # bash
$env:OLLAMA_HOST="127.0.0.1:8765"; ollama run qwen2.5-coder # PowerShell
# OpenAI SDK, LangChain, IDE assistants, Open WebUI ...: base URL + any key
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8765/v1", api_key="unused")
client.chat.completions.create(model="any", messages=[{"role": "user", "content": "Hi"}])
Set OLLAMA_HOST per terminal or app, not system-wide: the Ollama app itself listens on that
address. Cascade answers its configured model family (and names Ollama doesn't have, such as
gpt-4o from an OpenAI tool); other Ollama models, pulls and listings go to the real Ollama. After server.idle_minutes without a
request it unloads the models to free their RAM, stays reachable, and reloads them on the next
request; cascade stop ends it.
Models load with flash attention and a smaller compute batch, which saves 0.15 GB at 2k context and 0.40 GB at 8k for the 7B with identical output (Addendum 15).
Measured on a 4-core laptop: the 7B through Ollama alone holds 5.06 GB; Cascade holds 5.47 GB for the 7B plus the 0.5B model and the embedding model, and answers repeated questions in 0.7 s and easy ones in about 2 s (BENCHMARK_REPORT Addendum 14).
Every setting has a default you can change; nothing below is fixed in code.
cascade config set system_prompt "Answer in one sentence." # sent with every request
cascade config set system_prompt '""' # send none
cascade config set local.max_tokens 256 # longest local answer (default 512)
cascade config set cache.similarity_threshold 0.94 # stricter matching (default 0.92)
cascade config set cache.term_swap_guard lenient # strict (default) | lenient | off
cascade config set cache.uncached_tiers '["self_hosted"]' # never cache these tiers (default)
The default system_prompt asks for a direct answer sized to the question. Without one, a
3B model on a CPU spent 66 s writing 256 tokens to explain what an API is, versus 8 s and
33 tokens with it.
The cache matches questions by meaning, which on its own can't tell "boiling point in
Fahrenheit" from "boiling point in Celsius". So it also rejects a match when the new
question swaps in a term the stored answer never mentions, or has the same key words in a
different order ("5 kg to pounds" / "5 pounds to kg"). Questions the router sends to the
live-data tier, or that mention things like "today" or "current", are never cached.
python -m scripts.run_benchmark shows the trade-off of each cache setting on the
benchmark fixtures.
cloud_byok)Any OpenAI-compatible provider works (OpenAI, OpenRouter, Groq, Together, DeepSeek, a vLLM box...).
Keys are read from environment variables; cascade config refuses to store a key in the file.
cascade config set byok.base_url https://api.openai.com
cascade config set byok.model gpt-4o-mini
cascade config set byok.api_key_env OPENAI_API_KEY # then export OPENAI_API_KEY=...
cascade config set byok.input_price_per_1k 0.00015 # optional, for the cost footer
cascade config set byok.output_price_per_1k 0.0006
pip install -e ".[llamacpp]" --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
cascade config set runner llamacpp
cascade config set acceleration draft_model # or prompt_lookup, or none
cascade config set model qwen2.5-coder # 7B target
cascade config set draft_model qwen2.5-coder:0.5b # same tokenizer, ~14x smaller
The draft length adapts to how often drafts are accepted (draft.adaptive, on by default).
Every accelerated output can be checked against plain greedy decoding with
LlamaCppRunner.verify_greedy(), and the benchmark script does this for every output.
The llama.cpp runner loads the GGUF files Ollama already downloaded — nothing is fetched twice.
Whether acceleration actually helps depends on the machine; measure it first
(python scripts/benchmark_acceleration.py) — see Benchmarks.
self_hosted)Run a Cascade server on the machine with the GPU. It is OpenAI-compatible and sits in front of any OpenAI-compatible upstream — vLLM or SGLang for real throughput, Ollama works for trying it out. Each person gets their own API key and, optionally, a token quota.
On the GPU machine:
python -m cascade_local.gateway.serve create-user alice --quota 2000000 # omit --quota for unlimited
python -m cascade_local.gateway.serve create-key alice # prints csk_... once; only a hash is stored
CASCADE_UPSTREAM_URL=http://127.0.0.1:8001 CASCADE_UPSTREAM_MODEL=my-model \
python -m cascade_local.gateway.serve run --host 0.0.0.0 --port 8000
On each laptop:
cascade config set self_hosted.url http://gpu-box:8000 # then export CASCADE_SERVER_KEY=csk_...
Other server commands: revoke-key, usage USER, reset-usage USER. Settings are environment
variables: CASCADE_SERVER_DB, CASCADE_UPSTREAM_URL, CASCADE_UPSTREAM_MODEL,
CASCADE_UPSTREAM_API_KEY. The server speaks plain HTTP — put it behind HTTPS (Caddy, nginx,
Tailscale...) before exposing it beyond a trusted network.
| Component | Where | What it does |
|---|---|---|
| HardwareProfiler | engine/execution/hardware_profiler.py |
Detects CPU/RAM/GPU/disk and benchmarks real tok/s at several quant levels |
| ModelLadder | engine/execution/model_ladder.py |
Picks the highest quant rung the measured profile clears; steps down on OOM |
| Ollama runner | engine/execution/model_runner.py |
Ollama HTTP API: real token counts and decode timings, model kept resident, pulls only when missing |
| llama.cpp runner | engine/execution/llamacpp_runner.py |
In-process llama.cpp with prompt-lookup (Layer 1) and draft-model (Layer 3) speculative decoding |
| AccelerationEngine | engine/execution/acceleration_engine.py |
Layer fallback chain + acceptance-rate monitor; reports only what the runner measured |
| ContextCompressor, SemanticCache, SemanticRouter, Pipeline | engine/intelligence/ |
Relevance-ranked compression, exact + fuzzy cache, trained 3-way router, orchestration |
| CloudBYOKBackend | gateway/byok.py |
The cloud_byok tier, any OpenAI-compatible endpoint |
| SelfHostedBackend | gateway/backend.py |
Client for the self_hosted tier |
| Cascade server | gateway/api/app.py, gateway/store.py, gateway/serve.py |
OpenAI-compatible server: API-key auth, per-user token quotas (SQLite), streaming |
| CLI | cli/main.py |
init, ask, chat, stats, profile, doctor, config |
All components meet at shared/types.py (ExecutionBackend, BackendResult, PipelineResult, ...),
so each backend is swappable without touching the Pipeline.
local tier and the cache never send anything off your machine.~/.cascade/config.json.pip install -e ".[dev]"
pytest
No test needs a GPU, a running Ollama or the network. Live behaviour is covered by the scripts in
scripts/ and recorded in docs/BENCHMARK_REPORT.md.
Measured on the development laptop (CPU only), not estimated. Full details, methodology and raw
numbers: docs/BENCHMARK_REPORT.md.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.