What it is
GitHub READMEs do not reliably render repository MP4s with native controls, so
the video is presented as a clickable poster frame; it opens the generated
brag.mp4 directly.
How it works
One forward pass scores every option of every question, so a decision costs a single small request. The policy is fail-safe on purpose:
- When the
teamanswer names a tier, that tier wins, unless its confidence is belowmin_confidence(default 0.45), which escalates to frontier. - With no usable
teamanswer, theurgencyprobability routes: 0.5 or higher goes frontier. - Anything the router cannot parse escalates. It never silently picks the cheap tier without evidence.
Results
| Purpose | Choose an affordable or frontier completion tier before your app calls the model. |
| Interface | OpenAI-compatible proxy, Python client, async client, and CLI. |
| Decision model | Cloudflare Clef, using one joint forward pass. |
| Safety policy | Low confidence, urgent prompts, unknown answers, and parse failures escalate to frontier. |
| Evidence | Committed fixtures, reproducible local evaluation, and public Kaggle CPU/T4 runs. |
Try it
pip install clef-router
export CLEF_ACCOUNT_ID=your_cloudflare_account_id
export CLEF_API_TOKEN=your_cloudflare_api_token

