@simonyea/holysheep-cli 1.5.0 → 1.5.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 CHANGED
@@ -7,7 +7,6 @@
7
7
  [![npm version](https://img.shields.io/npm/v/@simonyea/holysheep-cli?color=orange&label=npm)](https://www.npmjs.com/package/@simonyea/holysheep-cli)
8
8
  [![npm downloads](https://img.shields.io/npm/dm/@simonyea/holysheep-cli?color=blue)](https://www.npmjs.com/package/@simonyea/holysheep-cli)
9
9
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
10
- [![GitHub stars](https://img.shields.io/github/stars/holysheep123/holysheep-cli?style=social)](https://github.com/holysheep123/holysheep-cli)
11
10
 
12
11
  <br/>
13
12
 
@@ -41,14 +40,10 @@ Instead of manually editing config files for each tool, run one command and you'
41
40
  | [Aider](https://aider.chat) | `~/.aider.conf.yml` | ✅ Auto |
42
41
  | [Continue.dev](https://continue.dev) | `~/.continue/config.yaml` | ✅ Auto |
43
42
  | [OpenCode](https://github.com/anomalyco/opencode) | `~/.config/opencode/opencode.json` | ✅ Auto |
44
- | [OpenClaw](https://github.com/openclaw/openclaw) | `~/.openclaw/openclaw.json` | ✅ Auto |
43
+ | [OpenClaw](https://openclaw.ai) | `~/.openclaw/openclaw.json` | ✅ Auto |
45
44
  | [Cursor](https://cursor.sh) | GUI (encrypted storage) | ⚠️ Manual |
46
45
  | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | Google protocol only | ❌ Not supported |
47
46
 
48
- > **Cursor**: API keys are stored in encrypted secret storage. Configure manually via `Settings → Models → Override OpenAI Base URL`.
49
- >
50
- > **Gemini CLI**: Uses Google's proprietary protocol and does not support custom relay endpoints.
51
-
52
47
  ### Quick Start
53
48
 
54
49
  ```bash
@@ -62,15 +57,30 @@ npm install -g @simonyea/holysheep-cli
62
57
  hs setup
63
58
  ```
64
59
 
65
- You'll be prompted for your API Key (`cr_xxx`), then the tool will auto-detect installed AI tools and configure them all.
60
+ You'll be prompted for your API Key (`cr_xxx`), then select the tools to configure. Done!
61
+
62
+ ### OpenClaw Setup
63
+
64
+ [OpenClaw](https://openclaw.ai) is a powerful AI agent gateway with a web dashboard. After running `hs setup`:
65
+
66
+ 1. A new terminal window opens running the OpenClaw Gateway
67
+ 2. Open your browser: **http://127.0.0.1:18789/**
68
+ 3. Start chatting — no token required
69
+
70
+ > **Keep the gateway window open** while using OpenClaw. The gateway must be running for the browser UI to work.
71
+
72
+ To restart the gateway later:
73
+ ```bash
74
+ npx openclaw gateway --port 18789
75
+ ```
66
76
 
67
77
  ### Commands
68
78
 
69
79
  | Command | Description |
70
80
  |---------|-------------|
71
- | `hs setup` | Configure all AI tools interactively |
81
+ | `hs setup` | Configure AI tools interactively |
72
82
  | `hs login` | Save your API Key locally |
73
- | `hs doctor` | Check configuration status & connectivity |
83
+ | `hs doctor` | Check configuration & connectivity |
74
84
  | `hs balance` | View account balance |
75
85
  | `hs tools` | List all supported tools |
76
86
  | `hs reset` | Remove all HolySheep configuration |
@@ -92,24 +102,20 @@ You'll be prompted for your API Key (`cr_xxx`), then the tool will auto-detect i
92
102
 
93
103
  **HolySheep CLI**(命令 `hs`)是一个命令行工具,帮你一键配置所有主流 AI 编程助手接入 [HolySheep API](https://holysheep.ai)。
94
104
 
95
- 不用再逐个工具手动改配置文件和环境变量,运行一条命令全部搞定。
105
+ 无需 VPN,无需手动改配置文件,运行一条命令即可接入 Claude、GPT、Gemini。
96
106
 
97
107
  ### 支持的工具
98
108
 
99
- | 工具 | 配置文件 | 状态 |
100
- |------|---------|------|
101
- | [Claude Code](https://docs.anthropic.com/claude-code) | `~/.claude/settings.json` | 自动 |
102
- | [Codex CLI](https://github.com/openai/codex) | `~/.codex/config.toml` | 自动 |
103
- | [Aider](https://aider.chat) | `~/.aider.conf.yml` | 自动 |
104
- | [Continue.dev](https://continue.dev) | `~/.continue/config.yaml` | 自动 |
105
- | [OpenCode](https://github.com/anomalyco/opencode) | `~/.config/opencode/opencode.json` | 自动 |
106
- | [OpenClaw](https://github.com/openclaw/openclaw) | `~/.openclaw/openclaw.json` | 自动 |
107
- | [Cursor](https://cursor.sh) | GUI(加密存储) | ⚠️ 手动 |
108
- | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | 仅支持 Google 官方协议 | ❌ 不支持 |
109
-
110
- > **Cursor**:API Key 存储在加密区域,CLI 无法写入。登录后在 `Settings → Models → Override OpenAI Base URL` 手动填入。
111
- >
112
- > **Gemini CLI**:使用 Google 专有协议,不支持自定义中转地址。
109
+ | 工具 | 状态 | 说明 |
110
+ |------|------|------|
111
+ | [Claude Code](https://docs.anthropic.com/claude-code) | 自动 | Anthropic 官方 CLI |
112
+ | [Codex CLI](https://github.com/openai/codex) | 自动 | OpenAI 官方 CLI |
113
+ | [Aider](https://aider.chat) | 自动 | AI 结对编程 |
114
+ | [Continue.dev](https://continue.dev) | 自动 | VS Code/JetBrains 插件 |
115
+ | [OpenCode](https://github.com/anomalyco/opencode) | 自动 | 终端 AI 编程助手 |
116
+ | [OpenClaw](https://openclaw.ai) | 自动 | AI 智能体网关 + Web 界面 |
117
+ | [Cursor](https://cursor.sh) | ⚠️ 手动 | 需在 GUI 中手动配置 |
118
+ | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | ❌ 不支持 | 仅支持 Google 官方协议 |
113
119
 
114
120
  ### 快速开始
115
121
 
@@ -124,14 +130,33 @@ npm install -g @simonyea/holysheep-cli
124
130
  hs setup
125
131
  ```
126
132
 
127
- 按提示输入 API Key(`cr_xxx`),工具会自动检测已安装的 AI 工具并完成配置。
133
+ 按提示输入 API Key(`cr_xxx`),选择要配置的工具,完成!
134
+
135
+ ### OpenClaw 使用说明
136
+
137
+ [OpenClaw](https://openclaw.ai) 是一个 AI 智能体网关,提供浏览器 Web 界面,支持聊天、任务、工具调用等功能。
138
+
139
+ **`hs setup` 配置完成后:**
140
+
141
+ 1. 自动弹出一个新终端窗口,运行 OpenClaw Gateway
142
+ 2. 打开浏览器访问:**http://127.0.0.1:18789/**
143
+ 3. 直接开始聊天,无需填写 token
144
+
145
+ > ⚠️ **保持 Gateway 窗口开启**,关闭后 Gateway 停止,浏览器界面无法使用。
146
+
147
+ **下次启动 Gateway:**
148
+ ```bash
149
+ npx openclaw gateway --port 18789
150
+ ```
151
+
152
+ **使用的模型:** `claude-sonnet-4-6`(通过 HolySheep 中转)
128
153
 
129
154
  ### 命令说明
130
155
 
131
156
  | 命令 | 说明 |
132
157
  |------|------|
133
- | `hs setup` | 交互式配置所有 AI 工具 |
134
- | `hs login` | 登录并保存 API Key 到本地 |
158
+ | `hs setup` | 交互式配置 AI 工具 |
159
+ | `hs login` | 保存 API Key 到本地 |
135
160
  | `hs doctor` | 检查配置状态和连通性 |
136
161
  | `hs balance` | 查看账户余额 |
137
162
  | `hs tools` | 列出所有支持的工具 |
@@ -152,11 +177,14 @@ A: 在 [holysheep.ai](https://holysheep.ai) 注册后,在「API 密钥」页
152
177
  **Q: 支持 Windows 吗?**
153
178
  A: 支持,需要 Node.js 16+。如果 `hs` 命令找不到,请重启终端,或直接用 `npx @simonyea/holysheep-cli@latest setup`。
154
179
 
180
+ **Q: OpenClaw Gateway 窗口可以最小化吗?**
181
+ A: 可以最小化,但不能关闭。关闭后 Gateway 停止,需重新运行 `npx openclaw gateway --port 18789`。
182
+
155
183
  **Q: 如何恢复原来的配置?**
156
184
  A: 运行 `hs reset` 清除所有 HolySheep 相关配置。
157
185
 
158
186
  **Q: OpenClaw 安装失败?**
159
- A: OpenClaw 需要 Node.js 22+,运行 `node --version` 确认版本后重试。
187
+ A: OpenClaw 需要 Node.js 20+,运行 `node --version` 确认版本后重试。
160
188
 
161
189
  ---
162
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonyea/holysheep-cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "一键配置所有 AI 编程工具接入 HolySheep API — Claude Code / Codex / Gemini CLI / OpenCode / OpenClaw / Aider / Cursor",
5
5
  "keywords": [
6
6
  "claude",
@@ -15,7 +15,7 @@ const AUTO_INSTALL = {
15
15
  'codex': { cmd: 'npm install -g @openai/codex', mgr: 'npm' },
16
16
  'gemini-cli': { cmd: 'npm install -g @google/gemini-cli', mgr: 'npm' },
17
17
  'opencode': { cmd: 'npm install -g opencode-ai', mgr: 'npm' },
18
- 'openclaw': { cmd: 'npm install -g openclaw@latest', mgr: 'npm' },
18
+ 'openclaw': { cmd: 'npm install -g openclaw@latest --ignore-scripts', mgr: 'npm' },
19
19
  'aider': { cmd: 'pip install aider-chat', mgr: 'pip' },
20
20
  }
21
21