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

# Claude API

> Set up OpenClaw with a Claude API key in Agent 37

Follow the steps below or watch the video.

## Video walkthrough

<iframe src="https://www.youtube.com/embed/AKRJ-tJTibE" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

<Info>
  **Prerequisites**:

  * An active [Agent 37 account](https://www.agent37.com/dashboard)
  * A running OpenClaw instance in Agent 37
  * An [Anthropic Console](https://console.anthropic.com) account
  * A valid Claude API key
</Info>

## Step 1: Create your Claude API key

1. Go to the [Anthropic Console](https://console.anthropic.com) and sign in.
2. In the left sidebar, open **Manage** > **API Keys**.
3. Click **Create Key**.
4. When prompted:
   * Select the workspace
   * Enter a name for the key
   * Click **Add**
5. Copy the generated key.

<Frame>
  <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-18.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=283ffa8e9b95eaed688311b1f869e467" alt="Image" width="2048" height="1075" data-path="images/image-18.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-19.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=aef460f0b1fd6a84acd71d1ebb5a591c" alt="Image" width="1338" height="1120" data-path="images/image-19.png" />
</Frame>

Claude API keys typically look like:

```text theme={null}
sk-ant-xxxx...
```

<Warning>
  Keep this key private. Anyone with the key can use your Anthropic account and consume usage.
</Warning>

## Step 2: Open your Agent 37 instance

1. Go to the [Agent 37 dashboard](https://www.agent37.com/dashboard) and sign in.
2. Open an existing instance, or create a new one.
3. Open **Terminal**.

## Step 3: Configure OpenClaw to use Anthropic

In Terminal, run:

```bash theme={null}
openclaw configure
```

When prompted, choose the following:

1. **Where will the gateway run?** → `Local`
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-22.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=3e2d80291fe90ac58c921b232533813f" alt="Image" width="1490" height="754" data-path="images/image-22.png" />
   </Frame>
2. **Select Section to Configure?** → `Mode`
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-23.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=cc9a6eda8fa5e179118b78cfc417a411" alt="Image" width="1606" height="1022" data-path="images/image-23.png" />
   </Frame>
3. **Model / Auth Provider** → `Anthropic`
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-24.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=dc324ad6ba8fe2c35994acbb80a7d456" alt="Image" width="1606" height="1022" data-path="images/image-24.png" />
   </Frame>
4. **Anthropic Auth Model** → `Anthropic API Key`
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-25.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=ce07b8999237517e661f7499e7ec7140" alt="Image" width="888" height="730" data-path="images/image-25.png" />
   </Frame>
5. **How do you want to provide this API key now?** → `Paste API key now`
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-26.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=f67b981d5e0e04c1e9e87016b58fc466" alt="Image" width="1050" height="556" data-path="images/image-26.png" />
   </Frame>
6. **Enter Anthropic API key** → paste the key you copied in Step 1
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-27.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=21cfbbf6b2b57560b959d158bc7f84b7" alt="Image" width="2048" height="1056" data-path="images/image-27.png" />
   </Frame>
7. **Models in /models picker** → choose the model you want to use, for example `anthropic/claude-sonnet-4-6`
   <Frame>
     <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-28.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=23adeb58e3517984a5939301f70981f6" alt="Image" width="1132" height="1422" data-path="images/image-28.png" />
   </Frame>
8. After selecting the model, choose `Continue`

<Frame>
  <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-31.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=f677524287a4430d811a6f160e123fdb" alt="Image" width="2048" height="398" data-path="images/image-31.png" />
</Frame>

<Tip>
  If you are not sure which model to choose, start with a Claude Sonnet model. It is usually a strong default for general OpenClaw workflows.
</Tip>

## Step 4: Verify the configured model

Run:

```bash theme={null}
openclaw models list
```

You should see the model you selected marked as the default in the output.

<Frame>
  <img src="https://mintcdn.com/agent37/e1Gz4o2mW1yI7ca_/images/image-32.png?fit=max&auto=format&n=e1Gz4o2mW1yI7ca_&q=85&s=dba72fb2da42cf51fad4ec29cffa9749" alt="Image" width="1702" height="238" data-path="images/image-32.png" />
</Frame>

## What to do next

Once Claude is configured, you can:

* connect a channel like WhatsApp or Telegram
* test your bot in Web Chat
* continue tuning prompts and provider settings

<CardGroup cols={2}>
  <Card title="Documentation home" icon="map" href="/docs/">
    Browse the available channels, models, and networking guides.
  </Card>

  <Card title="OpenAI API" icon="sparkles" href="/docs/models/how-to-setup-openclaw-openai-api">
    Compare the OpenAI setup flow with the Claude configuration flow.
  </Card>
</CardGroup>
