[UNTESTED] [kalpeshe1m17-creator/commandcode-proxy-v3] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,184 characters
Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:9090/v1/chat/completions
http://127.0.0.1:9090/v1/messages
Source: https://github.com/kalpeshe1m17-creator/commandcode-proxy-v3
# CommandCode Proxy v4
A local, fully-compatible **OpenAI Chat Completions** and **Anthropic Messages** API gateway for CommandCode AI. Point any OpenAI-style client (Cursor, Continue, Aider, OpenWebUI, Hermes, your own code) at it and use CommandCode backend models transparently.
> Unofficial, community tool. Reverse-engineered from the official CommandCode CLI wire protocol (`/alpha/generate`). Not affiliated with CommandCode.
---
## Features
- **OpenAI `/v1/chat/completions`** — streaming SSE + non-streaming, tool calling (parallel tools, streamed `tool_calls` deltas), vision (`image_url` base64/data-URL), `reasoning_effort` mapping, `max_completion_tokens`, usage passthrough from upstream `totalUsage`
- **Anthropic `/v1/messages`** — streaming block lifecycle (`message_start` → `content_block_start/delta/stop` → `signature_delta` → `message_delta` → `message_stop`), `tool_use` / `tool_result` round-trip, thinking blocks with signature compatibility, system block arrays
- **Faithful wire translation** verified against the original CLI source: raw-base64 image parts with `mediaType`, `tool_search→search_tools` aliasing, per-model effort tier snapping, terminal-error no-retry list (`model_not_in_plan`, `premium_credits_exhausted`, `insufficient credits`)
- **Reliability** — exponential-backoff retries on 429/5xx/network errors, idle-stream watchdog (no infinite hangs), client-disconnect cancellation, clean stream termination guaranteed
- **Multi-account** — dashboard OAuth browser login + manual key entry, 5-hour quota rotation scheduler (auto-switch ≥90%)
- **Secure defaults** — binds `127.0.0.1` only (opt-in LAN via `HOST`), optional `PROXY_API_KEY` shared-secret auth, XSS-hardened dashboard, CORS limited to the public API surface
- **Packaging** — TypeScript build, esbuild bundle, single-file Windows exe via `pkg`
## Quick Start
```bash
npm install
npm run dev # http://127.0.0.1:9090
```
or production:
```bash
npm run bu