codex-pal 0.1.0__py3-none-win32.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.
@@ -0,0 +1,189 @@
1
+ Metadata-Version: 2.4
2
+ Name: codex-pal
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Rust
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
12
+ Classifier: Topic :: Software Development
13
+ Classifier: Topic :: Utilities
14
+ License-File: LICENSE
15
+ Summary: Launch Codex CLI through codex-relay for OpenAI-compatible model providers
16
+ Keywords: codex,codex-relay,openai-compatible,llm,cli
17
+ Home-Page: https://github.com/MetaFARS/codex-pal
18
+ Author: MetaFARS
19
+ License-Expression: MIT
20
+ Requires-Python: >=3.9
21
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
22
+ Project-URL: Homepage, https://github.com/MetaFARS/codex-pal
23
+ Project-URL: Issues, https://github.com/MetaFARS/codex-pal/issues
24
+ Project-URL: Repository, https://github.com/MetaFARS/codex-pal
25
+
26
+ # codex-pal
27
+
28
+ `codex-pal` launches Codex CLI through
29
+ [`codex-relay`](https://github.com/MetaFARS/codex-relay) so Codex can use
30
+ OpenAI-compatible providers that do not natively implement the Responses API.
31
+
32
+ It is intentionally a small launcher:
33
+
34
+ - starts or reuses a local `codex-relay` sidecar;
35
+ - injects per-invocation Codex config with `-c`, leaving `~/.codex/config.toml` untouched;
36
+ - maps common providers to upstream URLs and API-key environment variables;
37
+ - hands the terminal to `codex`.
38
+
39
+ ## Install
40
+
41
+ From crates.io:
42
+
43
+ ```bash
44
+ cargo install codex-pal
45
+ ```
46
+
47
+ From PyPI:
48
+
49
+ ```bash
50
+ pipx install codex-pal
51
+ ```
52
+
53
+ `codex-pal` expects `codex` and `codex-relay` to be installed and available on
54
+ `PATH`.
55
+
56
+ ## Usage
57
+
58
+ `codex-pal` has two interfaces:
59
+
60
+ - a complete, explicit interface for scripts and debugging;
61
+ - a profile interface for humans.
62
+
63
+ ### Human-friendly profiles
64
+
65
+ ```bash
66
+ export DEEPSEEK_API_KEY=...
67
+ codex-pal deepseek
68
+
69
+ export DASHSCOPE_API_KEY=...
70
+ codex-pal qwen
71
+
72
+ export OPENROUTER_API_KEY=...
73
+ codex-pal openrouter
74
+ ```
75
+
76
+ The first run creates a profile under `~/.config/codex-pal/config.toml` when
77
+ the profile name matches a built-in provider. Later runs reuse it.
78
+
79
+ Configure or modify a profile:
80
+
81
+ ```bash
82
+ codex-pal deepseek config --model deepseek-reasoner --port 4555
83
+ codex-pal deepseek show
84
+ codex-pal profiles
85
+ codex-pal providers
86
+ codex-pal deepseek status
87
+ codex-pal deepseek stop
88
+ codex-pal deepseek restart
89
+ ```
90
+
91
+ Custom profile:
92
+
93
+ ```bash
94
+ export EXAMPLE_API_KEY=...
95
+ codex-pal work-llm config \
96
+ --provider custom \
97
+ --upstream https://llm.example.com/v1 \
98
+ --api-key-env EXAMPLE_API_KEY \
99
+ --model vendor/model
100
+ codex-pal work-llm
101
+ ```
102
+
103
+ ### Complete explicit interface
104
+
105
+ Use `run` when every setting should be supplied by arguments:
106
+
107
+ ```bash
108
+ codex-pal run \
109
+ --provider deepseek \
110
+ --model deepseek-chat \
111
+ --port 4444 \
112
+ --approval never \
113
+ --sandbox workspace-write
114
+ ```
115
+
116
+ Custom one-shot launch:
117
+
118
+ ```bash
119
+ codex-pal run \
120
+ --provider custom \
121
+ --upstream https://llm.example.com/v1 \
122
+ --api-key-env EXAMPLE_API_KEY \
123
+ --model vendor/model
124
+ ```
125
+
126
+ Useful flags:
127
+
128
+ ```bash
129
+ codex-pal relay status --port 4444
130
+ codex-pal relay stop --port 4444
131
+ codex-pal relay-config --provider openrouter
132
+ codex-pal run --provider deepseek --model deepseek-chat --print-codex-command
133
+ codex-pal run --provider deepseek --model deepseek-chat --ask
134
+ codex-pal run --provider deepseek --model deepseek-chat --no-sandbox
135
+ ```
136
+
137
+ Extra arguments after `--` are appended to the `codex` invocation:
138
+
139
+ ```bash
140
+ codex-pal run --provider deepseek --model deepseek-chat -- --oss
141
+ codex-pal deepseek -- --oss
142
+ ```
143
+
144
+ ## Provider Profiles
145
+
146
+ | Provider | Upstream | API key env |
147
+ | --- | --- | --- |
148
+ | `deepseek` | `https://api.deepseek.com/v1` | `DEEPSEEK_API_KEY` |
149
+ | `kimi`, `moonshot` | `https://api.moonshot.cn/v1` | `MOONSHOT_API_KEY` |
150
+ | `qwen`, `dashscope` | `https://dashscope.aliyuncs.com/compatible-mode/v1` | `DASHSCOPE_API_KEY` |
151
+ | `mistral` | `https://api.mistral.ai/v1` | `MISTRAL_API_KEY` |
152
+ | `groq` | `https://api.groq.com/openai/v1` | `GROQ_API_KEY` |
153
+ | `xai`, `grok` | `https://api.x.ai/v1` | `XAI_API_KEY` |
154
+ | `openrouter` | `https://openrouter.ai/api/v1` | `OPENROUTER_API_KEY` |
155
+
156
+ ## Development
157
+
158
+ ```bash
159
+ cargo test
160
+ cargo fmt --check
161
+ maturin build
162
+ ```
163
+
164
+ ## Release
165
+
166
+ Releases are tag-driven from GitHub Actions.
167
+
168
+ One-time setup:
169
+
170
+ 1. Create a GitHub environment named `release`.
171
+ 2. Add an environment secret named `CARGO_REGISTRY_TOKEN` with a crates.io API token.
172
+ 3. On PyPI, create a pending Trusted Publisher for:
173
+ - project: `codex-pal`
174
+ - owner: `MetaFARS`
175
+ - repository: `codex-pal`
176
+ - workflow: `release.yml`
177
+ - environment: `release`
178
+
179
+ Publish:
180
+
181
+ ```bash
182
+ git tag v0.1.0
183
+ git push origin v0.1.0
184
+ ```
185
+
186
+ The release workflow builds all wheels and the sdist, publishes to PyPI via
187
+ Trusted Publishing, publishes the Rust crate to crates.io, and creates a
188
+ GitHub Release with the built artifacts.
189
+
@@ -0,0 +1,6 @@
1
+ codex_pal-0.1.0.data/scripts/codex-pal.exe,sha256=fqGSEulsq1xhvv1Jm_pBl4ro3Jj6XI6YNrWL6vZiqL4,1118208
2
+ codex_pal-0.1.0.dist-info/METADATA,sha256=CKpaOKaX8k30dupr_XeZdPFW2A2dGv22Aa_NiVsSPmU,5106
3
+ codex_pal-0.1.0.dist-info/WHEEL,sha256=JNKjfk8t_lLPebUae1rF2yydfqwhoTBTQSUGXxfneN4,90
4
+ codex_pal-0.1.0.dist-info/licenses/LICENSE,sha256=GpIWUin7vy-jrVO8aLh_0mlXIt_jGb1BbFqMwKhLDp0,1086
5
+ codex_pal-0.1.0.dist-info/sboms/codex-pal.cyclonedx.json,sha256=UKA8qInvAH0F5HmQnkbjA6pnQ5xFiCh-qxkvczAloPs,46769
6
+ codex_pal-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.14.1)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win32
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MetaFARS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.