前提:我使用的是deepseek的apikey接入claude code使用,claude code在终端可以打开,已在trae拓展中加入。
登录问题
我先到trae拓展配置
配置内容为
{
"diffEditor.ignoreTrimWhitespace": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"claudeCode.preferredLocation": "panel",
"claudeCode.environmentVariables": [
{
"name": "ANTHROPIC_BASE_URL",
"value": "https://open.bigmodel.cn/api/anthropic/v1"
},
{
"name": "ANTHROPIC_API_KEY",
"value": "使用的apikey"
}
],
"files.autoSave": "afterDelay",
"workbench.editorAssociations": {
"*.html": "default"
},
"workbench.colorTheme": "Light"
}
后面发现还是没办法,我找到了这个链接:https://blog.csdn.net/fm_2015112032/article/details/160845535?fromshare=blogdetail&sharetype=blogdetail&sharerId=160845535&sharerefer=PC&sharesource=py20040926&sharefrom=from_link
到本地.claude文件配置,最后成功跳过登录