@h1d3rone/claude-proxy 0.1.1 → 0.1.2
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.en.md +57 -0
- package/README.md +7 -57
- package/package.json +1 -1
package/README.en.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# claude-proxy
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://github.com/H1d3rOne/claude-proxy/blob/main/README.md">中文</a> |
|
|
5
|
+
<strong>English</strong>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
`claude-proxy` is a local single-machine Claude proxy. It exposes a Claude-compatible `/v1/messages` endpoint, forwards requests to an OpenAI-compatible upstream, and manages local Claude Code and Codex configuration.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Quick install with `npm`:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g @h1d3rone/claude-proxy
|
|
18
|
+
claude-proxy config
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Note: the published package is scoped, but the command name is still `claude-proxy`.
|
|
22
|
+
|
|
23
|
+
Install from Git source:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
git clone https://github.com/H1d3rOne/claude-proxy.git
|
|
27
|
+
cd claude-proxy
|
|
28
|
+
npm install
|
|
29
|
+
npm link
|
|
30
|
+
claude-proxy config
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
claude-proxy config
|
|
37
|
+
claude-proxy config claude
|
|
38
|
+
claude-proxy config openai
|
|
39
|
+
claude-proxy config get
|
|
40
|
+
|
|
41
|
+
claude-proxy start
|
|
42
|
+
claude-proxy stop
|
|
43
|
+
|
|
44
|
+
claude-proxy clean
|
|
45
|
+
claude-proxy clean claude
|
|
46
|
+
claude-proxy clean openai
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- `config`: interactively write and apply local configuration
|
|
50
|
+
- `config claude`: configure only Claude-related settings
|
|
51
|
+
- `config openai`: configure only OpenAI/Codex-related settings
|
|
52
|
+
- `config get`: show current config-file, Claude, and Codex state
|
|
53
|
+
- `start`: start the local proxy server
|
|
54
|
+
- `stop`: stop the local proxy server
|
|
55
|
+
- `clean`: clear all managed configuration
|
|
56
|
+
- `clean claude`: clear only Claude configuration
|
|
57
|
+
- `clean openai`: clear only OpenAI/Codex configuration
|
package/README.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# claude-proxy
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>中文</strong> |
|
|
5
|
+
<a href="https://github.com/H1d3rOne/claude-proxy/blob/main/README.en.md">English</a>
|
|
6
|
+
</p>
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
## 项目说明
|
|
6
9
|
|
|
7
10
|
`claude-proxy` 是一个本地单机版 Claude 代理工具。它会在本机提供 Claude 兼容的 `/v1/messages` 服务,把请求转发到 OpenAI 兼容上游,并管理 Claude Code 与 Codex 的本地配置。
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
## 安装
|
|
10
13
|
|
|
11
14
|
`npm` 快速安装:
|
|
12
15
|
|
|
@@ -27,7 +30,7 @@ npm link
|
|
|
27
30
|
claude-proxy config
|
|
28
31
|
```
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
## 使用方法
|
|
31
34
|
|
|
32
35
|
```bash
|
|
33
36
|
claude-proxy config
|
|
@@ -52,56 +55,3 @@ claude-proxy clean openai
|
|
|
52
55
|
- `clean`:一键清除全部受管配置
|
|
53
56
|
- `clean claude`:只清除 Claude 配置
|
|
54
57
|
- `clean openai`:只清除 OpenAI/Codex 配置
|
|
55
|
-
|
|
56
|
-
## English
|
|
57
|
-
|
|
58
|
-
### Overview
|
|
59
|
-
|
|
60
|
-
`claude-proxy` is a local single-machine Claude proxy. It exposes a Claude-compatible `/v1/messages` endpoint, forwards requests to an OpenAI-compatible upstream, and manages local Claude Code and Codex configuration.
|
|
61
|
-
|
|
62
|
-
### Installation
|
|
63
|
-
|
|
64
|
-
Quick install with `npm`:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm install -g @h1d3rone/claude-proxy
|
|
68
|
-
claude-proxy config
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Note: the published package is scoped, but the command name is still `claude-proxy`.
|
|
72
|
-
|
|
73
|
-
Install from Git source:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
git clone https://github.com/H1d3rOne/claude-proxy.git
|
|
77
|
-
cd claude-proxy
|
|
78
|
-
npm install
|
|
79
|
-
npm link
|
|
80
|
-
claude-proxy config
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### Usage
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
claude-proxy config
|
|
87
|
-
claude-proxy config claude
|
|
88
|
-
claude-proxy config openai
|
|
89
|
-
claude-proxy config get
|
|
90
|
-
|
|
91
|
-
claude-proxy start
|
|
92
|
-
claude-proxy stop
|
|
93
|
-
|
|
94
|
-
claude-proxy clean
|
|
95
|
-
claude-proxy clean claude
|
|
96
|
-
claude-proxy clean openai
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
- `config`: interactively write and apply local configuration
|
|
100
|
-
- `config claude`: configure only Claude-related settings
|
|
101
|
-
- `config openai`: configure only OpenAI/Codex-related settings
|
|
102
|
-
- `config get`: show current config-file, Claude, and Codex state
|
|
103
|
-
- `start`: start the local proxy server
|
|
104
|
-
- `stop`: stop the local proxy server
|
|
105
|
-
- `clean`: clear all managed configuration
|
|
106
|
-
- `clean claude`: clear only Claude configuration
|
|
107
|
-
- `clean openai`: clear only OpenAI/Codex configuration
|