Skip to content

Together AI

Together AI 通过统一 API 提供对领先开源模型的访问,包括 Llama、DeepSeek、Kimi 等。

  • 提供商:together
  • 认证:TOGETHER_API_KEY
  • API:OpenAI 兼容

快速开始

  1. 设置 API 密钥(推荐:为网关存储):
bash
openclaw onboard --auth-choice together-api-key
  1. 设置默认模型:
json5
{
  agents: {
    defaults: {
      model: { primary: "together/moonshotai/Kimi-K2.5" },
    },
  },
}

非交互式示例

bash
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 上下文窗口

所有模型都支持标准聊天补全,并兼容 OpenAI API。

用工程视角拆解 AI 智能体框架