claude-code-runner 0.2.8 → 0.2.9
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 +17 -1
- package/README.zh-Hans.md +34 -0
- package/dist/cli.js +1 -1
- package/dist/container.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,9 @@ npm install -g claude-code-runner
|
|
|
50
50
|
|
|
51
51
|
### Quick Start
|
|
52
52
|
|
|
53
|
-
>
|
|
53
|
+
> [!TIP]
|
|
54
|
+
>
|
|
55
|
+
> For the fastest setup with pre-built image, use the official image by setting `buildImage: false` in your config. The default image (`ghcr.io/yanranxiaoxi/claude-code-runner:latest`) will be used automatically.
|
|
54
56
|
|
|
55
57
|
Simply run in any git repository:
|
|
56
58
|
|
|
@@ -65,6 +67,20 @@ This will:
|
|
|
65
67
|
3. Launch a web UI at `http://localhost:3456`
|
|
66
68
|
4. Open your browser automatically
|
|
67
69
|
|
|
70
|
+
> [!NOTE]
|
|
71
|
+
>
|
|
72
|
+
> **Working with Passphrase-Protected SSH Keys**
|
|
73
|
+
>
|
|
74
|
+
> If your SSH keys are protected with a passphrase, start the SSH agent before running `claude-run`:
|
|
75
|
+
>
|
|
76
|
+
> ```bash
|
|
77
|
+
> eval "$(ssh-agent -s)"
|
|
78
|
+
> ssh-add ~/.ssh/id_rsa # Enter your passphrase once
|
|
79
|
+
> claude-run # SSH agent is forwarded to container
|
|
80
|
+
> ```
|
|
81
|
+
>
|
|
82
|
+
> This allows Claude Code to use your SSH keys without repeatedly prompting for the passphrase.
|
|
83
|
+
|
|
68
84
|
### Commands
|
|
69
85
|
|
|
70
86
|
#### `claude-run` (default)
|
package/README.zh-Hans.md
CHANGED
|
@@ -65,6 +65,40 @@ claude-run
|
|
|
65
65
|
3. 在 `http://localhost:3456` 上启动 Web UI
|
|
66
66
|
4. 自动打开浏览器
|
|
67
67
|
|
|
68
|
+
> [!NOTE]
|
|
69
|
+
>
|
|
70
|
+
> **使用带密码的 SSH 密钥**
|
|
71
|
+
>
|
|
72
|
+
> 如果你的 SSH 密钥设置了密码保护,在运行 `claude-run` 之前先启动 SSH agent:
|
|
73
|
+
>
|
|
74
|
+
> ```bash
|
|
75
|
+
> eval "$(ssh-agent -s)"
|
|
76
|
+
> ssh-add ~/.ssh/id_rsa # 输入一次密码
|
|
77
|
+
> claude-run # SSH agent 会被转发到容器
|
|
78
|
+
> ```
|
|
79
|
+
>
|
|
80
|
+
> 这样 Claude Code 就可以使用你的 SSH 密钥,而不会反复提示输入密码。
|
|
81
|
+
|
|
82
|
+
> [!TIP]
|
|
83
|
+
>
|
|
84
|
+
> **中国大陆用户配置代理**
|
|
85
|
+
>
|
|
86
|
+
> 如果你在中国大陆地区,可能需要配置代理以访问 Claude API。参考 `claude-run.config.cn-example.json` 创建配置文件:
|
|
87
|
+
>
|
|
88
|
+
> ```json
|
|
89
|
+
> {
|
|
90
|
+
> "buildImage": false,
|
|
91
|
+
> "environment": {
|
|
92
|
+
> "ANTHROPIC_AUTH_TOKEN": "<YOUR_ANTHROPIC_AUTH_TOKEN>",
|
|
93
|
+
> "ANTHROPIC_BASE_URL": "https://api.ai.soraharu.com",
|
|
94
|
+
> "ANTHROPIC_MODEL": "anthropic/claude-sonnet-4-5",
|
|
95
|
+
> "ANTHROPIC_SMALL_FAST_MODEL": "anthropic/claude-haiku-4-5"
|
|
96
|
+
> }
|
|
97
|
+
> }
|
|
98
|
+
> ```
|
|
99
|
+
>
|
|
100
|
+
> 将 `<YOUR_ANTHROPIC_AUTH_TOKEN>` 替换为你的实际令牌,`ANTHROPIC_BASE_URL` 替换为你的代理地址。
|
|
101
|
+
|
|
68
102
|
### 命令
|
|
69
103
|
|
|
70
104
|
#### `claude-run` (默认)
|
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ const docker_config_1 = require("./docker-config");
|
|
|
17
17
|
const index_1 = require("./index");
|
|
18
18
|
const web_server_1 = require("./web-server");
|
|
19
19
|
// Package info - injected at build time
|
|
20
|
-
const currentVersion = '0.2.
|
|
20
|
+
const currentVersion = '0.2.9';
|
|
21
21
|
const packageName = 'claude-code-runner';
|
|
22
22
|
// Check for updates (non-blocking)
|
|
23
23
|
async function checkForUpdates() {
|
package/dist/container.js
CHANGED
|
@@ -538,7 +538,7 @@ exec claude --dangerously-skip-permissions' > /start-claude.sh && \\
|
|
|
538
538
|
const forwardSshAgent = this.config.forwardSshAgent !== false; // Default: true
|
|
539
539
|
const sshAuthSock = node_process_1.default.env.SSH_AUTH_SOCK;
|
|
540
540
|
if (forwardSshAgent && sshAuthSock && fs.existsSync(sshAuthSock)) {
|
|
541
|
-
volumes.push(`${sshAuthSock}:/tmp/.ssh-agent-sock:
|
|
541
|
+
volumes.push(`${sshAuthSock}:/tmp/.ssh-agent-sock:rw`);
|
|
542
542
|
console.log(chalk_1.default.blue('✓ SSH agent forwarding enabled'));
|
|
543
543
|
}
|
|
544
544
|
// Add custom volumes (legacy format)
|