---
title: 'Qwen4 Max + OpenCode Is INSANE!'
source: 'https://youtube.com/watch?v=FpMJNGTkvjU'
video_id: 'FpMJNGTkvjU'
date: 2026-11-19
duration_sec: 525
channel: 'Julian Goldie SEO'
---

# Qwen4 Max + OpenCode Is INSANE!

> Source: [Qwen4 Max + OpenCode Is INSANE!](https://youtube.com/watch?v=FpMJNGTkvjU)

## Summary

This video demonstrates how to connect Alibaba's new Qwen 4 Max model to the open-source coding agent OpenCode, covering setup steps, key limitations, and a reality check on performance claims. The presenter emphasizes the model's two-week preview window and the lack of published benchmarks, urging viewers to test it themselves before the preview ends.

### Key Points

- **Qwen 4 Max Preview Announcement** [00:03] — Qwen 4 Max is a new coding model from Alibaba, released in preview on November 11, 2026, with a two-week availability window.
- **Model Capabilities** [00:30] — The model features a 1 million token context window, supports text, images, and video input, and includes function calling, structured outputs, and a default thinking mode.
- **OpenCode Overview** [01:12] — OpenCode is an open-source coding agent with MIT license and ~225,000 GitHub stars, offering terminal, desktop, and web apps, plus two built-in agents: Build (full access) and Plan (read-only).
- **Setup Steps** [01:56] — Steps include installing Node.js 18+, running 'npm install -g open-code-ai', starting OpenCode, connecting via '/connect' with Alibaba token plan, selecting the model via '/models', and testing with 'open-code run hello'.
- **Output Limits and Configuration** [02:53] — Default output is 32,000 tokens; can be increased via environment variable 'OPENCODE_EXPERIMENTAL_OTP_TOKEN_MAX' up to 131,072 tokens in non-thinking mode.
- **OpenCode Go Integration** [03:48] — Qwen 4 Max is also available via OpenCode Go subscription, requiring sign-in, subscription, and API key setup.
- **Configuration File** [04:30] — Settings are stored in 'opencode.json' in the '.config/opencode' folder; 401 errors indicate key mismatch, solved by re-running '/connect'.
- **Performance Uncertainty** [05:11] — No published benchmarks or model card exist; comparisons with Claude or GPT are impossible, and the only reference is the older Qwen 3.8 Max.
- **Self-Testing Advice** [05:53] — Recommended to test the model on a small task from your own project, first in Plan mode then Build mode, to evaluate its performance.
- **Limitations** [06:07] — Preview ends November 25, 2026; token plan prohibits backend, batch, or scheduled tasks; data crosses borders; thinking tokens count against output cap.
- **Target Audience** [06:48] — Suitable for OpenCode users wanting to try a new model, model comparers, and those curious about Alibaba's next family; not for production or scheduled use.
- **Final Verdict** [07:19] — The pairing is promising but not proven; worth trying before the preview ends, but not worth hyping due to lack of benchmarks.

### Conclusion

Qwen 4 Max with OpenCode offers a promising combination of a large context window and coding focus, but without benchmarks, it's best to test it on your own projects before the preview expires on November 25, 2026.

## Transcript

What if the newest coding model already has a two week clock on it? It does, and that's why you need to hear this. Qwen 4 Max just landed in preview. It plugs straight into open code. So, are you about to miss it?
In this video, I'll show you how to connect Qwen 4 Max to open code step by step. I'll show you the limits nobody mentions, and I'll tell you if this combo is really a coding powerhouse. Let's start with the model. Qwen 4 Max
comes from Alibaba. It's the first preview from their next model family released November 11th, 2026. Alibaba says it's stronger at coding and agent style work where the model takes steps on its own. The docs list a 1 million
token context window, which is how much text it can hold at once. It takes in text, images, and video, and it supports function calling and structured outputs. It also has a thinking mode where it reasons first and then answers. That's
on by default. Now, here's the catch. It's a preview. It runs from November It's a preview. It runs from November 11th to November 25th, 2026. After that, this exact model gets retired, and Alibaba hasn't said what replaces it.
Hold that thought. Now, the tool. Open code is an open source coding agent. It runs in your terminal with a desktop app and a web app too. It has an MIT license and a web app too. It has an MIT license and around 225,000 stars on GitHub. It
comes with two built in agents. Build is the default with full access for real development work. Plan is read only, made for exploring code. It denies file edits by default and asks before running commands. Press tab to switch. You can
also add plugins, make your own commands, and connect MCP servers, which plug in outside tools. And it supports lots of model providers, so you pick the Here's how they connect. You pick a provider, add a key, and choose a model.
And there's one setting most people miss. I'll show you a second. Step one, install [clears throat] Node.js version 18 or higher. 18 or higher. Step two, run npm install -g
open-code-ai. Then run open-code -v to check it worked. Step three, type open-code to start it, then / connect. On Alibaba's own cloud, Qwen 4 Max is on the token plan, so pick Alibaba token plan China.
Paste in your API key. On team edition, you need a seat assigned before you get a key. Step four, type / models and pick Qwen 4 Max. The guide also lists a Qwen 4 - Max - preview option. Step five, type
open-code run then hello in quotes. If it answers, you're connected.
Open code limits output to 32,000 tokens for Qwen 4 Max by default. For longer answers, set the environment variable open code _ experimental _ OTP _ token _
max. The docs list the maximum output as 131,072 tokens in non-thinking mode. Quick pause before I show you the next part. If you want to learn open code faster, we've built a 30-day open code roadmap inside
the AI Profit Boardroom. It takes you through the tool one day at a time, so you're never guessing what to do next. There are also four coaching calls every week. So if you get stuck connecting a model or setting up your config file,
you can bring that exact question to a live call and get unstuck. It ties right back to what you just learned about open code. Link in the description or go to aiprofitboardroom.com. There's another way in and it's brand
new. On November 16th, the open code team announced that Qwen 4 Max is now available in open code Go. It 's an optional subscription for popular open coding models. Sign in to the open code console, subscribe to a Go plan, and
copy your API key. Then run connect, pick open code go and paste your key. Set the model to open code go slash quen four max in your config file. If you
prefer the manual way, settings live in open code dot JSON inside your dot config open code folder. It holds your provider, the base URL, your key, and the models it supports. If a model doesn't show up, upgrade open code. If
you get a 401 error, your key doesn't match your plan. So run connect again with it? There are no published test results for this pairing, so I won't show you made up demos. Here's what the tools are
built for. In open code, you type what you want in plain English and the build agent works inside your project. For a safe first look, use plan. It explores without editing, so you can ask it to explain a codebase first.
The one million token window gives the model room to read a lot at once, which matters when work touches many files. Function calling lets it use tools. But can quen four max really debug, refactor, and build full apps well?
Nobody can prove that yet. You'll have to test it on your own projects. Now the big question, is it better than Claude, GPT, or other coding models? Honestly, nobody knows yet. There's no model card and no published benchmarks. As of
November 12th, it wasn't on the artificial analysis leaderboard, and the latest write ups say it isn't on Arena's text leaderboard either. One write up even says nobody can compare it with Claude or GPT yet. The only reference
point is the older model, quen 3.8 max. So if a video claims it beats everything, ask for the evidence. Here's a fair way to judge it yourself. Pick a small task from your own project. Run it in plan first, then in build.
Watch how it handles your files and explains its changes. That's your own proof. Now the limits. Remember the preview? On November 25th, this exact model is gone. On Alibaba's own cloud, it's only on the token plan. And the
token plan terms bar running it as a backend, batch jobs, and scheduled background tasks. So this is for you, working live in your terminal. On the token plan, data also crosses borders, and the training data policy for the
individual plan isn't stated. So don't put in anything you wouldn't be comfortable sharing. And thinking tokens count against the output cap, so a very answer. There's also no word yet on open
weights, other Qwen four sizes, or the final release date. So who is this for? If you use open code and want to try a new model while the preview is open, yes. If you like comparing models on your own projects, yes. If you're
curious what Alibaba's next model family looks like, yes. If you need something that runs in production or on a schedule, no. The token plan terms don't And if you need a model that will still be here next month, wait for the full
release. So is Qwen four max plus open code a new AI coding powerhouse? Open code is open source and flexible, and Qwen four max has a big context window and a coding focus. That's a promising pairing, but powerhouse is a big word.
With no benchmarks and no comparisons, I'd call it worth trying, not worth hyping yet. Try it before the preview ends, test it on your own work, and watch for benchmarks and for what replaces this preview. Here's the thing.
Right now, there's a window where most business owners haven't figured this out forever. Getting ahead means learning the tool before everyone else does. Inside the AI Profit Boardroom, you get daily
tutorials, so you keep learning step by step. You get four coaching calls every week where you can ask questions about tools like this one. You get a prompt library so you're not starting from a blank page, and you get the member map,
which is part of learning alongside other members. Link in the description or go to aiprofitboardroom.com. If you want the full process, the SOPs, If you want the full process, the SOPs, and over 100 AI use cases like this one,
join the AI Success Lab. It's our free community. Links in the comments and description. You'll get all the video notes from this episode plus access to 95,300 members. The AI Success Lab is a place
to learn AI tools alongside other people. It's free to join. The video notes from this episode put what we covered in one place so you can come back to it anytime. If you want to try Kuen 4 Max in open code before the
preview ends, start there. Join today, grab the notes, and I'll see you inside.
