Together AI

Together AI 提供统一 API 来访问多种主流开源模型(包括 Llama、DeepSeek、Kimi 等)。

  • Provider:together
  • 认证:TOGETHER_API_KEY
  • API:OpenAI 兼容

快速开始

  1. 设置 API key(建议存到 Gateway,便于守护进程读取):
openclaw onboard --auth-choice together-api-key
  1. 设置默认模型:
{
  agents: {
    defaults: {
      model: { primary: "together/moonshotai/Kimi-K2.5" },
    },
  },
}

非交互式示例

openclaw onboard --non-interactive \
  --mode local \
  --auth-choice together-api-key \
  --together-api-key "$TOGETHER_API_KEY"

这会将 together/moonshotai/Kimi-K2.5 设置为默认模型。

环境变量提示

如果 Gateway 以守护进程运行(launchd/systemd),请确保 TOGETHER_API_KEY 对该进程可见(例如写入 ~/.clawdbot/.env 或通过 env.shellEnv 注入)。

可用模型

Together AI 提供大量流行开源模型:

  • GLM 4.7 Fp8 - 默认模型,200K 上下文窗口
  • Llama 3.3 70B Instruct Turbo - 快速且高效的指令跟随
  • Llama 4 Scout - 支持图像理解的视觉模型
  • Llama 4 Maverick - 更强的视觉与推理
  • DeepSeek V3.1 - 代码与推理能力强
  • DeepSeek R1 - 高级推理模型
  • Kimi K2 Instruct - 高性能模型,262K 上下文窗口

这些模型都支持标准 chat completions,并与 OpenAI API 兼容。