# Cloudflare's Auto Router Rates Each Request for Stakes, from the Most Recent Turns

DevFeed: [Cloudflare's Auto Router Rates Each Request for Stakes, from the Most Recent Turns](<https://devfeed.tech/articles/cloudflare-s-auto-router-rates-each-request-for-stakes-from-the-most-recent-turns-100407.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/10/cloudflare-auto-router/>)

Author: Steef-Jan Wiggers

Published: 2026-10-26T10:20:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [Model Routing](<https://devfeed.tech/topics/model-routing.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [LLM observability](<https://devfeed.tech/topics/llm-observability.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-gateway](<https://devfeed.tech/tags/ai-gateway.md>), [ai-ml-data-engineering](<https://devfeed.tech/tags/ai-ml-data-engineering.md>), [architecture-design](<https://devfeed.tech/tags/architecture-design.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [beta](<https://devfeed.tech/tags/beta.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-opus](<https://devfeed.tech/tags/claude-opus.md>), [claude-opus-5](<https://devfeed.tech/tags/claude-opus-5.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-auto-router](<https://devfeed.tech/tags/cloudflare-auto-router.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [context](<https://devfeed.tech/tags/context.md>), [cost](<https://devfeed.tech/tags/cost.md>), [development](<https://devfeed.tech/tags/development.md>), [devops](<https://devfeed.tech/tags/devops.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [ml-data-engineering](<https://devfeed.tech/tags/ml-data-engineering.md>), [model](<https://devfeed.tech/tags/model.md>), [news](<https://devfeed.tech/tags/news.md>), [opus](<https://devfeed.tech/tags/opus.md>), [opus-5](<https://devfeed.tech/tags/opus-5.md>), [opus-5-5](<https://devfeed.tech/tags/opus-5-5.md>), [points](<https://devfeed.tech/tags/points.md>), [request](<https://devfeed.tech/tags/request.md>), [router](<https://devfeed.tech/tags/router.md>)

## AI overview

Cloudflare's Auto Router beta selects a model per request through AI Gateway: it filters eligible models, classifies requests across 14 task categories and rates complexity, ambiguity, stakes, and dependence on prior context, then balances expected quality against an adaptive cost penalty. In Cloudflare's benchmark of 97 tasks, it scored ten points below Claude Opus 5.5 on success rate at roughly one third the spend; teams must weigh that reliability gap against cost. Classification uses only the newest turns, capped at 8 KiB, raising concern that an earlier risk signal may be missed later in a long agent session. Teams can restrict eligible models or providers with request headers, and routing metadata records the choice. Session IDs support prompt-cache reuse; switching models without one can lose that benefit, while a context-length-based penalty discourages switching. The excerpt also notes that benchmark baselines may be outside the default model pool, weights require manual updates as models change, WebSockets are unsupported, beta pricing is free with later pricing unstated, and cloudflare/auto-best is planned to prioritize expected quality without a cost tradeoff.

## Source excerpt

Cloudflare has released Auto Router in public beta through AI Gateway, picking a model per request from a classifier that scores complexity, ambiguity, stakes and context dependence. Cloudflare's own benchmark puts it ten points below Claude Opus 5.5 on success rate at a third of the cost, and practitioners have questioned how stakes survive a long agent session. By Steef-Jan Wiggers