Status: [UNTESTED] Endpoints found: http://127.0.0.1:55990/v1/chat/completions Source: https://github.com/dev2k6/command-code-proxy-server # CommandCode Proxy Server OpenAI-compatible proxy server for the CommandCode API. It exposes `/v1/chat/completions` and `/v1/models` endpoints so OpenAI-compatible clients can call CommandCode models through a local HTTP server. Repository: https://github.com/dev2k6/command-code-proxy-server Version: `v1.0.8` ## Features - OpenAI-compatible chat completions endpoint - Streaming and non-streaming responses - OpenAI-compatible model list endpoint - Short model name mapping - Optional default API key from CLI - Per-request API key via `Authorization` header - Configurable host and port - Checks GitHub tags for a newer proxy version and displays it next to the current version ## Requirements - Go 1.26.2 or newer ## Run ```bash go run main.go ``` Default server address: ```text http://127.0.0.1:55990 ``` ## CLI options ```bash go run main.go [options] ``` | Option | Default | Description | | --- | --- | --- | | `-host` | `127.0.0.1` | Host to bind the server to | | `-port` | `55990` | Port to run the server on | | `-api-key` | empty | Optional default CommandCode API key | | `-version` | `false` | Print version and exit | Examples: ```bash # Run on default host and port go run main.go # Run on a custom port go run main.go -port 8080 # Expose on all interfaces go run main.go -host 0.0.0.0 # Use a default API key for all requests that do not include Authorization go run main.go -api-key your-commandcode-api-key # Print version go run main.go -version ``` ## Build Build for the current platform: ```bash go build -o bin/command-code-proxy ``` Cross-compile for Windows and Linux: ```bash GOOS=windows GOARCH=amd64 go build -o bin/command-code-proxy.exe GOOS=linux GOARCH=amd64 go build -o bin/command-code-proxy ``` ## API key behavior The proxy uses the API key in this order: 1. `Authorization` header from the incoming client request 2. `-api-key` CLI value 3. If neither exists, the request returns `401 Unauthorized` Header format: ```http Authori