
Alibaba’s Qwen 3.7 Max arrived on May 20 with a headline-grabbing claim: a 35-hour autonomous run, 1,158 tool calls, and a reported 10x speedup on a kernel optimization task. You should read those numbers carefully — they are Alibaba’s own, on Alibaba’s own chip, with no external reproduction yet. But the practical story underneath them is real: a genuine 1M-token context window, extended thinking baked in, and a native Anthropic Messages API — meaning you can drop it into your existing Claude Code setup by changing two environment variables.
Three Things to Know Upfront
Qwen 3.7 Max is Alibaba’s flagship reasoning model and the direct successor to Qwen 3.6 Max Preview. It ships with three properties that matter for working developers:
- 1M native context. Not a sliding-window approximation. One million tokens with reworked long-context attention that keeps retrieval quality consistent even at the end of the window. Full codebase ingestion is now a realistic use case.
- Anthropic Messages protocol support. The model accepts the Anthropic SDK wire format natively. If you use Claude Code or any tool built on the Anthropic Python or TypeScript SDK, switching to Qwen 3.7 Max requires no code changes — only new environment variables.
- Closed weights. No HuggingFace checkpoint, no GGUF, no local deployment path. API-only through Alibaba Cloud DashScope and third-party routers. Qwen 3.6 started this pattern; 3.7 Max continues it.
The Anthropic Drop-In: How It Actually Works
Alibaba’s Model Studio now exposes an Anthropic-compatible endpoint. To route Claude Code at Qwen 3.7 Max, set three environment variables before launching your session:
export ANTHROPIC_BASE_URL="https://dashscope-intl.aliyuncs.com/apps/anthropic"
export ANTHROPIC_MODEL="qwen3.7-max"
export ANTHROPIC_API_KEY="your-dashscope-key"
That is the entire migration. The endpoint accepts the same messages array, tool definitions, and system prompt format the Anthropic SDK sends. Alibaba’s official migration guide covers the full parameter mapping if you run into edge cases. The most likely gotcha: extended thinking mode is on by default for the Max tier, and it can increase output token counts significantly. Cap max_tokens to 2,048–4,096 per agent turn unless you specifically need long outputs.
What the 35-Hour Run Actually Means
Alibaba ran Qwen 3.7 Max on a kernel optimization task for 35 hours. The model made 1,158 tool calls, conducted 432 kernel evaluations, executed five architectural redesigns, and reportedly delivered a 10x geometric mean speedup over a reference Triton kernel — all on Alibaba’s Zhenwu M890 AI accelerator.
These are vendor-reported numbers. No external developer has reproduced them. The benchmark environment (Alibaba’s internal chip, Alibaba’s internal evaluation harness) limits what you can infer about performance on your infrastructure. Treat this as a strong signal of where Alibaba is investing — long-horizon, high-tool-density autonomous work — not as a number you can cite in a production decision.
The direction is still meaningful. Sustained 35-hour runs with 1,000+ tool calls require a model that does not drift, hallucinate tool schemas, or lose thread over extended context. That is worth watching regardless of the specific benchmark outcome.
Benchmarks: Where It Wins and Where It Does Not
On the Artificial Analysis Intelligence Index, Qwen 3.7 Max scores 56.6. GPT-5.5 leads at 60; Claude Opus 4.7 sits at 57. Qwen 3.7 Max’s strongest result is Terminal-Bench 2.0 at 69.7, which tests real terminal-based coding tasks — the closest analog to actual agent work. SWE-Pro comes in at 60.6, competitive with the field but not leading it. GPQA Diamond hits 92.4 for scientific reasoning.
One number that does not favor Qwen: output token efficiency. GPT-5.5 produces roughly 72% fewer output tokens on equivalent tasks. Extended thinking generates substantial internal reasoning tokens before the final answer. For high-volume agentic loops running thousands of turns, that consumption compounds. The 90% cached-input discount (cached tokens cost /bin/bash.25/M instead of .50/M on DashScope) helps if your agent reuses the same system prompt across turns — but it does not offset extended thinking output volume.
Pricing at a Glance
| Model | Input | Output | Cached Input |
|---|---|---|---|
| Qwen 3.7 Max (DashScope) | .50/M | .50/M | /bin/bash.25/M |
| Claude Opus 4.7 | ~5/M | ~5/M | ~.50/M |
| GPT-5.5 | ~0/M | ~0/M | — |
On paper, Qwen 3.7 Max is substantially cheaper than Opus 4.7 — especially on input. The 1M context window at those rates makes long-document and full-codebase ingestion economically viable in a way that was not practical with more expensive models. OpenRouter lists it at $1.25/$3.75 per million, even lower.
Who Should Test It Now
Qwen 3.7 Max is worth evaluating if you are running an Anthropic-SDK-based workflow that needs a larger context window or lower cost, and you do not have a compliance requirement for open weights or self-hosted models. The integration is trivially easy given the protocol compatibility. The model’s strongest suit is long-horizon coding in a terminal environment — if your agents are doing sequential tool calls over deep codebases, it belongs in your evaluation set.
Hold off if you need open weights for auditing or on-prem deployment — there is no local path today. Also hold off if your workload is output-token-heavy: extended thinking on by default and no first-class way to disable it means costs can surprise you. If you are optimizing for SWE-bench Pro performance, Opus 4.7 still leads on the harder variant.
The Anthropic-compatible endpoint is a smart competitive move by Alibaba. It removes the integration friction that has historically been the main reason developers stick with the incumbent provider even when the price-performance case for switching is clear. Qwen 3.7 Max makes the test trivially cheap to run. The question is whether the performance holds up outside Alibaba’s benchmarking environment — and that answer will come from the community over the next few weeks. The HackerNews thread is already doing the work; worth following.













