@wengine-ai/llms 2.0.84 → 2.0.86

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
@@ -1,17 +1,10 @@
1
1
  ![](blog/images/claude-code-router-img.png)
2
2
 
3
- [![](https://img.shields.io/badge/%F0%9F%87%A8%F0%9F%87%B3-%E4%B8%AD%E6%96%87%E7%89%88-ff0000?style=flat)](README_zh.md)
4
- [![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?&logo=discord&logoColor=white)](https://discord.gg/rdftVMaUcS)
5
- [![](https://img.shields.io/github/license/musistudio/claude-code-router)](https://github.com/musistudio/claude-code-router/blob/main/LICENSE)
3
+ **[🇨🇳 中文文档](README_zh.md)** | **[🇬🇧 English](README.md)** | [![npm version](https://badge.fury.io/js/claude-code-router-next.svg)](https://www.npmjs.com/package/claude-code-router-next)
6
4
 
7
- <hr>
8
-
9
- ![](blog/images/sponsors/glm-en.jpg)
10
- > This project is sponsored by Z.ai, supporting us with their GLM CODING PLAN.
5
+ > **Note**: The original [claude-code-router](https://github.com/musistudio/claude-code-router) repository is no longer actively maintained. This project is a community-driven fork that continues to be actively developed and maintained with bug fixes, new features, and ongoing improvements.
11
6
 
12
- > GLM CODING PLAN is a subscription service designed for AI coding, starting at just $10/month. It provides access to their flagship GLM-4.7 & (GLM-5 Only Available for Pro Users)model across 10+ popular AI coding tools (Claude Code, Cline, Roo Code, etc.), offering developers top-tier, fast, and stable coding experiences.
13
-
14
- > Get 10% OFF GLM CODING PLAN:https://z.ai/subscribe?ic=8JVLJQFSKB
7
+ <hr>
15
8
 
16
9
  > [Progressive Disclosure of Agent Tools from the Perspective of CLI Tool Style](/blog/en/progressive-disclosure-of-agent-tools-from-the-perspective-of-cli-tool-style.md)
17
10
 
@@ -46,7 +39,7 @@ npm install -g @anthropic-ai/claude-code
46
39
  Then, install Claude Code Router:
47
40
 
48
41
  ```shell
49
- npm install -g @wengine-ai/claude-code-router
42
+ npm install -g claude-code-router-next
50
43
  ```
51
44
 
52
45
  #### Option B: Install from GitHub (Latest Development Version)
@@ -55,13 +48,13 @@ If you want to use the latest features and bug fixes directly from the source co
55
48
 
56
49
  1. **Uninstall the current version first** (to prevent command conflicts):
57
50
  ```shell
58
- npm uninstall -g @wengine-ai/claude-code-router @musistudio/claude-code-router
51
+ npm uninstall -g claude-code-router-next @musistudio/claude-code-router @wengine-ai/claude-code-router
59
52
  ```
60
53
 
61
54
  2. **Clone and link locally** (recommended for developers):
62
55
  ```shell
63
- git clone https://github.com/xiaoliu10/claude-code-router.git
64
- cd claude-code-router
56
+ git clone https://github.com/xiaoliu10/claude-code-router-next.git
57
+ cd claude-code-router-next
65
58
  pnpm install
66
59
  pnpm build
67
60
  npm link
@@ -69,23 +62,25 @@ If you want to use the latest features and bug fixes directly from the source co
69
62
 
70
63
  *Alternatively, install directly from GitHub globally:*
71
64
  ```shell
72
- npm install -g github:xiaoliu10/claude-code-router
65
+ npm install -g github:xiaoliu10/claude-code-router-next
73
66
  ```
74
67
 
75
68
  #### 🔄 Migrating from the Official Upstream (@musistudio/claude-code-router)
76
69
 
77
- If you are currently using the upstream community version `@musistudio/claude-code-router` and want to switch to this repository's version (`@wengine-ai/claude-code-router`) for advanced features (e.g. enhanced token-limit UI bars, DeepSeek thinking compatibilities, active health probes):
70
+ If you are currently using the upstream community version `@musistudio/claude-code-router` or the previous version `@wengine-ai/claude-code-router` and want to switch to `claude-code-router-next`:
78
71
 
79
- 1. **Uninstall the upstream community version**:
72
+ 1. **Uninstall the old version**:
80
73
  ```shell
81
- npm uninstall -g @musistudio/claude-code-router
74
+ npm uninstall -g @musistudio/claude-code-router @wengine-ai/claude-code-router
82
75
  ```
83
76
 
84
77
  2. **Install this version**:
85
78
  ```shell
86
- npm install -g @wengine-ai/claude-code-router
79
+ npm install -g claude-code-router-next
87
80
  ```
88
81
 
82
+ > **Note**: Your existing configuration at `~/.claude-code-router/config.json` is **not affected** by uninstalling the old package. The new version will automatically read your existing configuration.
83
+
89
84
  ### 2. Configuration
90
85
 
91
86
  Create and configure your `~/.claude-code-router/config.json` file. For more details, you can refer to `config.example.json`.
@@ -253,20 +248,12 @@ To use the router, you need to acquire API Keys from your preferred LLM provider
253
248
  #### 1. Zhipu AI (BigModel / GLM CODING PLAN)
254
249
  * **Platform**: Zhipu BigModel Platform (sponsored partner)
255
250
  * **Link**: [Zhipu AI BigModel Platform](https://www.bigmodel.cn/claude-code?ic=RRVJPB5SII) (Use this referral link for a 10% discount on GLM CODING PLAN)
256
- * **Acquisition Methods**:
257
- * **Method A: Standard Developer API Key (Pay-as-you-go)**
258
- 1. Register and log in using the link above.
259
- 2. Go to the top-right **Console** -> **API Keys**.
260
- 3. Copy your API Key.
261
- * **Method B: GLM CODING PLAN Web Token (Recommended for Subscription Users)**
262
- If you are using the AI coding subscription plan (monthly flat-rate), you need to get your browser's session `Authorization` token:
263
- 1. Log in to the [Zhipu AI BigModel Platform](https://www.bigmodel.cn/claude-code?ic=RRVJPB5SII).
264
- 2. Open your browser's Developer Tools (F12) and go to the **Network** tab.
265
- 3. Refresh the page or click on any feature (e.g., check your usage). Look for any XHR/Fetch request (such as `usage`, `interfaceacting.js`, etc.).
266
- 4. Inspect the **Request Headers** of that request, locate the **`Authorization`** header, and copy its entire value (which starts with `Bearer eyJ...`).
267
- 5. Paste this copied `Bearer ...` token into your `api_key` configuration.
268
-
269
- ![Zhipu Web Token Acquisition](blog/images/zhipu-auth.png)
251
+ * **Acquisition Method**:
252
+ 1. Register and log in using the link above.
253
+ 2. Go to the top-right **Console** -> **API Keys**.
254
+ 3. Copy your API Key.
255
+
256
+ GLM CODING PLAN quota information is fetched with this API Key, so you no longer need to configure a web token or `quotaToken`.
270
257
 
271
258
  #### 2. Alibaba Cloud (DashScope / Bailian / Qwen-Coder)
272
259
  * **Platform**: Alibaba Cloud Bailian (highly capable Qwen-Coder models)
@@ -278,7 +265,7 @@ To use the router, you need to acquire API Keys from your preferred LLM provider
278
265
  3. Click on **API-KEY** in the dropdown.
279
266
  4. Click **Create New API-KEY** and copy the generated key.
280
267
  * **Method B: Aliyun Console Cookie (For Quota Visualization in UI)**
281
- If you want the Claude Code Router UI to fetch and display your beautiful monthly **GLM/Qwen Coding Plan** quota progress bars, you need to configure your console session `Cookie` as `quotaToken` in your configuration:
268
+ If you want the Claude Code Router UI to fetch and display your monthly **Qwen Coding Plan** quota progress bars, you need to configure your console session `Cookie` as `quotaToken` in your configuration:
282
269
  1. Log in to the [Alibaba Cloud Bailian Console](https://bailian.console.aliyun.com/).
283
270
  2. Open your browser's Developer Tools (F12) and switch to the **Network** tab.
284
271
  3. Click the **Refresh** (用量刷新) button on the console's usage cards.
@@ -696,7 +683,7 @@ jobs:
696
683
 
697
684
  - name: Start Claude Code Router
698
685
  run: |
699
- nohup ~/.bun/bin/bunx @wengine-ai/claude-code-router@latest start &
686
+ nohup ~/.bun/bin/bunx claude-code-router-next@latest start &
700
687
  shell: bash
701
688
 
702
689
  - name: Run Claude Code
@@ -733,114 +720,3 @@ If you find this project helpful, please consider sponsoring its development. Yo
733
720
  </tr>
734
721
  </table>
735
722
 
736
- ### Our Sponsors
737
-
738
- A huge thank you to all our sponsors for their generous support!
739
-
740
-
741
- - [AIHubmix](https://aihubmix.com/)
742
- - [BurnCloud](https://ai.burncloud.com)
743
- - [302.AI](https://share.302.ai/ZGVF9w)
744
- - [Z智谱](https://www.bigmodel.cn/claude-code?ic=FPF9IVAGFJ)
745
- - @Simon Leischnig
746
- - [@duanshuaimin](https://github.com/duanshuaimin)
747
- - [@vrgitadmin](https://github.com/vrgitadmin)
748
- - @\*o
749
- - [@ceilwoo](https://github.com/ceilwoo)
750
- - @\*说
751
- - @\*更
752
- - @K\*g
753
- - @R\*R
754
- - [@bobleer](https://github.com/bobleer)
755
- - @\*苗
756
- - @\*划
757
- - [@Clarence-pan](https://github.com/Clarence-pan)
758
- - [@carter003](https://github.com/carter003)
759
- - @S\*r
760
- - @\*晖
761
- - @\*敏
762
- - @Z\*z
763
- - @\*然
764
- - [@cluic](https://github.com/cluic)
765
- - @\*苗
766
- - [@PromptExpert](https://github.com/PromptExpert)
767
- - @\*应
768
- - [@yusnake](https://github.com/yusnake)
769
- - @\*飞
770
- - @董\*
771
- - @\*汀
772
- - @\*涯
773
- - @\*:-)
774
- - @\*\*磊
775
- - @\*琢
776
- - @\*成
777
- - @Z\*o
778
- - @\*琨
779
- - [@congzhangzh](https://github.com/congzhangzh)
780
- - @\*\_
781
- - @Z\*m
782
- - @*鑫
783
- - @c\*y
784
- - @\*昕
785
- - [@witsice](https://github.com/witsice)
786
- - @b\*g
787
- - @\*亿
788
- - @\*辉
789
- - @JACK
790
- - @\*光
791
- - @W\*l
792
- - [@kesku](https://github.com/kesku)
793
- - [@biguncle](https://github.com/biguncle)
794
- - @二吉吉
795
- - @a\*g
796
- - @\*林
797
- - @\*咸
798
- - @\*明
799
- - @S\*y
800
- - @f\*o
801
- - @\*智
802
- - @F\*t
803
- - @r\*c
804
- - [@qierkang](http://github.com/qierkang)
805
- - @\*军
806
- - [@snrise-z](http://github.com/snrise-z)
807
- - @\*王
808
- - [@greatheart1000](http://github.com/greatheart1000)
809
- - @\*王
810
- - @zcutlip
811
- - [@Peng-YM](http://github.com/Peng-YM)
812
- - @\*更
813
- - @\*.
814
- - @F\*t
815
- - @\*政
816
- - @\*铭
817
- - @\*叶
818
- - @七\*o
819
- - @\*青
820
- - @\*\*晨
821
- - @\*远
822
- - @\*霄
823
- - @\*\*吉
824
- - @\*\*飞
825
- - @\*\*驰
826
- - @x\*g
827
- - @\*\*东
828
- - @\*落
829
- - @哆\*k
830
- - @\*涛
831
- - [@苗大](https://github.com/WitMiao)
832
- - @\*呢
833
- - @\d*u
834
- - @crizcraig
835
- - s\*s
836
- - \*火
837
- - \*勤
838
- - \*\*锟
839
- - \*涛
840
- - \*\*明
841
- - \*知
842
- - \*语
843
- - \*瓜
844
-
845
-
846
- (If your name is masked, please contact me via my homepage email to update it with your GitHub username.)