How to connect OpenAI (ChatGPT) as your AI Brain
OpenAI provides the GPT family of models including GPT-4o. To connect it, you need an OpenAI API key.
Step 1 — Create an OpenAI account
Go to platform.openai.com and sign up or log in.
Step 2 — Get your API key
- Click your profile icon in the top right, then API keys.
- Click Create new secret key.
- Give it a name and click Create secret key.
- Copy the key — it starts with
sk-. You will not be able to see it again.
Step 3 — Add billing
Go to Billing in the platform and add a payment method. You can set a monthly spending limit to avoid unexpected charges.
Step 4 — Enter the key in your dashboard
- Open your OpenClaw configuration dashboard.
- Click AI Brain to expand it.
- Click the OpenAI tile.
- Paste your API key into the field.
- Choose a model. GPT-4o is recommended for best quality.
- Click Save AI Brain.
Pricing
You are billed directly by OpenAI based on usage. See openai.com/pricing for current rates.
