From 0532fd19a639549eb725fceaa830e2a79f630aff Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Fri, 29 May 2026 01:02:46 -0400 Subject: [PATCH] config: add 9router/ANTHROPIC_BASE_URL env vars to .env.example --- .env.example | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7e1d124..dd69d8e 100755 --- a/.env.example +++ b/.env.example @@ -28,6 +28,25 @@ HOST=0.0.0.0 # Uncomment the following line if you have a custom claude cli path other than the default "claude" # CLAUDE_CLI_PATH=claude +# ============================================================================= +# 9ROUTER / ANTHROPIC API CONFIGURATION +# ============================================================================= + +# Route Claude SDK calls through 9router (or any OpenAI-compatible proxy). +# Set ANTHROPIC_BASE_URL to your 9router endpoint. +# The Claude Code SDK forwards this env var to the subprocess automatically. +# Example: https://9router.example.com/v1 +# ANTHROPIC_BASE_URL=https://your-9router-host/v1 + +# API key for 9router (or direct Anthropic API key). +# If using 9router, use your 9router token here. +# ANTHROPIC_API_KEY=your-key-here + +# When using 9router, set this to your 9router base URL so the server can +# fetch the available model list from GET /v1/models at startup. +# If unset, falls back to hardcoded model list in shared/modelConstants.js +# MODELS_API_BASE_URL=https://your-9router-host + # ============================================================================= # DATABASE CONFIGURATION # ============================================================================= @@ -41,5 +60,3 @@ HOST=0.0.0.0 # Claude Code context window size (maximum tokens per session) VITE_CONTEXT_WINDOW=160000 CONTEXT_WINDOW=160000 - -