America Banned Their Chips. China Built a World-Class AI Anyway — And Gave It Away for Free
Praveen Kumar

The Chip Ban That Backfired
The United States government banned Chinese companies from purchasing Nvidia's most powerful AI chips. The logic was straightforward — restrict access to the hardware required to train world-class AI models, and you slow down the competition.
Zhipu AI, a Beijing-based AI lab known internationally as Z.ai, was one of the companies caught in that restriction. They could not buy NVIDIA H100s or A100s. They could not access the same hardware stack that OpenAI, Anthropic, and Google used to train their flagship models.
So they used what they had. The underlying model — GLM-5.2 — is a 744 billion parameter mixture-of-experts model with 40 billion parameters active per token, trained on Huawei silicon.
The result surprised even the researchers who tested it.
What Is GLM-5.2 — And Why Is Everyone Talking About It
GLM-5.2 is the latest model from Zhipu AI, rolled out to its GLM Coding Plan members on June 13, 2026, with the open weights and release notes following three days later on June 16.
Three things make it significant. First, it is open weight — the model's parameters are published under an MIT license, which means you can download them, run them on your own hardware, fine-tune them, and inspect them. Second, it extends the usable context from 200K all the way to 1 million tokens, and Z.ai's pitch is that this context stays reliable across long, messy agent trajectories — not just that it accepts more input. Third — and most significantly — it is competitive with the best closed models in the world on coding benchmarks.
On SWE-Bench Pro, GLM-5.2 scores 62.1 percent against Claude Opus 4.8's 69.2 percent — within a few points of the frontier, and ahead of closed models from the previous generation.
But the number that shocked the AI security community was different. And smaller.
The Benchmark Nobody Expected
Semgrep — a cybersecurity company — ran a set of AI models against their IDOR (Insecure Direct Object Reference) vulnerability detection benchmark. IDOR vulnerabilities are a critical class of security bugs where an application exposes access to objects based on user input without proper authorization checks. Finding them requires reasoning across multiple files, through an authorization framework — exactly the kind of multi-step reasoning that separates capable models from weak ones.
The result surprised the researchers: GLM-5.2, an open-weight model from Zhipu AI, scored a 39% F1 on IDOR detection, beating Claude Code at 32% — at roughly $0.17 per vulnerability found.
The biggest surprise was in third place. GLM-5.2, with no scaffolding at all, beat Claude Code by seven points — 39% versus 32%. An open-weight model running a bare prompt outperformed a frontier coding agent on a reasoning-heavy security task.
To be fair about what this benchmark means and what it does not: beating Claude Code on one set of tests does not prove broad superiority in software engineering, agent reliability, or production readiness. Claude Fable 5 remains the stronger model on the hardest overall tasks. This was one benchmark, on one specific class of security task. But it was a real test, run by a credible security company, and the result was not close.
The cost difference is where the story becomes most relevant for Indian developers. Claude Opus 4.8 is priced at $5 input and $25 output per million tokens. GLM-5.2 is approximately 72% cheaper on input and 82% cheaper on output. The Semgrep test found each vulnerability for $0.17. At that price, running security scans across an entire codebase becomes economically viable in a way that was not possible with frontier closed models.
What Is ZCode — China's Answer to Claude Code
On July 1, 2026 — the same week the US government's export control directive on Anthropic's most advanced models was making headlines — Z.ai launched ZCode, a free desktop application for macOS, Windows, and Linux that positions itself as an agent-first coding environment built around GLM-5.2.
Z.ai's timing was surgical. On the same day the Trump administration ordered Anthropic's most advanced models blocked for foreign nationals, Zhipu announced the open-source release of GLM-5.2 with no usage restrictions.
ZCode is not just a model wrapped in a chat interface. The central abstraction is the /goal command. Type a goal — like "refactor authentication module to use JWT" — and ZCode plans the work, writes the code, runs tests, and keeps iterating until the goal is met or a stopping condition triggers. A status panel tracks elapsed time, token consumption, and iteration count throughout.
ZCode wins on pricing, cost per task, and the app experience. Claude Code wins the model and the ecosystem. That is the honest summary from developers who have tested both side by side. Not a crushing victory for either side — a genuine trade-off that depends on what you are building and what you are willing to accept.
The Pricing Reality for Indian Developers
This is where the conversation becomes directly relevant to Indian developers and startups working with tight budgets.
ZCode is free to download. The paid tiers unlock usage quota on Z.ai's hosted GLM-5.2 inference — with a Lite plan at approximately $16.20 per month. Compare that to Claude Code included in Anthropic's Pro plan at $20 per month, with the next tier jumping to $100 per month.
Cheaper at every tier, and much cheaper on a yearly billing plan. Z.ai's step after Lite is $72 with roughly five times as many prompts as the comparable Anthropic tier.
For an Indian developer running agentic coding sessions daily — generating code, reviewing security, refactoring large codebases — the monthly savings compound quickly. GLM-5.2 is approximately 82 percent cheaper on output tokens than Claude Opus 4.8. At heavy usage volumes, that is a real difference in monthly operating cost, not a rounding error.
There is also a creative middle path that most comparisons miss. The GLM Coding Plan runs inside Claude Code itself via environment variables. You can run the cheaper GLM-5.2 model inside Claude Code's harness — getting the cost advantage of GLM without giving up Claude Code's ecosystem, hooks, and plugins.
The Risk That Cannot Be Ignored
Any honest assessment of ZCode must address the data sovereignty question directly.
Every API call to Z.ai's cloud routes through Beijing-incorporated infrastructure subject to China's National Intelligence Law. China's National Intelligence Law, enacted in 2017, requires all Chinese organizations to cooperate with state intelligence requests on demand.
ZCode supports BYOK (bring your own key) for Claude, Gemini, and OpenAI models. This might look like a workaround for the data law concern. It is not. Even when using a non-GLM model via BYOK, your codebase, file structure, terminal output, and Git history are still processed by ZCode's orchestration layer on Z.ai's servers. BYOK changes which API generates the text. It does not change which server sees your code.
The mitigation that actually works is self-hosting. GLM-5.2 has MIT open weights, so you can self-host it and keep your code and its memory on your own machines. But the hardware requirement is significant — at 1.5TB VRAM, self-hosting is out of reach for most engineering organizations.
For Indian developers and startups: if you are working on personal projects, open-source code, or non-sensitive client work — the data sovereignty concern is manageable. If you are working on proprietary product code, client codebases with NDA obligations, or anything with financial or healthcare data — this is a real risk that requires a real conversation before adopting any Chinese-hosted AI tool.
What This Means for the Bigger Picture
Three weeks ago, a US government directive proved that access to the world's best coding model can vanish overnight. Today, a Chinese lab is shipping a free IDE, an open-source model trained on zero American chips, and a subscription plan that costs less per month than a single lunch in Manhattan.
The chip ban strategy assumed that restricting hardware access would slow down Chinese AI development. Instead, it accelerated the development of hardware-independent training techniques, more efficient model architectures, and open-source distribution strategies that bypass the need for controlled hardware entirely.
The AI coding agent market did not just become global this summer. It became a market where the fallback option might be better than the thing it is falling back from — and that changes the calculus for every engineering leader choosing a toolchain in the second half of 2026.
For Indian developers specifically, this creates a genuine and immediate choice. Claude Code remains the stronger ecosystem with the deeper tooling. GLM-5.2 and ZCode offer competitive performance at dramatically lower cost, with the freedom of MIT-licensed open weights — and the trade-off of routing your code through Chinese infrastructure on the hosted plan.
The right answer depends on what you are building, who owns the code, and what your compliance requirements are. But the choice now exists in a way it did not six months ago. That alone changes the market.
The Practical Recommendation
For Indian developers evaluating their 2026 AI coding stack:
Use Claude Code for proprietary product code, client work, and anything where data sovereignty matters. The ecosystem, the tooling depth, and the model quality on the hardest tasks justify the price for serious production work.
Evaluate GLM-5.2 inside Claude Code's harness for high-volume, non-sensitive tasks — code review, documentation generation, test writing — where the 82% cost advantage on output tokens adds up to real monthly savings.
Consider ZCode's free tier for personal projects, open-source contributions, and security scanning on your own codebases — where the cybersecurity benchmark advantage and the $0.17 per vulnerability cost make it genuinely compelling.
The chip ban created the conditions for a competitor. The competitor is here.
Published by APXTECK — AI Integration and Backend Development for Indian Developers and SMBs. We help Indian businesses build AI-powered platforms, integrate the right models for the right tasks, and ship production-ready systems without overpaying for the wrong stack. Talk to us →
Article Comments
You must be signed in to post comments.
Sign In to Join the Discussion →No comments approved yet. Be the first to share your thoughts!
About the Author
Praveen Kumar
Founder & Full-Stack Developer, APXTECK
Founder & Full-Stack Developer at APXTECK. He writes about technology, business, cybersecurity, AI, and topics that help readers understand complex subjects in a simple and practical way.
Related Insights

Mandatory Certificates and Registrations Every Indian Startup Needs in 2026

China Just Put a Data Center on the Ocean Floor. No Humans Allowed. Here Is Why This Changes Everything.

Ponytail: The Open-Source Skill That Makes Your AI Agent Code Like a Lazy Senior Developer

Spider-Man: Brand New Day — Everything We Know About Marvel's Biggest Spider-Man Reboot

The Paperclip Company: How Claude + OpenAI Are Building Businesses With Zero Employees

How AI Is Helping Small Businesses Save Time, Reduce Costs, and Grow Faster in 2026

How AI Is Transforming the Entertainment Industry in 2026: Movies, Music, Gaming & Streaming
