codex-lb 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.
@@ -1,108 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: codex-lb
3
- Version: 0.3.0
4
- Summary: Codex load balancer and proxy for ChatGPT accounts with usage dashboard
5
- Author-email: Soju06 <qlskssk@gmail.com>
6
- Maintainer-email: Soju06 <qlskssk@gmail.com>
7
- License: MIT License
8
-
9
- Copyright (c) 2025 Soju06
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
28
- License-File: LICENSE
29
- Keywords: chatgpt,codex,dashboard,fastapi,load-balancer,proxy,rate-limit,usage
30
- Classifier: Development Status :: 3 - Alpha
31
- Classifier: Environment :: Console
32
- Classifier: Framework :: FastAPI
33
- Classifier: License :: OSI Approved :: MIT License
34
- Classifier: Programming Language :: Python :: 3
35
- Classifier: Programming Language :: Python :: 3 :: Only
36
- Classifier: Programming Language :: Python :: 3.13
37
- Classifier: Topic :: Internet :: Proxy Servers
38
- Classifier: Topic :: Software Development :: Libraries
39
- Classifier: Topic :: System :: Networking
40
- Requires-Python: >=3.13
41
- Requires-Dist: aiohttp-retry>=2.9.1
42
- Requires-Dist: aiohttp>=3.13.3
43
- Requires-Dist: aiosqlite>=0.22.1
44
- Requires-Dist: cryptography>=46.0.3
45
- Requires-Dist: fastapi[standard]>=0.128.0
46
- Requires-Dist: greenlet>=3.3.0
47
- Requires-Dist: pydantic-settings>=2.12.0
48
- Requires-Dist: pydantic>=2.12.5
49
- Requires-Dist: python-dotenv>=1.2.1
50
- Requires-Dist: python-multipart>=0.0.21
51
- Requires-Dist: sqlalchemy>=2.0.45
52
- Description-Content-Type: text/markdown
53
-
54
- # codex-lb
55
-
56
- Load balancer for ChatGPT accounts. Pool multiple accounts, track usage, view everything in a dashboard.
57
-
58
- <p align="center">
59
- <img src="https://raw.githubusercontent.com/Soju06/codex-lb/main/docs/screenshots/dashboard.jpeg" alt="Codex Load Balancer dashboard" width="100%">
60
- </p>
61
-
62
- ## Quick Start
63
-
64
- ### Docker
65
-
66
- ```bash
67
- docker run -d --name codex-lb \
68
- -p 2455:2455 -p 1455:1455 \
69
- -v ~/.codex-lb:/var/lib/codex-lb \
70
- ghcr.io/soju06/codex-lb:latest
71
- ```
72
-
73
- ### uvx
74
-
75
- ```bash
76
- uvx codex-lb
77
- ```
78
-
79
- Open [localhost:2455](http://localhost:2455) → Add account → Done.
80
-
81
- ## Accounts view
82
-
83
- ![Accounts list and details](https://raw.githubusercontent.com/Soju06/codex-lb/main/docs/screenshots/accounts.jpeg)
84
-
85
- ## Codex CLI & Extension Setup
86
-
87
- Add to `~/.codex/config.toml`:
88
-
89
- ```toml
90
- model = "gpt-5.2-codex"
91
- model_reasoning_effort = "xhigh"
92
- model_provider = "codex-lb"
93
-
94
- [model_providers.codex-lb]
95
- name = "OpenAI" # MUST be "OpenAI" - enables /compact endpoint
96
- base_url = "http://127.0.0.1:2455/backend-api/codex"
97
- wire_api = "responses"
98
- chatgpt_base_url = "http://127.0.0.1:2455"
99
- requires_openai_auth = true # Required: enables model selection in Codex IDE extension
100
- ```
101
-
102
- ## Data
103
-
104
- All data stored in `~/.codex-lb/`:
105
- - `store.db` – accounts, usage logs
106
- - `encryption.key` – encrypts tokens (auto-generated)
107
-
108
- Backup this directory to preserve your accounts.