North Coder
设置模型

Anthropic 官方

直接使用 Anthropic 官方 Messages API 接入 Claude 系列模型。

如果你已经持有 Anthropic 官方 API Key,可以不经过 NorthGate,直接调用官方 Messages API。

准备 API Key

  1. 在 console.anthropic.com 创建账号并完成账单设置。
  2. 在 API Keys 页面创建一个 Key,复制以 sk-ant- 开头的字符串。
  3. 在 Workspaces / Models 中确认你想使用的 Claude 型号已被启用。

Claude 配置

字段值
API TypeAnthropic
Model如 claude-opus-4-7、claude-opus-4-6 或 claude-sonnet-4-6
Base URLhttps://api.anthropic.com
API KeyAnthropic 官方 Key(sk-ant-...)
ThinkingAdaptive
Support Vision按需开启

模型选择建议:

  • Opus:复杂实现、跨文件重构、RFC 设计。
  • Sonnet:日常会话、读懂仓库后再交给 Opus 落地。

注意事项

  • Anthropic 官方 Base URL 不带 /v1,鉴权头由 North Coder 自动处理(内部使用 x-api-key)。
  • Anthropic 协议下 OpenAI 的 Effort 字段无效;想调节推理深度请使用 Thinking 设置(建议 Adaptive)。
  • 官方 API 在中国大陆访问需要稳定的网络出口;如不方便,可改走 NorthGate 或 OpenRouter。
  • Claude 模型搭配默认的 General Agent Profile 即可;Anthropic API 会自动使用 write_file / replace。

本页内容