报错 HTTP 401: invalid access token or token expired错误描述无效的token或者token过期原因千问提供的阿里云百炼免费API端口和正常付费使用的API接口不一样并且只有指定API模型支持使用需要进行选择并且修改配置。我这里使用的是qwen3-max处理方式修改openclaw.json内容Windows目录文件C:\Users\admin\.openclaw\openclaw.jsonMAC目录文件~/.openclaw/openclaw.jsonYOUR_APIKEY为你申请的千问api-key sk-xxxxxxxxxYOUR_TOKEN为你配置的OpenClaw登录token默认在你配置完成OpenClaw自动生成{meta:{lastTouchedVersion:2026.2.1,lastTouchedAt:2026-02-03T08:20:00.000Z},models:{mode:merge,providers:{bailian:{baseUrl:https://dashscope.aliyuncs.com/compatible-mode/v1,apiKey:YOUR_APIKEY,api:openai-completions,models:[{id:qwen3-max,name:qwen3-max,reasoning:false,input:[text,image],contextWindow:1000000,maxTokens:65536},{id:qwen3-coder-next,name:qwen3-coder-next,reasoning:false,input:[text],contextWindow:262144,maxTokens:65536}]}}},agents:{defaults:{model:{primary:bailian/qwen3-max},models:{bailian/qwen3-max:{},bailian/qwen3-coder-next:{}}}},commands:{native:auto,nativeSkills:auto,restart:true,ownerDisplay:raw},gateway:{mode:local,auth:{mode:token,token:YOUR_TOKEN}}}详情请参考官方API文档阿里云百炼如果觉得不错请点赞、收藏和关注感谢支持