Guide
How to connect Claude Code to Qwen and GLM, step by step
Claude Code is one of the best terminal agents, but it does not have to run on Claude models. In compatible mode it works with Qwen and GLM, with no subscription limits and no VPN.
Tenzo Cloud team2 min read
How it works
Claude Code sends requests to the address in ANTHROPIC_BASE_URL. Point it at Tenzo Cloud and the requests come to us while the chosen model answers. The interface, commands and agent features stay the same.
Setup
Create a key
Sign up at Tenzo Cloud and create a key under API keys. The first 3 hours are free.
Set the variables
In a terminal in your project folder, set the address, key and model.
export ANTHROPIC_BASE_URL=https://tenzo-cloud.com export ANTHROPIC_AUTH_TOKEN=tc-your-key export ANTHROPIC_MODEL=glm-5.3 export ANTHROPIC_SMALL_FAST_MODEL=glm-5.3 claudeMake it permanent
Add the same values to the env block of ~/.claude/settings.json so you do not set them in every terminal.
Which model to pick
| Task | Model | id |
|---|---|---|
| Agentic coding, tests, refactoring | GLM 5.3 | glm-5.3 |
| Large repositories, UI screenshots | Qwen 3.8 Max | qwen-3.8-max |
| Reviews and tricky logic | DeepSeek V4 Pro | deepseek-v4-pro |
See the Models page for each model’s current status.
If something does not work
- Claude Code asks you to log in
- The variables are not visible in the current terminal. Set them again or via settings.json and restart claude.
- Address error
- Claude Code needs the address without /v1: https://tenzo-cloud.com.
- 429 while the agent works
- The agent runs parallel requests. For active work we recommend 4 streams.
Several projects, different settings
Environment variables can be set per project. If you want Tenzo Cloud in one repository and your previous account in another, put the settings in .claude/settings.json inside that project and leave the global ~/.claude/settings.json as is.
It is also handy to keep different models: GLM 5.3 for a backend with long agent tasks and Qwen 3.8 Max for a frontend where you often share screenshots.
Tips for long sessions
- Give the agent a project rules file so it asks fewer questions
- Take 4 streams for parallel work; Claude Code sometimes sends several requests at once
- Restrict the key by IP if you run the agent on a server
- Watch the status page; during maintenance switch models with one variable
Why this beats a capped subscription
Chat subscription limits run in time windows: use them up and you wait. With Tenzo Cloud only concurrent requests are limited, so the agent can work all day without pauses. The price is fixed for 3, 7 or 30 days, no token bill.
FAQ
Is this allowed?
Yes. Claude Code supports changing the address through environment variables, and you use the models under a Tenzo Cloud subscription.
Will quality match Claude?
These are different models, so style and results on specific tasks differ. Test on your own work in the 3 free hours.
How do I switch back?
Remove the environment variables or the env block and Claude Code returns to your previous account.
See also
- IntegrationsClaude Code with no limits: connect our models in a minuteHow to connect Claude Code to GLM 5.3 and Qwen 3.8 Max in compatible mode: three environment variables, no VPN and no subscription limits. Step-by-step guide and common errors.Learn more
- ComparisonsTenzo Cloud or Claude Max: unlimited-token streams versus usage windowsTenzo Cloud or the Claude Max subscription: usage limits versus streams with no token caps, API included, access from Kazakhstan and Russia, prices in tenge. Verifiable facts only, October 2026.Learn more
- ModelsGLM 5.3 API: a model for code and agents with no token billGLM 5.3 over an OpenAI-compatible API: a model for code and multi-step agents, 200K token context, works in Claude Code and Cursor. A fixed price per stream, no VPN.Learn more
- ModelsQwen 3.8 Max API: a huge context with no token billQwen 3.8 Max over an OpenAI-compatible API and in a web chat: 256K token context, reads screenshots, a fixed price per stream. Prices in tenge, rubles or USD, 3 hours free.Learn more
Try it on your own work
Three free hours with every model, no card and no VPN. Connect Cursor, Claude Code or your own code in a minute.