fix(hub): 去掉冗余 OPENROUTER_API_KEY,直接用 ANTHROPIC_AUTH_TOKEN

This commit is contained in:
2026-07-08 01:48:01 +08:00
parent b9f50407be
commit 085f7c7186
2 changed files with 7 additions and 14 deletions
+4 -9
View File
@@ -3,16 +3,11 @@
# PostgreSQL connection string.
DATABASE_URL="postgresql://paradigm:paradigm@127.0.0.1:5432/paradigm"
# OpenRouter API key — used as ANTHROPIC_AUTH_TOKEN for Claude Code SDK.
# OpenRouter's "Anthropic Skin" (https://openrouter.ai/api) is Anthropic-API
# compatible, so Claude Code SDK speaks its native protocol directly.
# Get one at https://openrouter.ai/keys
OPENROUTER_API_KEY=""
# Claude Code SDK auth — derived from OpenRouter. Do NOT set ANTHROPIC_API_KEY
# to a real value; it must be explicitly empty to avoid auth conflicts.
# Claude Code SDK auth via OpenRouter's Anthropic Skin.
# ANTHROPIC_AUTH_TOKEN = your OpenRouter API key (https://openrouter.ai/keys)
# ANTHROPIC_API_KEY must be explicitly empty to avoid auth conflicts.
ANTHROPIC_BASE_URL="https://openrouter.ai/api"
ANTHROPIC_AUTH_TOKEN="" # Set to same value as OPENROUTER_API_KEY
ANTHROPIC_AUTH_TOKEN=""
ANTHROPIC_API_KEY=""
# Model override (optional). Defaults to Claude Sonnet. To use GLM: