Team Ai
Apppublic

Yash030/claude-code-proxy

sourceHugging Faceupdated 5mo agoView on Hugging Face
2likes
.env.example108 linesDownload Raw Back to root
1# NVIDIA NIM Config2NVIDIA_NIM_API_KEY=""3 4 5# All Claude model requests are mapped to these models, plain model is fallback6# Format: provider_type/model/name7# Valid provider: "nvidia_nim"8MODEL_OPUS=9MODEL_SONNET=10MODEL_HAIKU=11MODEL="nvidia_nim/z-ai/glm4.7"12 13 14# Optional live smoke model overrides. Smoke runs for NVIDIA NIM.15FCC_SMOKE_MODEL_NVIDIA_NIM=16 17 18# Thinking output19# Per-Claude-model switches for provider reasoning requests and Claude thinking blocks.20# Blank per-model switches inherit ENABLE_MODEL_THINKING.21ENABLE_OPUS_THINKING=22ENABLE_SONNET_THINKING=23ENABLE_HAIKU_THINKING=24ENABLE_MODEL_THINKING=true25 26 27# Provider config28# Per-provider proxy support: http and socks5, example: "http://username:password@host:port"29NVIDIA_NIM_PROXY=""30 31PROVIDER_RATE_LIMIT=132PROVIDER_RATE_WINDOW=333PROVIDER_MAX_CONCURRENCY=534 35 36# HTTP client timeouts (seconds) for provider API requests37HTTP_READ_TIMEOUT=30038HTTP_WRITE_TIMEOUT=1039HTTP_CONNECT_TIMEOUT=1040 41 42# Optional server API key (Anthropic-style)43ANTHROPIC_AUTH_TOKEN="freecc"44 45 46# Messaging Platform: "telegram" | "discord" | "none"47MESSAGING_PLATFORM="discord"48MESSAGING_RATE_LIMIT=149MESSAGING_RATE_WINDOW=150 51 52# Voice Note Transcription53VOICE_NOTE_ENABLED=false54# WHISPER_DEVICE: "cpu" | "cuda" | "nvidia_nim"55# - "cpu"/"cuda": Hugging Face transformers Whisper (offline, free; install with: uv sync --extra voice_local)56# - "nvidia_nim": NVIDIA NIM Whisper via Riva gRPC (requires NVIDIA_NIM_API_KEY; install with: uv sync --extra voice)57# (Independent of MODEL=nvidia_nim/...: that selects the *chat* provider; this selects voice STT only.)58WHISPER_DEVICE="nvidia_nim"59# WHISPER_MODEL:60# - For cpu/cuda: Hugging Face ID or short name (tiny, base, small, medium, large-v2, large-v3, large-v3-turbo)61# - For nvidia_nim: NVIDIA NIM model (e.g., "nvidia/parakeet-ctc-1.1b-asr", "openai/whisper-large-v3")62# - For nvidia_nim, default to "openai/whisper-large-v3" for best performance63WHISPER_MODEL="openai/whisper-large-v3"64HF_TOKEN=""65 66 67# Telegram Config68TELEGRAM_BOT_TOKEN=""69ALLOWED_TELEGRAM_USER_ID=""70 71 72# Discord Config73DISCORD_BOT_TOKEN=""74ALLOWED_DISCORD_CHANNELS=""75 76 77# Agent Config78CLAUDE_WORKSPACE="./agent_workspace"79ALLOWED_DIR=""80CLAUDE_CLI_BIN="claude"81FAST_PREFIX_DETECTION=true82ENABLE_NETWORK_PROBE_MOCK=true83ENABLE_TITLE_GENERATION_SKIP=true84ENABLE_SUGGESTION_MODE_SKIP=true85ENABLE_FILEPATH_EXTRACTION_MOCK=true86 87 88# Local Anthropic web_search / web_fetch handling (performs outbound HTTP; on by default)89ENABLE_WEB_SERVER_TOOLS=true90WEB_FETCH_ALLOWED_SCHEMES=http,https91WEB_FETCH_ALLOW_PRIVATE_NETWORKS=false92 93 94# Verbose diagnostics (avoid logging raw prompts / SSE bodies in production)95DEBUG_PLATFORM_EDITS=false96DEBUG_SUBAGENT_STACK=false97# When true, also allows DEBUG-level httpx/httpcore/telegram log noise (not just payload logging).98LOG_RAW_API_PAYLOADS=false99LOG_RAW_SSE_EVENTS=false100# When true, log full exception text and tracebacks for unhandled errors (may leak request-derived data).101LOG_API_ERROR_TRACEBACKS=false102# When true, log message/transcription text previews in messaging adapters (may leak user content).103LOG_RAW_MESSAGING_CONTENT=false104# When true, log full Claude CLI stderr, non-JSON stdout lines, and parser error text.105LOG_RAW_CLI_DIAGNOSTICS=false106# When true, log full exception and CLI error message strings in messaging (may leak user content).107LOG_MESSAGING_ERROR_DETAILS=false108