devops #workers-ai #cloudflare-workers #model-deprecation #wrangler #claude-api #change-control #grep

24 Workers AI Models Passed Their Nov 20 Cutoff: One Grep, One Config Change

Cloudflare moved the Workers AI retirement from Nov 15 to Nov 20. Here is a grep for the 24 retired model IDs, a one-place config pattern, and a 410 handler tested on mocks.

The Workers AI model catalog lost 24 models on Nov 20, 2026. Cloudflare’s changelog says those models “will stop returning responses” and that requests to them fail with an HTTP 410 Gone and error code 5028. Today is Nov 24. The date has passed.

The part I find easy to miss is the date itself. The first notice said Nov 15. Cloudflare then wrote that it “moved the deprecation date to November 20, 2026.” If your team planned around Nov 15, you may have read the notice, relaxed after the extension, and never looked again.

I did not call Cloudflare for this post, and I will not tell you how many apps broke or what your account sees. I have one question, and it is small: can someone on your team list, in one minute, every file that names an @cf/ model? If the answer is “probably,” this post is for you.

The grep below takes about a minute. The config change takes an afternoon. The third piece, a 410 handler, is what makes the next retirement a log line instead of a support ticket. And because the same shape is coming from Anthropic on Nov 30 and Jan 22, the script I wrote covers those dates too.

What Cloudflare actually said

I re-read the changelog entry dated Nov 5 and the Workers AI errors page this morning. Here is the part that matters.

ItemWhat the page says
Original dateNov 15, 2026
Current dateNov 20, 2026 (“moved the deprecation date”)
CountTwenty-four models (16 LLMs, 8 “other models”)
After the dateRequests “will fail with an HTTP 410 Gone error and error code 5028”
Error table row5028, HTTP 410, “${model} was deprecated on ${date}”
AdviceMove to newer models; check the pricing page

The “other models” are not chat models. They include a text-to-speech model, four image models, a speech-to-text model, a vision model and an embedding model. Each has a suggested replacement on the page. The embedding replacement, @cf/google/embeddinggemma-2, is marked “available soon,” so for that one the page gave you nowhere to move yet.

I compared the page against the list inside my script by machine: all 24 IDs match, and the only extra IDs on the page are the replacements. That check is why I trust the list below more than a copy I typed from memory.

Timeline: Nov 5 notice, Nov 15 original date, Nov 20 new date when Workers AI models stop answering, today Nov 24, Nov 30 Claude Sonnet 4.5 retires, Jan 22 Claude Opus 4.5 retires.

Two things this post does not claim. First, it does not claim a replacement behaves like the old model. Cloudflare lists replacements; whether your prompts, your token limits and your cost survive the swap is something you test. Second, it does not claim your app is down. A retired model ID only hurts if some code path still sends it.

Step 1: a grep that lists every Workers AI model you name

Start with the dumbest tool that works. This prints every @cf/ model ID in a repo, retired or not:

1grep -rnoE "@cf/[A-Za-z0-9._-]+/[A-Za-z0-9._-]+" . \
2  --exclude-dir={.git,node_modules,vendor,.venv,.wrangler}

Here is what it printed on a throwaway folder I built for this post. The folder has five small files that imitate common setups: a Worker, an embedding helper, a Python voice script, a .dev.vars file and a Wrangler config.

1./wrangler.jsonc:8:@cf/moonshotai/kimi-k2.6
2./wrangler.jsonc:9:@cf/meta/llama-3.1-8b-instruct
3./scripts/voice.py:3:@cf/myshell-ai/melotts
4./src/embed.ts:2:@cf/google/embeddinggemma-300m
5./src/embed.ts:3:@cf/black-forest-labs/flux-2-klein-9b
6./src/index.ts:3:@cf/meta/llama-3.1-8b-instruct-fp8
7./.dev.vars:1:@cf/qwen/qwq-32b

Seven IDs in five files, and one of them (.dev.vars) is a dotfile that many editors hide. Read that list by eye and you will probably miss which ones are retired. Notice the trap in lines 2 and 6: llama-3.1-8b-instruct and llama-3.1-8b-instruct-fp8 differ by a suffix. Only the -fp8 one is on Cloudflare’s list. I make no claim about the other; it is simply not on this notice.

Step 2: a script that knows the retired list

