[UNTESTED] [Lythaeon/cmdcode] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,126 characters
Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:18080/v1/chat/completions
Source: https://github.com/Lythaeon/cmdcode
# cmdcode
OpenAI-compatible proxy in front of Command Code's HTTP API. Use your
Command Code subscription with **any** client supporting OpenAI Chat
Completions - no vendor lock-in.
## What it does
```
┌──────────────────┐ ┌───────────────┐ ┌─────────────────────────┐
│ OpenCode │ POST │ proxy │ POST │ Command Code API │
│ LiteLLM │ ────> │ :18080 │ ────> │ /alpha/generate │
│ curl / any SDK │ <──── │ (local) │ <──── │ (NDJSON) │
│ │ SSE │ │ NDJSON│ │
└──────────────────┘ └───────────────┘ └─────────────────────────┘
```
The proxy translates the **OpenAI `/v1/chat/completions`** protocol to
Command Code's custom wire format, preserving the exact API fingerprint
(headers, body structure, auth) so the upstream cannot distinguish proxy
traffic from the official `cmd` CLI.
## Quick start
### Prerequisites
**No external CLI required.** The model catalog is bundled in the binary. Taste
files live at `~/.commandcode/taste/taste.md` (created by the agent during
conversations, or managed via `cmdcode taste`).
### Install
```bash
# From crates.io (requires Rust 1.75+)
cargo install cmdcode
# Or build from source
git clone https://github.com/Lythaeon/cmdcode.git
cd cmdcode
cargo install --path crates/cmdcode-cli
```
### Sign in
```bash
cmdcode auth
```
This opens an interactive TUI where you can:
- **Sign in a new account** — prints a Studio auth link; after signing in
in the browser, the Studio POSTs your API key back to the local callback
server automatically. You can also pas