Skip to content

Commit 160e968

Browse files
valorisaclaude
andcommitted
Fix: Correct 'single command' sections to actually launch proxy + Claude Code
The "En une seule commande" sections were incorrectly identical to Terminal2, only launching Claude Code without the proxy. This would fail if the proxy wasn't already running. Changes: - Windows: Added Start-Job to launch proxy in background before Claude Code - macOS: Added background proxy launch with & and sleep 3 for startup delay - Linux: Added background proxy launch with & and sleep 3 for startup delay - All: Added explicit comment explaining the command launches both components Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ad58027 commit 160e968

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ $env:ANTHROPIC_AUTH_TOKEN="freecc"
7676
$env:ANTHROPIC_BASE_URL="http://localhost:8082"
7777
claude
7878
79-
# En une seule commande (PowerShell)
80-
$env:ANTHROPIC_AUTH_TOKEN="freecc"; $env:ANTHROPIC_BASE_URL="http://localhost:8082"; claude
79+
# En une seule commande (PowerShell) - Lance le proxy en arrière-plan puis Claude Code
80+
cd $env:USERPROFILE\Projets\free-claude-code; Start-Job -ScriptBlock { Set-Location $env:USERPROFILE\Projets\free-claude-code; uv run uvicorn server:app --host 0.0.0.0 --port 8082 }; Start-Sleep -Seconds 3; $env:ANTHROPIC_AUTH_TOKEN="freecc"; $env:ANTHROPIC_BASE_URL="http://localhost:8082"; claude
8181
```
8282

8383
**⚠️ Notes spécifiques Windows Enterprise** :
@@ -119,8 +119,8 @@ uv run uvicorn server:app --host 0.0.0.0 --port 8082
119119
# Terminal2
120120
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
121121

122-
# En une seule commande
123-
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
122+
# En une seule commande (lance le proxy en arrière-plan puis Claude Code)
123+
cd $HOME/Projets/free-claude-code && uv run uvicorn server:app --host 0.0.0.0 --port 8082 & sleep 3 && ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
124124
```
125125

126126
**⚠️ Notes spécifiques macOS** :
@@ -162,8 +162,8 @@ uv run uvicorn server:app --host 0.0.0.0 --port 8082
162162
# Terminal2
163163
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
164164

165-
# En une seule commande
166-
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
165+
# En une seule commande (lance le proxy en arrière-plan puis Claude Code)
166+
cd ~/Projets/free-claude-code && uv run uvicorn server:app --host 0.0.0.0 --port 8082 & sleep 3 && ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude
167167
```
168168

169169
**⚠️ Notes spécifiques Linux** :

0 commit comments

Comments
 (0)