yymaxapi 1.0.0

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 ADDED
@@ -0,0 +1,82 @@
1
+ # yymaxapi - AI 模型配置
2
+
3
+ 配置 OpenClaw 连接 AI 模型(Claude、GPT 等),一条命令搞定。
4
+
5
+ ## 快速开始
6
+
7
+ **方式一:交互式(推荐新手)**
8
+ ```bash
9
+ npx yymaxapi@latest
10
+ ```
11
+ 按提示选择节点和模型即可。
12
+ 主菜单已简化为:激活 Claude / 激活 Codex / 测试连接 / 查看配置 / 恢复 / 退出。
13
+
14
+ **方式二:一键配置 Claude**
15
+ ```bash
16
+ # macOS/Linux
17
+ OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude
18
+
19
+ # Windows PowerShell
20
+ $env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude
21
+
22
+ # Windows CMD
23
+ set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude
24
+ ```
25
+
26
+ **方式三:一键配置 Codex**
27
+ ```bash
28
+ # macOS/Linux
29
+ OPENCLAW_CODEX_KEY="你的Key" npx yymaxapi@latest preset-codex
30
+
31
+ # Windows PowerShell
32
+ $env:OPENCLAW_CODEX_KEY="你的Key"; npx yymaxapi@latest preset-codex
33
+
34
+ # Windows CMD
35
+ set OPENCLAW_CODEX_KEY=你的Key && npx yymaxapi@latest preset-codex
36
+ ```
37
+
38
+ **方式四:完全自动化(无交互)**
39
+ ```bash
40
+ # macOS/Linux
41
+ OPENCLAW_CLAUDE_KEY="你的Key" npx yymaxapi@latest preset-claude --model claude-opus-4-5 --set-primary true --force --test true
42
+
43
+ # Windows PowerShell
44
+ $env:OPENCLAW_CLAUDE_KEY="你的Key"; npx yymaxapi@latest preset-claude --model claude-opus-4-5 --set-primary true --force --test true
45
+
46
+ # Windows CMD
47
+ set OPENCLAW_CLAUDE_KEY=你的Key && npx yymaxapi@latest preset-claude --model claude-opus-4-5 --set-primary true --force --test true
48
+
49
+ # macOS/Linux
50
+ OPENCLAW_CODEX_KEY="你的Key" npx yymaxapi@latest preset-codex --model gpt-5.2 --set-primary true --force --test true
51
+
52
+ # Windows PowerShell
53
+ $env:OPENCLAW_CODEX_KEY="你的Key"; npx yymaxapi@latest preset-codex --model gpt-5.2 --set-primary true --force --test true
54
+
55
+ # Windows CMD
56
+ set OPENCLAW_CODEX_KEY=你的Key && npx yymaxapi@latest preset-codex --model gpt-5.2 --set-primary true --force --test true
57
+ ```
58
+
59
+ ## 重要说明
60
+
61
+ - 一键激活/预设会默认只保留一个中转配置,避免写入过多节点导致混乱
62
+ - 若检测到已有中转配置,会提示确认;使用 `--force` 将直接覆盖
63
+
64
+ ---
65
+
66
+ ## 配置入口(无需记忆)
67
+
68
+ 节点/模型/API 类型配置在:
69
+
70
+ `Service/OpenClawApi/config/API节点设置.md`
71
+
72
+ CLI 会自动读取该文件内的 JSON5 配置块。只需修改这个文件即可。
73
+
74
+ 如需自定义路径,可设置:
75
+
76
+ `OPENCLAW_PRESET_PATH=/path/to/你的配置.md`
77
+
78
+ ## 文档入口
79
+
80
+ 更详细说明在:
81
+
82
+ `Service/OpenClawApi/docs/README.md`