Claude Code + CCR配置(含OpenRouter、GLM、Kimi Coding Plan)
.claude-code-router/settings.json
json
{
"LOG": true,
"LOG_LEVEL": "debug",
"CLAUDE_PATH": "",
"HOST": "127.0.0.1",
"PORT": 3456,
"APIKEY": "sk-zcf-x-ccr",
"API_TIMEOUT_MS": "600000",
"PROXY_URL": "",
"transformers": [],
"AUTH_HEADER": "Authorization",
"Providers": [
{
"name": "openrouter",
"api_base_url": "https://openrouter.ai/api/v1/chat/completions",
"api_key": "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",
"models": [
"google/gemini-3-pro-preview",
"anthropic/claude-sonnet-4",
"anthropic/claude-3.5-sonnet",
"anthropic/claude-3.7-sonnet:thinking"
],
"transformer": {
"use": [
"openrouter"
]
}
},
{
"name": "glm",
"api_base_url": "https://open.bigmodel.cn/api/anthropic/v1/messages",
"api_key": "e7d071d7c24b4c5d921c7c664aa3c249.7WC95SuM2zGsBcId",
"models": [
"glm-4.7",
"glm-4.6v",
"glm-4.5-air"
],
"transformer": {
"use": [
"Anthropic"
],
"glm-4.7": {
"use": [
"Anthropic"
]
},
"glm-4.5-air": {
"use": [
"Anthropic"
]
}
}
},
{
"name": "kimi",
"api_base_url": "https://api.kimi.com/coding/",
"api_key": "sk-kimi-b7jpRbYJARJKbckxaVZe5NaZnJ7ZldnBC41o06rzX4CIgzreiBLTXX3zsY1NKSR2"
}
],
"StatusLine": {
"enabled": false,
"currentStyle": "default",
"default": {
"modules": []
},
"powerline": {
"modules": []
}
},
"Router": {
"default": "glm,glm-4.7",
"background": "glm,glm-4.5-air",
"think": "glm,glm-4.7",
"longContext": "glm,glm-4.7",
"longContextThreshold": 60000,
"webSearch": "glm,glm-4.5-air",
"image": "glm-4.6v"
},
"CUSTOM_ROUTER_PATH": ""
}
.claude/settings.json
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",
"BashOutput",
"Edit",
"Glob",
"Grep",
"KillShell",
"NotebookEdit",
"Read",
"SlashCommand",
"Task",
"TodoWrite",
"WebFetch",
"WebSearch",
"Write",
"mcp__ide",
"mcp__exa",
"mcp__context7",
"mcp__mcp-deepwiki",
"mcp__Playwright",
"mcp__spec-workflow",
"mcp__open-websearch",
"mcp__serena"
],
"deny": []
},
"model": "openrouter,google/gemini-3-pro-preview",
"hooks": {},
"statusLine": {
"type": "command",
"command": "%USERPROFILE%\\.claude\\ccline\\ccline.exe",
"padding": 0
},
"enabledPlugins": {
"superpowers@claude-plugins-official": true,
"example-skills@anthropic-agent-skills": false
},
"outputStyle": "engineer-professional"
}