A grep cannot tell you which hits are on the notice, so the next script holds the 24 IDs and matches each one exactly. It matches whole IDs only, so llama-3.1-8b-instruct does not trigger the -fp8 entry. It also holds the two Claude retirements, because the same question applies. It uses only the Python standard library.

 1#!/usr/bin/env python3
 2"""List retired or retiring model IDs in a repo.
 3
 4Usage: python3 audit_model_ids.py [path] [--today YYYY-MM-DD]
 5Exit code 1 when a retired or retiring ID is found.
 6"""
 7import re
 8import sys
 9from datetime import date
10from pathlib import Path
11
12# Workers AI: Cloudflare changelog of 2026-11-05. Stopped answering 2026-11-20.
13WORKERS_AI = """
14@cf/deepseek-ai/deepseek-r1-distill-qwen-32b @cf/nvidia/nemotron-3-120b-a12b
15@cf/deepseek-ai/deepseek-v4-pro-0813 @cf/deepseek-ai/deepseek-v4-flash-0731
16@cf/qwen/qwq-32b @cf/qwen/qwen3-30b-a3b-fp8 @cf/moonshotai/kimi-k2.6
17@cf/moonshotai/kimi-k2.7-code @cf/zai-org/glm-5.2 @cf/zai-org/glm-5.3-flash
18@cf/meta-llama/llama-2-7b-chat-hf-lora @cf/google/gemma-2b-it-lora
19@cf/google/gemma-7b-it-lora @cf/meta/llama-3.1-8b-instruct-fp8
20@cf/meta/llama-3.2-1b-instruct @cf/meta/llama-3.2-3b-instruct
21@cf/myshell-ai/melotts @cf/stabilityai/stable-diffusion-xl-base-1.0
22@cf/runwayml/stable-diffusion-v1-5-inpainting
23@cf/bytedance/stable-diffusion-xl-lightning @cf/lykon/dreamshaper-8-lcm
24@cf/openai/whisper-tiny-en @cf/llava-hf/llava-1.5-7b-hf
25@cf/google/embeddinggemma-300m
26""".split()
27
28# (pattern, date it stops, label). Claude dates: model-deprecations page.
29DATED = [(re.escape(m) + r"(?![A-Za-z0-9._-])", date(2026, 11, 20), "Workers AI")
30         for m in WORKERS_AI]
31DATED += [
32    (r"claude-sonnet-4-5(?:-20250929)?(?![0-9])", date(2026, 11, 30), "Claude Sonnet 4.5"),
33    (r"claude-opus-4-5(?:-20251101)?(?![0-9])", date(2027, 1, 22), "Claude Opus 4.5"),
34]
35COMPILED = [(re.compile(p), d, label) for p, d, label in DATED]
36
37SKIP = {".git", "node_modules", "vendor", ".venv", "dist", "build", ".wrangler"}
38NAMES = {".dev.vars", ".env", "wrangler.toml", "wrangler.json", "wrangler.jsonc"}
39SUFFIXES = {".ts", ".js", ".mjs", ".py", ".php", ".json", ".jsonc", ".toml",
40            ".yaml", ".yml", ".env", ".sh", ".md"}
41
42
43def main(root: Path, today: date) -> int:
44    hits = 0
45    for p in sorted(root.rglob("*")):
46        if not p.is_file() or SKIP & set(p.parts):
47            continue
48        if p.name not in NAMES and p.suffix not in SUFFIXES:
49            continue
50        for n, line in enumerate(p.read_text(errors="ignore").splitlines(), 1):
51            for rx, when, label in COMPILED:
52                m = rx.search(line)
53                if not m:
54                    continue
55                days = (when - today).days
56                state = f"GONE since {when}" if days <= 0 else f"stops {when} ({days}d)"
57                print(f"{state:24} {p.relative_to(root)}:{n}  {m.group(0)}  [{label}]")
58                hits += 1
59    print(f"\n{hits} hit(s).")
60    return 1 if hits else 0
61
62
63if __name__ == "__main__":
64    args = [a for a in sys.argv[1:] if not a.startswith("--")]
65    today = date.today()
66    if "--today" in sys.argv:
67        today = date.fromisoformat(sys.argv[sys.argv.index("--today") + 1])
68        args = [a for a in args if a != sys.argv[sys.argv.index("--today") + 1]]
69    sys.exit(main(Path(args[0] if args else "."), today))

Run on the same folder with --today 2026-11-24, it prints:

