How to Setup OpenClaw with Claude API Key

Learn how to create a Claude API key in Anthropic Console and configure OpenClaw (inside Agent37) to use it—plus verify your default model selection.

Do not index
In this walkthrough, you’ll set up OpenClaw with a Claude API key from the Agent37 dashboard. By the end, you’ll have a running OpenClaw instance, Anthropic set as the provider, and a quick way to verify everything is working.
 
Follow the steps below or watch the video.

Video walkthrough

Video preview

Prerequisites

  • A running OpenClaw instance inside Agent 37
  • A valid Claude (Anthropic) API key

Step 1: Create your Claude (Anthropic) API key

  1. Go to the Anthropic Console and sign in.
  1. In the left sidebar, open Manage > API Keys.
  1. Click Create Key.
  1. When prompted:
      • Select the workspace.
      • Enter a name for the key.
      • Click Add.
  1. Copy the generated key.
notion image
notion image
Claude API keys typically look like:
sk-ant-xxxx...

Step 2: Open your Agent 37 instance

  1. Go to the Agent37 dashboard and sign in.
  1. Open an existing instance (or create a new one).
  1. Open Terminal.

Step 3: Configure OpenClaw to use Anthropic

In Terminal, run:
openclaw configure
When prompted, choose the following:
  • Where will the gateway run? > Local
notion image
Continue with:
  • Select Section to Configure? > Model
notion image
  • Model / Auth Provider > Anthropic
notion image
  • Anthropic Auth Model > Anthropic API Key
notion image
  • How do you want to provide this API key now? > Paste API key now
notion image
  • Enter Anthropic API key > paste the key you copied in Step 1
notion image
  • Models in /models picker > select your model (example: anthropic/claude-sonnet-4-6)
notion image
  • After selecting the model > Continue
notion image

Step 4: Verify the configured model

Run:
openclaw models list
You should see the model you selected set as the default in the output.
notion image
 
You have successfully configured the Claude API key.