> ## Documentation Index
> Fetch the complete documentation index at: https://docs.together.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure OpenClaw with Together AI models

> Learn how to power OpenClaw (an autonomous agent) with Together AI models.

OpenClaw is the first Jarvis-like agent that actually gets things done: writing and executing scripts, browsing the web, using apps, and managing tasks from Telegram, WhatsApp, or any chat interface. By pairing it with [Together AI](https://together.ai), you unlock access to leading open-source models like Kimi K2.7 Code, GLM 5.2, and DeepSeek V4 Pro through a single OpenAI-compatible API, at a fraction of the cost of closed-source alternatives.

## Get started in 2 minutes

### Requirements

1. An OpenClaw installation ([install guide](https://docs.openclaw.ai/install))
2. A Together AI API key (grab one at [api.together.ai](https://api.together.ai))

### Step 1: Onboard with Together AI

<img src="https://mintcdn.com/togetherai-52386018/f1-0LcCDUGbuWv3k/images/guides/openclaw/intro.png?fit=max&auto=format&n=f1-0LcCDUGbuWv3k&q=85&s=d094f02b54328854a3d08460065abef4" alt="" width="875" height="624" data-path="images/guides/openclaw/intro.png" />

Run the interactive onboarding and select Together AI as your provider:

```bash theme={null}
openclaw onboard --auth-choice together-api-key
```

This will prompt you for your `TOGETHER_API_KEY` and store it securely for the Gateway.

<img src="https://mintcdn.com/togetherai-52386018/f1-0LcCDUGbuWv3k/images/guides/openclaw/api-key.png?fit=max&auto=format&n=f1-0LcCDUGbuWv3k&q=85&s=3a2f075d5f0a99494d9ae15fe7241fbc" alt="" width="803" height="439" data-path="images/guides/openclaw/api-key.png" />

### Step 2: Set your default model

Using the onboard command and "QuickStart" mode, OpenClaw selects a default model for you.

Set Kimi K2.7 Code as your default model in your OpenClaw config. Remember to prefix the model name with "together/":

```json5 theme={null}
{
  agents: {
    defaults: {
      model: { primary: "together/moonshotai/Kimi-K2.7-Code" },
    },
  },
}
```

### Step 3: Launch and chat

Start the Gateway and begin chatting via the web UI, CLI, Telegram, or WhatsApp:

```bash theme={null}
openclaw gateway run
```

That's it. OpenClaw is now powered by open-source models on Together AI.

## Environment note

If the Gateway runs as a daemon (launchd / systemd), make sure `TOGETHER_API_KEY` is available to that process, for example in `~/.openclaw/.env` or via `env.shellEnv`.

## Why Together AI + OpenClaw?

Together AI gives you access to the best open-source models with high throughput and low latency. For token-hungry agentic workflows like OpenClaw, this translates to massive savings without sacrificing quality:

* **Kimi K2.7 Code**: 256K context, purpose-built for coding and agentic workflows.
* **GLM 5.2**: Top-tier coding and agentic all-rounder.
* **DeepSeek V4 Pro**: Advanced reasoning for complex tasks.

All models are OpenAI API compatible, so OpenClaw works with them out of the box.

## Use cases

OpenClaw can help with both personal and work tasks, from automating daily workflows to powering complex business processes. Check out the [OpenClaw Showcase](https://openclaw.ai/showcase) for real-world examples and inspiration on how others are using OpenClaw for personal productivity and professional work.

## The bottom line

You don't have to choose between performance, quality, and cost. Together AI gives you access to the smartest open-source models, and OpenClaw turns them into a full-featured agent that lives on your machine. Pair them together and you get frontier-level capability at open-source prices.
