ccman 3.3.24 → 3.3.28
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 +51 -13
- package/dist/index.js +1537 -932
- package/dist/templates/codex/config.toml +11 -5
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ $ ccman cx list
|
|
|
95
95
|
https://api.openai.com/v1
|
|
96
96
|
|
|
97
97
|
○ GMN
|
|
98
|
-
https://
|
|
98
|
+
https://ai.gmncode.com
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
```bash
|
|
@@ -220,38 +220,76 @@ ccman mcp remove # 删除 MCP 服务器
|
|
|
220
220
|
| `ccman export [dir]` | 导出配置到本地目录 |
|
|
221
221
|
| `ccman import [dir]` | 从本地目录导入配置 |
|
|
222
222
|
|
|
223
|
+
服务商管理命令也支持参数模式:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
ccman cx add --name work --base-url https://api.example.com --api-key sk-xxx --switch
|
|
227
|
+
ccman cc add --preset GMN --api-key sk-xxx --switch
|
|
228
|
+
ccman gm edit default --new-name personal --base-url '' --api-key ''
|
|
229
|
+
ccman oc remove old-provider --yes
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
WebDAV 同步支持参数模式和环境变量模式,适合在其他机器非交互执行:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
ccman sync config \
|
|
236
|
+
--webdav-url https://dav.example.com \
|
|
237
|
+
--username alice \
|
|
238
|
+
--password 'YOUR_WEBDAV_PASSWORD' \
|
|
239
|
+
--remote-dir /ccman \
|
|
240
|
+
--sync-password 'YOUR_SYNC_PASSWORD' \
|
|
241
|
+
--remember-sync-password
|
|
242
|
+
|
|
243
|
+
ccman sync download --yes
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
export CCMAN_WEBDAV_URL='https://dav.example.com'
|
|
248
|
+
export CCMAN_WEBDAV_USERNAME='alice'
|
|
249
|
+
export CCMAN_WEBDAV_PASSWORD='YOUR_WEBDAV_PASSWORD'
|
|
250
|
+
export CCMAN_WEBDAV_REMOTE_DIR='/ccman'
|
|
251
|
+
export CCMAN_SYNC_PASSWORD='YOUR_SYNC_PASSWORD'
|
|
252
|
+
|
|
253
|
+
ccman sync config
|
|
254
|
+
ccman sync upload --yes
|
|
255
|
+
```
|
|
256
|
+
|
|
223
257
|
---
|
|
224
258
|
|
|
225
259
|
## 内置预设
|
|
226
260
|
|
|
227
261
|
添加服务商时可以选择"使用预设模板",只需填写 API Key:
|
|
228
262
|
|
|
229
|
-
### Claude Code 预设(
|
|
263
|
+
### Claude Code 预设(3 个)
|
|
230
264
|
|
|
231
|
-
| 预设名称 | Base URL
|
|
232
|
-
| ------------------ |
|
|
233
|
-
| Anthropic Official | `https://api.anthropic.com`
|
|
234
|
-
| GMN | `https://
|
|
265
|
+
| 预设名称 | Base URL |
|
|
266
|
+
| ------------------ | --------------------------- |
|
|
267
|
+
| Anthropic Official | `https://api.anthropic.com` |
|
|
268
|
+
| GMN | `https://ai.gmncode.com` |
|
|
269
|
+
| GMN1 | `https://gmncode.cn` |
|
|
235
270
|
|
|
236
|
-
### Gemini CLI 预设(
|
|
271
|
+
### Gemini CLI 预设(3 个)
|
|
237
272
|
|
|
238
273
|
| 预设名称 | Base URL |
|
|
239
274
|
| ----------------------- | ----------------------------- |
|
|
240
275
|
| Google Gemini (API Key) | 官方默认 |
|
|
241
|
-
| GMN | `https://
|
|
276
|
+
| GMN | `https://ai.gmncode.com` |
|
|
277
|
+
| GMN1 | `https://gmncode.cn` |
|
|
242
278
|
|
|
243
|
-
### Codex 预设(
|
|
279
|
+
### Codex 预设(3 个)
|
|
244
280
|
|
|
245
281
|
| 预设名称 | Base URL |
|
|
246
282
|
| --------------- | ----------------------------- |
|
|
247
283
|
| OpenAI Official | `https://api.openai.com/v1` |
|
|
248
|
-
| GMN | `https://
|
|
284
|
+
| GMN | `https://ai.gmncode.com` |
|
|
285
|
+
| GMN1 | `https://gmncode.cn` |
|
|
249
286
|
|
|
250
|
-
### OpenCode 预设(
|
|
287
|
+
### OpenCode 预设(2 个)
|
|
251
288
|
|
|
252
289
|
| 预设名称 | Base URL |
|
|
253
290
|
| -------- | ----------------------------- |
|
|
254
|
-
| GMN | `https://
|
|
291
|
+
| GMN | `https://ai.gmncode.com` |
|
|
292
|
+
| GMN1 | `https://gmncode.cn` |
|
|
255
293
|
|
|
256
294
|
### MCP 预设(多个)
|
|
257
295
|
|
|
@@ -294,7 +332,7 @@ $ ccman cx current
|
|
|
294
332
|
|
|
295
333
|
GMN
|
|
296
334
|
ID: codex-1760178741529-abc123
|
|
297
|
-
URL: https://
|
|
335
|
+
URL: https://ai.gmncode.com
|
|
298
336
|
最后使用: 2025/10/11 18:32:25
|
|
299
337
|
```
|
|
300
338
|
|