[LIVE] [Vendoura-Apps/codex-api-porxy] 1 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,129 characters
Status: [LIVE]
Endpoints found:
https://chatgpt.com/codex/install.sh
Source: https://github.com/Vendoura-Apps/codex-api-porxy
# Codex CLI API Proxy
Expose an authenticated local Codex CLI through an OpenAI-compatible HTTP API.
Plain chat requests run through `codex exec`. Requests containing OpenAI
function tools use Codex App Server as an agent bridge, so a compatible client
can execute file and terminal tools on its own device and return the results to
Codex.
## Requirements
- Node.js 20 or newer
- Codex CLI installed and available as `codex`
- An authenticated Codex CLI session (`codex login status`)
Install Codex on macOS or Linux:
```bash
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codex
```
Choose a sign-in method on the first run.
## Install and run
```bash
npm install
npm run build
npm start
```
The server listens on `127.0.0.1:3456`. To choose another port:
```bash
node dist/server/standalone.js 8080
```
## API
| Method | Endpoint | Purpose |
| --- | --- | --- |
| GET | `/health` | Server health |
| GET | `/v1/models` | Available proxy model aliases |
| POST | `/v1/chat/completions` | Streaming or non-streaming completion |
```bash
curl http://127.0.0.1:3456/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"codex","reasoning_effort":"high","messages":[{"role":"user","content":"Hello"}]}'
```
For SSE, add `"stream":true` to the JSON body and use `curl -N`.
Images and universal files can be sent as base64 data URLs in content blocks:
```bash
curl http://127.0.0.1:3456/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model":"codex",
"messages":[{"role":"user","content":[
{"type":"text","text":"Describe this image"},
{"type":"image_url","image_url":{"url":"data:image/png;base64,<BASE64_PNG>"}},
{"type":"input_file","filename":"report.pdf","file_data":"data:application/pdf;base64,<BASE64_PDF>"}
]}]
}'
```
See [Attachment contract for VTI clients](docs/attachments.md) for file blocks,
supported MIME types, limits, lifecycle, and structured errors.
The `codex` model alias uses the