1GONE since 2026-11-20    .dev.vars:1  @cf/qwen/qwq-32b  [Workers AI]
2GONE since 2026-11-20    scripts/voice.py:3  @cf/myshell-ai/melotts  [Workers AI]
3stops 2026-11-30 (6d)    scripts/voice.py:4  claude-sonnet-4-5-20250929  [Claude Sonnet 4.5]
4stops 2027-01-22 (59d)   scripts/voice.py:5  claude-opus-4-5  [Claude Opus 4.5]
5GONE since 2026-11-20    src/embed.ts:2  @cf/google/embeddinggemma-300m  [Workers AI]
6GONE since 2026-11-20    src/index.ts:3  @cf/meta/llama-3.1-8b-instruct-fp8  [Workers AI]
7GONE since 2026-11-20    wrangler.jsonc:8  @cf/moonshotai/kimi-k2.6  [Workers AI]
8
97 hit(s).

Five Workers AI hits, one Sonnet hit, one Opus hit. The non-fp8 line stayed quiet, as intended. The exit code is 1, so you can put it in CI and let it fail the build the next time a date lands.

The Claude rows come from Anthropic’s model-deprecations page, which I also re-read this morning. It says claude-sonnet-4-5-20250929 retires Nov 30, 2026, with claude-sonnet-5-5 as the replacement. It says that on Nov 23 Anthropic notified developers about Claude Opus 4.5: retirement Jan 22, 2027, deprecated model claude-opus-4-5-20251101, replacement claude-opus-5-5, and that “this retirement includes claude-opus-4-5, the same model’s ID without a date.” That is why the Opus pattern catches both spellings. The Sonnet side, including the settings that break after a swap, is covered in Two Claude API Calls Stop Working on Nov 30. I will not repeat it here.

What a grep cannot see

A script over a repo finds what the repo says. It cannot find these:

  • A model name stored in a database row or a KV entry, such as “which model for which customer.”
  • A value typed into a dashboard variable and never committed.
  • Another team’s Worker in the same Cloudflare account.
  • A no-code tool or a notebook that calls the API directly.

For those, I would search your request logs for the text 5028 or was deprecated on, since that is the wording on Cloudflare’s error page. If you keep no logs, the first user report is your log. Plan the next one differently, which is the next section.

Step 3: put the model ID in one place

When a model name is a string literal inside a function, a retirement means a code change in whichever function someone forgot. When the name is one config value, a retirement is one edit that a reviewer can read in ten seconds.

Here is the Wrangler config after the change. The binding is the same one the Workers AI docs show ("ai": { "binding": "AI" }, available as env.AI). The model IDs move into vars:

 1{
 2  "name": "support-bot",
 3  "main": "src/index.ts",
 4  "compatibility_date": "2026-11-01",
 5  "ai": { "binding": "AI" },
 6  "vars": {
 7    // Replacements come from the Nov 5 changelog. Test your prompts before you ship.
 8    "CHAT_MODEL": "@cf/zai-org/glm-5.3",
 9    "CHAT_MODEL_FALLBACK": "@cf/google/gemma-4-26b-a4b-it"
10  }
11}

I picked these because the changelog lists them: @cf/zai-org/glm-5.3 under “frontier model needs,” and @cf/google/gemma-4-26b-a4b-it under “smaller model needs.” I did not compare them. Quality, latency and cost are yours to test. I left the embedding model out of the config on purpose: its replacement was “available soon” when I read the page, so check the catalog before you point production at it.

Two details make this pattern pay off:

  1. Keep one name per job, not per call site. CHAT_MODEL is “the model for the reply endpoint.” If the summarizer and the reply endpoint share a model today but could diverge tomorrow, give them separate names.
  2. Keep a fallback, but a different one. A fallback to a model from the same notice is worse than no fallback. It looks safe in review.

Before: the model ID appears in five places across code, env files, scripts and a dashboard. After: one vars block in the Wrangler config feeds the code, with a fallback and a logged error.

Step 4: treat 410 as a named error

