Cloudflare’s Clef aims to speed up decisions by AI agents
Terminator AI agents By What The Future Newsroom · October 2, 2026 · 3 min read

Cloudflare’s Clef aims to speed up decisions by AI agents

Cloudflare has launched Clef and Clef-flash, models that return probabilities for predefined choices instead of generating long responses. The company says they can help agents route tasks faster, with human review still available when needed.

Cloudflare has introduced Clef and Clef-flash, models designed to help AI agents make defined decisions quickly. They return classifications and probabilities rather than a free-form text answer, giving other software a result it can use to route work or take an action.

“Clef is designed to let AI agents make and route decisions with less human involvement, though human review remains available.”Why it scores Terminator

A compact answer that software can act on

Consider a customer support message. A decision model can assess how urgent it is and identify the team that should receive it. Another system can then route the ticket, escalate it, or pass it to a person.

This setup puts decision models between general-purpose language models and traditional classifiers. Language models can reason and use tools, but their responses may vary and can take longer. Traditional classifiers are quick, but a new category can require retraining. A decision model aims to offer a fixed set of choices with probabilities attached.

Cloudflare says agents can gather context, make decisions, and act programmatically, while still deferring to a human where needed. The company frames Clef as a way to reduce the need for human involvement in some agent decisions; the model's output can still be routed to a person when a task calls for review.

Speed is the main selling point

Cloudflare reports that Clef-flash has a median response time of 39 milliseconds, while Clef's is 209 milliseconds. The company compares those figures with just over 524 milliseconds for TypeSafe AI's Jev. The results come from Cloudflare's measurements across 43 benchmarks.

Both models run on Cloudflare's infrastructure, which the company says puts them near its edge data centers. Cloudflare also reports a website-classification example from its threat intelligence team: fetching, rendering, and classifying a site took 2.2 seconds with Clef, compared with 4.7 seconds for its fastest general-purpose language model.

In that example, Clef assigned the domain a 95 percent probability of being a fashion website and an 85 percent probability of being an online store. The probability that it was a phishing site was under one percent. The language model returned only two categories, while Clef provided probabilities for the classifications.

Image input and model foundations

Cloudflare says Clef can process text and images. It also gives Clef a 64,000-token context window, twice the size of Jev's, according to the company. Cloudflare reports that Clef leads on the Jev Decision Index in its own benchmarks, a comparison that should be read as the company's assessment.

Clef is based on Qwen3.8-27B, and Clef-flash uses the smaller Qwen3.5-9B. Cloudflare says it leaves the underlying models unchanged during training and adds components trained on synthetic data. Those components produce answer options and probabilities from the models' internal computations.

The training approach also uses Cloudflare's variant of Reinforcement Learning for Calibrated Decisions, or RLCD. The method trains a model to answer multiple questions about an input in one call, with the goal of making its probabilities reflect how often its answers are correct.

Fine-tuning and early uses

Cloudflare is also introducing a reinforcement learning service so customers can adapt Clef to their own tasks. Initially, a team of forward deployed engineers will work with customers on fine-tuning; Cloudflare says a self-service platform is planned for later.

Customers will be able to create datasets by logging requests through AI Gateway, evaluate them in containers used as an RL sandbox, and deploy fine-tuned models on Workers AI with a new trainer component. Cloudflare says it uses technology from Replicate, which it acquired in late 2025, to run custom models.

The company plans to use Clef internally to review abuse reports, sort support requests, and distinguish useful bots from harmful ones. Clef and Clef-flash are available on Hugging Face under the Apache-2.0 license. Their promise is faster, structured output for specific tasks; probabilities can guide what happens next, while the option to defer to a human remains part of the system.

← Back to the wire

Read next