OpenClaw Together AI 提供商配置指南

2026-03-30 15:52 更新

Together AI 可以通过统一的 API 为你提供主流开源模型的访问能力,包括 Llama、DeepSeek、Kimi 等。

  • 提供商标识:together
  • 鉴权方式:TOGETHER_API_KEY
  • API 类型:兼容 OpenAI

快速开始

设置 API 密钥(推荐:为网关存储该密钥):

openclaw onboard --auth-choice together-api-key

设置默认模型:

{
 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 设置为默认模型。

环境说明

如果网关以守护进程(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。

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号