A config change finds the next retirement faster. A handler makes the failure readable when you miss it. The Workers AI docs show the call as env.AI.run(model, input), and the errors page gives the code, the status and the message text. I wrote one small wrapper around that call:

 1export interface Env {
 2  AI: { run(model: string, input: unknown): Promise<unknown> };
 3  CHAT_MODEL: string;
 4  CHAT_MODEL_FALLBACK?: string;
 5}
 6
 7export class ModelRetiredError extends Error {
 8  tried: string[];
 9  constructor(tried: string[]) {
10    super(`Workers AI model retired: ${tried.join(", ")}`);
11    this.tried = tried;
12  }
13}
14
15// Cloudflare's error table: 5028 / HTTP 410 / "<model> was deprecated on <date>".
16export function isRetired(err: unknown): boolean {
17  const e = err as { status?: number; code?: number | string; message?: string };
18  const text = String(e?.message ?? err);
19  return e?.status === 410 || Number(e?.code) === 5028 || /\b5028\b|was deprecated on/.test(text);
20}
21
22export async function runChat(env: Env, input: unknown): Promise<unknown> {
23  const models = [env.CHAT_MODEL, env.CHAT_MODEL_FALLBACK].filter(Boolean) as string[];
24  const tried: string[] = [];
25  for (const model of models) {
26    tried.push(model);
27    try {
28      return await env.AI.run(model, input);
29    } catch (err) {
30      if (!isRetired(err)) throw err; // 429, 400, timeouts: not our business here
31      console.error(JSON.stringify({ event: "workers_ai_model_retired", model }));
32    }
33  }
34  throw new ModelRetiredError(tried);
35}

The wrapper does three things. A retired model moves to the fallback and logs a structured line you can alert on. If every model is retired, it throws one error that names every model it tried. Any other error, such as a 429 with code 3040 from the errors table, is rethrown untouched, so a busy day never looks like a retirement.

I tested it with four cases in Node, against a fake env.AI that throws on purpose:

11 pass: fell back after 410/5028 -> @cf/old -> @cf/new
22 pass: ModelRetiredError names both models
33 pass: 429 rethrown, fallback not called
44 pass: message-only error recognised

This is the honest limit of that test. The fake errors have the shape I assumed: a status, a code, and the documented message text. I did not call Workers AI, so I have not seen what env.AI.run throws for a retired model on your account. That is why isRetired accepts any one of three signals, and why you should run one real call against a retired ID in a preview environment and read what comes back before you trust the check.

The same shape is coming from other places

Two dates on the Claude side are close enough to matter this week, and the same script and the same config pattern apply:

ProviderIDDateReplacement named by the provider
Cloudflare Workers AI24 @cf/ IDs (list above)Nov 20, 2026 (passed)See the changelog table
Anthropicclaude-sonnet-4-5-20250929 (and claude-sonnet-4-5)Nov 30, 2026claude-sonnet-5-5
Anthropicclaude-opus-4-5-20251101 (and claude-opus-4-5)Jan 22, 2027claude-opus-5-5

Anthropic’s page says it gives “at least 60 days’ notice before model retirement for publicly released models.” From Nov 23 to Jan 22 is 60 days, so the Opus window is the full length. The Sonnet window is nearly gone. Cloudflare’s entry is dated Nov 5, first said Nov 15, and was later moved to Nov 20. I would not plan around the idea that every provider gives you two months.

If you want a wider view of keeping a coding agent and its tools on a short leash, the checklist lives under /ai-agent-operations/, and the cost side of a Cloudflare account is in why a Cloudflare spending limit covers the whole account.

What this post is not saying

  • It is not saying your Worker is failing. I did not see your traffic.
  • It is not saying a replacement model is a drop-in. Cloudflare says to move to newer models “for the best token efficiency and throughput.” That is their statement, not my measurement.
  • It is not saying a fallback list is always right. A fallback that quietly answers with a weaker model can hide a retirement for weeks, which is why the wrapper logs every time it uses one.
  • It is not a measurement of how many apps use these models. I do not have that number.

What you should do Monday morning

  1. Run the grep from Step 1 in every repository that talks to Workers AI, including the ones owned by people who left. Read the .dev.vars file too.
  2. Run audit_model_ids.py and read every line. Treat “GONE” as a bug today and “stops” as a dated ticket with an owner.
  3. Search your Worker logs for 5028 and was deprecated on. If a hit shows up, you now know which route and which customer.
  4. Move each model name into one vars entry, one per job, and pick a fallback from outside the retired list.
  5. Add the runChat wrapper (or your own), and make workers_ai_model_retired an alert instead of a log you read later.
  6. Run one real call against a retired ID in a preview environment, and write down the exact error you get. Fix isRetired if it differs from what I assumed.
  7. Put the script in CI with a date list, so the next retirement fails a build before it fails a user.

Further reading

Source Cloudflare changelog: Planned model deprecations on Workers AI

Source Workers AI: Errors

Source Workers AI: Workers bindings

Source Claude Platform: Model deprecations

More tool notes are under /developer-tools/, and new readers should start at /start-here/.