# GLM-5.3-Flash with Claude Code: 3 Setup Methods

> Connect GLM-5.3-Flash to Claude Code three ways: OpenRouter, Z.ai, or Ollama. Get the exact settings, commands, setup checks, and privacy rules.

By Jonathan Ben Haim. Updated 2026-11-29. Source: https://jonathanai.io/blog/glm-5-3-flash-claude-code-guide

A few days ago, an anonymous model called `stealth/ox-alpha` appeared on OpenRouter. It was free, had a 1 million token context, and the community started guessing who built it. On August 26, Z.ai confirmed the model was theirs and released it as GLM-5.3-Flash.

**In short:** GLM-5.3-Flash is an [open-weight model](/blog/new-open-ai-models-guide) from Z.ai, released under the MIT license, with 320 billion total parameters and 18 billion active. You can connect it to Claude Code [through OpenRouter](/blog/free-openrouter-alternative-github-repos), directly through Z.ai's Anthropic-compatible endpoint, or through Ollama. This guide covers all three methods, with the exact settings and commands.

## Key takeaways

- GLM-5.3-Flash has 320 billion total parameters, 18 billion active, and a context window of 1,048,576 tokens.
- The launch price is $0.075 per million input tokens and $0.25 per million output tokens until September 9, 2026 (24:00 China time).
- After the promotion, the list price is $0.15 per million input tokens and $0.50 per million output tokens.
- Claude Code works with any endpoint that speaks the Anthropic Messages protocol.
- There are three ways to connect: OpenRouter, Z.ai directly, or Ollama.
- When you use OpenRouter, set `ANTHROPIC_API_KEY` to an explicitly empty string, not unset.

## What is GLM-5.3-Flash?

GLM-5.3-Flash is an open-weight model from Z.ai, also known as Zhipu AI in Beijing, the company behind the GLM model series. Z.ai says it outperforms GLM-5.2 on all benchmarks and gets close to Claude Opus 4.8 on coding and agent tasks.

On August 20, a model called `stealth/ox-alpha` appeared on OpenRouter. It was free, accepted text, images, and video, and had a 1 million token context. Within days it climbed to the most popular model of the week. The community guessed its origin from the tokenizer, error messages, and the video encoder. On August 26, Z.ai confirmed to Bloomberg that the model was its own, and released it the same day as GLM-5.3-Flash.

**Specs:**

- 320 billion total parameters, 18 billion active (Mixture of Experts).
- The first multimodal model in the GLM-5 series, with text, image, and video input.
- A hybrid attention architecture (sparse plus linear) that makes long-context runs cheaper.
- A context window of 1,048,576 tokens. Community needle tests worked up to about 934K.
- Output of up to 131,072 tokens.
- Reasoning is always on, with an effort level you can set to low, high, or max.
- Trained on a corpus of 30 trillion tokens.
- Open weights on Hugging Face under the MIT license, including GGUF builds for local use.

**Performance:**

Z.ai claims the model beats GLM-5.2 on all benchmarks and gets close to Claude Opus 4.8 on coding and agent tasks. In a community run of DeepSWE (113 tasks), it solved 58.4%. The community consensus is that it is strong inside agent harnesses like Claude Code and OpenCode, and ordinary in plain chat.

## How much does GLM-5.3-Flash cost?

The launch price is $0.075 per million input tokens, $0.015 per million cached input tokens, and $0.25 per million output tokens. This discount applies until September 9, 2026 (24:00 China time). After that, the list price is $0.15 input and $0.50 output per million tokens.

| Period | Input (per 1M tokens) | Cached input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|---|
| Launch promotion, through September 9, 2026 | $0.075 | $0.015 | $0.25 |
| List price after the promotion | $0.50 |

For comparison, Opus costs about 100 times more on input.

The free period for Ox Alpha ended when the model was exposed. The real story is the price. A model close to Opus level on coding, open under MIT, at a price that lets you run long agents without worrying about the bill. Chinese labs have released anonymous "stealth" models like this before, as a public load test ahead of launch.

## What happened with Claude's memory this week?

On August 25, Anthropic merged Claude's memory system across chat and Cowork, its [computer-use agent](/blog/5-ai-agents-that-control-your-computer) that launched earlier this year. Before this change, Cowork's memory was locked inside Cowork, and chat was separate. You had to re-explain the project every time you moved from planning to execution.

**What changed:**

