-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy path.env.example
More file actions
66 lines (53 loc) · 2.3 KB
/
.env.example
File metadata and controls
66 lines (53 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Claude CLI Configuration
CLAUDE_CLI_PATH=claude
# Authentication Method (optional - explicit selection)
# Set this to override auto-detection. Values: cli, api_key, bedrock, vertex
# If not set, auto-detects based on available env vars (ANTHROPIC_API_KEY, etc.)
# CLAUDE_AUTH_METHOD=cli
# API Configuration
# If API_KEY is not set, server will prompt for interactive API key protection on startup
# Leave commented out to enable interactive prompt, or uncomment to use a fixed API key
# API_KEY=your-optional-api-key-here
# Server Configuration
PORT=8000
# Host binding address - use 127.0.0.1 for local-only access, 0.0.0.0 for all interfaces
# CLAUDE_WRAPPER_HOST=0.0.0.0
# Maximum request body size in bytes (default: 10MB)
# MAX_REQUEST_SIZE=10485760
# Timeout Configuration (milliseconds)
MAX_TIMEOUT=600000
# CORS Configuration
CORS_ORIGINS=["*"]
# Model Configuration
# Default Claude model to use when none specified in request.
# When unset AND ANTHROPIC_API_KEY is configured, the wrapper resolves the
# latest Sonnet from Anthropic's live Models API at startup. Otherwise it
# falls back to claude-sonnet-4-6.
# DEFAULT_MODEL=claude-sonnet-4-6
# Speed/cost-optimized model alias.
# FAST_MODEL=claude-haiku-4-5-20251001
# Model Discovery (optional)
# ANTHROPIC_API_KEY unlocks two best-effort enhancements:
# 1. /v1/models returns Anthropic's live model list (cached for 1 hour)
# 2. DEFAULT_MODEL resolves to the latest Sonnet at startup
# It is NOT required to run the wrapper — Bedrock, Vertex, and Claude CLI
# subscription auth all work without it; /v1/models then returns the static
# fallback list.
# ANTHROPIC_API_KEY=sk-ant-...
# Pin the advertised model list. Takes precedence over both live and static.
# CLAUDE_MODELS_OVERRIDE=claude-sonnet-4-6,claude-opus-4-6
# Cache TTL for live /v1/models results (seconds).
# MODEL_LIST_CACHE_TTL_SECONDS=3600
# Short cache TTL when the live fetch fails so transient outages don't
# suppress live discovery for the full hour.
# MODEL_LIST_ERROR_TTL_SECONDS=60
# HTTP timeout for the live model fetch.
# MODEL_LIST_REQUEST_TIMEOUT_SECONDS=5
# Rate Limiting Configuration
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE=30
RATE_LIMIT_CHAT_PER_MINUTE=10
RATE_LIMIT_DEBUG_PER_MINUTE=2
RATE_LIMIT_AUTH_PER_MINUTE=10
RATE_LIMIT_SESSION_PER_MINUTE=15
RATE_LIMIT_HEALTH_PER_MINUTE=30