GitDeployHub

wei-shaw/claude-relay-service

github.com/wei-shaw/claude-relay-service ↗
Node.js API
20 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)

  • PORT 🌐 服务器配置
  • HOST
  • NODE_ENV
  • JWT_SECRET secret 🔐 安全配置
  • ADMIN_SESSION_TIMEOUT
  • API_KEY_PREFIX secret
  • ENCRYPTION_KEY secret
  • REDIS_HOST 📊 Redis 配置
  • REDIS_PORT
  • REDIS_PASSWORD secret
  • REDIS_DB
  • REDIS_ENABLE_TLS
  • STICKY_SESSION_TTL_HOURS 🔗 会话管理配置 粘性会话TTL配置(小时),默认1小时
  • STICKY_SESSION_RENEWAL_THRESHOLD_MINUTES 续期阈值(分钟),默认0分钟(不续期)
  • CLAUDE_API_URL 🎯 Claude API 配置
  • CLAUDE_API_VERSION
  • CLAUDE_BETA_HEADER
  • CLAUDE_OVERLOAD_HANDLING_MINUTES 🚫 529错误处理配置 启用529错误处理,0表示禁用,>0表示过载状态持续时间(分钟)
  • CLAUDE_CONSOLE_BLOCKED_HANDLING_MINUTES 400错误处理:0表示禁用,>0表示临时禁用时间(分钟) 只有匹配特定错误模式的 400 才会触发临时禁用 organization has been disabled account has been disabled account is disabled no…
  • DEFAULT_PROXY_TIMEOUT 🌐 代理配置
Alternative Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/wei-shaw/claude-relay-service
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/wei-shaw/claude-relay-service
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/wei-shaw/claude-relay-service
Or deploy to a different host
← Try another repo