yymaxapi 1.0.38 → 1.0.39
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/bin/yymaxapi.js
CHANGED
|
@@ -203,7 +203,10 @@ function loadPresetData() {
|
|
|
203
203
|
const presetCandidates = [
|
|
204
204
|
envPreset,
|
|
205
205
|
path.join(__dirname, '..', 'config', 'API节点设置.md'),
|
|
206
|
+
// 兼容:历史版本/某些环境下文件名编码异常(显示为乱码)
|
|
207
|
+
path.join(__dirname, '..', 'config', 'API鑺傜偣璁剧疆.md'),
|
|
206
208
|
path.join(__dirname, 'API节点设置.md'),
|
|
209
|
+
path.join(__dirname, 'API鑺傜偣璁剧疆.md'),
|
|
207
210
|
path.join(__dirname, 'presets.json')
|
|
208
211
|
].filter(Boolean);
|
|
209
212
|
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# API 节点设置
|
|
2
|
+
|
|
3
|
+
这是 OpenClawApi 的默认预设文件(节点 / 模型 / API 类型)。
|
|
4
|
+
|
|
5
|
+
- **CLI 会自动读取此文件**,无需记忆其他位置。
|
|
6
|
+
- 仅需修改下面的 **JSON5 配置块**。
|
|
7
|
+
- 保持字段结构不变,否则 CLI 会回退到内置默认值。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 生效配置(JSON5)
|
|
12
|
+
|
|
13
|
+
```json5
|
|
14
|
+
{
|
|
15
|
+
"endpoints": [
|
|
16
|
+
{ "name": "国内主节点", "url": "https://yunyi.rdzhvip.com" },
|
|
17
|
+
{ "name": "CF国外节点1", "url": "https://yunyi.cfd" },
|
|
18
|
+
{ "name": "CF国外节点2", "url": "https://cdn1.yunyi.cfd" },
|
|
19
|
+
{ "name": "CF国外节点3", "url": "https://cdn2.yunyi.cfd" }
|
|
20
|
+
],
|
|
21
|
+
"fallbackEndpoints": [
|
|
22
|
+
{ "name": "备用节点1", "url": "http://47.99.42.193" },
|
|
23
|
+
{ "name": "备用节点2", "url": "http://47.97.100.10" }
|
|
24
|
+
],
|
|
25
|
+
"models": {
|
|
26
|
+
"claude": [
|
|
27
|
+
{ "id": "claude-opus-4-6", "name": "Claude Opus 4.6" },
|
|
28
|
+
{ "id": "claude-opus-4-6-Thinking", "name": "Claude Opus 4.6 Thinking" },
|
|
29
|
+
{ "id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6" },
|
|
30
|
+
{ "id": "claude-sonnet-4-6-Thinking", "name": "Claude Sonnet 4.6 Thinking" },
|
|
31
|
+
{ "id": "claude-haiku-4-5", "name": "Claude Haiku 4.5" }
|
|
32
|
+
],
|
|
33
|
+
"codex": [
|
|
34
|
+
{ "id": "gpt-5.3-codex", "name": "GPT 5.3 Codex" },
|
|
35
|
+
{ "id": "gpt-5.2", "name": "GPT 5.2" }
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"apiConfig": {
|
|
39
|
+
"claude": {
|
|
40
|
+
"urlSuffix": "/claude",
|
|
41
|
+
"api": "anthropic-messages",
|
|
42
|
+
"contextWindow": 200000,
|
|
43
|
+
"maxTokens": 8192,
|
|
44
|
+
"providerName": "claude-yunyi"
|
|
45
|
+
},
|
|
46
|
+
"codex": {
|
|
47
|
+
"urlSuffix": "/codex/v1",
|
|
48
|
+
"api": "openai-responses",
|
|
49
|
+
"contextWindow": 128000,
|
|
50
|
+
"maxTokens": 32768,
|
|
51
|
+
"providerName": "yunyi"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 修改建议
|
|
60
|
+
|
|
61
|
+
- **换节点**:改 `endpoints` 列表
|
|
62
|
+
- **换模型**:改 `models.claude` 或 `models.codex`
|
|
63
|
+
- **换 API 类型/路径**:改 `apiConfig`
|
|
64
|
+
|
|
65
|
+
修改后直接运行:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npx yymaxapi@latest
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 腾讯云自定义模型配置
|
|
74
|
+
|
|
75
|
+
在腾讯云 OpenClaw 部署中,使用「自定义模型」接入云翼中转,已验证可用的配置:
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"provider": "anthropic",
|
|
80
|
+
"base_url": "https://yunyi.rdzhvip.com/claude",
|
|
81
|
+
"api": "anthropic-messages",
|
|
82
|
+
"api_key": "<你的云翼 API Key>",
|
|
83
|
+
"model": {
|
|
84
|
+
"id": "claude-opus-4-6",
|
|
85
|
+
"name": "Claude Opus 4.6"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**注意事项:**
|
|
91
|
+
- `base_url` 不要加 `/v1`,平台会自动拼接 `/v1/messages`
|
|
92
|
+
- 可用模型:`claude-opus-4-6`、`claude-opus-4-6-Thinking`、`claude-sonnet-4-6`、`claude-sonnet-4-6-Thinking`、`claude-haiku-4-5`
|
|
93
|
+
- 已验证环境:腾讯云 OpenCloudOS,OpenClaw `2026.2.3-1`
|
|
94
|
+
- 参考文档:https://cloud.tencent.com/developer/article/2624003
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"lastTouchedVersion": "2026.2.14",
|
|
4
|
+
"lastTouchedAt": "2026-03-01T12:55:23.903Z"
|
|
5
|
+
},
|
|
6
|
+
"wizard": {
|
|
7
|
+
"lastRunAt": "2026-02-16T14:33:54.345Z",
|
|
8
|
+
"lastRunVersion": "0.1.4",
|
|
9
|
+
"lastRunCommand": "configure",
|
|
10
|
+
"lastRunMode": "local"
|
|
11
|
+
},
|
|
12
|
+
"models": {
|
|
13
|
+
"mode": "merge",
|
|
14
|
+
"providers": {
|
|
15
|
+
"claude-yunyi": {
|
|
16
|
+
"baseUrl": "https://yunyi.rdzhvip.com/claude",
|
|
17
|
+
"api": "anthropic-messages",
|
|
18
|
+
"apiKey": "YOUR_API_KEY_HERE",
|
|
19
|
+
"models": [
|
|
20
|
+
{
|
|
21
|
+
"id": "claude-opus-4-6",
|
|
22
|
+
"name": "Claude Opus 4.6",
|
|
23
|
+
"contextWindow": 200000,
|
|
24
|
+
"maxTokens": 8192
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"yunyi": {
|
|
29
|
+
"baseUrl": "https://yunyi.rdzhvip.com/codex/v1",
|
|
30
|
+
"api": "openai-responses",
|
|
31
|
+
"apiKey": "YOUR_API_KEY_HERE",
|
|
32
|
+
"models": [
|
|
33
|
+
{
|
|
34
|
+
"id": "gpt-5.3-codex",
|
|
35
|
+
"name": "GPT 5.3 Codex",
|
|
36
|
+
"contextWindow": 128000,
|
|
37
|
+
"maxTokens": 32768
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"agents": {
|
|
44
|
+
"defaults": {
|
|
45
|
+
"model": {
|
|
46
|
+
"primary": "claude-yunyi/claude-opus-4-6",
|
|
47
|
+
"fallbacks": [
|
|
48
|
+
"yunyi/gpt-5.3-codex"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"models": {
|
|
52
|
+
"claude-yunyi/claude-opus-4-6": {
|
|
53
|
+
"alias": "claude-yunyi"
|
|
54
|
+
},
|
|
55
|
+
"yunyi/gpt-5.3-codex": {
|
|
56
|
+
"alias": "yunyi"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"workspace": "D:\\\\path\\\\to\\\\your\\\\workspace",
|
|
60
|
+
"compaction": {
|
|
61
|
+
"mode": "safeguard"
|
|
62
|
+
},
|
|
63
|
+
"maxConcurrent": 4,
|
|
64
|
+
"subagents": {
|
|
65
|
+
"maxConcurrent": 8
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"list": []
|
|
69
|
+
},
|
|
70
|
+
"tools": {
|
|
71
|
+
"elevated": {
|
|
72
|
+
"enabled": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"messages": {
|
|
76
|
+
"ackReactionScope": "group-mentions"
|
|
77
|
+
},
|
|
78
|
+
"commands": {
|
|
79
|
+
"native": false,
|
|
80
|
+
"nativeSkills": false
|
|
81
|
+
},
|
|
82
|
+
"channels": {
|
|
83
|
+
"telegram": {
|
|
84
|
+
"enabled": false,
|
|
85
|
+
"dmPolicy": "open",
|
|
86
|
+
"botToken": "YOUR_TELEGRAM_BOT_TOKEN",
|
|
87
|
+
"allowFrom": [
|
|
88
|
+
"*"
|
|
89
|
+
],
|
|
90
|
+
"groupPolicy": "allowlist",
|
|
91
|
+
"streamMode": "partial"
|
|
92
|
+
},
|
|
93
|
+
"feishu": {
|
|
94
|
+
"appId": "YOUR_FEISHU_APP_ID",
|
|
95
|
+
"appSecret": "YOUR_FEISHU_APP_SECRET",
|
|
96
|
+
"botName": "测试clawbot",
|
|
97
|
+
"accounts": {
|
|
98
|
+
"default": {
|
|
99
|
+
"appId": "YOUR_FEISHU_APP_ID",
|
|
100
|
+
"appSecret": "YOUR_FEISHU_APP_SECRET",
|
|
101
|
+
"enabled": true
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"gateway": {
|
|
107
|
+
"port": 18789,
|
|
108
|
+
"mode": "local",
|
|
109
|
+
"bind": "loopback",
|
|
110
|
+
"auth": {
|
|
111
|
+
"mode": "token",
|
|
112
|
+
"token": "YOUR_GATEWAY_TOKEN"
|
|
113
|
+
},
|
|
114
|
+
"remote": {
|
|
115
|
+
"token": "YOUR_REMOTE_TOKEN"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"plugins": {
|
|
119
|
+
"load": {
|
|
120
|
+
"paths": [
|
|
121
|
+
"C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\openclaw-cn\\\\extensions\\\\feishu"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"entries": {
|
|
125
|
+
"google-antigravity-auth": {
|
|
126
|
+
"enabled": true
|
|
127
|
+
},
|
|
128
|
+
"telegram": {
|
|
129
|
+
"enabled": true
|
|
130
|
+
},
|
|
131
|
+
"feishu": {
|
|
132
|
+
"enabled": true
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"auth": {
|
|
137
|
+
"profiles": {
|
|
138
|
+
"claude-yunyi:default": {
|
|
139
|
+
"provider": "claude-yunyi",
|
|
140
|
+
"mode": "api_key"
|
|
141
|
+
},
|
|
142
|
+
"yunyi:default": {
|
|
143
|
+
"provider": "yunyi",
|
|
144
|
+
"mode": "api_key"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yymaxapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
|
|
5
5
|
"main": "bin/yymaxapi.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"bin/",
|
|
27
27
|
"lib/",
|
|
28
28
|
"README.md",
|
|
29
|
-
"config/
|
|
29
|
+
"config/",
|
|
30
30
|
"install.sh",
|
|
31
31
|
"install.ps1"
|
|
32
32
|
],
|