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/anthropicpath 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.