Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

change default port from 11434 to 18765

Raine Virtaa69f6d012c44
diff --git a/README.md b/README.md
index c24d643..f1938b2 100644
--- a/README.md
+++ b/README.md
@@ -78,15 +78,15 @@ claude-codex-proxy auth status
claude-codex-proxy serve
```
-Defaults to `http://127.0.0.1:11434` (loopback only). Override with
-`PORT=18765 claude-codex-proxy serve`.
+Defaults to `http://127.0.0.1:18765` (loopback only). Override with
+`PORT=11435 claude-codex-proxy serve`.
### 4. Point Claude Code at it
One-shot:
```sh
-ANTHROPIC_BASE_URL=http://localhost:11434 \
+ANTHROPIC_BASE_URL=http://localhost:18765 \
ANTHROPIC_AUTH_TOKEN=unused \
ANTHROPIC_MODEL=gpt-5.4 \
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
@@ -162,7 +162,7 @@ Key decisions:
| Command | Description |
| ----------------------------- | ----------------------------------------- |
-| [`serve`](#serve) | Start the proxy on `PORT` (default 11434) |
+| [`serve`](#serve) | Start the proxy on `PORT` (default 18765) |
| [`auth login`](#auth-login) | Browser OAuth (PKCE) |
| [`auth device`](#auth-device) | Device-code OAuth (headless) |
| [`auth status`](#auth-status) | Show account ID and token expiry |
@@ -178,7 +178,7 @@ Starts the HTTP proxy and blocks. Binds to `127.0.0.1` only. Logs to
```sh
claude-codex-proxy serve
-PORT=18765 claude-codex-proxy serve
+PORT=11435 claude-codex-proxy serve
CCP_LOG_STDERR=1 claude-codex-proxy serve
```
@@ -272,7 +272,7 @@ Settings are environment variables on the proxy process, not a config file.
| Variable | Default | Purpose |
| ----------------- | ---------------- | ------------------------------- |
-| `PORT` | `11434` | Proxy listen port |
+| `PORT` | `18765` | Proxy listen port |
| `XDG_STATE_HOME` | `~/.local/state` | Base dir for `proxy.log` |
| `CCP_LOG_STDERR` | unset | Also mirror log lines to stderr |
diff --git a/src/cli.ts b/src/cli.ts
index d5fa2ac..4b7bdb0 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -20,7 +20,7 @@ async function main() {
switch (cmd) {
case "serve":
case undefined: {
- const port = Number(process.env.PORT ?? 11434)
+ const port = Number(process.env.PORT ?? 18765)
startServer({ port })
console.log(`Proxy listening on http://localhost:${port}`)
console.log(`Logs: ${logDir()}/proxy.log`)
@@ -74,7 +74,7 @@ async function main() {
function usageAndExit(): never {
console.log(`Usage:
- claude-codex-proxy serve Run proxy (PORT env, default 11434)
+ claude-codex-proxy serve Run proxy (PORT env, default 18765)
claude-codex-proxy auth login Browser OAuth (PKCE)
claude-codex-proxy auth device Device-code OAuth
claude-codex-proxy auth status Show current auth