搞了一天,论坛也找了很久,但是一直都没找到解决方案,特来发帖,附上配置:
.claude/settings.json
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"MCP_TIMEOUT": "60000",
"ANTHROPIC_BASE_URL": "http://127.0.0.1:3456",
"ANTHROPIC_API_KEY": "sk-zcf-x-ccr"
},
"includeCoAuthoredBy": false,
"permissions": {
"allow": [
"Bash",
"Read",
"Write",
"Edit",
"MultiEdit",
"Glob",
"Grep",
"WebFetch",
"WebSearch",
"TodoWrite",
"NotebookRead",
"NotebookEdit",
"mcp__ide",
"mcp__exa",
"mcp__context7",
"mcp__mcp-deepwiki",
"mcp__Playwright",
"mcp__spec-workflow",
"mcp__open-websearch"
],
"deny": []
},
"hooks": {},
"outputStyle": "engineer-professional",
"statusLine": {
"type": "command",
"command": "%USERPROFILE%\\.claude\\ccline\\ccline.exe",
"padding": 0
}
}
.claude-code-router/config.json
{
"LOG": false,
"LOG_LEVEL": "debug",
"CLAUDE_PATH": "",
"HOST": "127.0.0.1",
"PORT": 3456,
"APIKEY": "sk-zcf-x-ccr",
"API_TIMEOUT_MS": "600000",
"PROXY_URL": "",
"transformers": [],
"Providers": [
{
"name": "elysia.h-e.top",
"api_base_url": "https://elysia.h-e.top/toolify/v1/chat/completions",
"api_key": "sk-hPCFasfjasuiouioafsaf4sa96464",
"models": [
"claude-3-7-sonnet-20250219",
"gpt-4.1",
"gpt-5",
"claude-4-sonnet",
"claude-4-opus",
"claude-4.1-opus",
"claude-4.5-sonnet",
"claude-sonnet-4-5-20250929"
]
},
{
"name": "api.musifei.com",
"api_base_url": "https://api.wudile.com/v1/chat/completions",
"api_key": "sk-FFd99658952982198",
"models": [
"claude-sonnet-4-20250514",
"claude-sonnet-4-20250514-think",
"claude-4-sonnet",
"claude-4-opus",
"gemini-2.5-pro",
"google/gemini-2.5-pro-exp-03-25"
]
}
],
"StatusLine": {
"enabled": false,
"currentStyle": "default",
"default": {
"modules": []
},
"powerline": {
"modules": []
}
},
"Router": {
"default": "elysia.h-e.top,gpt-4.1",
"background": "elysia.h-e.top,gpt-4.1",
"think": "",
"longContext": "",
"longContextThreshold": 60000,
"webSearch": "",
"image": ""
},
"CUSTOM_ROUTER_PATH": ""
}
实在是搞不定才上来求问的,要崩溃了,一开始是跟着这位佬的帖子一路安装的 《 Claude Code 终极版 FAQ 指南 》 - 文档共建 - LINUX DO
然后后面不行今天早上起来试试这位佬的工具,还是不行 【ZCF】【Claude Code】七夕没有人陪怎么办,来跟猫娘浮浮酱聊天写代码吧(๑•̀ㅂ•́) ✧ - 开发调优 - LINUX DO
端口如图:







