claude-codex-proxy 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/LICENSE +21 -0
- package/README.md +227 -0
- package/bin/cli.js +113 -0
- package/docs/ACCOUNTS.md +202 -0
- package/docs/API.md +244 -0
- package/docs/ARCHITECTURE.md +119 -0
- package/docs/CLAUDE_INTEGRATION.md +163 -0
- package/docs/OAUTH.md +83 -0
- package/docs/OPENCLAW.md +33 -0
- package/docs/legal.md +9 -0
- package/images/demo-screenshot.png +0 -0
- package/images/f757093f-507b-4453-994e-f8275f8b07a9.png +0 -0
- package/package.json +56 -0
- package/public/css/style.css +791 -0
- package/public/index.html +838 -0
- package/public/js/app.js +619 -0
- package/src/account-manager.js +526 -0
- package/src/account-rotation/index.js +93 -0
- package/src/account-rotation/rate-limits.js +293 -0
- package/src/account-rotation/strategies/base-strategy.js +48 -0
- package/src/account-rotation/strategies/index.js +31 -0
- package/src/account-rotation/strategies/round-robin-strategy.js +42 -0
- package/src/account-rotation/strategies/sticky-strategy.js +97 -0
- package/src/claude-config.js +154 -0
- package/src/cli/accounts.js +551 -0
- package/src/direct-api.js +214 -0
- package/src/format-converter.js +563 -0
- package/src/index.js +45 -0
- package/src/middleware/credentials.js +116 -0
- package/src/middleware/sse.js +130 -0
- package/src/model-api.js +189 -0
- package/src/model-mapper.js +88 -0
- package/src/oauth.js +623 -0
- package/src/response-streamer.js +469 -0
- package/src/routes/accounts-route.js +296 -0
- package/src/routes/api-routes.js +102 -0
- package/src/routes/chat-route.js +239 -0
- package/src/routes/claude-config-route.js +114 -0
- package/src/routes/logs-route.js +43 -0
- package/src/routes/messages-route.js +164 -0
- package/src/routes/models-route.js +115 -0
- package/src/routes/settings-route.js +154 -0
- package/src/server-settings.js +70 -0
- package/src/server.js +57 -0
- package/src/signature-cache.js +106 -0
- package/src/thinking-utils.js +312 -0
- package/src/utils/logger.js +170 -0
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-codex-proxy",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Multi-account proxy server for OpenAI Codex CLI with Claude API compatibility",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"claude-codex-proxy": "./bin/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"bin",
|
|
13
|
+
"public",
|
|
14
|
+
"docs",
|
|
15
|
+
"images",
|
|
16
|
+
"README.md",
|
|
17
|
+
"LICENSE",
|
|
18
|
+
"package.json"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/zzy-life/codex-claude-proxy.git"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/zzy-life/codex-claude-proxy/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/zzy-life/codex-claude-proxy#readme",
|
|
31
|
+
"scripts": {
|
|
32
|
+
"start": "node src/index.js",
|
|
33
|
+
"portfolio:dev": "npm --prefix apps/portfolio run dev",
|
|
34
|
+
"portfolio:build": "npm --prefix apps/portfolio run build",
|
|
35
|
+
"portfolio:preview": "npm --prefix apps/portfolio run preview",
|
|
36
|
+
"accounts": "node src/cli/accounts.js",
|
|
37
|
+
"accounts:add": "node src/cli/accounts.js add",
|
|
38
|
+
"accounts:add:headless": "node src/cli/accounts.js add --no-browser",
|
|
39
|
+
"accounts:list": "node src/cli/accounts.js list",
|
|
40
|
+
"accounts:remove": "node src/cli/accounts.js remove",
|
|
41
|
+
"accounts:verify": "node src/cli/accounts.js verify",
|
|
42
|
+
"test": "node --test tests/*.test.js",
|
|
43
|
+
"test:unit": "node --test tests/unit/*.test.js",
|
|
44
|
+
"test:all": "node --test tests/unit/*.test.js tests/*.test.js",
|
|
45
|
+
"test:api": "node --test tests/api.test.js",
|
|
46
|
+
"test:routing": "node --test tests/routing.test.js",
|
|
47
|
+
"test:cors": "node --test tests/cors_security.test.js",
|
|
48
|
+
"test:ui": "node --test tests/ui.test.js"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"express": "^4.18.2",
|
|
52
|
+
"cors": "^2.8.5"
|
|
53
|
+
},
|
|
54
|
+
"keywords": ["codex", "openai", "proxy", "claude", "chatgpt", "oauth"],
|
|
55
|
+
"license": "MIT"
|
|
56
|
+
}
|