Alibaba has released Qwen4-35B-A3B under the Apache 2.0 license, positioning it as a practical solution for teams seeking to run local coding agents without recurring API fees. The model’s architecture allows a single GPU server to serve multiple developer agents simultaneously, keeping code within the internal network and eliminating per-token costs. This shift from cloud dependency to local infrastructure requires careful hardware planning and configuration, but offers significant control for engineering teams.

Hardware Requirements and Serving Options

The model is a Mixture of Experts (MoE) with 35B total parameters but only 3B active per token, utilizing 8 of 256 experts plus a shared expert. To serve this efficiently, teams can choose between Ollama and vLLM. Ollama requires a 36–37GB download and needs context length manually increased from the default 4,096 to at least 65,536 for agent workflows. vLLM, optimized for higher traffic, requires an H200 or Blackwell GPU for FP8 weights, consuming 39.7GB of GPU memory and 20.5GB of host RAM for n-gram tables. Unsloth’s GGUF variant offers a lighter footprint, potentially running on 18GB RAM if n-gram tables are offloaded to SSD.

Integrating with Coding Agents

Connecting existing tools like Claude Code or OpenCode is straightforward via environment variables. For Claude Code, setting ANTHROPIC_BASE_URL to the local Ollama server and ANTHROPIC_AUTH_TOKEN to 'ollama' redirects API calls to the local model. The source emphasizes that reasoning_effort should remain at 'high' for multi-turn agent tasks, as lower settings increase failure rates and total execution time due to shallow analysis. Sampling parameters must also be adjusted: temperature=1.0 and top_p=0.95 for reasoning mode, versus temperature=0.7 and top_p=0.80 for non-reasoning mode.

Performance Trade-offs and Cost Analysis

Qwen4-35B-A3B outperforms the dense Qwen3.8-27B in software engineering benchmarks, scoring 61.8 on DeepSWE v1.1 compared to 42.2. However, it lags behind the larger Qwen3.8-Flash-Next in long terminal sessions (21.2 vs. 24.2 on Terminal Bench 4.1) and frontier code tasks (16.1 vs. 27.1 on FrontierCode-AA 2.0). While the hosted Qwen Cloud API costs $0.11 per task (uncached) for the same model, the local server’s value lies in data privacy and unlimited throughput rather than pure cost savings, unless the hardware is already owned. A team running 200 tasks monthly pays roughly $22 for the API, but gains full control over latency and data security with local deployment.

Key Takeaways

  • Apache 2.0 license allows commercial use and local deployment of Qwen4-35B-A3B.
  • Ollama requires manual context length increase to 65k+ for effective agent use.
  • vLLM needs H200/Blackwell GPUs for FP8 weights, with 20.5GB host RAM for n-gram tables.
  • Set reasoning_effort to 'high' for multi-turn tasks to avoid increased failure rates.
  • Local deployment is best for privacy and throughput, not necessarily cost savings over cheap API rates.

The Bottom Line

This isn't a magic bullet for zero-cost AI, but it is a robust infrastructure play for teams that need to keep proprietary code on-prem. If you have an H200 gathering dust, this model makes it a viable local agent hub; otherwise, the API is still cheaper than buying hardware.