@musistudio/claude-code-router 1.0.30 → 1.0.31
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 +18 -0
- package/README_zh.md +17 -0
- package/dist/cli.js +6123 -6875
- package/dist/index.html +25 -25
- package/docker-compose.yml +3 -6
- package/dockerfile +16 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -141,6 +141,16 @@ Here is a comprehensive example:
|
|
|
141
141
|
"enhancetool"
|
|
142
142
|
]
|
|
143
143
|
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "aihubmix",
|
|
147
|
+
"api_base_url": "https://aihubmix.com/v1/chat/completions",
|
|
148
|
+
"api_key": "sk-",
|
|
149
|
+
"models": [
|
|
150
|
+
"Z/glm-4.5",
|
|
151
|
+
"claude-opus-4-20250514",
|
|
152
|
+
"gemini-2.5-pro"
|
|
153
|
+
]
|
|
144
154
|
}
|
|
145
155
|
],
|
|
146
156
|
"Router": {
|
|
@@ -178,6 +188,8 @@ ccr ui
|
|
|
178
188
|
|
|
179
189
|
This will open a web-based interface where you can easily view and edit your `config.json` file.
|
|
180
190
|
|
|
191
|
+

|
|
192
|
+
|
|
181
193
|
> **Note**: The UI mode is currently in beta. 100% vibe coding: including project initialization, I just created a folder and a project.md document, and all code was generated by ccr + qwen3-coder + gemini(webSearch).
|
|
182
194
|
If you encounter any issues, please submit an issue on GitHub.
|
|
183
195
|
|
|
@@ -246,6 +258,7 @@ Transformers allow you to modify the request and response payloads to ensure com
|
|
|
246
258
|
|
|
247
259
|
**Available Built-in Transformers:**
|
|
248
260
|
|
|
261
|
+
- `Anthropic`:If you use only the `Anthropic` transformer, it will preserve the original request and response parameters(you can use it to connect directly to an Anthropic endpoint).
|
|
249
262
|
- `deepseek`: Adapts requests/responses for DeepSeek API.
|
|
250
263
|
- `gemini`: Adapts requests/responses for Gemini API.
|
|
251
264
|
- `openrouter`: Adapts requests/responses for OpenRouter API.
|
|
@@ -411,6 +424,8 @@ If you find this project helpful, please consider sponsoring its development. Yo
|
|
|
411
424
|
|
|
412
425
|
A huge thank you to all our sponsors for their generous support!
|
|
413
426
|
|
|
427
|
+
|
|
428
|
+
- [AIHubmix](https://aihubmix.com/)
|
|
414
429
|
- @Simon Leischnig
|
|
415
430
|
- [@duanshuaimin](https://github.com/duanshuaimin)
|
|
416
431
|
- [@vrgitadmin](https://github.com/vrgitadmin)
|
|
@@ -451,6 +466,9 @@ A huge thank you to all our sponsors for their generous support!
|
|
|
451
466
|
- @*鑫
|
|
452
467
|
- @c\*y
|
|
453
468
|
- @\*昕
|
|
469
|
+
- [@witsice](https://github.com/witsice)
|
|
470
|
+
- @b\*g
|
|
471
|
+
- @\*亿
|
|
454
472
|
|
|
455
473
|
|
|
456
474
|
(If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
|
package/README_zh.md
CHANGED
|
@@ -137,6 +137,16 @@ npm install -g @musistudio/claude-code-router
|
|
|
137
137
|
"enhancetool"
|
|
138
138
|
]
|
|
139
139
|
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "aihubmix",
|
|
143
|
+
"api_base_url": "https://aihubmix.com/v1/chat/completions",
|
|
144
|
+
"api_key": "sk-",
|
|
145
|
+
"models": [
|
|
146
|
+
"Z/glm-4.5",
|
|
147
|
+
"claude-opus-4-20250514",
|
|
148
|
+
"gemini-2.5-pro"
|
|
149
|
+
]
|
|
140
150
|
}
|
|
141
151
|
],
|
|
142
152
|
"Router": {
|
|
@@ -174,6 +184,8 @@ ccr ui
|
|
|
174
184
|
|
|
175
185
|
这将打开一个基于 Web 的界面,您可以在其中轻松查看和编辑您的 `config.json` 文件。
|
|
176
186
|
|
|
187
|
+

|
|
188
|
+
|
|
177
189
|
> **注意**: UI 模式目前处于测试阶段。这是一个 100% vibe coding的项目,包括项目的初始化,我只是新建了一个文件夹和一个project.md文档。所有代码均由 ccr + qwen3-coder + gemini(webSearch) 实现。如有问题请提交 issue。
|
|
178
190
|
|
|
179
191
|
#### Providers
|
|
@@ -240,6 +252,7 @@ Transformers 允许您修改请求和响应负载,以确保与不同提供商
|
|
|
240
252
|
|
|
241
253
|
**可用的内置 Transformer:**
|
|
242
254
|
|
|
255
|
+
- `Anthropic`: 如果你只使用这一个转换器,则会直接透传请求和响应(你可以用它来接入其他支持Anthropic端点的服务商)。
|
|
243
256
|
- `deepseek`: 适配 DeepSeek API 的请求/响应。
|
|
244
257
|
- `gemini`: 适配 Gemini API 的请求/响应。
|
|
245
258
|
- `openrouter`: 适配 OpenRouter API 的请求/响应。
|
|
@@ -406,6 +419,7 @@ jobs:
|
|
|
406
419
|
|
|
407
420
|
非常感谢所有赞助商的慷慨支持!
|
|
408
421
|
|
|
422
|
+
- [AIHubmix](https://aihubmix.com/)
|
|
409
423
|
- @Simon Leischnig
|
|
410
424
|
- [@duanshuaimin](https://github.com/duanshuaimin)
|
|
411
425
|
- [@vrgitadmin](https://github.com/vrgitadmin)
|
|
@@ -445,6 +459,9 @@ jobs:
|
|
|
445
459
|
- @*鑫
|
|
446
460
|
- @c\*y
|
|
447
461
|
- @\*昕
|
|
462
|
+
- [@witsice](https://github.com/witsice)
|
|
463
|
+
- @b\*g
|
|
464
|
+
- @\*亿
|
|
448
465
|
|
|
449
466
|
(如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。)
|
|
450
467
|
|