Table of Contents
Do not index
If you want to use OpenClaw with OpenAI models inside Agent 37, the setup is straightforward. You’ll create an OpenAI API key, open your OpenClaw instance in Agent 37, configure the model provider in the terminal, and then verify the selected model.
Follow the steps below or watch the video walkthrough:
Video walkthrough

Prerequisites
Before you begin, make sure you have:
- An active Agent 37 account
- A running OpenClaw instance inside Agent 37
- An OpenAI Platform account
- A valid OpenAI API key
Step 1: Create your OpenAI API key
- Go to the OpenAI Platform and sign in.
- In the left sidebar, open Manage > API keys.
- Click
Create new secret Key.
- When prompted:
- Enter a name.
- Select the Project
- Click
create secret key.
- Copy the generated key.

OpenAI API keys typically look like:
sk-proj-xxxx...Step 2: Open your Agent 37 instance
- Go to the Agent37 dashboard and sign in.
- Open an existing instance (or create a new one).
- Open Terminal.
Step 3: Configure OpenClaw to use OpenAI
In Terminal, run:
openclaw configureWhen prompted, choose the following:
- Where will the gateway run? >
Local

Continue with:
- Select Section to Configure? >
Model

- Model / Auth Provider >
OpenAI

- OpenAI Auth Model >
OpenAI API Key

- How do you want to provide this API key now? >
Paste API key now

- Enter OpenAI API key > paste the key you copied in Step 1

- Models in /models picker > select your model (example:
openai/gpt-5.6)

- After selecting the model >
Continue

Step 4: Verify the configured model
Run:
openclaw models listYou should see the models you selected in the output.

If you want to make that model the default, run:
Execute:
openclaw models set openai/gpt-5.6You have successfully configured OpenClaw with your OpenAI API key inside Agent 37. Your instance is now ready to use the selected OpenAI model for future tasks.
Keep your OpenAI API key private. Anyone with the key can consume usage on your OpenAI account, so never expose it in client-side code or share it in chat.
If you are not sure which model to choose,
openai/gpt-5.6 is a strong default for general OpenClaw workflows (it aliases to GPT-5.6 Sol, the flagship; gpt-5.6-terra and gpt-5.6-luna are the cheaper tiers). You can switch any time with openclaw models set.What to do next
- Compare with the Claude API key setup if you also use Anthropic models.