Claude Code 接入 / Claude Code API gateway
Claude Code 接入 Routin:ANTHROPIC_BASE_URL 怎么填
Claude Code on Routin: ANTHROPIC_BASE_URL and API key setup
Claude Code 走 Anthropic Messages 协议。把 ANTHROPIC_BASE_URL 指到 Routin 根地址,用 Routin API Key 作为 ANTHROPIC_AUTH_TOKEN,即可调用目录中的模型。
Claude Code speaks the Anthropic Messages protocol. Point ANTHROPIC_BASE_URL at the Routin root and use a Routin API key as ANTHROPIC_AUTH_TOKEN.
接入要点 / Setup facts
- 协议 / Protocol: Anthropic Messages / Claude Code
- Base URL:
https://api.routin.ai/ - ANTHROPIC_BASE_URL 填 https://api.routin.ai/(根地址)。Claude Code 会自己拼 /v1/messages,不要再加 /v1。 / Set ANTHROPIC_BASE_URL to https://api.routin.ai/ (the root). Claude Code appends /v1/messages; do not add /v1 yourself.
- 鉴权字段是 ANTHROPIC_AUTH_TOKEN,值是 Routin API Key,不是 Anthropic 官方 key。 / ANTHROPIC_AUTH_TOKEN is your Routin API key, not an Anthropic console key.