1. **Shared memory:** What Claude learns in chat is available to Cowork when it runs a task in the cloud, and the reverse is also true. You can start research in chat, move to execution in Cowork, and skip the re-briefing.
2. **Real-time updates:** Memory updates during a conversation, not only at the end. If you say the deadline moved to September, the next conversation already knows.
3. **Full transparency:** Everything saved appears as a list of short files by topic in Memory settings. You can view, edit, and delete each file, and the change applies to future conversations.
4. **Sensitive topics:** Health, race, religion, politics, and gender identity are not saved by default. A new toggle, "include sensitive topics in memory," is available for people who are tired of repeating themselves. Claude tells you when this kind of information is saved.
5. **Never saved:** Government ID numbers, national insurance numbers, criminal records, and immigration status.

**Details to know:**

- Shared memory only works when Cowork runs in the cloud. A local session on your computer does not use memory.
- Memory is on by default on Free, Pro, and Max plans.
- On Team and Enterprise plans, the organization controls it.
- The update ties into the latest version of Claude for Chrome, where Cowork is available through the extension, and chats in the side panel go into history.
- The same week, Claude Desktop added an [Ollama integration](/blog/ollama-vs-lm-studio) for [local models](/blog/colibri-run-large-ai-model-locally).

## Why did a German broker open accounts to ChatGPT and Claude?

Scalable Capital, a German broker with more than 1 million clients and over 60 billion euros in assets, announced on August 25 that clients can use chatbots like ChatGPT and Claude to analyze their portfolio and place trades through the platform. The company describes this as a first step toward broader AI integration, with security measures around it.

This is one of the first clear cases of AI moving from giving information to taking action in a regulated sector. A chatbot that explains what is happening in the market is one thing. A system connected to an investment account is another. The open questions are verification, action permissions, and who is responsible when an agent buys the wrong thing.

Bill Gates also published a piece that week (Reuters, August 26). He said he wants to open a discussion with Xi Jinping about an international body to oversee AI, inspired by nuclear oversight mechanisms. Agents that move money are the kind of thing that pushes this discussion forward.

## What is Anthropic's $45 billion compute deal?

According to Bloomberg (via Reuters, August 26), Anthropic plans to pay about $45 billion to Nscale to rent compute. The agreement runs for six years and covers about 460 megawatts at a data center in West Virginia, running on NVIDIA's new Vera Rubin chips.

A second number came the same day. The Wall Street Journal reported that Anthropic estimates its total addressable market (TAM) at more than $30 trillion. The figure would be shown to investors ahead of a possible IPO. It is not a revenue forecast. It is a very broad definition of economic activity that can be done or automated with AI.

**Why it matters:** The models are the visible part. The economy is built behind contracts worth tens of billions for electricity, chips, and data centers. At this scale, the labs are no longer competing only for the existing software market. They are assuming AI will take over part of the work that people and traditional systems do today.

**More from that week:** Claude had another major outage on August 24. On August 21, Anthropic published plans for invisible watermarking under the EU AI Act.

## What are the Kimi K3 and MiniMax news?

According to Reuters (August 26), Moonshot AI of China is in early talks with Microsoft, Amazon, and Google to host its [Kimi K3 model](/blog/kimi-k3-full-guide) on Azure, AWS, and Google Cloud under revenue-sharing deals. If it closes, it would be one of the first major commercial partnerships of its kind between a Chinese AI company and US clouds. The open points are revenue sharing, data access, and usage tracking.

MiniMax reported 283.1% revenue growth in the first half of 2026, to $116.6 million. Reuters attributes this to demand for its models and platforms, in a market where Chinese companies compete mainly on price.

**The bigger picture:** The US-China AI race no longer splits into two separate ecosystems. A Chinese model on a US cloud, an open Chinese model that gets close to Opus, and a Chinese company that nearly quadrupled its revenue. China is not competing on "the smartest." It is competing on "good enough, at a tenth of the price."

**Other news worth knowing from this week:**

- **Google, Gemini Enterprise for Legal:** A version built for law firms and legal departments, with agents for contract analysis, legal research, citation checking, and regulatory tracking. It connects to Thomson Reuters. The sign: enterprise AI is splitting into verticals.
- **Apple, new Mac mini and Mac Studio:** Processors and memory aimed at AI workloads, at a time when more developers run models and agents locally. They connect directly to GLM-5.3-Flash in GGUF format.
- **Google A2A joins the AAIF:** On August 20, Google's A2A protocol moved under the Agentic AI Foundation of the Linux Foundation, alongside Anthropic's MCP. The group has more than 250 members, including AWS, Anthropic, Block, Cloudflare, Google, Microsoft, and OpenAI.
- **Nvidia and Perplexity:** The Information reports an equity investment worth more than $30 billion. Perplexity's annual revenue passed $750 million, up from under $250 million at the start of the year.
- **Hugging Face:**
