From 2247df24df6cf105e252bc76aa5944f85cb8ef57 Mon Sep 17 00:00:00 2001 From: Badri Narayanan S Date: Mon, 29 Dec 2025 14:46:11 +0530 Subject: [PATCH] updated instructions to load environment variables --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 6e72a9a..5b0b69b 100644 --- a/README.md +++ b/README.md @@ -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