Skip to content

Run Qwen3.8-Max With Claude Code on Windows

Connect Claude Code directly to Qwen3.8-Max through Alibaba Model Studio's Anthropic-compatible workspace endpoint.

MGMCSA Guru Team August 11, 2026 2 min read
Claude Code connected directly to Qwen3.8-Max on Windows

Alibaba Model Studio now exposes an Anthropic-compatible endpoint for Qwen3.8-Max. Claude Code can connect directly, so the Claude Code Router configuration previously published at this URL is no longer needed for a normal Model Studio workspace.

Get the workspace values

Open Model Studio, select the deployment region, and copy these values from the model page:

Claude Code connection values

Model qwen3.8-max
Base URL Your workspace's /apps/anthropic URL
Authentication Model Studio workspace API key
Protocol Anthropic-compatible

The hostname contains your workspace ID and region. For example, a Singapore workspace follows this shape:

https://YOUR_WORKSPACE_ID.ap-southeast-1.maas.aliyuncs.com/apps/anthropic

Copy the generated URL from Model Studio instead of typing it from memory.

Configure PowerShell

Set the values for the current terminal session:

$env:ANTHROPIC_BASE_URL = "https://YOUR_WORKSPACE_ID.ap-southeast-1.maas.aliyuncs.com/apps/anthropic"
$env:ANTHROPIC_AUTH_TOKEN = "your-model-studio-key"
$env:ANTHROPIC_MODEL = "qwen3.8-max"
claude

For WSL, use export NAME="value" instead. Keep the key outside your repository and do not commit it in a shell script.

Test tool use

Start with a read-only request:

Read the package manifest and explain how this project is built. Do not edit files.

Then ask for a small change and review the diff. Qwen3.8-Max supports function calling and has a 1 million-token context window, but a larger context does not remove the need to limit permissions and inspect commands.

The model accepts text, image, and video input. Claude Code’s interface decides which attachment types reach the provider, so test an attachment before relying on it in an automated workflow.

Troubleshooting

  • A 401 response usually means the workspace key does not match the endpoint.
  • A 404 often means the workspace ID, region, or /apps/anthropic path is wrong.
  • A model error usually means an obsolete alias is configured. Use qwen3.8-max.
  • If Claude Code still calls Anthropic, check the variables in the same terminal that launches claude.

Qwen3.8-Max and Claude Code checklist

  • Model Studio workspace and key created
  • Anthropic-compatible URL copied from the workspace
  • Model set to qwen3.8-max
  • A read-only task tested first
  • API key kept outside source control

See Qwen3.8-Max pricing for regional rates and cache costs.

Frequently asked questions

Can Claude Code use Qwen without a router?

Yes. Current Alibaba Model Studio workspaces expose an Anthropic-compatible endpoint. Use your workspace URL, API key, and qwen3.8-max.

What is the current Qwen model ID?

Use qwen3.8-max for the current production flagship. The old preview route was retired in August 2026.

Does this work on native Windows?

Yes. Set the environment variables in PowerShell and run Claude Code from the project directory. WSL remains useful for Linux-focused projects but is not required for the API connection.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.