Skip to content

Commit 3100863

Browse files
author
张文超
committed
feat: 增加国内安装方式
1 parent 4d6c349 commit 3100863

File tree

2 files changed

+10
-69
lines changed

2 files changed

+10
-69
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -91,69 +91,7 @@ jobs:
9191
- 支持 Claude 3.5 Sonnet 模型
9292
- 支持流式响应
9393
- 支持多种部署方式
94-
95-
## 📦 安装方式
96-
97-
### 快速安装(推荐)
98-
99-
**Linux/macOS:**
100-
```bash
101-
sudo curl -o /usr/local/bin/claudeproxy -L https://github.com/${{ github.repository }}/releases/latest/download/claudeproxy_`uname -s`_`uname -m`
102-
sudo chmod +x /usr/local/bin/claudeproxy
103-
```
104-
105-
**Windows (PowerShell):**
106-
```powershell
107-
Invoke-WebRequest -Uri "https://github.com/${{ github.repository }}/releases/latest/download/claudeproxy_Windows_x86_64.exe" -OutFile "claudeproxy.exe"
108-
```
109-
110-
### 使用安装脚本
111-
```bash
112-
curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/main/install.sh | bash
113-
```
114-
115-
### 手动下载
116-
117-
选择适合您系统的二进制文件:
118-
119-
- **Linux x86_64**: claudeproxy_Linux_x86_64
120-
- **Linux ARM64**: claudeproxy_Linux_arm64
121-
- **macOS Intel**: claudeproxy_Darwin_x86_64
122-
- **macOS Apple Silicon**: claudeproxy_Darwin_arm64
123-
- **Windows x86_64**: claudeproxy_Windows_x86_64.exe
124-
- **Windows ARM64**: claudeproxy_Windows_arm64.exe
125-
126-
## 🚀 使用方法
127-
128-
1. 配置 API 密钥:
129-
```bash
130-
claudeproxy setup
131-
```
132-
133-
2. 启动服务:
134-
```bash
135-
claudeproxy start
136-
```
137-
138-
3. 使用 OpenAI 兼容的 API:
139-
```bash
140-
curl -X POST http://localhost:8080/v1/chat/completions \
141-
-H "Content-Type: application/json" \
142-
-H "Authorization: Bearer your-api-key" \
143-
-d '{
144-
"model": "claude-3-5-sonnet-20241022",
145-
"messages": [
146-
{"role": "user", "content": "Hello!"}
147-
]
148-
}'
149-
```
150-
151-
## 📋 系统要求
152-
153-
- 操作系统: Linux, macOS, Windows
154-
- 架构: x86_64, ARM64
155-
- 网络: 需要访问 Anthropic API
156-
94+
15795
## 🔧 配置说明
15896
15997
详细配置说明请参考项目文档。

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,22 @@ Claude Code Proxy SSY 是一个命令行工具,可以将Claude API转换为胜
2020
sudo curl -o /usr/local/bin/claudeproxy -L https://github.com/SSYCloud/claude-code-proxy-ssy/releases/latest/download/claudeproxy_`uname -s`_`uname -m`
2121
sudo chmod +x /usr/local/bin/claudeproxy
2222
```
23+
国内安装方式
24+
```bash
25+
sudo curl -o /usr/local/bin/claudeproxy -L https://shengsuanyun.oss-cn-shanghai.aliyuncs.com/claude-code-proxy-ssy/claudeproxy_`uname -s`_`uname -m`
26+
sudo chmod +x /usr/local/bin/claudeproxy
27+
```
2328

2429
**Windows (PowerShell):**
2530
```powershell
2631
Invoke-WebRequest -Uri "https://github.com/SSYCloud/claude-code-proxy-ssy/releases/latest/download/claudeproxy_Windows_x86_64.exe" -OutFile "claudeproxy.exe"
2732
```
28-
29-
### 方式二: 使用安装脚本
30-
31-
```bash
32-
curl -fsSL https://raw.githubusercontent.com/SSYCloud/claude-code-proxy-ssy/main/install.sh | bash
33+
国内安装方式
34+
```powershell
35+
Invoke-WebRequest -Uri "https://shengsuanyun.oss-cn-shanghai.aliyuncs.com/claude-code-proxy-ssy/claudeproxy_Windows_x86_64.exe" -OutFile "claudeproxy.exe"
3336
```
3437

35-
### 方式三: 手动下载
38+
### 方式二: 手动下载
3639

3740
1.[Releases](https://github.com/SSYCloud/claude-code-proxy-ssy/releases) 页面下载适合您操作系统的二进制文件
3841
2. 解压并将文件放到系统 PATH 中

0 commit comments

Comments
 (0)