claude-glm 1.0.0 → 1.0.1
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 +38 -21
- package/bin/ccx +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,19 @@ Switch freely between multiple AI providers: GLM, OpenAI, Gemini, OpenRouter, an
|
|
|
12
12
|
**🔀 In-session switching**: With ccx, switch models without restarting
|
|
13
13
|
**🎯 Perfect for**: Development, testing, or when you want model flexibility
|
|
14
14
|
|
|
15
|
-
> **Note:** This is a fork of [JoeInnsp23/claude-glm-wrapper](https://github.com/JoeInnsp23/claude-glm-wrapper) with additional features (multi-provider proxy, dangerously-skip-permissions shortcuts, etc.) that haven't been merged upstream. The `npx claude-glm-installer` command installs from the **original** repo and won't include these features. **Use the local clone method below to get the full version.**
|
|
16
|
-
|
|
17
15
|
## Quick Start
|
|
18
16
|
|
|
19
|
-
### Installation (
|
|
17
|
+
### Installation (npx - Recommended)
|
|
18
|
+
|
|
19
|
+
**One command, no cloning required:**
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx claude-glm
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This downloads the latest version and runs the installer directly.
|
|
26
|
+
|
|
27
|
+
### Installation (Clone from GitHub)
|
|
20
28
|
|
|
21
29
|
```bash
|
|
22
30
|
# macOS / Linux
|
|
@@ -66,9 +74,34 @@ _Note: If you don't have Node.js, you can use the platform-specific installers (
|
|
|
66
74
|
|
|
67
75
|
## Installation
|
|
68
76
|
|
|
69
|
-
### Method 1:
|
|
77
|
+
### Method 1: npx (Recommended - No Clone Required)
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx claude-glm
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
This downloads the installer from npm and runs it directly. No git clone needed.
|
|
84
|
+
|
|
85
|
+
The installer will:
|
|
86
|
+
- Check if Claude Code is installed
|
|
87
|
+
- Ask for your Z.AI API key
|
|
88
|
+
- Create wrapper scripts in `~/.local/bin/`
|
|
89
|
+
- Add aliases (`cc`, `ccg`, `ccf`, `claude-d`, `claude-glm-d`, etc.) to your shell config
|
|
90
|
+
- Optionally install `ccx` multi-provider proxy
|
|
91
|
+
|
|
92
|
+
After installation, **activate the changes**:
|
|
70
93
|
|
|
71
|
-
|
|
94
|
+
```bash
|
|
95
|
+
# macOS / Linux:
|
|
96
|
+
source ~/.zshrc # or ~/.bashrc
|
|
97
|
+
|
|
98
|
+
# Windows PowerShell:
|
|
99
|
+
. $PROFILE
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Method 2: Clone from GitHub
|
|
103
|
+
|
|
104
|
+
If you prefer to clone the repository or want to modify the code:
|
|
72
105
|
|
|
73
106
|
#### macOS / Linux
|
|
74
107
|
|
|
@@ -88,22 +121,6 @@ cd claude-glm-wrapper
|
|
|
88
121
|
. $PROFILE
|
|
89
122
|
```
|
|
90
123
|
|
|
91
|
-
The installer will:
|
|
92
|
-
|
|
93
|
-
- Check if Claude Code is installed
|
|
94
|
-
- Ask for your Z.AI API key
|
|
95
|
-
- Create wrapper scripts in `~/.local/bin/`
|
|
96
|
-
- Add aliases (`cc`, `ccg`, `ccf`, `claude-d`, `claude-glm-d`, etc.) to your shell config
|
|
97
|
-
- Optionally install `ccx` multi-provider proxy
|
|
98
|
-
|
|
99
|
-
### Method 2: npx
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
npx claude-glm
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
This downloads and runs the installer directly from npm — no cloning needed.
|
|
106
|
-
|
|
107
124
|
## Usage
|
|
108
125
|
|
|
109
126
|
### Available Commands & Aliases
|
package/bin/ccx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -euo pipefail
|
|
3
3
|
|
|
4
|
-
ROOT_DIR="$
|
|
5
|
-
ENV_FILE="$
|
|
4
|
+
ROOT_DIR="$HOME/.claude-proxy"
|
|
5
|
+
ENV_FILE="$ROOT_DIR/.env"
|
|
6
6
|
PORT="${CLAUDE_PROXY_PORT:-17870}"
|
|
7
7
|
|
|
8
8
|
# Check if --setup flag is provided
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-glm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Cross-platform installer for Claude Code with Z.AI GLM models, multi-provider proxy, and dangerously-skip-permissions shortcuts. Run with: npx claude-glm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|