You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Free Claude Code routes Anthropic Messages API traffic from Claude Code to NVIDI
39
39
- Drop-in proxy for Claude Code's Anthropic API calls.
40
40
- Six provider backends: NVIDIA NIM, OpenRouter, DeepSeek, LM Studio, llama.cpp, and Ollama.
41
41
- Per-model routing: send Opus, Sonnet, Haiku, and fallback traffic to different providers.
42
-
- Native Claude Code `/model` picker support through the proxy's `/v1/models` endpoint.
42
+
- Native Claude Code `/model` picker support through the proxy's `/v1/models` endpoint (Claude Code must opt in to Gateway model discovery; see [Model Picker](#model-picker)).
43
43
- Streaming, tool use, reasoning/thinking block handling, and local request optimizations.
44
44
- Optional Discord or Telegram bot wrapper for remote coding sessions.
45
45
- Optional voice-note transcription through local Whisper or NVIDIA NIM.
@@ -108,18 +108,18 @@ free-claude-code
108
108
109
109
### 4. Run Claude Code
110
110
111
-
Point `ANTHROPIC_BASE_URL` at the proxy root. Do not append `/v1`.
111
+
Point `ANTHROPIC_BASE_URL` at the proxy root. Do not append `/v1`. Set `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1` if you use `/model` to list models from this proxy (see [Model Picker](#model-picker)).
112
112
113
113
PowerShell:
114
114
115
115
```powershell
116
-
$env:ANTHROPIC_AUTH_TOKEN="freecc"; $env:ANTHROPIC_BASE_URL="http://localhost:8082"; claude
116
+
$env:ANTHROPIC_AUTH_TOKEN="freecc"; $env:ANTHROPIC_BASE_URL="http://localhost:8082"; $env:CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY="1"; claude
117
117
```
118
118
119
119
Bash:
120
120
121
121
```bash
122
-
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
122
+
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1 claude
@@ -289,15 +290,18 @@ Set the environment for `acp.registry.claude-acp`:
289
290
```json
290
291
"env": {
291
292
"ANTHROPIC_BASE_URL": "http://localhost:8082",
292
-
"ANTHROPIC_AUTH_TOKEN": "freecc"
293
+
"ANTHROPIC_AUTH_TOKEN": "freecc",
294
+
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1"
293
295
}
294
296
```
295
297
296
298
Restart the IDE after changing the file.
297
299
298
300
### Model Picker
299
301
300
-
Claude Code 2.1.126 or later reads this proxy's `/v1/models` endpoint when `ANTHROPIC_BASE_URL` points at the proxy. Start Claude Code normally, run `/model`, and choose any discovered provider model.
302
+
Claude Code 2.1.126 or later can populate `/model` from this proxy's Gateway `/v1/models` response when `ANTHROPIC_BASE_URL` points here. In **2.1.126–2.1.128** that discovery was automatic; **newer releases** require **`CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1`** in the same environment as `ANTHROPIC_*`. Omit the flag if you only set models via proxy config and never use `/model` discovery.
303
+
304
+
Start Claude Code with that variable set (see [Quick Start](#4-run-claude-code)), run `/model`, and choose any discovered provider model.
301
305
302
306
<divalign="center">
303
307
<imgsrc="cc-model-picker.png"alt="Claude Code model picker showing gateway models"width="700">
0 commit comments