claude-code-proxy/.env.example

40 lines
1.2 KiB
Text
Raw Normal View History

2025-06-29 19:27:00 -04:00
# Claude Code Monitor Configuration
# Server Configuration
SERVER_HOST=127.0.0.1
2025-06-29 19:27:00 -04:00
PORT=3001
READ_TIMEOUT=500
WRITE_TIMEOUT=500
IDLE_TIMEOUT=500
# Anthropic API Configuration
# URL to forward requests to (the actual Anthropic API)
ANTHROPIC_FORWARD_URL=https://api.anthropic.com
ANTHROPIC_VERSION=2023-06-01
ANTHROPIC_MAX_RETRIES=3
# OpenAI Configuration (for subagent routing)
# OPENAI_API_KEY=your-openai-api-key
# OPENAI_BASE_URL=https://api.openai.com
# OPENAI_ALLOW_CLIENT_API_KEY=false
# OPENAI_CLIENT_API_KEY_HEADER=x-openai-api-key
# Auth Configuration
# AUTH_ENABLED=false
# AUTH_TOKEN=change-me
# AUTH_API_KEY_HEADER=x-api-key
# AUTH_ALLOW_LOCALHOST_BYPASS=true
2025-06-29 19:27:00 -04:00
# Storage Configuration
DB_PATH=requests.db
STORAGE_CAPTURE_REQUEST_BODY=true
STORAGE_CAPTURE_RESPONSE_BODY=true
STORAGE_METADATA_ONLY=false
STORAGE_RETENTION_DAYS=0
# STORAGE_REDACTED_FIELDS=api_key,authorization,token,password,secret,access_token,refresh_token,client_secret
# CORS Configuration (comma-separated values)
# CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:5173,http://127.0.0.1:5173
# CORS_ALLOWED_METHODS=GET,POST,DELETE,OPTIONS
# CORS_ALLOWED_HEADERS=Accept,Authorization,Content-Type,Anthropic-Version,Anthropic-Beta,X-API-Key,X-Requested-With