@musistudio/claude-code-router 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/README_zh.md +9 -4
- package/dist/cli.js +942 -414
- package/dist/index.html +119 -55
- package/package.json +2 -2
- package/config.example.json +0 -119
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@musistudio/claude-code-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "Use Claude Code without an Anthropics account and route it to another LLM provider",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ccr": "./dist/cli.js"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fastify/static": "^8.2.0",
|
|
23
|
-
"@musistudio/llms": "^1.0.
|
|
23
|
+
"@musistudio/llms": "^1.0.24",
|
|
24
24
|
"dotenv": "^16.4.7",
|
|
25
25
|
"json5": "^2.2.3",
|
|
26
26
|
"openurl": "^1.1.1",
|
package/config.example.json
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Providers": [
|
|
3
|
-
{
|
|
4
|
-
"name": "openrouter",
|
|
5
|
-
"api_base_url": "https://openrouter.ai/api/v1/chat/completions",
|
|
6
|
-
"api_key": "sk-xxx",
|
|
7
|
-
"models": [
|
|
8
|
-
"google/gemini-2.5-pro-preview",
|
|
9
|
-
"anthropic/claude-sonnet-4",
|
|
10
|
-
"anthropic/claude-3.5-sonnet",
|
|
11
|
-
"anthropic/claude-3.7-sonnet:thinking"
|
|
12
|
-
],
|
|
13
|
-
"transformer": {
|
|
14
|
-
"use": ["openrouter"]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "deepseek",
|
|
19
|
-
"api_base_url": "https://api.deepseek.com/chat/completions",
|
|
20
|
-
"api_key": "sk-xxx",
|
|
21
|
-
"models": ["deepseek-chat", "deepseek-reasoner"],
|
|
22
|
-
"transformer": {
|
|
23
|
-
"use": ["deepseek"],
|
|
24
|
-
"deepseek-chat": {
|
|
25
|
-
"use": ["tooluse"]
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "ollama",
|
|
31
|
-
"api_base_url": "http://localhost:11434/v1/chat/completions",
|
|
32
|
-
"api_key": "ollama",
|
|
33
|
-
"models": ["qwen2.5-coder:latest"]
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "gemini",
|
|
37
|
-
"api_base_url": "https://generativelanguage.googleapis.com/v1beta/models/",
|
|
38
|
-
"api_key": "sk-xxx",
|
|
39
|
-
"models": ["gemini-2.5-flash", "gemini-2.5-pro"],
|
|
40
|
-
"transformer": {
|
|
41
|
-
"use": ["gemini"]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "volcengine",
|
|
46
|
-
"api_base_url": "https://ark.cn-beijing.volces.com/api/v3/chat/completions",
|
|
47
|
-
"api_key": "sk-xxx",
|
|
48
|
-
"models": ["deepseek-v3-250324", "deepseek-r1-250528"],
|
|
49
|
-
"transformer": {
|
|
50
|
-
"use": ["deepseek"]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "siliconflow",
|
|
55
|
-
"api_base_url": "https://api.siliconflow.cn/v1/chat/completions",
|
|
56
|
-
"api_key": "sk-xxx",
|
|
57
|
-
"models": ["moonshotai/Kimi-K2-Instruct"],
|
|
58
|
-
"transformer": {
|
|
59
|
-
"use": [
|
|
60
|
-
[
|
|
61
|
-
"maxtoken",
|
|
62
|
-
{
|
|
63
|
-
"max_tokens": 16384
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "modelscope",
|
|
71
|
-
"api_base_url": "https://api-inference.modelscope.cn/v1/chat/completions",
|
|
72
|
-
"api_key": "",
|
|
73
|
-
"models": ["Qwen/Qwen3-Coder-480B-A35B-Instruct", "Qwen/Qwen3-235B-A22B-Thinking-2507"],
|
|
74
|
-
"transformer": {
|
|
75
|
-
"use": [
|
|
76
|
-
[
|
|
77
|
-
"maxtoken",
|
|
78
|
-
{
|
|
79
|
-
"max_tokens": 65536
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"enhancetool"
|
|
83
|
-
],
|
|
84
|
-
"Qwen/Qwen3-235B-A22B-Thinking-2507": {
|
|
85
|
-
"use": ["reasoning"]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "dashscope",
|
|
91
|
-
"api_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
92
|
-
"api_key": "",
|
|
93
|
-
"models": ["qwen3-coder-plus"],
|
|
94
|
-
"transformer": {
|
|
95
|
-
"use": [
|
|
96
|
-
[
|
|
97
|
-
"maxtoken",
|
|
98
|
-
{
|
|
99
|
-
"max_tokens": 65536
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"enhancetool"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"Router": {
|
|
108
|
-
"default": "deepseek,deepseek-chat",
|
|
109
|
-
"background": "ollama,qwen2.5-coder:latest",
|
|
110
|
-
"think": "deepseek,deepseek-reasoner",
|
|
111
|
-
"longContext": "openrouter,google/gemini-2.5-pro-preview",
|
|
112
|
-
"longContextThreshold": 60000,
|
|
113
|
-
"webSearch": "gemini,gemini-2.5-flash"
|
|
114
|
-
},
|
|
115
|
-
"APIKEY": "your-secret-key",
|
|
116
|
-
"HOST": "0.0.0.0",
|
|
117
|
-
"API_TIMEOUT_MS": 600000,
|
|
118
|
-
"NON_INTERACTIVE_MODE": false
|
|
119
|
-
}
|