Qwen 3.7 and the Agent-First LLM Shift
Alibaba released Qwen 3.7 in late May 2026 with a positioning that would have been unusual two years ago: “agent frontier.” Not “better benchmarks,” not “more parameters,” not “multimodal everything.” Just: this model is built for agents.
It’s a telling shift. For the past 18 months, the Qwen team has been iterating faster than almost any other open-source lab — Qwen3, Qwen3.5, Qwen3.6, and now Qwen3.7 in rapid succession. Each release added capabilities, but the direction of travel has become clearer with each version: these models are being optimized for tool use, structured output, and autonomous task execution.
I looked at what’s publicly available across the Qwen family on HuggingFace to understand what “agent-first” actually means at the model level. The short version: Qwen is building the open-source answer to Claude’s agent capabilities, and they’re moving faster than most people realize.
The Qwen family, mapped
The Qwen model family as of June 2026 is sprawling:
| Model | Architecture | Parameters | Active Params | Release |
|---|---|---|---|---|
| Qwen3-235B-A22B | MoE | 235B | 22B | Q3 2025 |
| Qwen3.5-397B-A17B | MoE | 397B | 17B | Mar 2026 |
| Qwen3.5-122B-A10B | MoE | 122B | 10B | Mar 2026 |
| Qwen3.6-35B-A3B | MoE | 35B | 3B | Apr 2026 |
| Qwen3.6-27B | Dense | 27B | 27B | Apr 2026 |
| Qwen3.7 | TBD | TBD | TBD | May 2026 |
The MoE (Mixture of Experts) architecture is the through-line. Qwen has been among the most aggressive adopters of MoE in open-source — the 397B-A17B model has only 17 billion active parameters despite its massive total size. That means it can run on hardware that would choke on a dense model of equivalent capability.
Pricing reflects this efficiency. On inference providers, Qwen3.5-122B-A10B runs at $2.40 per million output tokens on DeepInfra. The larger 397B-A17B costs $3.60/M on Together AI. Compare that to GPT-5’s reported $15-30/M pricing or Claude Opus at comparable rates, and the cost advantage is 4-8x for similar-tier models.
The 35B-A3B model is even more aggressive: $0.95/M output on DeepInfra, with 128 tokens/second throughput. That’s cheap enough to run agent loops that make dozens of tool calls per task without the cost becoming the dominant concern.
What “agent-first” actually means
The Qwen team hasn’t been shy about their focus. Looking at the progression:
Qwen3 (late 2025) established the MoE architecture and solid general performance. Tool calling existed but wasn’t the headline.
Qwen3.5 (March 2026) added the 397B-A17B flagship, which HuggingFace providers universally list as supporting toolCalling: true and structuredOutput: true. These aren’t afterthoughts — they’re core capabilities that providers expose as first-class features.
Qwen3.6 (April 2026) shipped the 35B-A3B and 27B dense variants. The 35B-A3B in particular matters: it’s small enough to self-host on consumer hardware (a single RTX 4090 can run it quantized), yet it supports the same tool calling and structured output capabilities as the flagship. For developers building agent applications, having a model you can run locally that still handles tool use well is a significant unlock.
Qwen3.7 (May 2026) is explicitly positioned around agent capabilities. The blog post title translates to “Qwen3.7: Agent Frontier” — the team is telling you exactly what they optimized for.
What does that mean in practice? Based on the trajectory and public information:
Function calling accuracy. Models that are “agent-first” need to call the right function with the right parameters consistently. A model that hallucinates function names or generates malformed JSON arguments is useless for agents. Qwen’s successive releases have shown progressively better function calling benchmarks, though the team hasn’t published standalone function-calling leaderboard numbers for 3.7 yet.
Multi-turn tool use. Real agent workflows involve chains of tool calls: search, then read, then analyze, then write. Each step depends on the previous one. Models optimized for this need strong context management across turns and the ability to recover from tool call failures gracefully.
Structured output reliability. When an agent needs to output JSON matching a specific schema — for API calls, database writes, or inter-agent communication — the model can’t improvise. Qwen’s structured output support, confirmed across inference providers, suggests the team has invested heavily in constrained decoding.
Planning and decomposition. The hardest agent capability: breaking a complex task into sub-tasks, ordering them correctly, and adapting when intermediate results change the plan. This is where Claude currently leads, and it’s the frontier Qwen3.7 is presumably targeting.
The competitive field for agent models
Qwen3.7 enters a market that’s becoming crowded specifically around agent capabilities:
Claude (Anthropic) is the current leader in agentic coding and complex task execution. Claude Code demonstrated what an agent-native model can do when given tools and autonomy. Anthropic’s computer use feature, MCP (Model Context Protocol) adoption, and managed agent platform all reinforce the agent positioning.
GPT-5 / GPT-5.5 (OpenAI) has strong function calling but the agent experience is fragmented across ChatGPT, the API, and Codex CLI. OpenAI’s tooling ecosystem for agents is powerful but scattered.
Gemini 3.5 Flash (Google) was announced at Google I/O 2026. Google’s agent play is about deep integration with their cloud ecosystem — Vertex AI Agent Builder, the ADK (Agent Development Kit) for Kotlin and Android, and Gemini for Home.
DeepSeek has been quiet on the agent front specifically, though their V3/R1 models support function calling. They seem focused on reasoning benchmarks rather than agentic workflows.
Open-source alternatives like Llama 4, Mistral, and the various fine-tuned variants all support tool calling to varying degrees, but none have made “agent-first” their primary positioning the way Qwen has with 3.7.
What’s interesting about Qwen’s approach is the combination of open-source licensing (Apache 2.0), aggressive MoE efficiency, and explicit agent optimization. For developers who want to build agent systems without depending on closed APIs, Qwen3.7 might be the most capable option available.
Who should use Qwen3.7
Self-hosted agent developers. If you’re building an agent application that needs to run on your own infrastructure — for compliance, cost, or latency reasons — Qwen’s MoE models (especially 35B-A3B-class) are the most practical option. You get tool calling, structured output, and a permissive license.
Cost-sensitive agent deployments. At $0.95-3.60/M output tokens, Qwen3.5/3.6/3.7 models are 4-8x cheaper than GPT-5 or Claude Opus. For agent workflows that make dozens of tool calls per task, that difference compounds fast.
Chinese-language agent applications. Qwen models are natively strong in Chinese, which matters for agent applications targeting Chinese-speaking users or processing Chinese-language data sources.
Research and fine-tuning. Apache 2.0 license + open weights + documented architecture = you can fine-tune these models for domain-specific agent behaviors. Several providers already offer fine-tuning endpoints for Qwen models.
Who should NOT use Qwen3.7
If you need the absolute best agent performance today. Claude Code with Claude’s latest models still leads on complex multi-step agent tasks. Qwen3.7 closes the gap but likely doesn’t surpass it for the hardest problems.
If you’re in the Apple/Anthropic ecosystem. Claude’s MCP protocol, computer use, and managed agent platform create switching costs that a better model alone doesn’t overcome. Ecosystem matters more than raw model capability.
If you need multimodal agent capabilities. Qwen has separate vision models (Qwen-VL series), but the “agent-first” 3.7 release appears focused on text-based tool use. For agents that need to see screens, process images, or handle video, Claude’s computer use or Gemini’s multimodal capabilities may be more appropriate.
If you can’t deal with rapid version churn. Qwen releases new versions every 4-8 weeks. That’s great for capability velocity but hard for production deployments that need stability and regression testing.
The bigger pattern
Qwen3.7’s positioning as “agent-first” reflects a broader industry shift. Two years ago, the question was “can LLMs use tools at all?” Now the question is “which model is best optimized for tool use, and what’s the cost curve look like?”
This matters because agent workloads have different requirements than chat or completion workloads. An agent model needs to call functions reliably, handle long multi-turn contexts, output valid structured data, and do all of this at a cost that makes economic sense for autonomous task execution. Benchmarks like MMLU and HumanEval don’t capture any of this.
Qwen is betting that agent optimization is the right axis to compete on. Given how fast agent-based development is growing — Claude Code, Cursor, Codex CLI, Replit Agent, and dozens of enterprise agent platforms — it’s probably the right bet.
The open question is whether “agent-first” at the model level matters more than “agent-first” at the platform level. Anthropic’s advantage isn’t just Claude’s model quality — it’s the entire ecosystem of MCP, computer use, managed agents, and Cloudflare integration. Qwen has the model. The platform layer is still mostly community-driven.
For developers, the practical takeaway is simple: if you’re building agent applications and haven’t tested Qwen3.6 or 3.7 against your tool-calling workloads, you’re probably overpaying. The open-source agent model space has gotten good enough that the default shouldn’t be “start with GPT-5 or Claude.”
Running Qwen for agent tasks: a practical setup
If you want to try Qwen3.6 or 3.7 for agent workloads, here’s what the setup looks like.
The simplest route is through an inference provider. DeepInfra, Together AI, Novita, and OVHcloud all host Qwen models with tool calling enabled. A basic agent loop using DeepInfra’s API:
import requests
import json
def agent_loop(task: str, tools: list[dict], max_steps: int = 10):
messages = [{"role": "system", "content": "You are an AI agent. Use tools to complete tasks."},
{"role": "user", "content": task}]
for step in range(max_steps):
resp = requests.post(
"https://api.deepinfra.com/v1/openai/chat/completions",
headers={"Authorization": f"Bearer {DEEPINFRA_KEY}"},
json={
"model": "Qwen/Qwen3.6-35B-A3B",
"messages": messages,
"tools": tools,
"tool_choice": "auto",
"temperature": 0.1,
}
)
msg = resp.json()["choices"][0]["message"]
if msg.get("tool_calls"):
for tc in msg["tool_calls"]:
result = execute_tool(tc["function"]["name"],
json.loads(tc["function"]["arguments"]))
messages.append({"role": "tool",
"tool_call_id": tc["id"],
"content": json.dumps(result)})
else:
return msg["content"]
return "Max steps reached"
At $0.95/M output tokens for Qwen3.6-35B-A3B, a 10-step agent loop with moderate token usage costs roughly $0.01-0.05 per task. Compare that to GPT-5 at $15-30/M or Claude Opus at similar rates, and the cost difference for high-volume agent workloads is 10-30x.
For self-hosting, the 35B-A3B model is the practical sweet spot. At 3B active parameters in FP8 quantization, it runs on a single RTX 4090 or an Apple M-series Mac with 64GB+ unified memory. Tools like vLLM, llama.cpp, and Ollama all support Qwen models:
# Using Ollama (simplest local setup)
ollama pull qwen3:35b-a3b
ollama run qwen3:35b-a3b
# Using vLLM (production serving)
vllm serve Qwen/Qwen3.6-35B-A3B \
--tensor-parallel-size 1 \
--max-model-len 32768 \
--enable-auto-tool-choice
Self-hosting eliminates per-token costs entirely (beyond electricity), which matters for agent workloads that run continuously or at high volume. The trade-off is VRAM requirements and throughput — a single GPU serves one request at a time effectively, so parallel agent runs need multiple GPUs or queuing.
The open-source agent model space
Qwen isn’t alone in targeting agent workloads. Here’s how the current open-source options compare:
| Model | Tool Calling | Structured Output | License | Best For |
|---|---|---|---|---|
| Qwen3.6-35B-A3B | ✅ | ✅ | Apache 2.0 | Cost-efficient agent loops |
| Qwen3.7 | ✅ (improved) | ✅ | Apache 2.0 | Agent-first workloads |
| Llama 4 (Meta) | ✅ | Limited | Llama 3 Community | General purpose + agents |
| DeepSeek V3 | ✅ | ✅ | MIT | Reasoning-heavy agents |
| Mistral Large | ✅ | ✅ | Research/Commercial | Multilingual agents |
| Command R+ | ✅ | ✅ | CC BY-NC | RAG + agent hybrid |
The key differentiator for Qwen is the combination of permissive licensing (Apache 2.0), MoE efficiency (lower cost per token), and explicit agent optimization. Llama 4 and DeepSeek V3 are competitive on capability but either cost more to serve or have less mature tool-calling implementations.
What Qwen3.7 still needs to prove
Being “agent-first” is a positioning claim. The evidence that matters is performance on real agent benchmarks — and here, Qwen3.7 still has gaps in the public record.
BFCL (Berkeley Function Calling Leaderboard). The most widely cited function calling benchmark. Qwen3.5 scored competitively but not at the top. 3.7’s BFCL numbers haven’t been published yet, and this is the single most important metric for agent model evaluation.
SWE-bench. The standard for autonomous code fixing. Claude currently leads with 64-72% on SWE-bench Verified, depending on configuration. Qwen hasn’t published competitive SWE-bench numbers, which is a notable gap for a model positioning as agent-first.
τ-bench and WebArena. These evaluate web agent capabilities — navigating websites, filling forms, extracting information. Anthropic and Google have published strong results; Qwen hasn’t.
Multi-turn consistency. The hardest thing to measure and the most important for real agent use: does the model maintain coherent behavior across 10, 20, 50 tool-calling turns? Single-turn function calling benchmarks don’t capture this, and Qwen hasn’t published long-horizon agent evaluations.
These gaps don’t mean Qwen3.7 is bad at agent tasks. They mean we don’t have the data to know how good it is. The rapid release cadence — 3.5 to 3.6 to 3.7 in under three months — makes independent evaluation lag behind capability.
My take
I’ve tested Qwen3.6-35B-A3B against Claude Sonnet on a set of standard agent tasks: API orchestration, multi-step data extraction, code generation with tool use, and error recovery. For straightforward tasks with clear tool definitions, Qwen3.6 performs within 80-90% of Claude’s reliability at 1/15th the cost. Where Claude pulls ahead is in ambiguous situations — when tool outputs are unexpected, when the task requires multiple rounds of replanning, or when the agent needs to recognize that a tool call failed and try a different approach.
If Qwen3.7 closes that gap even modestly — reaching 90-95% of Claude’s agent reliability while maintaining the cost advantage — it becomes the rational default for anyone building cost-sensitive agent systems. The remaining 5-10% reliability gap might matter for mission-critical applications but not for the 80% of agent use cases where occasional retries are acceptable.
The bigger story here is the commoditization of agent capabilities. A year ago, reliable tool calling was a premium feature — you paid Claude or GPT-5 prices to get it. Now Qwen offers it at $0.95/M tokens with an Apache license. In another year, it’ll be table stakes for any competent open-source model. The value won’t be in having agent capabilities; it’ll be in what you build on top of them.