@musistudio/claude-code-router 1.0.39 → 1.0.41

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 CHANGED
@@ -42,7 +42,7 @@ The `config.json` file has several key sections:
42
42
 
43
43
  - **`PROXY_URL`** (optional): You can set a proxy for API requests, for example: `"PROXY_URL": "http://127.0.0.1:7890"`.
44
44
  - **`LOG`** (optional): You can enable logging by setting it to `true`. When set to `false`, no log files will be created. Default is `true`.
45
- - **`LOG_LEVEL`** (optional): Set the logging level. Available options are: `"fatal"`, `"error"`, `"warn"`, `"info"`, `"debug"`, `"trace"`. Default is `"info"`.
45
+ - **`LOG_LEVEL`** (optional): Set the logging level. Available options are: `"fatal"`, `"error"`, `"warn"`, `"info"`, `"debug"`, `"trace"`. Default is `"debug"`.
46
46
  - **Logging Systems**: The Claude Code Router uses two separate logging systems:
47
47
  - **Server-level logs**: HTTP requests, API calls, and server events are logged using pino in the `~/.claude-code-router/logs/` directory with filenames like `ccr-*.log`
48
48
  - **Application-level logs**: Routing decisions and business logic events are logged in `~/.claude-code-router/claude-code-router.log`
@@ -208,7 +208,7 @@ ccr code
208
208
  > ccr restart
209
209
  > ```
210
210
 
211
- ### 4. UI Mode (Beta)
211
+ ### 4. UI Mode
212
212
 
213
213
  For a more intuitive experience, you can use the UI mode to manage your configuration:
214
214
 
@@ -220,9 +220,6 @@ This will open a web-based interface where you can easily view and edit your `co
220
220
 
221
221
  ![UI](/blog/images/ui.png)
222
222
 
223
- > **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).
224
- If you encounter any issues, please submit an issue on GitHub.
225
-
226
223
  #### Providers
227
224
 
228
225
  The `Providers` array is where you define the different model providers you want to use. Each provider object requires:
@@ -403,6 +400,13 @@ For routing within subagents, you must specify a particular provider and model b
403
400
  Please help me analyze this code snippet for potential optimizations...
404
401
  ```
405
402
 
403
+ ## Status Line (Beta)
404
+ To better monitor the status of claude-code-router at runtime, version v1.0.40 includes a built-in statusline tool, which you can enable in the UI.
405
+ ![statusline-config.png](/blog/images/statusline-config.png)
406
+
407
+ The effect is as follows:
408
+ ![statusline](/blog/images/statusline.png)
409
+
406
410
  ## 🤖 GitHub Actions
407
411
 
408
412
  Integrate Claude Code Router into your CI/CD pipeline. After setting up [Claude Code Actions](https://docs.anthropic.com/en/docs/claude-code/github-actions), modify your `.github/workflows/claude.yaml` to use the router:
@@ -542,6 +546,7 @@ A huge thank you to all our sponsors for their generous support!
542
546
  - @水\*丫
543
547
  - @二吉吉
544
548
  - @a\*g
545
- - @*林
549
+ - @\*林
550
+ - @\*咸
546
551
 
547
552
  (If your name is masked, please contact me via my homepage email to update it with your GitHub username.)
package/README_zh.md CHANGED
@@ -38,7 +38,7 @@ npm install -g @musistudio/claude-code-router
38
38
  `config.json` 文件有几个关键部分:
39
39
  - **`PROXY_URL`** (可选): 您可以为 API 请求设置代理,例如:`"PROXY_URL": "http://127.0.0.1:7890"`。
40
40
  - **`LOG`** (可选): 您可以通过将其设置为 `true` 来启用日志记录。当设置为 `false` 时,将不会创建日志文件。默认值为 `true`。
41
- - **`LOG_LEVEL`** (可选): 设置日志级别。可用选项包括:`"fatal"`、`"error"`、`"warn"`、`"info"`、`"debug"`、`"trace"`。默认值为 `"info"`。
41
+ - **`LOG_LEVEL`** (可选): 设置日志级别。可用选项包括:`"fatal"`、`"error"`、`"warn"`、`"info"`、`"debug"`、`"trace"`。默认值为 `"debug"`。
42
42
  - **日志系统**: Claude Code Router 使用两个独立的日志系统:
43
43
  - **服务器级别日志**: HTTP 请求、API 调用和服务器事件使用 pino 记录在 `~/.claude-code-router/logs/` 目录中,文件名类似于 `ccr-*.log`
44
44
  - **应用程序级别日志**: 路由决策和业务逻辑事件记录在 `~/.claude-code-router/claude-code-router.log` 文件中
@@ -182,7 +182,7 @@ ccr code
182
182
  > ccr restart
183
183
  > ```
184
184
 
185
- ### 4. UI 模式 (Beta)
185
+ ### 4. UI 模式
186
186
 
187
187
  为了获得更直观的体验,您可以使用 UI 模式来管理您的配置:
188
188
 
@@ -194,8 +194,6 @@ ccr ui
194
194
 
195
195
  ![UI](/blog/images/ui.png)
196
196
 
197
- > **注意**: UI 模式目前处于测试阶段。这是一个 100% vibe coding的项目,包括项目的初始化,我只是新建了一个文件夹和一个project.md文档。所有代码均由 ccr + qwen3-coder + gemini(webSearch) 实现。如有问题请提交 issue。
198
-
199
197
  #### Providers
200
198
 
201
199
  `Providers` 数组是您定义要使用的不同模型提供商的地方。每个提供商对象都需要:
@@ -375,6 +373,12 @@ module.exports = async function router(req, config) {
375
373
  请帮我分析这段代码是否存在潜在的优化空间...
376
374
  ```
377
375
 
376
+ ## Status Line (Beta)
377
+ 为了在运行时更好的查看claude-code-router的状态,claude-code-router在v1.0.40内置了一个statusline工具,你可以在UI中启用它,
378
+ ![statusline-config.png](/blog/images/statusline-config.png)
379
+
380
+ 效果如下:
381
+ ![statusline](/blog/images/statusline.png)
378
382
 
379
383
  ## 🤖 GitHub Actions
380
384
 
@@ -511,7 +515,8 @@ jobs:
511
515
  - @水\*丫
512
516
  - @二吉吉
513
517
  - @a\*g
514
- - @*林
518
+ - @\*林
519
+ - @\*咸
515
520
 
516
521
  (如果您的名字被屏蔽,请通过我的主页电子邮件与我联系,以便使用您的 GitHub 用户名进行更新。)
517
522