Claude Code + CCR配置(含OpenRouter、GLM、Kimi Coding Plan)

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"
}
相关推荐
人邮异步社区1 小时前
怎么把C语言学到精通?
c语言·开发语言
心平气和量大福大2 小时前
C#-WPF-控件-TextBox 数据绑定
开发语言·c#·wpf
ttwuai2 小时前
Cursor 生成 CRUD 后,Go 后台接口别只测 200:JWT、RBAC 和 tenant_id 怎么验
开发语言·后端·golang
এ慕ོ冬℘゜2 小时前
前端基础:什么是时间戳?JS获取时间戳三种方法与实战用途
开发语言·前端·javascript
执明wa2 小时前
LayoutInflater详解: XML是如何变成View的?
android·xml·开发语言·android studio
一次旅行2 小时前
Python+大模型端到端自动化日报系统
开发语言·python·自动化
噢,我明白了4 小时前
java中Excel的导入和导出(EasyExcel)
java·开发语言·excel
mabing9934 小时前
Qt 生成条纹图
开发语言·qt
蓝悦无人机4 小时前
C++基础 — 函数总结
开发语言·c++
糖果店的幽灵4 小时前
langgraph的 MessagesState 解读
java·开发语言·人工智能·windows·langgraph