updated instructions to load environment variables

This commit is contained in:
Badri Narayanan S
2025-12-29 14:46:11 +05:30
parent 17e7cebef1
commit 2247df24df

View File

@@ -166,6 +166,37 @@ Or to use Gemini models:
}
```
### Load Environment Variables
Add the proxy settings to your shell profile:
**macOS / Linux:**
```bash
echo 'export ANTHROPIC_BASE_URL="http://localhost:8080"' >> ~/.zshrc
echo 'export ANTHROPIC_API_KEY="test"' >> ~/.zshrc
source ~/.zshrc
```
> For Bash users, replace `~/.zshrc` with `~/.bashrc`
**Windows (PowerShell):**
```powershell
Add-Content $PROFILE "`n`$env:ANTHROPIC_BASE_URL = 'http://localhost:8080'"
Add-Content $PROFILE "`$env:ANTHROPIC_API_KEY = 'test'"
. $PROFILE
```
**Windows (Command Prompt):**
```cmd
setx ANTHROPIC_BASE_URL "http://localhost:8080"
setx ANTHROPIC_API_KEY "test"
```
Restart your terminal for changes to take effect.
### Run Claude Code
```bash